Developer API
Short links from your own code
Use the Oklink REST API to create links for orders, tickets and notifications, organise them and read analytics — authenticated with scoped API keys.
Scoped keys
links:read, links:write and analytics:read — give each integration only what it needs.
OpenAPI 3.1
A machine-readable contract for generating clients and testing.
Rate limits
Clear 429 responses with Retry-After headers.
Predictable JSON
Every response uses { success, data, requestId } and typed error codes.
Three steps to your first request
- 1
Create a key
In Dashboard → Developer API (Pro and Business).
- 2
Send X-API-Key
Add the header to requests to https://clck.adi-app.kz/api/v1.
- 3
Handle errors
Use error.code and requestId for logs and support.
Create a short link
curl -X POST https://clck.adi-app.kz/api/v1/links -H "X-API-Key: $OKLINK_API_KEY" -H "Content-Type: application/json" -d '{
"workspaceId": "YOUR_WORKSPACE_ID",
"destinationUrl": "https://shop.kz/orders/1042",
"slug": "order-1042",
"utm": { "source": "sms", "campaign": "order-status" }
}'Main endpoints
| POST | /links | Create a short link |
| GET | /links | List and search links |
| PATCH | /links/{id} | Update a link |
| POST | /links/bulk | Create up to 500 links |
| GET | /analytics/summary | Clicks, devices, sources |
| GET | /qr/{linkId} | QR code PNG or SVG |
Machine-readable contract: /openapi.json
Keys are shown once
Oklink stores only a hash of each API key. Copy the key when it is created, keep it in a secret manager and revoke it in one click if it leaks.
- Per-key usage statistics
- Optional expiry date
- Revocation takes effect immediately
- Keys cannot access account or billing endpoints
FAQ
Frequently asked questions
Which plans include API access?
Pro includes 5 API keys and Business 25.
Is there a sandbox?
Use a separate workspace for testing; links there behave exactly like production links.
Where is the OpenAPI file?
The contract is published at /openapi.json on the API host.
Do you support webhooks?
Outgoing webhooks are not available yet.
Related pages
- Bulk shorteningShorten up to 500 links per batch or import a CSV file with destinations, titles, back-halves and tags. Export all links to CSV for reports.Learn more
- For businessTeam roles, audit log, API access, two years of analytics and invoices in tenge. A secure link platform for companies in Kazakhstan.Learn more
- AnalyticsSee clicks over time, unique visitors, devices, browsers, referrers and UTM campaigns for every short link, with bot traffic separated from people.Learn more
Your next campaign deserves better links
Create a free account and publish your first short link in under a minute.
Create free account