Developers

Bop API

Create and manage links programmatically. API access is included on Business and Agency plans. This is a preview of the API; full keys and rate limits are issued from your dashboard.

Authentication

curl https://api.bop.to/v1/links \
  -H "Authorization: Bearer YOUR_API_KEY"

Create a link

curl -X POST https://api.bop.to/v1/links \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "destination": "https://example.com/product",
    "alias": "product",
    "title": "Product Launch"
  }'

Response

{
  "id": "lnk_example",
  "short_url": "https://bop.to/product",
  "destination": "https://example.com/product",
  "status": "active"
}

List links

curl https://api.bop.to/v1/links?limit=50 \
  -H "Authorization: Bearer YOUR_API_KEY"

Get analytics

curl https://api.bop.to/v1/links/{id}/analytics \
  -H "Authorization: Bearer YOUR_API_KEY"
Rate limits, scoped keys, and webhook delivery are configured from the dashboard API page on paid plans. The full OpenAPI spec will be available here once the API launches.