{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whoisgeni-us/json-schema/whoisgeni-us-save-byokkey-request-schema.json",
  "title": "SaveBYOKKeyRequest",
  "description": "Request body for saving (creating or updating) a BYOK LLM API key.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whoisgeni-us-byok-api-openapi.yml#/components/schemas/SaveBYOKKeyRequest",
  "properties": {
    "provider": {
      "type": "string",
      "title": "Provider",
      "description": "LLM provider name: \"openai\", \"anthropic\", \"google\", \"mistral\", \"groq\""
    },
    "api_key": {
      "type": "string",
      "minLength": 1,
      "title": "Api Key",
      "description": "Raw API key (will be encrypted server-side, never stored in plaintext)"
    }
  },
  "type": "object",
  "required": [
    "provider",
    "api_key"
  ]
}