{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/payments-ai/json-schema/payments-ai-public-api-create-api-key-request-schema.json",
  "title": "PublicApiCreateApiKeyRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/payments-ai-api-keys-api-openapi.yml#/components/schemas/PublicApiCreateApiKeyRequest",
  "type": "object",
  "required": [
    "name",
    "environment"
  ],
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 128
    },
    "environment": {
      "type": "string",
      "enum": [
        "sandbox",
        "live"
      ]
    },
    "permissions": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "payouts:write"
        ]
      },
      "description": "Not a grant. A non-empty list returns 403 `api_key.permission_forbidden`. Permissions are granted from the dashboard only."
    }
  }
}