{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-iam/json-schema/google-cloud-iam-generate-id-token-request-schema.json",
  "title": "GenerateIdTokenRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-iam-iamcredentials-projects-api-openapi.yml#/components/schemas/GenerateIdTokenRequest",
  "properties": {
    "organizationNumberIncluded": {
      "description": "Include the organization number of the service account in the token. If set to `true`, the token will contain a `google.organization_number` claim. The value of the claim will be `null` if the service account isn't associated with an organization.",
      "type": "boolean"
    },
    "includeEmail": {
      "description": "Include the service account email in the token. If set to `true`, the token will contain `email` and `email_verified` claims.",
      "type": "boolean"
    },
    "audience": {
      "description": "Required. The audience for the token, such as the API or account that this token grants access to.",
      "type": "string"
    },
    "delegates": {
      "items": {
        "type": "string"
      },
      "description": "The sequence of service accounts in a delegation chain. Each service account must be granted the `roles/iam.serviceAccountTokenCreator` role on its next service account in the chain. The last service account in the chain must be granted the `roles/iam.serviceAccountTokenCreator` role on the service account that is specified in the `name` field of the request. The delegates must have the following format: `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. The `-` wildcard character is required; replacing it with a project ID is invalid.",
      "type": "array"
    }
  },
  "type": "object"
}