For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authentication

All HTTP requests sent to the Offer API must be signed with a special signature. The signature must be provided in the Authorization header. In order to generate signature partners need to have a valid API key and a secret signing key. Please note, a new signature must be generated for every request.

Generate HMAC Signature

Offers API uses HMAC-based authentication.

To authenticate API request the client application needs to perform the following steps:

  1. Prepare request data for signing.

  2. Sign data using one of the HMAC algorithms such as SHA1 (dprecated), SHA256 , SHA384 or SHA512 algorithms.

  3. Encode the signature using Base64 encoding.

  4. URL encode the result of the previous step.

  5. Prepare Authorization header containing the Base64 and URL encoded signature string, API Key and the algorithm used, for example hmac-sha512.

Below you can see an example code implementing these steps, this code can be used as a pre-request script in Postman.

Testing API Keys

To streamline your integration process, the XCover API supports Test Keys that operate directly within the production environment. This "Single Environment" approach ensures that your integration behaves exactly the same way during testing as it will in live production, without the need to manage separate staging endpoints.

How it Works

When you use a Test API Key, the system automatically flags the transaction. This allows you to validate your integration end-to-end—from generating offers to binding policies—without triggering real financial transactions.

  • Endpoint: Use the standard production URL.

  • Identification: Transactions made with these keys are marked as test in our backend and your partner dashboard.

  • Security: Even when using test keys, all requests must be signed using the same HMAC signature process described in the Authentication section.

Last updated

Was this helpful?