Skip to main content

Generate a Token

To link your requests to your account and ensure the security of your transactions, it is necessary to generate an authentication token. Below are the steps to perform this process:

Instructions for Generating a Token

Step 1: Make a Request

Send an HTTP GET request to the token generation endpoint. Be sure to include your API key in the request headers to authenticate yourself.

Token Generation Endpoint

method: GET

https://b61cr11gvd.execute-api.us-east-1.amazonaws.com/v1/api/authenticate

Required Headers

{
"Authorization": "Bearer {your_api_key}",
"Content-Type": "application/json"
}

Body

It is not necessary to submit a body in this request.

Example of a cURL Request

curl -X GET "https://b61cr11gvd.execute-api.us-east-1.amazonaws.com/v1/api/authenticate" \
-H "Authorization: Bearer {your_api_key}" \
-H "Content-Type: application/json"

API Responses

Token Generation

Status Code

CodeDescription
202Accepted: The request has been accepted and the token has been successfully generated.
404Not Found: The requested endpoint does not exist. Verify the URL.

Sample Responses

202 Accepted

{
"status": {
"code": 202,
"message": "success",
"kind": "unknown"
},
"data": {
"token": "eyJhbGciOiJkaXIiLCJbmMiO..."
}
}

404 Not Found

{
"status": {
"code": 404,
"message": "Account not found",
"kind": "no-info"
},
"data": {
"message": "AccountError"
}
}