Generating a Bearer Token
Bearer Tokens are essential for authenticating your API requests securely on QuantaAPI. Every request to our protected endpoints must include a valid token in the Authorization header.
🧾 What is a Bearer Token?
🚀 How to Generate a Bearer Token
Name
Value
{
"status": "success",
"message": "Token generate successfully.",
"code": 200,
"type": "SUCCESS",
"data": {
"created_at_utc": "2025-05-17T09:47:48Z",
"valid_till_utc": "2025-05-17T10:47:48Z",
"valid_for": "1 hour",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIxMjcuMC4wLjEiLCJpYXQiOjE3NDc0NzUyNjgsImV4cCI6MTc0NzQ3ODg2OCwidXNlcl9pZCI6OX0.Gjk77J30Y1-lkoI8_MVeGV_jNaVXY2Z11rxdj83S4N4"
}
}{
"status": "error",
"message": "Invalid api key",
"code": 401,
"type": "AUTHORIZATION_INVALID"
}{
"status": "error",
"message": "Validation Error",
"code": 422,
"type": "VALIDATION_ERROR",
"errors": {
"api_key": [
"API key is required."
]
}
}Last updated