Skip to content

Authentication

All Gatepay API and SDK requests require authentication using an API token.

  1. Log in to your Gatepay dashboard.
  2. Go to the Profile section.
  3. Copy and store your token securely.
  • Pass your token as a Bearer token in the Authorization header for all API requests.
  • When using the SDK, provide your token during initialization:
const api = new Gatepay({ apiToken: "your-api-token" })
  • Never share your API token publicly or commit it to version control.
  • Use environment variables to store your token in production.
  • Rotate your token regularly from the dashboard if needed.
  • If you suspect your token is compromised, rotate it immediately.
GET /links
Authorization: Bearer <your-api-token>

Next steps: