{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instasent/json-schema/instasent-oauth-client-registration-response-schema.json",
  "title": "OAuth client registration response",
  "description": "The registered client. There is no `client_secret`: registered clients are\npublic and authenticate with PKCE only.\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/OAuthClientRegistrationResponse",
  "type": "object",
  "properties": {
    "client_id": {
      "type": "string",
      "description": "Identifier to send to the authorization and token endpoints."
    },
    "client_id_issued_at": {
      "type": "integer",
      "description": "Issue time of the client id, as a Unix timestamp in seconds."
    },
    "client_name": {
      "type": "string",
      "description": "The registered display name."
    },
    "redirect_uris": {
      "type": "array",
      "description": "The accepted callback URLs, after de-duplication.",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "token_endpoint_auth_method": {
      "type": "string",
      "description": "Always `none` — the client is public and proves itself with PKCE.",
      "enum": [
        "none"
      ]
    },
    "grant_types": {
      "type": "array",
      "description": "Grants this client may use.",
      "items": {
        "type": "string",
        "enum": [
          "authorization_code",
          "refresh_token"
        ]
      }
    },
    "response_types": {
      "type": "array",
      "description": "Authorization response types this client may request.",
      "items": {
        "type": "string",
        "enum": [
          "code"
        ]
      }
    }
  },
  "required": [
    "client_id",
    "client_id_issued_at",
    "client_name",
    "redirect_uris",
    "token_endpoint_auth_method",
    "grant_types",
    "response_types"
  ]
}