{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instasent/json-schema/instasent-oauth-protected-resource-metadata-schema.json",
  "title": "Protected resource metadata",
  "description": "RFC 9728 metadata describing this API as an OAuth protected resource.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instasent-oauth-api-openapi.yml#/components/schemas/OAuthProtectedResourceMetadata",
  "type": "object",
  "properties": {
    "resource": {
      "type": "string",
      "format": "uri",
      "description": "Canonical identifier of this API, derived from the request host."
    },
    "authorization_servers": {
      "type": "array",
      "description": "Authorization servers that can issue tokens for this resource.",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "scopes_supported": {
      "type": "array",
      "description": "Every product permission that can appear in a grant.",
      "items": {
        "type": "string"
      }
    },
    "bearer_methods_supported": {
      "type": "array",
      "description": "How the access token may be presented. Only the `Authorization` header is accepted.",
      "items": {
        "type": "string",
        "enum": [
          "header"
        ]
      }
    }
  },
  "required": [
    "resource",
    "authorization_servers",
    "scopes_supported",
    "bearer_methods_supported"
  ]
}