Skip to main content
Every request to the Invopop API carries an API key in the Authorization header. Each key belongs to a single workspace and has its own permissions, so sandbox and live workspaces always use different keys. Keys are created in Admin. See API keys for how to create one and which permissions to give it. The token is shown only once, when the key is created.

Send the token

Include the token in the Authorization HTTP header of every request, as type Bearer:
The examples in this documentation read the token from the INVOPOP_TOKEN environment variable. Set it once in your terminal, replacing <TOKEN> with your own:
Keep tokens out of source code. In an application, read them from an environment variable or your secrets manager, and use one token per workspace.

Test the token

Call the ping endpoint to confirm that your connection and credentials are valid:
A successful ping confirms the token is valid, but says nothing about its permissions. If another endpoint rejects a request with a permission error, check the key’s permissions in Admin.

Have your agent wire the token into this project and verify it.

Open in Cursor
Invopop tokens are JSON Web Tokens (JWT), so any JWT decoder can show you what a token contains. A token is a credential: only decode it with a tool you trust, and prefer a sandbox token.