curl --request POST \
--url https://api.example.com/links/create \
--header 'Content-Type: application/json' \
--data '
{
"organizationId": "<string>",
"name": "<string>",
"targetUrl": "<string>",
"slug": "<string>",
"expiresAt": "<string>",
"expiredRedirectUrl": "<string>",
"ogTitle": "<string>",
"ogDescription": "<string>",
"ogImageUrl": "<string>",
"ogVideoUrl": "<string>",
"iosUrl": "<string>",
"androidUrl": "<string>",
"externalId": "<string>"
}
'{
"id": "<string>",
"slug": "<string>",
"name": "<string>",
"targetUrl": "<string>",
"organizationId": "<string>",
"createdBy": "<string>",
"createdAt": "<string>"
}Creates a new short link with optional custom slug and device targeting
curl --request POST \
--url https://api.example.com/links/create \
--header 'Content-Type: application/json' \
--data '
{
"organizationId": "<string>",
"name": "<string>",
"targetUrl": "<string>",
"slug": "<string>",
"expiresAt": "<string>",
"expiredRedirectUrl": "<string>",
"ogTitle": "<string>",
"ogDescription": "<string>",
"ogImageUrl": "<string>",
"ogVideoUrl": "<string>",
"iosUrl": "<string>",
"androidUrl": "<string>",
"externalId": "<string>"
}
'{
"id": "<string>",
"slug": "<string>",
"name": "<string>",
"targetUrl": "<string>",
"organizationId": "<string>",
"createdBy": "<string>",
"createdAt": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/databuddy-analytics/Databuddy/llms.txt
Use this file to discover all available pages before exploring further.
write:links scope.
expiredRedirectUrl after this timehttps://dby.to/{slug}curl -X POST https://api.databuddy.cc/links/create \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"organizationId": "org_abc123",
"name": "Product Launch",
"targetUrl": "https://example.com/products/new",
"slug": "launch",
"ogTitle": "Check out our new product!",
"ogDescription": "The best product launch of 2024",
"ogImageUrl": "https://example.com/og-image.png"
}'
{
"id": "lnk_xyz123",
"slug": "launch",
"name": "Product Launch",
"targetUrl": "https://example.com/products/new",
"organizationId": "org_abc123",
"createdBy": "usr_456",
"expiresAt": null,
"expiredRedirectUrl": null,
"ogTitle": "Check out our new product!",
"ogDescription": "The best product launch of 2024",
"ogImageUrl": "https://example.com/og-image.png",
"ogVideoUrl": null,
"iosUrl": null,
"androidUrl": null,
"externalId": null,
"createdAt": "2024-03-01T17:00:00Z",
"updatedAt": "2024-03-01T17:00:00Z"
}
https://dby.to/launch