{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instasent/json-schema/instasent-oauth-client-registration-request-schema.json",
  "title": "OAuth client registration request",
  "description": "RFC 7591 client metadata. Only the fields below are read; any other member\nof the body is ignored.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instasent-oauth-api-openapi.yml#/components/schemas/OAuthClientRegistrationRequest",
  "type": "object",
  "properties": {
    "client_name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 128,
      "description": "Display name shown to the user on the consent screen. Letters,\ndigits, marks and a small punctuation set only; single spaces, none\nleading or trailing; no invisible or control characters. Reserved\nbrand names are rejected.\n"
    },
    "redirect_uris": {
      "type": "array",
      "minItems": 1,
      "description": "Exact absolute callback URLs. Wildcards are rejected and duplicates\nare collapsed. The authorization code exchange requires one of these\nverbatim.\n",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "logo_uri": {
      "type": "string",
      "format": "uri",
      "description": "Optional absolute URL of the client logo, shown on the consent screen."
    },
    "client_uri": {
      "type": "string",
      "format": "uri",
      "description": "Optional absolute URL of the client's home page."
    },
    "client_kind": {
      "type": "string",
      "description": "Which lane the client belongs to. Self-declared and never a\ncredential: it selects the permission catalog consent may offer —\n`mcp` a curated, agent-safe subset, `api` the full product\npermission set. Defaults to `api` when omitted; an unknown value is\nrejected.\n",
      "enum": [
        "mcp",
        "api"
      ],
      "default": "api"
    }
  },
  "required": [
    "client_name",
    "redirect_uris"
  ]
}