s.id Logo
s.id

प्रमाणीकरण

प्रत्येक request में अपनी API key को Bearer token के रूप में पास करें।

Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

प्रत्येक key scoped है। किसी endpoint के लिए request जिसका आवश्यक scope गायब है, 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

प्रति API key 38 requests प्रति मिनट। सीमा से अधिक होने पर 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