Skip to main content

Authentication

API authentication basics and best practices.

The API uses Bearer (Token) Authentication to authenticate any request. These tokens are JSON Web Tokens (JWT) which need to be created server side by your application.

Create an API key

To sign a JWT you will need to create a new API key-pair in your dashboard. To create a new API key visit the Integrations panel in your dashboard and click the Add API key button. You can store the API key with your code or store it in a secure environment accessible to your application.

Server-side SDKs

By far the easiest way to create a JWT is with one of our server-side SDKs.

Development Tools

  • CLI: Create API tokens and checkout sessions with our command line interface tool.
  • Postman: Start exploring our API using our official Postman collection.

Without SDKs

It is also possible to generate the JWT without our SDKs using any number of open source JWT libraries.

Powered by Docusaurus