s.id Logo
s.id
Developer Platform

API Reference

Base URL: https://api.s.id/v2

Try Interactive Reference

Authentication

Pass your API key as a Bearer token in every request.

Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Each key is scoped. A request to an endpoint whose required scope is missing returns 403 insufficient_scope.

Links

MethodPath
GET/links
POST/links
POST/links/available
GET/links/{short}
PUT/links/{short}
DELETE/links/{short}
POST/links/{short}/unarchive
GET/links/{short}/stats
GET/links/{short}/stats/lifetime
POST/links/bulk

User

MethodPath
GET/user
GET/quota

Microsites

MethodPath
GET/microsites
POST/microsites
GET/microsites/{slug}
PUT/microsites/{slug}
DELETE/microsites/{slug}
POST/microsites/available
GET/microsites/{slug}/components
POST/microsites/{slug}/components
PUT/microsites/{slug}/components/{componentId}
DELETE/microsites/{slug}/components/{componentId}
POST/microsites/{slug}/components/order

Analytics

MethodPath
GET/stats

QR

MethodPath
GET/qr
PUT/qr
GET/links/{short}/qr
PUT/links/{short}/qr

OAuth 2.0

MethodPath
GET/oauth/authorize
POST/oauth/token
POST/oauth/revoke
GET/oauth/userinfo
GET/api/user/oauth/apps
DELETE/api/user/oauth/apps/{clientId}

Scope Reference

links:readList and read links
links:writeCreate and update links (create, edit, restore)
links:archiveArchive links
links:analyticsRead per-link click statistics and lifetime counts
qr:readRead QR code settings (global and per-link)
qr:writeCustomize QR code settings (global and per-link)
user:readRead the authenticated user profile and account quota
microsites:readRead microsites
microsites:writeCreate, update, delete and manage components of microsites

Rate Limits

38 requests per minute per API key. Exceeding the limit returns HTTP 429.

StatusMeaning
200Success
400Bad request — check your parameters
401Missing or invalid API key
403Forbidden — key lacks required scope (insufficient_scope)
404Resource not found
429Rate limit exceeded
500Server error — retry with backoff