Authentication

How to obtain an api-key

All API requests must pass an x-api-key header.

To obtain this key, the request must be authenticated using HTTP Basic Authentication. The Coperniq User's email is the username and the User's password is the password .

The Authorization HTTP header is constructed as follows:

  1. The email and password are concatenated with a single colon :.

  2. The resulting string is encoded using Base64.

  3. The authorization header results in Authorization: Basic YOUR_ENCODED_STRING.

Get API Token

  • Endpoint: GET /token

  • Description: Generates an access token for use in authenticated API calls.

  • Responses:

    • 200 OK: Successfully generated a token. The response will contain a token field, which is your API key.

    • 400 BAD REQUEST: Check Auth credentials. Make sure Body of request is empty

Last updated