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

Request Authorization

Authorization header

To authorize each API request, pass your API KEY in the Authorization header as follows:

Authorization: Token <API KEY>

Example of a request with a token

An example of using the Authorization header in an API request:

curl -X POST https://api.trybit.com/v2/invoice/create \
-header "Authorization: Token eyJ0eXAi1iJKV1QiLCJhbGci1iJIAcI1NiJ9.eyJpZCI6MTMsImV4cCI6MTYzMTc4NjQyNn0.HQavV3z8dFnk56bX3MSY5X9lR6qVa9YhAoeTEH"

You don't need to send a separate authorization request. API KEY should be transferred in the Authorization header.

Possible errors

Response code
Error key
Error description

400

Bad request

Invalid request

Некорректный токен

Unauthorized

Invalid token

Example of a response with an error

{
    "status": "error",
    "result": {
        "authorization": "Unauthorized request."
    }
}

Last updated

Was this helpful?