Mint a token
https://api.shadw.cloud/v1/tokenMint a JWT bearer token scoped to a team + role, valid for at most 1 hour. Requires HIVE_JWT_SECRET to be configured on the node (returns 400 otherwise); once it is set, minting is server-only (the request must carry the x-hive-internal header, else 403). When HIVE_JWT_SECRET is set, mutating requests must present a JWT or an API key.
Authentication
AuthorizationbearerTokenA platform API key (hive_…, created under Settings → API Keys) or a JWT of at most 1 hour from POST /v1/token, which is server-only once HIVE_JWT_SECRET is set. An API key scopes the request to the team it was created under.
Body parameters
substringOptionalSubject / user id embedded in the token (default "user").
tenantstringOptionalTeam slug the token is scoped to (default "default").
role"owner" | "admin" | "member" | "viewer"OptionalRole embedded in the token. No default: a mint carries only the role you name, and a token without one acts as a viewer (read-only).

