Exchange your client ID and client secret for a JWT access token that can be used to authenticate subsequent API requests.
Rate Limited: This endpoint is rate-limited. You should cache the returned token and reuse it until it expires (60 minutes).
Token Lifecycle
- Request a token using your client credentials
- Use the token in the
Authorization: Bearer <token> header
- Token expires after 60 minutes
- Request a new token before expiration
Example Usage
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();