Get JWT Bearer Token
POST your api_key and api_secret to receive a signed JWT (JSON Web Token). Use this token in the Authorization: Bearer header of the next API call. Token is valid for 1 hour.
Lab Credentials — For Training Use Only
| Field | Type | Required | Description |
|---|---|---|---|
| api_key | String | Required | Your API key |
| api_secret | String | Required | Your API secret |
{
"api_key" : "lc-api-key-2024",
"api_secret": "lc@Secret#2024"
}cURL
curl -X POST https://labs.lowcademy.com/apis/add-token \ -H "Content-Type: application/json" \ -d '{"api_key":"lc-api-key-2024","api_secret":"lc@Secret#2024"}'
JavaScript (fetch)
const res = await fetch('https://labs.lowcademy.com/apis/add-token', { method : 'POST', headers: { 'Content-Type': 'application/json' }, body : JSON.stringify({ api_key: 'lc-api-key-2024', api_secret: 'lc@Secret#2024' }) }); const { token } = await res.json(); // Now use token in the next API call
| Field | Type | Description |
|---|---|---|
| success | Boolean | Always true |
| token | String | Signed JWT (HS256). Use as: Authorization: Bearer <token> |
| token_type | String | Always "Bearer" |
| expires_in | Integer | Seconds until expiry — always 3600 (1 hour) |
| expires_at | String | Human-readable expiry timestamp |
{
"success" : true,
"token" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhcGlfdXNlciIsImlzcyI6ImxhYnMubG93Y2FkZW15LmNvbSIsImlhdCI6MTcyMDc4MDAwMCwiZXhwIjoxNzIwNzgzNjAwfQ.xxxxxxxxxxx",
"token_type": "Bearer",
"expires_in": 3600,
"expires_at": "2026-07-12 11:30:00"
}