JWT from Fern API key

以 Markdown 格式查看
Get a JWT to access protected documentation endpoints, optionally scoped to specific roles.

身份验证

FERN_API_KEYstring

Fern API key, from fern token.

请求头

ROLESstring可选

Comma-separated list of roles (e.g., “botanist,seedling”). Sets roles for returned JWT if provided, otherwise, roles are empty.

x-fern-hoststring可选

Domain (required on preview URLs)

响应

Successfully generated JWT
fern_tokenstring
JWT token for authenticating subsequent requests
roleslist of strings
Roles included in the JWT

错误

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error