Skip to main content
All Swipe API requests are authenticated with an API key sent as a Bearer token.

Base URL

Every endpoint in this documentation is relative to:
For example, the Create a document endpoint POST /v2/doc resolves to https://app.getswipe.in/api/partner/v2/doc.

Getting your API key

  1. Sign in to your Swipe dashboard.
  2. Open the API Integration section.
  3. Generate your API key and copy it.
The key is tied to your Swipe account — every document, customer, and product you create through the API belongs to that account.

Using the key

Send the key in the Authorization header of every request:
In the API playground, paste the key into the Authorization field and it is applied to every try-it request.

Authentication errors

Requests with a missing or invalid key fail with HTTP 401 and one of these error codes: See Error codes for the full list.

Keeping your key safe

Your API key grants full access to your Swipe account’s data. Treat it like a password.
  • 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.