{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beyond-identity/json-schema/beyond-identity-list-resource-servers-response-schema.json",
  "title": "List Resource Servers Response",
  "description": "Response for ListResourceServers.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beyond-identity-resource-servers-api-openapi.yml#/components/schemas/ListResourceServersResponse",
  "type": "object",
  "properties": {
    "resource_servers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourceServer"
      },
      "maxItems": 100,
      "description": "An unordered array of resource servers corresponding to the request.\n"
    },
    "total_size": {
      "type": "integer",
      "format": "uint32",
      "description": "Total number of results returned by the operation. This value may be larger than the number of resources returned, such as when returning a single page where multiple pages are available.\n"
    },
    "next_page_token": {
      "type": "string",
      "description": "Token used to fetch the next set of results. If this field is omitted, there are no subsequent pages.\n"
    }
  },
  "required": [
    "resource_servers",
    "total_size"
  ],
  "$defs": {
    "ResourceServer": {
      "title": "Resource Server",
      "type": "object",
      "description": "A resource server represents an API server that hosts a set of protected resources and is capable of accepting and responding to protected resource requests using access tokens. Clients can enable these APIs to be consumed from authorized applications.\n",
      "properties": {
        "id": {
          "type": "string",
          "description": "A unique identifier for a resource server. This is automatically generated on creation. This field is immutable and read-only. This field is unique within the realm.\n",
          "readOnly": true
        },
        "realm_id": {
          "type": "string",
          "description": "A unique identifier for the resource server's realm. This is automatically set on creation. This field is immutable and read-only.\n",
          "readOnly": true
        },
        "tenant_id": {
          "type": "string",
          "description": "A unique identifier for the resource server's tenant. This is automatically set on creation. This field is immutable and read-only.\n",
          "readOnly": true
        },
        "display_name": {
          "type": "string",
          "description": "A human-readable name for the resource server. This name is used for display purposes.\n"
        },
        "is_managed": {
          "type": "boolean",
          "description": "A boolean indicating whether the resource server is managed by Beyond Identity. Managed resource servers may not be modified by the user. This is automatically set on creation. This field is immutable and read-only.\n",
          "readOnly": true
        },
        "identifier": {
          "type": "string",
          "description": "The identifier of this resource server entity. This value should be unique per realm and is often presented as a URI, as it should be a unique identifier for an API to which access is being gated. This identifier will be returned in the `audience` claim of all tokens minted that provide access to scopes owned by this resource server. The client is responsible for validating tokens are intended for them via this `audience` claim. Tokens minted for the Beyond Identity Management API will use the audience `beyondidentity`, which is reserved and may not be used for any other resource servers.\n"
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of scopes supported by this resource server. For the Beyond Identity Management API, this will include scopes for all publicly available endpoints.  Note that applications may not provide access to scopes that are not defined on a resource server that they reference; this is the superset of all allowable application scopes in a given realm.\n"
        }
      }
    }
  }
}