Base URL
Every endpoint in this documentation is relative to:POST /v2/doc resolves to https://app.getswipe.in/api/partner/v2/doc.
Getting your API key
- Sign in to your Swipe dashboard.
- Open the API Integration section.
- Generate your API key and copy it.
Using the key
Send the key in theAuthorization header of every request:
Authentication errors
Requests with a missing or invalid key fail with HTTP401 and one of these error codes:
See Error codes for the full list.
Keeping your key safe
- Call the API from your server only — never embed the key in browser JavaScript, mobile apps, or public repositories.
- Store it in an environment variable or a secrets manager, not in source code.
- If a key is exposed, regenerate it from the API Integration page and update your servers with the new key.

