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.cryptocloud.plus/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 codeError keyError description

400

Bad request

Invalid request

Example of a response with an error

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

Last updated