Step-by-Step Guide to Get Your Access Token
Raklet API uses OAuth 2.0 client credentials flow to authorize access.
🔐 Endpoint
POST /token
🔸 Required Parameters (form data)
Name | Type | Description |
grant_type | string | Use "password" |
username | string | Your Raklet admin email address |
password | string | Your Raklet password |
✅ Example Request (using curl)
curl -X POST https://api.raklet.com/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=password&[email protected]&password=yourPassword"
🔄 Example Response
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "bearer",
"expires_in": 3600
}
🛠 Using Your Token
Once you receive your token, include it in all API requests:
Authorization: Bearer YOUR_ACCESS_TOKEN
🔁 Token Expiration
Tokens typically expire in 1 hour. You can request a new one using the same credentials.
