OpenAI direct API key
POST /v1/auth/openai/api-key — Save an OpenAI platform API key (api.openai.com). Validates via GET /v1/models before persisting; pass `saveAnyway: true
POST /v1/auth/openai/api-key
Save an OpenAI platform API key (api.openai.com). Validates via GET /v1/models before persisting; pass saveAnyway: true to skip validation when offline. Requires gateway bearer auth (returns 503 when MINARA_HTTP_TOKEN is unset).
| Method | POST |
| Path | /v1/auth/openai/api-key |
| Auth | Authorization: Bearer <token> required |
| Category | auth |
Request body
{ "apiKey": "sk-...", "saveAnyway"?: boolean }