{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audioscrape-com/json-schema/audioscrape-com-create-api-key-schema.json",
  "title": "CreateApiKey",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audioscrape-com-openapi.json#/components/schemas/CreateApiKey",
  "type": "object",
  "required": [
    "key_name"
  ],
  "properties": {
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Optional: when this key stops working (RFC 3339). Omit for a key that\nnever expires — the behaviour of every key issued before 2026-07-31."
    },
    "key_name": {
      "type": "string",
      "description": "Human-readable label for the key. Stored verbatim; visible in the\ndashboard and in `last_used` audit logs. Recommended: identify the\nintegration + environment, e.g. `\"acme-dev-connector-v1\"`."
    },
    "workspace_id": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "Optional: scope this key to a single workspace. If omitted, the key\nuses the user's current_workspace_id at each request (legacy\nbehavior). To scope to a workspace, the caller must be a member\nof it."
    }
  }
}