API Reference
हर REST और OAuth ऑपरेशन को उसके सटीक होस्ट, प्रमाणीकरण विधि, स्कोप, पैरामीटर, अनुरोध फ़ील्ड और प्रतिक्रिया कोड के साथ देखें।
OpenAPI v2.1.0
API का अवलोकन
सार्वजनिक /v2 ऑपरेशन स्कोप वाली API कुंजी या OAuth 2.0 एक्सेस टोकन स्वीकार करते हैं। OAuth प्रबंधन ऑपरेशन की अपनी ब्राउज़र, सेशन या क्लाइंट-क्रेडेंशियल आवश्यकताएँ होती हैं।
- बेस URL:
- https://api.s.id/v2
- ऑपरेशन
- 38
- स्कोप
- 10
प्रमाणीकरण
क्रेडेंशियल स्कोप-आधारित हैं। आवश्यक स्कोप न होने पर 403 insufficient_scope मिलता है। केवल वही अनुमति माँगें जिसकी आपके इंटीग्रेशन को आवश्यकता है।
Authorization: Bearer sk_live_...Endpoints
Endpoint कैटलॉग
ऑपरेशन खोलकर उसका सटीक base URL, प्रमाणीकरण, इनपुट और संभावित प्रतिक्रिया कोड देखें।
Links
GET/linksलिंक सूचीबद्ध करें
Returns a paginated list of the authenticated user's links.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
links:readपैरामीटर
pagequery · integerlimitquery · integersearchquery · stringFilter by short code or URL
प्रतिक्रियाएँ
200List of links401403429POST/linksलिंक बनाएँ
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
links:writeअनुरोध body
long_urlstringआवश्यकThe destination (long) URL
titlestringcustom_slugstringCustom short code; auto-generated when omitted
passwordstringOptional password to protect the link
expired_atintegerOptional expiry as a Unix timestamp (seconds)
domain_aliasstringCustom domain to use instead of s.id
प्रतिक्रियाएँ
200401403422429POST/links/availableSlug की उपलब्धता जाँचें
Checks whether a custom slug is available before creating a link.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
links:readअनुरोध body
shortstringआवश्यकdomain_aliasstringCustom domain, if any
प्रतिक्रियाएँ
200Slug is available401422Slug is taken or invalidGET/links/{short}लिंक पाएँ
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
links:readपैरामीटर
shortpath · stringआवश्यकThe short code of the link
प्रतिक्रियाएँ
200401404PUT/links/{short}लिंक अपडेट करें
Updates a link. All fields are optional; omitted fields are left unchanged. - `password`: set a non-empty string to protect, empty string `""` to remove protection. - `custom_slug`: rename the short code (subject to quota). - `archive_at`: schedule auto-archive on a date (`YYYY-MM-DD`). - `domain_alias`: change the custom domain (must be owned by the user).
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
links:writeपैरामीटर
shortpath · stringआवश्यकThe short code of the link
अनुरोध body
long_urlstringNew destination URL
titlestringcustom_slugstringRename the short code (subject to plan quota)
passwordstringSet a password (`""` removes existing protection)
disposablebooleanMark link as disposable (expires after first click)
adultbooleanFlag link as adult content
archive_atstringSchedule auto-archive on this date (YYYY-MM-DD)
domain_aliasstringChange the custom domain (must be owned by the user)
प्रतिक्रियाएँ
200401403404422429DELETE/links/{short}लिंक संग्रहित करें
Archives (soft-deletes) a link. The short code stops resolving. Use `POST /links/{short}/unarchive` to restore.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
links:archiveपैरामीटर
shortpath · stringआवश्यकThe short code of the link
प्रतिक्रियाएँ
200Link archived401404429POST/links/{short}/unarchiveसंग्रहित लिंक पुनर्स्थापित करें
Restores a previously archived link, making its short code resolve again.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
links:writeपैरामीटर
shortpath · stringआवश्यकThe short code of the archived link
प्रतिक्रियाएँ
200Link restored401403404429GET/links/{short}/statsलिंक क्लिक टाइमलाइन
Returns a date-bucketed click-count timeline for the link.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
links:analyticsपैरामीटर
shortpath · stringआवश्यकstartquery · stringendquery · string
प्रतिक्रियाएँ
200Click timeline401403404429GET/links/{short}/stats/lifetimeकुल आजीवन क्लिक
Returns the all-time total click count for a single link.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
links:analyticsपैरामीटर
shortpath · stringआवश्यक
प्रतिक्रियाएँ
200Lifetime click count401403404429POST/links/bulkएक साथ कई लिंक बनाएँ
Create up to 100 short links in a single request. Requires a subscription plan with bulk shortening enabled. Each item reports individual success/failure — the overall request always returns 200 even if some items fail.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
links:writeअनुरोध body
linksarray<object>आवश्यक
प्रतिक्रियाएँ
200Bulk result — individual items may have success=false401402Plan upgrade required (bulk shortening not in plan)403User
GET/userप्रमाणित उपयोगकर्ता पाएँ
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
user:readप्रतिक्रियाएँ
200User profile401429GET/quotaअकाउंट कोटा पाएँ
Returns the authenticated user's current plan limits and usage counters.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
user:readप्रतिक्रियाएँ
200Account quota401429Microsites
GET/micrositesMicrosite सूचीबद्ध करें
Returns a paginated list of microsites owned by the authenticated user.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
microsites:readपैरामीटर
limitquery · integerafterquery · stringCursor for the next page (opaque string from previous response)
प्रतिक्रियाएँ
200List of microsites401403POST/micrositesMicrosite बनाएँ
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
microsites:writeअनुरोध body
slugstringआवश्यकURL-safe identifier (alphanumeric + hyphens/underscores)
titlestringआवश्यकkindstringआवश्यकMicrosite category (e.g. `personal_branding`, `brand`, `other`)
themestringTheme slug (optional, defaults to the platform default)
प्रतिक्रियाएँ
200Microsite created400Validation error (slug already taken, quota exceeded, etc.)401403GET/microsites/{slug}Microsite पाएँ
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
microsites:readपैरामीटर
slugpath · stringआवश्यक
प्रतिक्रियाएँ
200Microsite detail401403404Microsite not foundPUT/microsites/{slug}Microsite अपडेट करें
Patches title, description, and/or visibility. All fields are optional.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
microsites:writeपैरामीटर
slugpath · stringआवश्यक
अनुरोध body
titlestringdescriptionstringhidebooleanSet `true` to hide the microsite from public (requires plan that supports visibility toggle)
प्रतिक्रियाएँ
200Updated microsite401403404Microsite not foundDELETE/microsites/{slug}Microsite हटाएँ
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
microsites:deleteपैरामीटर
slugpath · stringआवश्यक
प्रतिक्रियाएँ
200Microsite deleted401403404Microsite not foundPOST/microsites/availableMicrosite slug की उपलब्धता जाँचें
Checks whether a microsite slug is available before creating a microsite.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
microsites:readअनुरोध body
slugstringआवश्यक
प्रतिक्रियाएँ
200Slug availability result401403429GET/microsites/{slug}/componentsMicrosite कंपोनेंट सूचीबद्ध करें
Returns the components belonging to a microsite, in display order.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
microsites:readपैरामीटर
slugpath · stringआवश्यकThe slug of the microsite
प्रतिक्रियाएँ
200List of microsite components401403404429POST/microsites/{slug}/componentsMicrosite कंपोनेंट जोड़ें
Adds a new component to a microsite. The body is `{ kind, data, tag? }`. The shape of the `data` object depends on `kind`. Unknown fields are ignored, validation is per-kind, and invalid input returns `422`. All color fields are hex strings (e.g. `#1a56db`). **Kinds:** `PROFILE`, `LINK`, `HORIZONTAL_LINK`, `TEXT`, `IMAGE`, `MEDIA`, `DIVIDER`, `COUNTDOWN`, `MAPS`, `IMAGE_SLIDE`, `CV`, `AUTOPLAY_MUSIC`, `CONTACT`, `CALENDAR`, `SHOP_LISTING`, `SHOP_ITEM`, `SHOP_LEADERBOARD`. **Rules:** - `PROFILE`, `CV` and `AUTOPLAY_MUSIC` are unique — at most one per microsite. - `IMAGE_SLIDE` requires a plan with the Image Slide feature. - On create the password is always stored empty — set or change it via update (`PUT`). - Image fields (`image`, `imageBackground`, slide `image`) must be a local asset path, not a remote URL — they must match `[/.a-zA-Z0-9_-]+.(jpg|jpeg|png|svg|webp|gif|bmp)`; any value containing a scheme (`https://`), `//`, or `..` is rejected. **Shared field groups** (a kind that lists a group accepts all of its fields inside `data`): - **Button styling** (`LINK`, `CONTACT`, `CALENDAR`): `icon` (string, max 255), `textFont` (string, max 100), `textPosition` (string, max 100), `buttonEffect` (string, max 100), `buttonColor` (hex, max 20), `buttonBorderColor` (hex, max 20), `buttonIconBackground` (hex, max 20), `buttonShadowColor` (hex, max 20). - **Spoiler reveal** (`TEXT`, `IMAGE`, `MEDIA`, `MAPS`, `IMAGE_SLIDE`, `SHOP_LEADERBOARD`): `isSpoiler` (bool), `spoilerButtonText` (string, max 140), `spoilerButtonTextPosition` (string, max 100), `spoilerButtonIcon` (string), `spoilerButtonColor` (hex, max 20), `spoilerButtonFont` (string, max 100), `spoilerBackground` (string, max 100), `spoilerBackgroundOpacity` (string, max 100), `spoilerButtonBorderColor` (hex, max 20), `spoilerButtonIconBackground` (hex, max 20), `spoilerButtonShadowColor` (hex, max 20). - **Password protection** (`LINK`, `TEXT`, `IMAGE`, `MEDIA`, `MAPS`, `IMAGE_SLIDE`, `CONTACT`, `CV`, `SHOP_LEADERBOARD`): `passwordActive` (bool), `password` (string, max 255 — set via update only), `passwordMessage` (string, max 255).
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
microsites:writeपैरामीटर
slugpath · stringआवश्यकThe slug of the microsite
अनुरोध body
kindstringआवश्यकComponent kind. The shape of `data` depends on this value.
dataobjectआवश्यकKind-specific component data. Its shape depends on `kind`. See the operation description and examples below.
tagstringOptional grouping tag
प्रतिक्रियाएँ
200Component created401403404422429PUT/microsites/{slug}/components/{componentId}Microsite कंपोनेंट अपडेट करें
Updates a single microsite component.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
microsites:writeपैरामीटर
slugpath · stringआवश्यकThe slug of the microsite
componentIdpath · stringआवश्यकThe component ID
अनुरोध body
activebooleanआवश्यकWhether the component is shown
kindstringआवश्यकComponent kind (e.g. `LINK`, `PROFILE`, `TEXT`)
dataobjectआवश्यकKind-specific component data
प्रतिक्रियाएँ
200Component updated401403404422429DELETE/microsites/{slug}/components/{componentId}Microsite कंपोनेंट हटाएँ
Deletes a single microsite component.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
microsites:deleteपैरामीटर
slugpath · stringआवश्यकThe slug of the microsite
componentIdpath · stringआवश्यकThe component ID
प्रतिक्रियाएँ
200Component deleted401403404429POST/microsites/{slug}/components/orderMicrosite कंपोनेंट का क्रम बदलें
Reorders a microsite's components according to the provided list of component IDs.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
microsites:writeपैरामीटर
slugpath · stringआवश्यकThe slug of the microsite
अनुरोध body
ordersarray<string>आवश्यकComponent IDs in the desired display order
प्रतिक्रियाएँ
200Components reordered401403404422429Analytics
GET/statsअकाउंट-स्तरीय क्लिक एनालिटिक्स
Returns a timeline of clicks plus breakdowns by top links, referers, locations, devices, and browsers for the authenticated account. Date range is gated by subscription plan.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
links:analyticsपैरामीटर
startquery · stringStart date (YYYY-MM-DD). Defaults to 30 days ago.
endquery · stringEnd date (YYYY-MM-DD). Defaults to today.
additionalquery · booleanInclude referer, location, device, browser breakdowns
प्रतिक्रियाएँ
200Account analytics401403QR
GET/qrग्लोबल QR सेटिंग पाएँ
Returns the account-level (global) QR code settings applied to QR codes by default.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
qr:readप्रतिक्रियाएँ
200Global QR settings401403429PUT/qrग्लोबल QR सेटिंग कस्टमाइज़ करें
Updates the account-level (global) QR code settings. All fields are optional; omitted fields are left unchanged.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
qr:writeअनुरोध body
logostringURL of the logo image embedded in the QR code
colorstringForeground color as a hex value, e.g. #1a56db
प्रतिक्रियाएँ
200Updated global QR settings401403422429GET/links/{short}/qrलिंक की QR सेटिंग पाएँ
Returns the QR code settings for a single link.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
qr:readपैरामीटर
shortpath · stringआवश्यकThe short code of the link
प्रतिक्रियाएँ
200Link QR settings401403404429PUT/links/{short}/qrलिंक की QR सेटिंग कस्टमाइज़ करें
Updates the QR code settings for a single link. All fields are optional; omitted fields are left unchanged.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी या OAuth 2.0
Scope
qr:writeपैरामीटर
shortpath · stringआवश्यकThe short code of the link
अनुरोध body
logostringURL of the logo image embedded in the QR code
colorstringForeground color as a hex value, e.g. #1a56db
प्रतिक्रियाएँ
200Updated link QR settings401403404422429OAuth 2.0
POST/oauth/tokenकोड या refresh token एक्सचेंज करें
- बेस URL
- https://api.s.id
- प्रमाणीकरण
- API कुंजी
अनुरोध body
grant_typestringcodestringredirect_uristringclient_idstringclient_secretstringrefresh_tokenstring
प्रतिक्रियाएँ
200Token response400Invalid grant, unsupported_grant_type, or invalid_client401Invalid client credentialsPOST/oauth/revokeटोकन रद्द करें
Revokes an access or refresh token. Always returns 200 OK regardless of whether the token was valid (RFC 7009).
- बेस URL
- https://api.s.id
- प्रमाणीकरण
- API कुंजी
अनुरोध body
tokenstringआवश्यक
प्रतिक्रियाएँ
200Token revokedPOST/oauth/introspectटोकन की जाँच करें
Reports whether a token is currently active and, if so, which scopes and client it belongs to (RFC 7662). Client-credential protected: `client_id`/`client_secret` identify the caller, not the token owner. Always returns `200` — including for an unknown, expired, or revoked token (`{"active": false}`) — to avoid leaking token validity to unauthenticated probing.
- बेस URL
- https://api.s.id
- प्रमाणीकरण
- API कुंजी
अनुरोध body
tokenstringआवश्यकclient_idstringआवश्यकclient_secretstringआवश्यक
प्रतिक्रियाएँ
200Introspection result400Missing token/client_id, or invalid client credentialsGET/oauth/userinfoअधिकृत उपयोगकर्ता प्रोफ़ाइल पाएँ
Returns the profile of the user who authorized the OAuth app. Requires `Authorization: Bearer <access_token>` (the OAuth access token, not an sk_live_ key).
- बेस URL
- https://api.s.id
- प्रमाणीकरण
- OAuth 2.0
Scope
user:readप्रतिक्रियाएँ
200User profile401UnauthorizedGET/api/user/oauth/appsवर्तमान उपयोगकर्ता द्वारा अधिकृत ऐप सूचीबद्ध करें
Returns all OAuth clients that have active tokens for the authenticated user. Auth: user session cookie (not API key).
- बेस URL
- https://api.s.id
- प्रमाणीकरण
- API कुंजी
प्रतिक्रियाएँ
200List of connected apps401UnauthorizedDELETE/api/user/oauth/apps/{clientId}ऐप के सभी टोकन रद्द करें
Revokes all active tokens granted by the current user to the specified OAuth client.
- बेस URL
- https://api.s.id
- प्रमाणीकरण
- API कुंजी
पैरामीटर
clientIdpath · stringआवश्यक
प्रतिक्रियाएँ
200App access revoked401Unauthorized404App not foundIntegrations
POST/integrations/make/webhook/subscribeMake.com webhook सब्सक्राइब करें
Registers a Make.com (Integromat) scenario webhook URL to receive s.id events. Authenticated via DeveloperAPIAuth (API key or OAuth Bearer) with no scope requirement — every authenticated developer credential can subscribe.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी
प्रतिक्रियाएँ
200Subscribed401UnauthorizedPOST/integrations/make/webhook/unsubscribeMake.com webhook की सदस्यता हटाएँ
Removes a previously registered Make.com scenario webhook subscription. Authenticated via DeveloperAPIAuth with no scope requirement.
- बेस URL
- https://api.s.id/v2
- प्रमाणीकरण
- API कुंजी
प्रतिक्रियाएँ
200Unsubscribed401UnauthorizedScope Reference
links:readलिंक सूचीबद्ध और पढ़ें
links:writeलिंक बनाएँ और अपडेट करें (बनाना, संपादित करना, पुनर्स्थापित करना)
links:archiveलिंक संग्रहित करें
links:analyticsप्रति लिंक क्लिक आँकड़े और आजीवन संख्या पढ़ें
qr:readQR कोड सेटिंग पढ़ें (ग्लोबल और प्रति लिंक)
qr:writeQR कोड सेटिंग कस्टमाइज़ करें (ग्लोबल और प्रति लिंक)
user:readप्रमाणित उपयोगकर्ता प्रोफ़ाइल और अकाउंट कोटा पढ़ें
microsites:readMicrosite पढ़ें
microsites:writeMicrosite कंपोनेंट बनाएँ, अपडेट करें और प्रबंधित करें
microsites:deleteMicrosite और उनके कंपोनेंट हटाएँ
Rate Limits
डिफ़ॉल्ट सीमा प्रति क्रेडेंशियल 38 अनुरोध प्रति मिनट है—प्रति API कुंजी या OAuth एक्सेस टोकन। OAuth ऐप के सभी टोकन पर कुल सीमा 500 अनुरोध प्रति मिनट भी है।
सामान्य त्रुटि प्रतिक्रियाएँ
- 400
- अनुरोध का प्रारूप गलत है या समर्थित नहीं है
- 401
- क्रेडेंशियल अनुपस्थित, अमान्य, रद्द या समाप्त है
- 403
- क्रेडेंशियल में आवश्यक स्कोप नहीं है
- 404
- माँगा गया संसाधन नहीं मिला
- 422
- अनुरोध सत्यापन विफल रहा
- 429
- दर सीमा पार हो गई
बनाना शुरू करने के लिए तैयार हैं?
मिनटों में API key बनाएं। मुफ़्त tier शामिल, कोई क्रेडिट कार्ड आवश्यक नहीं।
