API key
You can create and manage API keys in the Backoffice (Production, Sandbox). Each environment requires its own key. All API requests must include your API key in theAuthorization header using the Bearer scheme.
Legacy API keys that use the
X-AUTH-KEY header continue to work. See Key rotation for migration steps.Environments
All endpoints use the same paths, only the base URL differs.| Environment | Base URL |
|---|---|
| Production | https://api.pawapass.com/v2 |
| Sandbox | https://api-sandbox1.pawapass.com/v2 |
Key rotation
Multiple API keys may be active at the same time, so you can rotate keys without downtime:- Create a new key in the Backoffice.
- Update your integration to use the new key.
- Verify everything works correctly.
- Deactivate or delete the old key.
Migrating from legacy keys
Legacy keys use theX-AUTH-KEY header instead of Authorization: Bearer. When migrating, you need to switch both the key and the header.
- Create a new key in the Backoffice.
- Update your integration to use the new key with the
Authorization: Bearerheader. - Verify everything works correctly.
- Deactivate or delete the legacy key.
Legacy integrations used a single shared secret for both API authentication and webhook signing. These are now independent. Migrating your API key does not affect your webhook signing secret, and vice versa.
Error response
If the API key is missing or invalid, the API returns401 Unauthorized:
