Learn how to authenticate with the Prisme.ai API
Obtain a JWT
access-token
cookie sent to the https://api.studio.prisme.ai/v2/me
API after opening any Prisme.ai page/v2/login/anonymous
endpoint initiates unauthenticated sessions and returns a JWT.Use the JWT
ACCESS_TOKENS_MAX_AGE
setting (default is 30 days). Your application should handle token refreshing or re-authentication when tokens expire.JWT Structure and Signing
JWKS_ALG
(default: RS256)JWKS_KTY
(default: RSA)JWKS_SIZE
(default: 2048 bits)JWT Key Rotation
JWKS_ROTATION_DAYS
(default: 30 days)ACCESS_TOKENS_MAX_AGE
(default: 30 days) once all their signed JWTs should have expiredgateway.jwks.updated
and runtime.jwks.updated
) synchronize all api-gateway and runtime instances when JWKs are rotated or removedPublic Keys
x-prismeai-user-id
headerx-prismeai-user-id
header for identification. This header should not be directly set in client requests, as it will be overwritten by the api-gateway.Variable | Description | Default Value |
---|---|---|
JWKS_ROTATION_DAYS | Rotation period in days | 30 |
JWKS_KTY | JWK Algorithm family | RSA |
JWKS_ALG | JWK signature algorithm | RS256 |
JWKS_SIZE | JWK size | 2048 |
ACCESS_TOKENS_MAX_AGE | JWT expiration time in seconds | 2592000 (30 days) |