Create a personal API key
LLM Gateway: User Self-Service
Create a personal API key
Creates an API key owned by the authenticated user. Equivalent to the Settings - My Models flow in the Barndoor portal.
POST
Create a personal API key
Authorizations
JWT obtained through Barndoor's authentication flow. Pass the token
verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's
loginInteractive() helper to obtain a token in scripts and notebooks.
Response
200 - application/json
The newly created key
The raw API key. Returned only at creation time and never stored
in plaintext — copy it immediately. Use this value as
Authorization: Bearer <key> (or x-api-key: <key>) on requests
to /v1/chat/completions, /v1/messages, and friends.
Example:
"bd-abcd1234ef56..."
