API keys are how your application authenticates with the IteraPay API. Every request you make on behalf of your merchant account must include an active API key in theDocumentation Index
Fetch the complete documentation index at: https://docs.iterapay.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header. This page walks you through generating a key, checking its status, and revoking it when needed.
API keys are scoped to a single merchant. Each merchant account can have only one active API key at a time. If you generate a new key, the previous key is immediately invalidated.
Generating an API key
To start accepting payments, you need to generate an API key for your merchant account. You must authenticate this request with your Bearer token (JWT), which you receive when you log in.Authenticate with your Bearer token
Make sure you have a valid JWT from your IteraPay login session. You’ll include this in the
Authorization header as Bearer <your-jwt>.Call the generate endpoint
Send a
POST request to /key/generate/{merchantID}, replacing {merchantID} with your merchant ID.generate-api-key.sh
Viewing key information
You can retrieve metadata about your current API key — such as when it was created and when it was last used — without exposing the key value itself. Use this to audit key activity or verify a key exists.get-key-info.sh
createdAt and lastUsedAt:
response
lastUsedAt timestamp from a time when you didn’t make any requests, your key may be compromised. Revoke it immediately and generate a new one.
Using your API key in requests
Once you have an API key, include it in theX-Api-Key header on every API request:
authenticated-request.sh
Revoking an API key
Revoke your API key when you suspect it has been compromised, when offboarding a system that uses it, or as part of a planned key rotation. Once revoked, all requests using that key will fail until you generate a new one.revoke-api-key.sh
204 No Content with an empty response body. After revoking, you can immediately generate a new key using the generate endpoint described above.
Request and response reference
POST /key/generate/{merchantID}
Your unique merchant identifier.
Bearer JWT token from your login session. Format:
Bearer <token>.The newly generated API key. Store this value securely — it is not retrievable after this response.
GET /key/info/{merchantID}
Your unique merchant identifier.
Bearer JWT token. Format:
Bearer <token>.ISO 8601 timestamp of when the current key was generated.
ISO 8601 timestamp of the most recent authenticated request using this key.
DELETE /key/revoke/{merchantID}
Your unique merchant identifier.
Bearer JWT token. Format:
Bearer <token>.204 No Content on success.