Documentation Index
Fetch the complete documentation index at: https://docs.sertexity.com/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
Sertexity uses Bearer token authentication with short-lived JWT access tokens and long-lived refresh tokens.Flow
Using the token
Include theAuthorization header on every protected request:
Token fields
| Field | Type | Description |
|---|---|---|
access_token | string | Short-lived JWT. Expires in 15 minutes (expires_in: 900). |
refresh_token | string | Long-lived opaque token. Expires in 30 days. |
expires_in | integer | Seconds until access_token expires. |
token_type | string | Always "Bearer". |
Refreshing the access token
When a request returns401 Unauthorized, exchange your refresh token:
Security tips
- Keep tokens in memory — never in
localStorageor URLs. - Always use HTTPS.
- Call
POST /auth/logoutto invalidate a session immediately.