Skip to main content
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

  1. Request a token using your client credentials
  2. Use the token in the Authorization: Bearer <token> header
  3. Token expires after 60 minutes
  4. 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();