How to Authenticate with the Raklet API
Step-by-Step Guide to Get Your Access Token¶
Raklet API uses OAuth 2.0 client credentials flow to authorize access.
Use a dedicated API user
This request signs in with a Raklet admin email and password. Create a dedicated admin user for your integration with only the access it needs, and keep its password out of scripts, command lines and source control.
π 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.
Updated