JWT from Fern API key
Get a JWT to access protected documentation endpoints, optionally scoped to specific roles.
Authentication
FERN_API_KEYstring
Fern API key, from fern generate token.
Headers
ROLES
Comma-separated list of roles (e.g., “botanist,seedling”). Sets roles for returned JWT if provided, otherwise, roles are empty.
x-fern-host
Domain (required on preview URLs)
Response
Successfully generated JWT
fern_token
JWT token for authenticating subsequent requests
roles
Roles included in the JWT