Documentation Index Fetch the complete documentation index at: https://docs.bit2connect.com/llms.txt
Use this file to discover all available pages before exploring further.
Request
Your project API key: b2co_your_api_key
The custom code to check for availability (3-50 characters, alphanumeric, hyphens, and underscores only)
Response
Indicates if the request was successful
Code availability information
The code that was checked
Whether the code is available for use (true = available, false = already in use)
Human-readable message about the code availability
curl -X GET "https://api.bit2connect.com/1.0/links/check/my-custom-code" \
-H "X-API-KEY: b2co_your_api_key"
Available Code
Code Already In Use
Invalid Code Format
{
"success" : true ,
"data" : {
"code" : "my-custom-code" ,
"available" : true ,
"message" : "Code is available for use"
}
}
Code Requirements
Code Format Rules :
Length: 3-50 characters
Allowed characters: letters (a-z, A-Z), numbers (0-9), hyphens (-), underscores (_)
Case sensitive: MyCode and mycode are different
Must be unique within your project
Error Codes
Invalid code format or length
API key is missing or invalid
Too many requests, please try again later
Usage Tips
Best Practice : Always check code availability before attempting to create a link with a custom code. This prevents CODE_ALREADY_EXISTS errors during link creation.
Use this endpoint in your workflow:
Check if your desired code is available
If available, proceed with link creation
If not available, try a different code or let the system generate one automatically