JWT from Fern API key
Get a JWT to access protected documentation endpoints, optionally scoped to specific roles.
身份验证
FERN_API_KEYstring
Fern API key, from fern token.
请求头
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)
响应
Successfully generated JWT
fern_token
JWT token for authenticating subsequent requests
roles
Roles included in the JWT
错误
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error