Authentication

You'll need to authenticate your requests to access any of the endpoints in the Karaz API. Authentication can be done by passing the Authorization header with the Bearer scheme and the user's access token.

Authentication with bearer token

The recommended way to authenticate with the Karaz API is by passing the Authorization header with the Bearer scheme and the user's access token. Here's how to add the token to the request header using cURL:

Example request with bearer token

curl https://api.karaz.app/{endpoint} \
  -H "Authorization: Bearer {token}"

Always keep your token safe and reset it if you suspect it has been compromised.