Request
Your project API key: b2co_your_api_key
Page number for pagination (starts from 1)
Number of links per page (maximum 100)
Response
Indicates if the request was successful
Array of link objects with complete payload structure
Unique identifier for the link
Unique short code for the link
Link status: ACTIVE, PAUSED, or EXPIRED
Complete link configuration payload
Android-specific configuration (optional)
iOS-specific configuration (optional)
Social media preview configuration (optional)
Unique identifier for the link
Unique short code for the link
Link status: ACTIVE, PAUSED, or EXPIRED
Complete link configuration payload
Android-specific configuration (optional)
iOS-specific configuration (optional)
Social media preview configuration (optional)
UTM campaign parameters (optional)
ISO 8601 timestamp when created
ISO 8601 timestamp when expires (if set)
Total number of clicks on this link
ID of the project this link belongs to
ID of the user who created the link
ISO 8601 timestamp when last updated
curl -X GET "https://api.bit2connect.com/1.0/links?page=1&pageSize=20" \
-H "X-API-KEY: b2co_your_api_key"
{
"success": true,
"data": [
{
"id": "clp123abc456",
"code": "summer-sale",
"shortUrl": "https://b2co.link/summer-sale",
"name": "Summer Sale Campaign",
"status": "ACTIVE",
"qrCode": "https://b2co.link/summer-sale/qr",
"payload": {
"link": "https://example.com/summer-sale",
"android": {
"package": "com.example.app",
"store_fallback": "https://play.google.com/store/apps/details?id=com.example.app"
},
"ios": {
"bundleId": "com.example.app",
"app_store_fallback": "https://apps.apple.com/app/example-app/id123456789"
},
"social": {
"title": "Summer Sale - Up to 50% Off!",
"description": "Don't miss our biggest sale of the year",
"image": "https://example.com/images/summer-sale.jpg"
},
"campaign": {
"utm_source": "api",
"utm_medium": "dynamic_link",
"utm_campaign": "summer_sale_2024"
}
},
"createdAt": "2024-01-15T10:30:00Z",
"expiresAt": "2024-12-31T23:59:59Z",
"clickCount": 1247,
"qrCode": "https://b2co.link/summer-sale/qr",
"projectId": "proj_abc123",
"createdBy": "user_xyz789",
"updatedAt": "2024-01-15T10:30:00Z"
}
],
"pagination": {
"page": 1,
"pageSize": 20,
"total": 45,
"totalPages": 3
}
}
Error Codes
Invalid query parameters provided
API key is missing or invalid
Too many requests, please try again later