cURL
curl --request PUT \ --url https://api.usezombie.com/v1/workspaces/{workspace_id}/credentials/llm \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "provider": "<string>", "api_key": "<string>" } '
{ "error": { "code": "<string>", "message": "<string>", "details": {} }, "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
Stores or replaces the BYOK LLM API key for a workspace. The key is encrypted at rest and never returned in API responses.
Obtain a token via the CLI auth flow (POST /v1/auth/sessions) or GitHub OAuth
Workspace identifier
LLM provider name (e.g. openai, anthropic)
API key for the provider — encrypted at rest, never echoed
Credential stored