Skip to content
← Revolink Docs
Base URL: api.revolink.link/apiv1

API Reference

Manage links, routing rules, and analytics programmatically via a simple HTTP API. Authenticate with one header — no OAuth, no token refresh.

Quick start

Two requests — create a link, then get its analytics:

Create a link

bash
curl -X POST https://api.revolink.link/apiv1/link/create \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workspaceId": "YOUR_WORKSPACE_ID",
    "url": "https://yoursite.com",
    "slug": "my-link"
  }'

Get analytics

bash
curl "https://api.revolink.link/apiv1/links/LINK_ID/analytics?workspaceId=YOUR_WORKSPACE_ID&from=2025-01-01&to=2025-12-31" \
  -H "X-Api-Key: YOUR_API_KEY"

Find your credentials in Profile → Integration. See the Authentication guide for full setup instructions.