Skip to main content

How to Authenticate with the Raklet API

Updated this week

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.

Did this answer your question?