curl -X POST https://api.bouncy.ai/v1/links/bulk \
-H "X-Api-Key: bcy_live_pk_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"links": [
{
"url": "https://example.com/page1",
"slug": "page1",
"title": "Page 1",
"tags": ["bulk", "test"]
},
{
"url": "https://example.com/page2",
"slug": "page2",
"title": "Page 2",
"tags": ["bulk", "test"]
},
{
"url": "https://example.com/page3",
"slug": "page3",
"title": "Page 3",
"tags": ["bulk", "test"]
}
]
}'
{
"created": [
{
"id": "link_abc123",
"shortUrl": "https://bouncy.link/page1",
"slug": "page1",
"destination": "https://example.com/page1",
"title": "Page 1",
"tags": ["bulk", "test"]
},
{
"id": "link_def456",
"shortUrl": "https://bouncy.link/page2",
"slug": "page2",
"destination": "https://example.com/page2",
"title": "Page 2",
"tags": ["bulk", "test"]
}
],
"failed": [
{
"index": 2,
"slug": "page3",
"error": {
"code": "slug_already_exists",
"message": "The slug 'page3' is already in use"
}
}
],
"summary": {
"total": 3,
"succeeded": 2,
"failed": 1
}
}
Create up to 100 short links in a single request
curl -X POST https://api.bouncy.ai/v1/links/bulk \
-H "X-Api-Key: bcy_live_pk_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"links": [
{
"url": "https://example.com/page1",
"slug": "page1",
"title": "Page 1",
"tags": ["bulk", "test"]
},
{
"url": "https://example.com/page2",
"slug": "page2",
"title": "Page 2",
"tags": ["bulk", "test"]
},
{
"url": "https://example.com/page3",
"slug": "page3",
"title": "Page 3",
"tags": ["bulk", "test"]
}
]
}'
{
"created": [
{
"id": "link_abc123",
"shortUrl": "https://bouncy.link/page1",
"slug": "page1",
"destination": "https://example.com/page1",
"title": "Page 1",
"tags": ["bulk", "test"]
},
{
"id": "link_def456",
"shortUrl": "https://bouncy.link/page2",
"slug": "page2",
"destination": "https://example.com/page2",
"title": "Page 2",
"tags": ["bulk", "test"]
}
],
"failed": [
{
"index": 2,
"slug": "page3",
"error": {
"code": "slug_already_exists",
"message": "The slug 'page3' is already in use"
}
}
],
"summary": {
"total": 3,
"succeeded": 2,
"failed": 1
}
}
bcy_live_pk_YOUR_API_KEY)application/jsonurl (required) - Destination URLslug (optional) - Custom slugtitle (optional) - Link titledescription (optional) - Link descriptiontags (optional) - Array of tagsdomain (optional) - Custom domaincurl -X POST https://api.bouncy.ai/v1/links/bulk \
-H "X-Api-Key: bcy_live_pk_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"links": [
{
"url": "https://example.com/page1",
"slug": "page1",
"title": "Page 1",
"tags": ["bulk", "test"]
},
{
"url": "https://example.com/page2",
"slug": "page2",
"title": "Page 2",
"tags": ["bulk", "test"]
},
{
"url": "https://example.com/page3",
"slug": "page3",
"title": "Page 3",
"tags": ["bulk", "test"]
}
]
}'
{
"created": [
{
"id": "link_abc123",
"shortUrl": "https://bouncy.link/page1",
"slug": "page1",
"destination": "https://example.com/page1",
"title": "Page 1",
"tags": ["bulk", "test"]
},
{
"id": "link_def456",
"shortUrl": "https://bouncy.link/page2",
"slug": "page2",
"destination": "https://example.com/page2",
"title": "Page 2",
"tags": ["bulk", "test"]
}
],
"failed": [
{
"index": 2,
"slug": "page3",
"error": {
"code": "slug_already_exists",
"message": "The slug 'page3' is already in use"
}
}
],
"summary": {
"total": 3,
"succeeded": 2,
"failed": 1
}
}