cURL
curl --request POST \ --url https://public.api.live.turrisfi.com/v1/auth/jwt \ --header 'Content-Type: application/json' \ --data ' { "clientId": "m2m-client-abc123", "clientSecret": "your-client-secret" } '
{ "data": { "accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...", "expiresIn": 3600, "tokenType": "Bearer" }, "requestId": "dev-2c5e7cf2-9acf-4c8c-ab2f-b81f39d775a8", "timestamp": "2025-11-12T20:49:03.293Z" }
Exchange client credentials for a JWT access token
Authorization: Bearer <token>
const response = await fetch('https://public.api.live.turrisfi.com/v1/auth/jwt', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ client_id: 'your-client-id', client_secret: 'your-client-secret' }) }); const { access_token } = await response.json();
Your API client ID
"m2m-client-abc123"
Your API client secret
"your-client-secret"
JWT access token response
Show child attributes
Unique request identifier
"dev-2c5e7cf2-9acf-4c8c-ab2f-b81f39d775a8"
Response timestamp
"2025-11-12T20:49:03.293Z"
Was this page helpful?
Suggestions
Contact support