Skip to content
← Developer Docs

SwiftURL API.

v1.0.0

The SwiftURL URL shortener API lets you create branded short links, deep links, and analytics programmatically, for India and beyond. Every link created through the API is automatically verified against Google Web Risk, adult-content filters, GDPR / India DPDP PII checks, and reachability before it goes live.

Base URL https://app.swifturl.co OpenAPI 3.1 spec

Authentication

All /api/v1/* endpoints require a session cookie from the SwiftURL dashboard. Programmatic API-key auth is on the roadmap.

Rate limits

Per-workspace, sliding window. State returned in X-RateLimit-* headers.

  • POST links · 60 / hr
  • GET links · 600 / hr
  • DELETE links · 60 / hr

Idempotency

POST endpoints accept an Idempotency-Key (UUID v4). Reusing a key within 24h replays the original response with X-Idempotent-Replayed: true.

Endpoints

POST/api/v1/track/openRedeem a deferred deep link

Redeems a deferred deep linking token on the app's first launch after a store install, and returns the original link target so the app can route to the right screen. The token is the credential, so no API key is required. Tokens are opaque, single-use, and short-lived (default 1 hour). Recover the token from the Play Install Referrer on Android or the user-initiated clipboard on iOS. See Deferred Deep Linking.

Request body · required
POST /api/v1/track/open # Content-Type: application/json { "token": "<opaque token>" }
Responses
200
Token redeemed. Returns { "destination", "deepLinkPath", "linkId" } so the app can open the exact target.
404
Returns { "error": "not_found" } when the token is unknown, expired, or already used (single-use).
GET/api/healthHealth check

Returns 200 if the API is reachable. Used by uptime monitors.

Responses
200
Service is healthy. Returns { "ok": true }.

Schemas

ComplianceFinding
FieldTypeDescription
ruleIdstringe.g. web_risk.
ruleNamestringe.g. Google Web Risk.
severityenumCRITICAL · ERROR · WARNING · INFO
passedbooleanWhether this rule passed.
messagestringHuman-readable explanation of the finding.
hintstringActionable guidance for the user (nullable).

Need something that isn't here yet? Reach us at support@swifturl.co, or explore the interactive reference and full spec linked at the top.