Authentication

Authenticate your API calls by including a valid developer account's API key or token as Bearer token in the Authorization header of every request you make. You can manage API tokens from your account dashboard.

Authorization headers should be in the following format: Authorization: Bearer {token}. API requests without authentication will fail with the status: 401: Unauthorized. All API requests should be made over HTTPS.

Example request

Here's how to add the token to the request header using cURL:

Example request with bearer token

curl https://ola.cv/api/v1 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer eOHtWjgrRk4y20C58w25Y0FF0c8gEjvfo96rk17K6d3fe0b4' \
-H 'Content-Type: application/json'

Managing API Tokens

You can retrieve or create new API tokens from your account API settings. Do ensure you name your API tokens appropriately so you can easily recognize them later.

A newly created token will be shown to you only once for your own security, so make sure to copy and store it in a safe place.

Was this page helpful?