FluxyChat

Auth

Mint a short-lived JWT

Server-side token minting for SDK clients. Uses the project API key, not a Bearer JWT.

POST
/auth/token

Authorization

fluxyApiKey
X-Fluxy-Api-Key<token>

Project API key (prefix fc_...)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/auth/token" \  -H "Content-Type: application/json" \  -d '{    "userId": "string",    "roles": [      "string"    ]  }'
{  "token": "string",  "expiresIn": 0,  "claims": {}}