{"x-zitadel-generated":"generated by scripts/bundle-openapi.mjs. DO NOT EDIT","openapi":"3.1.0","info":{"title":"Zitadel NextGen","description":"This is the next generation of the Zitadel identity platform.","version":"0.0.1","license":{"name":"MIT","identifier":"MIT"}},"servers":[{"url":"/api/v1","description":"The API on the current origin. Use http://localhost:8080/api/v1 for local development."}],"tags":[{"name":"System","description":"Liveness and readiness probes. They answer under `/api/v1` like every\noperation, and at the root, `/livez` and `/readyz`, where orchestrators\nprobe them.\n"},{"name":"Flows","description":"A flow is one browser journey, such as sign-in, registration or recovery.\nThese operations start a flow, return its current step and accept the\nstep the user submits.\n"},{"name":"Flow Definitions","description":"Flow definitions are templates for user journeys such as sign-in,\nregistration and recovery. These operations create, list and read them;\neach create publishes a new revision under the flow's name.\n"},{"name":"Authentication Attempts","description":"An authentication attempt is one sign-in round, and it expires 15 minutes\nafter creation. These operations create an attempt, issue challenges,\nverify proofs and create the handoff token that the session exchange takes.\n"},{"name":"Sessions","description":"A session is the durable record of an anonymous or signed-in user. These\noperations create and read sessions, exchange a handoff token for one,\nand revoke it.\n"},{"name":"Projects","description":"A project is the top-level boundary that holds users, sessions and their\nsign-in configuration. These operations create and manage projects, claim\na project for a team, and manage its origin patterns.\n"},{"name":"Teams","description":"Teams group users inside a project and can own projects. These operations\ncreate, read, update, query and deactivate teams.\n"},{"name":"Users","description":"Users are the identities of a project, such as people or service accounts.\nThese operations create, read, update, delete and query users, read the\nsigned-in user, and manage a user's password, passkeys, identity links\nand team memberships.\n"},{"name":"Search","description":"Search finds the resources of a project, or of the projects a person\ncan act on, that match a text, across resource types in one request. It\nanswers with references; the resources themselves are read through their\nown operations.\n"},{"name":"Schemas","description":"Schemas define the typed shape of user data and of other configurable\nresources. These operations create, list and read schemas.\n"},{"name":"Branding","description":"Branding sets how the login looks: its layout, asset URLs and Liquid\ntemplate. Each publish creates an immutable revision. The login renders\nthe revision the deployed release pins.\n"},{"name":"OAuth Settings","description":"OAuth settings say whether a project's OAuth authorization server\nanswers. A release publishes them as an immutable revision, and this\noperation reads one back. There is no operation that publishes them on\ntheir own.\n"},{"name":"Identity Providers","description":"Identity providers are the external login providers a project offers.\nEach is published as a revisioned connection document and referenced by\nits slug from user schemas and flow definitions. These operations create\nor revise a connection, query connections, read one by ID, and read its\nrevisions. A slug resolves through the query.\n"},{"name":"Applications","description":"Applications authenticate their users via Zitadel, each through its\nOAuth clients. A registered application is written through the API as\none revisioned document. These operations create or revise a registered\napplication, query applications, read one by ID and replace a client's\nsecret.\n"},{"name":"Policies","description":"A policy holds the settings an operation is checked against, such as a\npassword policy's minimum length. A project publishes them per guarded\noperation, and every publish is an immutable revision.\n"},{"name":"Releases","description":"A release is a snapshot of a project's configuration: one revision of\neach resource, plus who made it, when, and from which commit. It points\nat those revisions and never copies their content, which stays with\neach resource's own endpoints.\n\nCreate a release from the files in your `.zitadel/` directory, or from\nrevision ids you already have. Creating a release doesn't deploy it,\nand you can deploy the same release to any number of origins.\n\nEvery release carries a digest of its content, so you can check\nwhether the files you have are already released.\n\nA release's content never changes. If it must never be served again,\nrevoke it. A release can't be revoked while any origin still serves\nit.\n"},{"name":"Deployments","description":"A deployment makes one release live on one or more targets — the\nproject's primary origins, or preview URLs — and freezes the variable\nvalues those targets use.\n\nDeployments form an append-only history of what ran where, and when. A\nrollback is another deployment: it re-deploys an earlier one with the\nvariable values it froze, and the deployments in between stay in the\nhistory.\n"},{"name":"Previews","description":"Previews are the preview URLs that are live. A deployment to a URL\nmatching one of the project's preview patterns creates or renews its\npreview. These operations list previews and remove one before it expires.\n"},{"name":"Grants","description":"Grants give a user or a team the project.viewer, project.editor or\nproject.admin role on a project. These operations create, get, query and\nrevoke grants. There is no operation to change a grant's role yet.\n"},{"name":"Invitations","description":"Invitations are 72-hour links that grant a project role (or, later, a team\nrole) to whoever redeems them. These operations create, list, read and\ncancel invitations, and look up, accept or decline one by its token.\n"},{"name":"Events","description":"Events are the project's audit trail: identity, session, admin and entity\nevents. These operations list and read them; filter the list by `category`\nor `event_type`. An event's `event_type` selects its typed payload.\n"},{"name":"Event Webhooks","description":"Event webhooks are the requests the server POSTs to a webhook sink as it\nstores events, one event per request and, within a project, in the order they were\nstored. The body is the event as `GET /events` returns it; `event_type`\ntells the webhooks apart. Delivery is at least once, so drop duplicates\nby `id`. The sink is set in the server's configuration, under\n`events.export`.\n"},{"name":"Variables","description":"Named values a project enters and references from configuration documents\nas `${{ NAME }}`. A variable has a value per kind, `primary` or `preview`,\nand each deployment freezes the values of its kind. There is no fallback\nbetween kinds.\n\nSecrets are the same resource with the value stored encrypted: same\nnames, same references, same endpoints. They are write-only — a read says\nthat a secret is held, never what it is.\n"}],"paths":{"/livez":{"get":{"operationId":"getLive","tags":["System"],"summary":"Check the server's liveness","description":"Answers `ok` while the server process serves HTTP, and checks nothing\nbehind it.\n\nA liveness probe tells an orchestrator such as Kubernetes whether to\nrestart the process. Point it at `/livez` at the root, where the probes\nstay, not under `/api/v1`. It never checks the database, so an outage of\nthe database does not restart every instance. `GET /readyz` takes an\ninstance out of rotation instead.\n","security":[],"responses":{"200":{"description":"The server process serves HTTP.","content":{"text/plain":{"examples":{"ok":{"summary":"Server is live","value":"ok"}}}}},"4XX":{"description":"The request was rejected by the server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getLive-error-response"}}}},"/readyz":{"get":{"operationId":"getReady","tags":["System"],"summary":"Check the server's readiness","description":"Answers `ok` when the server can serve requests, which takes its database\nanswering within a second, and `fail` with `503` otherwise.\n\nA readiness probe tells an orchestrator such as Kubernetes whether to send\nthe instance requests. Point it at `/readyz` at the root, where the probes\nstay, not under `/api/v1`, so that a server whose database does not answer\ngets no requests until it does. The check is one round trip to the\ndatabase.\n","security":[],"responses":{"200":{"description":"The server and its database answer.","content":{"text/plain":{"examples":{"ok":{"summary":"Server is ready","value":"ok"}}}}},"503":{"description":"The database did not answer within a second.","content":{"text/plain":{"examples":{"fail":{"summary":"Server is not ready","value":"fail"}}}}},"4XX":{"description":"The request was rejected by the server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getReady-error-response"}}}},"/users":{"post":{"operationId":"createUser","x-zitadel-cli":"user create","summary":"Create a user","description":"Creates a user whose attributes satisfy the user schema named in the request.\n\nThe server assigns the user's ID and returns it. `schema` is the `id` of a\nschema, as `publishSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it. With\n`team_id`, the user also becomes an active member of that team. A value the\nschema marks unique that another user already holds is refused with `409`;\nsend a different value.\n\nWith `team_id`, the new user joins that team, which confers its roles: the\nteam rule of `createTeamMembership` applies, answering\n`403 user.permission_denied` when the caller does not pass it.\n","tags":["Users"],"security":[{"oauth2":["user.write"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"name":"team_id","in":"query","description":"Adds the new user to this team: creating the user also creates an\nactive membership in it. Omit it to create a user with no memberships.\nUse the `id` that `createTeam` (`POST /teams`) returns or `queryTeams` (`POST /teams/query`) lists.\n\nThis is team membership, not lifecycle ownership. It does not decide\nwho may deprovision the user, and the created user stays self-owned\neither way. The owning team is reported on reads as\n`metadata.lifecycle_owner_team_id` and cannot be set through this API.\n\nThe team also scopes team-unique attributes for this create: an\nattribute the schema marks unique per team is checked against this\nteam's members.\n","schema":{"$ref":"#/components/schemas/team-id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-user-request"}}}},"responses":{"201":{"description":"The created user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/user"}}}},"400":{"description":"The provided input was not valid.\n\nAttributes that fail the user schema answer `req.invalid`, the same\nway a malformed body does: `details.details.fields` lists the dotted\npath of every failing field from the request body, such as\n`attributes.country` or `attributes.address.zip`, and a failure inside\nan array item by the item's index, such as `attributes.phones.0.fax`.\nOnly the field names are reported, never the rejected values.\n\nA `team_id` that names no team of `project_id` answers `user.invalid`:\na user joins only a team of their own project.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"You do not have permission to create a user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"A user already exists with one of the unique values. For example, when\nthe schema marks `email` as unique across the team, only one user can\nhave a given `email` attribute.\n\n`details.details.fields` names the attributes whose value is taken in\nthe same dotted form as a `400`, such as `attributes.email`. The user\nholding the value is not named. When no attribute can be named, as\nwhen the value was freed again since, `details` is absent. Send a\ndifferent value for each attribute named.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"500":{"description":"Something went wrong on the server. This was not your fault.\n\nOne case is recoverable: the user was created but the server could not\nread it back to answer with. The body then carries the created user's\nID in `details.user_id`. Fetch that user by ID with `getUser` (`GET /users/{user_id}`).\nRepeating the create would conflict with the user that already exists.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/createUser-error-response"}}}},"/users/query":{"post":{"operationId":"queryUsers","x-zitadel-cli":"user list","x-zitadel-read-only":true,"summary":"Query users","description":"Returns the users of a project, paginated with a cursor.\n\n`project_id` names the project to list; without it, the credential's own\nproject is listed.\n\nAccepts either a project secret (`oauth2`) or a user-bound console\nsession cookie (`sessionCookie`). Cookie-authenticated requests\nfollow the scheme's CSRF rules (`sessionCookie`).\n\nWith a project secret, embedding `teams` with `expand`, or filtering by\n`team_id`, also needs `team_membership.read`. Embedding\n`lifecycle_owner_team` needs `team.read`. A console session carries no\nscopes: it may do both when it may read the whole project, and gets\n`403 user.permission_denied` otherwise.\n","tags":["Users"],"security":[{"oauth2":["user.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id-query"}],"requestBody":{"description":"Request to query the users of a project.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-users-request"}}}},"responses":{"200":{"description":"A page of users.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-users-response"}}}},"400":{"description":"The request was not valid, for example an unknown filter field or an unusable value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/queryUsers-error-response"}}}},"/users/{user_id}":{"get":{"operationId":"getUser","x-zitadel-cli":"user get","summary":"Get a user by ID","description":"Returns a user by ID, with the attributes its schema defines.\n\nWith `team_id`, the user is returned only while they are an active member\nof that team.\n","tags":["Users"],"parameters":[{"name":"team_id","in":"query","description":"Serves the user only when they hold an active membership in this team,\nand answers `404` otherwise. Use the `id` that `createTeam` (`POST /teams`) returns or\n`queryTeams` (`POST /teams/query`) lists.\n\nThis is team membership, not lifecycle ownership: it asks which team\nthe user collaborates in, not which team may deprovision them. The\nowning team is reported separately as\n`metadata.lifecycle_owner_team_id`, and a user can belong to many teams\nwhile owning their own lifecycle.\n\nOnly active memberships match. A user who has been invited but has not\naccepted is not served.\n\nIt reads the user's memberships, so it takes the same permission as the\n`team_id` filter on `POST /users/query`: `team_membership.read` for a\nproject secret, read on the whole project for a console session.\nOtherwise the answer is `403 user.permission_denied`.\n","schema":{"$ref":"#/components/schemas/team-id"}},{"$ref":"#/components/parameters/user-id"}],"security":[{"oauth2":["user.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"The user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/user"}}}},"401":{"description":"Client was not authorized or the session is anonymous.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No user has this ID, or `team_id` is set and the user is not an active\nmember of that team.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getUser-error-response"}}},"patch":{"operationId":"updateUser","x-zitadel-cli":"user update","summary":"Update a user by ID","description":"Partially updates a user's schema-defined attributes, and optionally\nmoves the user to another registered schema. The merged result is\nvalidated against the schema before commit. Concurrent writes are\nlast-write-wins.\n\nTo move the user, send `schema` with the `id` of a registered schema, as\n`publishSchema` (`POST /schemas`) returns it or `listSchemas` (`GET /schemas`) lists it.\n\nTo ask whether a patch would succeed, send it with `\"dry_run\": true`. It takes\nthe same permission and answers the same status and `details` as the real\nrequest, and it changes nothing and emits no `user.updated`. The request\nitself is still recorded as `request.api`, like any other API call. A `200`\nholds for the moment of the check: a unique value that is free then can be\ntaken before the real request, which then answers `409`.\n\n`dry_run` is a body field so that a server from before it refuses the\nrequest as malformed (`400 req.invalid`) instead of applying the patch.\n\nA change to the attribute a sign-in identifies the user by (the one the\nschema designates with `x-identifier`, such as `email`), or a move to a\nschema that designates another, asks more than the editor role\n([ADR 094](https://github.com/zitadel/nextgen/blob/main/docs/adrs/094-project-permission-model.md) §4):\nan admin of the user's project. For a user of the deployment's platform\nproject, the caller must also hold, on every other project, at least each\nrole the user holds there, and be a platform operator when the user is\none. A caller who does not answers `403 user.permission_denied`, with\n`details.details.reason` `target_holds_more` when the user holds more. On\nthe reserved platform project only an operator changes another user's\nidentifier (reason `operators_only`), or, on a deployment that names no\noperator, its admins under the same check. A dry run answers the same.\n","tags":["Users"],"parameters":[{"$ref":"#/components/parameters/user-id"}],"security":[{"oauth2":["user.write"]},{"sessionCookie":[]}],"requestBody":{"description":"The changes to merge into the user.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/patch-user-request"}}}},"responses":{"200":{"description":"The updated user, or with `dry_run` the user as the patch would leave them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/user"}}}},"400":{"description":"Invalid request body, empty patch, unknown schema, or merged attributes\nfailing schema validation.\n\nMerged attributes that fail the target schema answer `req.invalid`,\nthe same way a malformed body does and the same way a create does:\n`details.details.fields` lists the dotted path of every failing field\nfrom the request body, such as `attributes.country` or\n`attributes.address.zip`, and a failure inside an array item by the\nitem's index, such as `attributes.phones.0.fax`. A field the patch did\nnot touch is named too when the merged document fails on it, as after a move to a schema\nthat requires it. Only the field names are reported, never the\nrejected values. Fix the fields listed and send the patch again.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Client was not authorized or the session is anonymous.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"The credential may not manage users in this project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"User not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"A patched value is unique and already taken by another user, or\nconcurrent writes kept the user changing under the patch; retry.\n\nA taken value answers `user.already_exists`, as on create, with\n`details.details.fields` naming the attributes whose value is taken in\nthe same dotted form as a `400`, such as `attributes.email`. The user\nholding the value is not named. When no attribute can be named, as\nwhen the value was freed again since, `details` is absent. Send a\ndifferent value for each attribute named. Concurrent writes answer\n`user.conflict`; send the patch again.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/updateUser-error-response"}}},"delete":{"operationId":"deleteUser","x-zitadel-cli":"user delete","summary":"Delete a user by ID","description":"Deletes a user, removes them from every team they belong to, and revokes\nevery grant they hold, on any project.\n\nThe user is removed, not deactivated, and the deletion emits `user.deleted`,\nplus `authz.revoked` for each grant on that grant's project.\nWith a project secret the request is idempotent: deleting a user that exists\nin no project succeeds without changing anything. Deleting the last active\nmember of a project's owning team returns 409 `proj.last_owner` and changes\nnothing.\n\nWho may call it ([ADR 094](https://github.com/zitadel/nextgen/blob/main/docs/adrs/094-project-permission-model.md) §4):\nan admin of the user's project. For a user of the deployment's platform\nproject, the caller must also hold, on every other project, at least each\nrole the user holds there, and be a platform operator when the user is one;\na caller who does not answers `403 user.permission_denied` with\n`details.details.reason` `target_holds_more`, without saying what the user\nholds. On the reserved platform project another user is a customer account,\nso only an operator may call it there (reason `operators_only`); on a\ndeployment that names no operator, its admins may, under the same check. A\nuser of any other project is that project's to manage, whatever it holds\nelsewhere, and a user's own account is theirs.\n","tags":["Users"],"parameters":[{"$ref":"#/components/parameters/user-id"}],"security":[{"oauth2":["user.delete"]},{"sessionCookie":[]}],"responses":{"204":{"description":"The user was deleted."},"401":{"description":"Client was not authorized or the session is anonymous.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"User not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"The user is the last active member of a project's owning team\n(`proj.last_owner`). Add another member to that team, then retry.\n`details.details.project_ids` names the projects.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/deleteUser-error-response"}}}},"/users/{user_id}/identity_links":{"get":{"operationId":"listUserIdentityLinks","summary":"List the provider accounts linked to a user","description":"Lists the identity provider accounts a sign-in linked to the user, oldest\nfirst. The provider's subject and claims, the data it asserts about the\naccount, are never returned.\n","tags":["Users"],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"},{"$ref":"#/components/parameters/user-id"}],"security":[{"oauth2":["user.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"The user's identity links.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-user-identity-links-response"}}}},"400":{"description":"The provided input was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Client was not authorized or the session is anonymous.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Client does not have the permissions to perform this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No user was found for the provided user ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"500":{"description":"Something went wrong on the server. This was not your fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listUserIdentityLinks-error-response"}}}},"/users/{user_id}/passkeys":{"get":{"operationId":"listUserPasskeys","summary":"List a user's passkeys","description":"Lists the passkeys registered for a user, newest first, paginated with a\ncursor. A passkey is a WebAuthn credential that signs a user in without a\npassword.\n\nEach passkey carries its ID, its name and when it was registered, never the\ncredential itself.\n","tags":["Users"],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"},{"$ref":"#/components/parameters/user-id"}],"security":[{"oauth2":["user.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"The user's passkeys.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-user-passkeys-response"}}}},"400":{"description":"The provided input was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Client was not authorized or the session is anonymous.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Client does not have the permissions to perform this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No user was found for the provided user ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"500":{"description":"Something went wrong on the server. This was not your fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listUserPasskeys-error-response"}}}},"/users/{user_id}/passkeys/registrations":{"post":{"operationId":"createUserPasskeyRegistration","x-zitadel-plane":"app","summary":"Begin a passkey registration","description":"Starts a WebAuthn registration ceremony for the user and returns the\ncreation options for `navigator.credentials.create()`. A passkey is\nregistered in two steps: this one returns options for the browser, and\n`completeUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations/{registration_id}`) verifies the browser's answer.\n\nComplete the ceremony with\n`POST /users/{user_id}/passkeys/registrations/{registration_id}` within five\nminutes, using the `registration_id` this response returns. Credentials\nalready registered for the user are excluded automatically.\n\nWho may call it ([ADR 094](https://github.com/zitadel/nextgen/blob/main/docs/adrs/094-project-permission-model.md) §4):\nan admin of the user's project. For a user of the deployment's platform\nproject, the caller must also hold, on every other project, at least each\nrole the user holds there, and be a platform operator when the user is one;\na caller who does not answers `403 user.permission_denied` with\n`details.details.reason` `target_holds_more`, without saying what the user\nholds. On the reserved platform project another user is a customer account,\nso only an operator may call it there (reason `operators_only`); on a\ndeployment that names no operator, its admins may, under the same check. A\nuser of any other project is that project's to manage, whatever it holds\nelsewhere, and a user's own account is theirs.\n","tags":["Users"],"parameters":[{"$ref":"#/components/parameters/user-id"}],"security":[{"oauth2":["user.write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/begin-user-passkey-registration-request"}}}},"responses":{"201":{"description":"The started registration ceremony.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/begin-user-passkey-registration-response"}}}},"400":{"description":"The provided input was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Client was not authorized or the session is anonymous.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Client does not have the permissions to perform this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No user was found for the provided user ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"500":{"description":"Something went wrong on the server. This was not your fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/createUserPasskeyRegistration-error-response"}}}},"/users/{user_id}/passkeys/registrations/{registration_id}":{"post":{"operationId":"completeUserPasskeyRegistration","x-zitadel-plane":"app","summary":"Finish a passkey registration","description":"Verifies the attestation against the registration ceremony and stores\nthe new passkey for the user. `registration_id` is the one that\n`createUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations`)\nreturned when it started the ceremony. The attestation is\nthe browser's answer from `navigator.credentials.create()`.\n\nA rejected attestation leaves the ceremony open for a retry. An expired ceremony answers\n`att.stale_challenge`: begin a new registration. An unknown or\nalready-consumed registration ID answers `att.not_found`.\n\nWho may call it ([ADR 094](https://github.com/zitadel/nextgen/blob/main/docs/adrs/094-project-permission-model.md) §4):\nan admin of the user's project. For a user of the deployment's platform\nproject, the caller must also hold, on every other project, at least each\nrole the user holds there, and be a platform operator when the user is one;\na caller who does not answers `403 user.permission_denied` with\n`details.details.reason` `target_holds_more`, without saying what the user\nholds. On the reserved platform project another user is a customer account,\nso only an operator may call it there (reason `operators_only`); on a\ndeployment that names no operator, its admins may, under the same check. A\nuser of any other project is that project's to manage, whatever it holds\nelsewhere, and a user's own account is theirs.\n","tags":["Users"],"parameters":[{"$ref":"#/components/parameters/user-id"},{"$ref":"#/components/parameters/passkey-registration-id"}],"security":[{"oauth2":["user.write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/finish-user-passkey-registration-request"}}}},"responses":{"201":{"description":"The registered passkey.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/finish-user-passkey-registration-response"}}}},"400":{"description":"The provided input was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Client was not authorized or the session is anonymous.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Client does not have the permissions to perform this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No user was found for the provided user ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"429":{"description":"The server is hashing or checking as many passwords as it allows right\nnow and could not take on another within its wait. Nothing was changed;\nretry after the number of seconds in the `Retry-After` header.\n","headers":{"Retry-After":{"$ref":"#/components/headers/retry-after"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/too-many-requests"}}}},"500":{"description":"Something went wrong on the server. This was not your fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/completeUserPasskeyRegistration-error-response"}}}},"/users/{user_id}/password":{"get":{"operationId":"getUserPasswordState","summary":"Get a user's password state","description":"Returns when the user's current password was set, and leaves `set_at` out\nwhen the user has none. The password and its hash are never returned;\n`setUserPassword` (`PUT` on the same path) sets one.\n","tags":["Users"],"parameters":[{"$ref":"#/components/parameters/user-id"}],"security":[{"oauth2":["user.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"The state of the user's password.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/user-password-state"}}}},"401":{"description":"Client was not authorized or the session is anonymous.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Client does not have the permissions to perform this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No user was found for the provided user ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"500":{"description":"Something went wrong on the server. This was not your fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getUserPasswordState-error-response"}}},"put":{"operationId":"setUserPassword","x-zitadel-destructive":true,"summary":"Set a user's password","description":"Sets a user's password, hashed with the project's current password hashing\npolicy.\n\nThe new password replaces the current one, and setting it emits\n`auth.factor.password.set`. A password the project's password policy\nrefuses answers `user.password_policy_violation`; send one that meets the\npolicy.\n\nSetting the password of a person in the platform project also ends every\npersonal access token of theirs that has not expired, in the same\ntransaction: a CI job or an agent that uses one is refused from its next\ncall, and the person creates a new token for it. One `auth.token.revoked`\nevent records it, with `reason` `password_set` and the `count` of tokens\nthat ended.\n\nThe password policy is the one in the release that serves the caller's\n`Origin`, chosen as `createFlow` (`POST /flows`) chooses it. A frontend on a\npreview URL gets that preview's policy, and one on a primary origin the\nnewest primary deployment's. A request with no `Origin`, or from the\nconsole when the project does not list the console's origin, gets the\nproject's newest primary deployment.\n\nIf the request is refused:\n- `403 proj.origin_not_allowed`: the project admits no such origin. Add it\n  with `zitadel origin add`.\n- `403 proj.preview_not_live`: the origin matches a preview pattern but has\n  no live preview. Run `zitadel preview` on the branch.\n- `409 rel.not_deployed`: nothing is deployed to the origin. Run\n  `zitadel deploy`.\n- `409 rel.no_default`: the request names no origin and the project has no\n  primary deployment. Run `zitadel deploy`.\n- `409 rel.revoked`: the release that serves the origin is revoked.\n\nWho may call it ([ADR 094](https://github.com/zitadel/nextgen/blob/main/docs/adrs/094-project-permission-model.md) §4):\nan admin of the user's project. For a user of the deployment's platform\nproject, the caller must also hold, on every other project, at least each\nrole the user holds there, and be a platform operator when the user is one;\na caller who does not answers `403 user.permission_denied` with\n`details.details.reason` `target_holds_more`, without saying what the user\nholds. On the reserved platform project another user is a customer account,\nso only an operator may call it there (reason `operators_only`); on a\ndeployment that names no operator, its admins may, under the same check. A\nuser of any other project is that project's to manage, whatever it holds\nelsewhere, and a user's own account is theirs.\n","tags":["Users"],"parameters":[{"$ref":"#/components/parameters/user-id"},{"name":"Origin","in":"header","required":false,"description":"Standard browser `Origin` header. Selects the deployment whose password\npolicy applies. Browsers send it automatically; no client action is\nrequired. Absent when the caller is not a browser.\n","schema":{"type":"string","format":"uri","example":"https://www.acme.com"}}],"security":[{"oauth2":["user.write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/set-user-password-request"}}}},"responses":{"204":{"description":"The password was set."},"400":{"description":"The provided input was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No user was found for the provided user ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"429":{"description":"The server is hashing or checking as many passwords as it allows right\nnow and could not take on another within its wait. Nothing was changed;\nretry after the number of seconds in the `Retry-After` header.\n","headers":{"Retry-After":{"$ref":"#/components/headers/retry-after"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/too-many-requests"}}}},"500":{"description":"Something went wrong on the server. This was not your fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/setUserPassword-error-response"}}}},"/users/{user_id}/teams":{"get":{"operationId":"listUserTeams","summary":"List the teams a user belongs to","description":"Lists the teams a user belongs to, ordered by team name. Each entry carries\nthe team's name, so a client renders a page without resolving IDs one by\none.\n\nThis is the user's team memberships, not lifecycle ownership: the single\nteam that owns the user's lifecycle is reported as\n`metadata.lifecycle_owner_team_id` on the user read endpoints. Memberships\nthe user was removed from are not returned.\n","tags":["Users"],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"},{"$ref":"#/components/parameters/user-id"}],"security":[{"oauth2":["user.read","team_membership.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"The user's teams.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-user-teams-response"}}}},"400":{"description":"The provided input was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Client was not authorized or the session is anonymous.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Client does not have the permissions to perform this action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No user was found for the provided user ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"500":{"description":"Something went wrong on the server. This was not your fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listUserTeams-error-response"}}}},"/users/me":{"get":{"operationId":"getMyUser","x-zitadel-self":true,"summary":"Get my user information","description":"Returns the user signed in to the session that authenticates the request.\n\nThe project and the user both come from the session cookie, so a caller only\never reads their own user.\n\nWith `project_id`, the user is returned only when the session belongs to\nthat project.\n\nA token issued for the person reads the user too, when it carries\n`user.read`. A project secret is no person: it is answered `401`, as\na request without a credential.\n","tags":["Users"],"parameters":[{"$ref":"#/components/parameters/session-project-id"}],"security":[{"oauth2":["user.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"The signed-in user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/user"}}}},"401":{"description":"Client was not authorized or the session is anonymous.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"`sess.project_mismatch`: the session or the token belongs to a\ndifferent project than `project_id`.\n\n`auth.scope_insufficient`: the token was not issued with `user.read`.\nAsk the person for it.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"The user the session refers to was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/user-not_found"}}}},"default":{"$ref":"#/components/responses/getMyUser-error-response"}}},"patch":{"operationId":"updateMyUser","x-zitadel-self":true,"summary":"Update my user information","description":"Partially updates the caller's own schema-defined attributes. The merged\nresult is validated against the user's schema before commit. Concurrent\nwrites are last-write-wins.\n\nWith `project_id`, the user is updated only when the session belongs to\nthat project.\n","tags":["Users"],"parameters":[{"$ref":"#/components/parameters/session-project-id"}],"security":[{"sessionCookie":[]}],"requestBody":{"description":"The changes to merge into the user.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/patch-my-user-request"}}}},"responses":{"200":{"description":"The updated user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/user"}}}},"400":{"description":"Invalid request body, empty patch, or merged attributes failing schema\nvalidation.\n\nMerged attributes that fail the schema answer `req.invalid`, as on\n`updateUser` (`PATCH /users/{user_id}`): `details.details.fields`\nlists the dotted path of every failing field from the request body,\nsuch as `attributes.address.zip` or `attributes.phones.0.fax`, never the\nrejected values. Fix the fields listed and send the patch again.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Client was not authorized or the session is anonymous.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"`sess.project_mismatch`: the session belongs to a different project than\n`project_id`. The user is not changed.\n\n`auth.csrf_invalid`: the request came from another site, or did not carry\nthe session's `X-Zitadel-CSRF` token (see the `sessionCookie` scheme).\nIt is refused before the session is looked at.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"The user the session refers to was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/user-not_found"}}}},"409":{"description":"A patched value is unique and already taken by another user, or\nconcurrent writes kept the user changing under the patch; retry.\n\nA taken value answers `user.already_exists`, with\n`details.details.fields` naming the attributes whose value is taken,\nsuch as `attributes.email`. The user holding the value is not named.\nSend a different value for each attribute named. After a concurrent-write\nconflict, send the patch again.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/updateMyUser-error-response"}}}},"/users/me/consents":{"get":{"operationId":"listMyConsents","x-zitadel-self":true,"summary":"List my consents","description":"Lists what the signed-in user consented to OAuth clients doing, the last\nanswered first, paginated with a cursor. A consent is kept per client and\nAPI, with the user's answer for each scope the client was offered.\n\nA client whose answer goes to an `https` host is not asked again for\nscopes the user answered for; one that returns to a loopback address is\nasked each time, with the last answer ticked. `revokeMyConsent`\n(`DELETE /users/me/consents/{consent_id}`) ends one.\n\nWith `project_id`, the consents are listed only when the session belongs\nto that project.\n\nA token issued for the person reads the consents too, when it carries\n`user.read`. A project secret is no person: it is answered `401`, as a\nrequest without a credential.\n","tags":["Users"],"security":[{"oauth2":["user.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"},{"$ref":"#/components/parameters/session-project-id"}],"responses":{"200":{"description":"The user's consents.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-my-consents-response"}}}},"400":{"description":"The page token or limit was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid session token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-unauthorized"}}}},"403":{"description":"`sess.project_mismatch`: the session or the token belongs to a\ndifferent project than `project_id`.\n\n`auth.scope_insufficient`: the token was not issued with `user.read`.\nAsk the person for it.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listMyConsents-error-response"}}}},"/users/me/consents/{consent_id}":{"delete":{"operationId":"revokeMyConsent","x-zitadel-self":true,"summary":"Revoke my consent","description":"Revokes one of the signed-in user's consents, by the `id` that\n`listMyConsents` (`GET /users/me/consents`) lists, and ends every refresh\ntoken its client holds for the user.\n\nThe client is asked for consent again at its next sign-in. An access token\nit already holds stays valid until it expires, within minutes. The user's\nsessions are not touched, and neither is a personal access token the user\ncreated through the client.\n\nWith `project_id`, the consent is revoked only when the session belongs to\nthat project. Cookie requests follow the `sessionCookie` scheme's CSRF\nrules. Only the person's session revokes a consent: a token issued to a\nclient does not, as it does not end a session either.\n","tags":["Users"],"security":[{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/consent-id"},{"$ref":"#/components/parameters/session-project-id"}],"responses":{"204":{"description":"The consent was revoked and its client's refresh tokens ended."},"401":{"description":"Missing or invalid session token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-unauthorized"}}}},"403":{"description":"The session belongs to a different project than `project_id`, or the\nrequest did not carry the session's CSRF token.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"The user has no consent with this ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/consent-not_found"}}}},"default":{"$ref":"#/components/responses/revokeMyConsent-error-response"}}}},"/users/me/identity_links":{"get":{"operationId":"listMyIdentityLinks","x-zitadel-self":true,"summary":"List the provider accounts linked to me","description":"Lists the identity provider accounts a sign-in linked to the signed-in user,\noldest first. The provider's subject and claims, the data it asserts about\nthe account, are never returned.\n\nWith `project_id`, the links are listed only when the session belongs to\nthat project.\n\nA token issued for the person reads the links too, when it carries\n`user.read`. A project secret is no person: it is answered `401`, as\na request without a credential.\n","tags":["Users"],"security":[{"oauth2":["user.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"},{"$ref":"#/components/parameters/session-project-id"}],"responses":{"200":{"description":"The user's identity links.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-user-identity-links-response"}}}},"400":{"description":"The page token or limit was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid session token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-unauthorized"}}}},"403":{"description":"`sess.project_mismatch`: the session or the token belongs to a\ndifferent project than `project_id`.\n\n`auth.scope_insufficient`: the token was not issued with `user.read`.\nAsk the person for it.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listMyIdentityLinks-error-response"}}}},"/users/me/passkeys":{"get":{"operationId":"listMyPasskeys","x-zitadel-self":true,"summary":"List my passkeys","description":"Lists the signed-in user's own passkeys, newest first, paginated with a\ncursor. A passkey is a WebAuthn credential that signs a user in without a\npassword. Each passkey carries its ID, its name and when it was registered,\nnever the credential itself.\n\nWith `project_id`, the passkeys are listed only when the session belongs to\nthat project.\n\nA token issued for the person reads the passkeys too, when it carries\n`user.read`. A project secret is no person: it is answered `401`, as\na request without a credential.\n","tags":["Users"],"security":[{"oauth2":["user.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"},{"$ref":"#/components/parameters/session-project-id"}],"responses":{"200":{"description":"The user's passkeys.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-user-passkeys-response"}}}},"400":{"description":"The page token or limit was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid session token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-unauthorized"}}}},"403":{"description":"`sess.project_mismatch`: the session or the token belongs to a\ndifferent project than `project_id`.\n\n`auth.scope_insufficient`: the token was not issued with `user.read`.\nAsk the person for it.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listMyPasskeys-error-response"}}}},"/users/me/password":{"get":{"operationId":"getMyPasswordState","x-zitadel-self":true,"summary":"Get my password state","description":"Returns when the signed-in user's current password was set, and leaves\n`set_at` out when they have none. The password and its hash are never\nreturned.\n\nWith `project_id`, the state is read only when the session belongs to that\nproject.\n\nA token issued for the person reads the state too, when it carries\n`user.read`. A project secret is no person: it is answered `401`, as\na request without a credential.\n","tags":["Users"],"security":[{"oauth2":["user.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/session-project-id"}],"responses":{"200":{"description":"The state of the user's password.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/user-password-state"}}}},"401":{"description":"Missing or invalid session token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-unauthorized"}}}},"403":{"description":"`sess.project_mismatch`: the session or the token belongs to a\ndifferent project than `project_id`.\n\n`auth.scope_insufficient`: the token was not issued with `user.read`.\nAsk the person for it.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getMyPasswordState-error-response"}}}},"/users/me/personal_access_tokens":{"post":{"operationId":"createMyPersonalAccessToken","x-zitadel-cli":"personal-access-token create","x-zitadel-self":true,"x-zitadel-asks":true,"x-zitadel-returns-secret":true,"x-zitadel-agent-note":"Creates a credential in the person's name that outlives this session, for an unattended job; the token is in this answer only.","summary":"Create a personal access token","description":"Creates a personal access token for the signed-in person and returns it\nonce, with its record.\n\nA personal access token (PAT) acts as the person who created it, capped by\nits `scopes`: send it as `Authorization: Bearer <token>` to the API or the\nMCP endpoint, from a CI job or an agent with no person at the keyboard. It\nreaches the operations an access token issued for a person reaches. On\neach call the person's grants at that moment decide, and an operation that\nnames a scope the token was not created with is refused with\n`auth.scope_insufficient`, naming the scope.\n\n`expires_at` is required and at most 90 days away; a token cannot be\nextended. It also stops working when it is revoked with\n`revokeMyPersonalAccessToken`, when its owner's password is set\n(`setUserPassword`), while its owner is not active, and when its owner is\ndeleted.\n\nAuthenticate with a console session cookie, or an access token issued for\nthe person with the scope `personal_access_token.create`, which consent\nnever preselects. A session creates one only within 15 minutes of a\nsign-in in that session; later it answers `403 tkn.pat_sign_in_required`,\nand the person signs in again. Neither creates one when its session\nsigned in before the person's current password was set: after a password\nset, the person signs in again first. Created with an access token, the\nPAT holds no scope that token lacks, and its record names the token's\nclient. A personal access token never creates another. The person must be\nhomed in the platform project. Cookie requests follow that scheme's CSRF rules. The\n`token` is in this response only; the server keeps a hash of its secret.\nRecords an `auth.token.issued` event.\n","tags":["Users"],"security":[{"oauth2":["personal_access_token.create"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-personal-access-token-request"},"examples":{"ci":{"summary":"A token for a CI job that reads deployments","value":{"name":"Deploy from CI","scopes":["project.read","deployment.read"],"expires_at":"2027-03-02T10:00:00Z"}}}}}},"responses":{"201":{"description":"The token was created. Its `token` is shown only here.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-personal-access-token-response"}}}},"400":{"description":"The name, a scope or `expires_at` was not acceptable: a scope no\naccess token for a person can use, one the creating token lacks, or\nan expiry in the past or more than 90 days away.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials, or a personal access token, which\nnever creates another.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"`auth.scope_insufficient`: the token was not issued with\n`personal_access_token.create`. `auth.csrf_invalid`: the request did\nnot carry the session's CSRF token. `tkn.pat_owner_not_platform`: the\nperson is not homed in the platform project, so cannot hold a\npersonal access token. `tkn.pat_sign_in_required`: sign in again,\nthen repeat the request. The `reason` in the error's details says\nwhy: `sign_in_too_old`, the session's last sign-in is longer ago than\n`max_age_seconds`; or `password_set_after_sign_in`, the session the\ncookie or the access token belongs to signed in before the person's\ncurrent password was set.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/createMyPersonalAccessToken-error-response"}}},"get":{"operationId":"listMyPersonalAccessTokens","x-zitadel-cli":"personal-access-token list","x-zitadel-self":true,"x-zitadel-agent-note":"Lists the records of the caller's own personal access tokens; it never returns a token.","summary":"List my personal access tokens","description":"Lists the personal access tokens of the person the credential belongs\nto, newest first, expired ones included, paginated with `limit` and\n`page_token`. A record never holds the token.\n\nAuthenticate with a console session cookie, an access token issued for\nthe person, or one of their personal access tokens; a token needs the\nscope `personal_access_token.read`.\n","tags":["Users"],"security":[{"oauth2":["personal_access_token.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"}],"responses":{"200":{"description":"A page of the caller's personal access tokens.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-personal-access-tokens-response"}}}},"400":{"description":"The page token or limit was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"The token was not issued with `personal_access_token.read`, or the\ncredential belongs to no person who can hold one.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listMyPersonalAccessTokens-error-response"}}}},"/users/me/personal_access_tokens/{personal_access_token_id}":{"delete":{"operationId":"revokeMyPersonalAccessToken","x-zitadel-cli":"personal-access-token revoke","x-zitadel-self":true,"x-zitadel-destructive":true,"x-zitadel-agent-note":"Revokes one of the caller's own personal access tokens; a token may revoke itself, after which it is refused.","summary":"Revoke my personal access token","description":"Revokes one of the caller's personal access tokens by deleting its\nrecord, so the token is refused from the next call on.\n\nAuthenticate with a console session cookie, an access token issued for\nthe person, or one of their personal access tokens, the one revoked\nincluded; a token needs the scope `personal_access_token.delete`. A token\nthat is not the caller's answers `404`, as one that does not exist.\nRecords an `auth.token.revoked` event. Cookie requests follow that\nscheme's CSRF rules.\n","tags":["Users"],"security":[{"oauth2":["personal_access_token.delete"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/personal-access-token-id"}],"responses":{"204":{"description":"The token was revoked."},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"The token was not issued with `personal_access_token.delete`, the\nrequest did not carry the session's CSRF token, or the credential\nbelongs to no person who can hold one.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"The caller has no personal access token with this ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/revokeMyPersonalAccessToken-error-response"}}}},"/users/me/projects":{"get":{"operationId":"listMyProjects","x-zitadel-self":true,"summary":"List the projects I can act on","description":"Lists the projects the signed-in user can act on: those they hold an active\ngrant on, either directly or through a team they are a member of. For a\nplatform operator, someone who runs the deployment, that is every project of\nthe deployment. Ordered by project ID unless `order` asks for creation\ntime, and paged with an opaque cursor.\n\nThis is not the same question as `queryProjects` (`POST /projects/query`), which answers with the one\nproject the calling credential is bound to. Here the person signed in is\nthe caller and the grants are the answer, so the list spans projects.\n\nWith `name_contains`, only the projects whose name contains that text are\nlisted. The search runs on the server together with the grants, so it\nreaches every project the user can act on, however many there are, and\npages like the full list.\n\nWith `project_id`, the projects are listed only when the session belongs to\nthat project. It names the project the session was signed in to, not one to\nlist.\n\nWith `exclude_platform`, the deployment's reserved platform project is left\nout: the project the console signs in to, which holds the console's\naccounts rather than an application's users. A deployment without one lists\nthe same projects either way.\n\nA token issued for the person reads the projects too, when it carries\n`project.read`. A project secret is no person: it is answered `401`, as\na request without a credential.\n","tags":["Projects"],"security":[{"oauth2":["project.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"},{"name":"name_contains","in":"query","required":false,"description":"Narrows the list to the projects whose name contains this text,\nignoring case, as `contains` matches text in a query endpoint's\nfilter. Send the same value with every `page_token` the search\nreturns: a token continues the list it came from. An empty value\nlists every project, as leaving it out does.\n","schema":{"type":"string"},"example":"acme"},{"name":"order","in":"query","required":false,"description":"Sorts the list by `created_at` and then `id`: `desc` lists the newest\nproject first, `asc` the oldest first. Leave it out to list by\nproject ID, which says nothing about when a project was created. Send\nthe same value with every `page_token` the list returns: a token\ncontinues the list it came from, and under another order it is\nrefused with `400`.\n","schema":{"$ref":"#/components/schemas/sort-direction"},"example":"desc"},{"name":"exclude_platform","in":"query","required":false,"description":"Leaves out the deployment's reserved platform project, the one the\nconsole signs in to. Defaults to `false`. Send the same value with\nevery `page_token` the list returns.\n","schema":{"type":"boolean"},"example":true},{"$ref":"#/components/parameters/session-project-id"}],"responses":{"200":{"description":"The projects the session user can act on.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-my-projects-response"}}}},"400":{"description":"The page token or limit was not valid, or the token was issued under another `order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid session token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-unauthorized"}}}},"403":{"description":"`sess.project_mismatch`: the session or the token belongs to a\ndifferent project than `project_id`.\n\n`auth.scope_insufficient`: the token was not issued with `project.read`.\nAsk the person for it.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"500":{"description":"Something went wrong on the server. This was not your fault.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listMyProjects-error-response"}}}},"/users/me/schema":{"get":{"operationId":"getMyUserSchema","x-zitadel-self":true,"summary":"Get my user schema","description":"Returns the schema that validates the signed-in user's own record.\n\nWith `project_id`, the schema is returned only when the session belongs to\nthat project.\n\nA token issued for the person reads the schema too, when it carries\n`schema.read`. A project secret is no person: it is answered `401`, as\na request without a credential.\n","tags":["Users"],"security":[{"oauth2":["schema.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/session-project-id"}],"responses":{"200":{"description":"The user's schema.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/schema"}}}},"401":{"description":"Missing or invalid session token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-unauthorized"}}}},"403":{"description":"`sess.project_mismatch`: the session or the token belongs to a\ndifferent project than `project_id`.\n\n`auth.scope_insufficient`: the token was not issued with `schema.read`.\nAsk the person for it.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"User referenced by the current session was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/user-not_found"}}}},"default":{"$ref":"#/components/responses/getMyUserSchema-error-response"}}}},"/users/me/sessions":{"get":{"operationId":"listMySessions","x-zitadel-self":true,"summary":"List my sessions","description":"Lists the signed-in user's own sessions in the project they signed in to,\nnewest first, each with the IP address and user agent it began with.\n\nSessions of every lifecycle state are listed, each with its `state`, so a\nperson can see where they signed in and which of those sessions are still\nactive. Revoking one of them is an administrator's `revokeSession`\n(`DELETE /sessions/{session_id}`), or the browser's own `revokeMySession`\n(`DELETE /sessions/me`) for the session it holds. A session never carries\nits token here.\n\nWith `project_id`, the sessions are listed only when the session belongs to\nthat project.\n\nA token issued for the person reads the sessions too, when it carries\n`session.read`. A project secret is no person: it is answered `401`, as\na request without a credential.\n","tags":["Users"],"security":[{"oauth2":["session.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"},{"$ref":"#/components/parameters/session-project-id"}],"responses":{"200":{"description":"The user's sessions.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-sessions-response"}}}},"400":{"description":"The page token or limit was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid session token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-unauthorized"}}}},"403":{"description":"`sess.project_mismatch`: the session or the token belongs to a\ndifferent project than `project_id`.\n\n`auth.scope_insufficient`: the token was not issued with `session.read`.\nAsk the person for it.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listMySessions-error-response"}}}},"/users/me/teams":{"get":{"operationId":"listMyTeams","x-zitadel-self":true,"summary":"List the teams I belong to","description":"Lists the teams the signed-in user belongs to, ordered by team name.\n\nWith `project_id`, the teams are listed only when the session belongs to\nthat project.\n\nA token issued for the person reads the teams too, when it carries\n`team.read`. A project secret is no person: it is answered `401`, as\na request without a credential.\n","tags":["Users"],"security":[{"oauth2":["team.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"},{"$ref":"#/components/parameters/session-project-id"}],"responses":{"200":{"description":"The user's teams.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-user-teams-response"}}}},"400":{"description":"The page token or limit was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid session token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-unauthorized"}}}},"403":{"description":"`sess.project_mismatch`: the session or the token belongs to a\ndifferent project than `project_id`.\n\n`auth.scope_insufficient`: the token was not issued with `team.read`.\nAsk the person for it.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listMyTeams-error-response"}}}},"/flows":{"post":{"operationId":"createFlow","x-zitadel-returns-secret":true,"summary":"Start a flow","description":"Starts a flow: resolves a flow definition from the request's purpose and\naudience, and returns the first step.\n\nThe flow endpoints are the runtime calls the login component\n(`<zitadel-login>`) makes, step by step. It starts a flow here, renders the\nstep it gets back, and submits the user's input with `submitFlowStep` (`POST /flows/{flow_id}/submit`) to\nget the next step. This call creates a new session implicitly, unless\n`session_id` is provided together with that session's `session_token`\n(for step-up or reauthentication on an existing session).\n\nThe browser `Origin` header selects which deployment serves this attempt.\nThe server checks the origin against the project's origin patterns and live\npreviews, and the deployment that origin serves is the target: the\nproject's newest primary deployment when it names a primary origin, or the\nnewest live deployment to a preview URL. A\ndeployment is a release, the immutable bundle of the project's\nconfiguration, made live at an origin. The deployment's release supplies\nflow definitions, user schemas and branding. The resolved deployment is\nsealed into the flow's cookie so later steps keep the same\nconfiguration.\n\n- An origin that matches no pattern answers `403` with\n  `proj.origin_not_allowed`, including when the project lists no origins.\n  Add the origin with `zitadel origin add`.\n- An origin that matches a preview pattern with no live preview answers\n  `403` with `proj.preview_not_live`. Run `zitadel preview` on the branch.\n- Nothing deployed to a listed origin or a live preview answers `409`\n  with `rel.not_deployed`. Run `zitadel deploy`: a primary origin added\n  since the last deploy serves nothing until the next one.\n- A loopback origin the project does not list answers `409` with\n  `rel.not_deployed` too, as no deployment can name it. Add it with\n  `zitadel origin add <origin> --kind primary`, then run `zitadel deploy`.\n- A revoked release answers `409` with `rel.revoked`.\n\nA request with no `Origin` passes the check, and so does the server's own\norigin, from which its console previews a project's login. Both are served\nthe project's newest primary deployment unless the project lists that\norigin; with no primary deployment they answer `409` with\n`rel.no_default`. A loopback origin passes the check and is its own\ntarget. A step submitted from the server's own origin is still refused\nunless the project lists it.\n\nThe response contains an `id` field, the flow handle. Use it as the path\nparameter for all subsequent `/flows/{flow_id}/submit` calls.\n\nThe response also sets an encrypted `HttpOnly` cookie, `_zflow_{id}`,\ncontaining the flow's orchestration state (current step, collected\ndata, history). The server is stateless between requests: all flow state\nlives in this cookie. The browser sends it automatically on subsequent\nrequests. Each flow has a cookie of its own, so two sign-ins in one\nbrowser do not end each other. A browser keeps at most three: starting\na flow deletes the oldest flow cookies the request carried beyond that,\nand ends their flows.\n\nA flow for an authorization request can end as it starts: the step is\nterminal, with `complete: redirect`, and no cookie is set, since nothing\nis left to continue. See `auth_request_id`.\n","tags":["Flows"],"security":[],"parameters":[{"name":"Origin","in":"header","required":false,"description":"Standard browser `Origin` header. Selects the deployment that serves\nthis attempt: matched against the project's origin patterns and live\npreviews, then against the deployment that origin serves.\nBrowsers send it automatically; no client action is required. Absent\nwhen the caller is not a browser.\n","schema":{"type":"string","format":"uri","example":"https://www.acme.com"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-flow-request"}}}},"responses":{"201":{"description":"The started flow, with its first step.","headers":{"Set-Cookie":{"$ref":"#/components/headers/set-cookie-flow"},"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/flow-response"}}}},"400":{"description":"The request was not valid, for example it names an unknown purpose.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"The `Origin` is not admitted: `proj.origin_not_allowed` when it matches\nno pattern of the project, or `proj.preview_not_live` when it matches a\npreview pattern with no live preview for that exact URL.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"},"examples":{"origin_not_allowed":{"summary":"Origin matches no project pattern","value":{"code":"proj.origin_not_allowed","message":"https://evil.example is not an origin of this project"}},"preview_not_live":{"summary":"Preview pattern matched but no live preview","value":{"code":"proj.preview_not_live","message":"no live preview for https://acme-k3x9v2-acmeinc.vercel.app; run zitadel preview on this branch"}}}}}},"409":{"description":"Nothing is deployed to the resolved target (`rel.not_deployed`), the\nrequest needs a primary deployment and the project has none\n(`rel.no_default`), or the release of that deployment is revoked\n(`rel.revoked`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"},"examples":{"not_deployed":{"summary":"No deployment for this origin","value":{"code":"rel.not_deployed","message":"nothing is deployed to https://www.acme.com"}},"no_default":{"summary":"No primary deployment","value":{"code":"rel.no_default","message":"the project has no primary deployment"}},"revoked":{"summary":"The release is revoked","value":{"code":"rel.revoked","message":"the release this attempt runs on was revoked"}}}}}},"default":{"$ref":"#/components/responses/createFlow-error-response"}}}},"/flows/{flow_id}":{"get":{"operationId":"getFlowStep","x-zitadel-cookie":"_zflow_{flow_id}","x-zitadel-returns-secret":true,"summary":"Get the current step of a flow","description":"Returns the current step of a flow without advancing it. Use it to render\nthe step again after a page reload or a network error.\n\nThe flow endpoints are the runtime calls the login component\n(`<zitadel-login>`) makes, step by step. `createFlow` (`POST /flows`) starts a flow, and\n`submitFlowStep` (`POST /flows/{flow_id}/submit`) advances it.\n\nFor a sign-up step, prepares `step.gates.signup_pow.challenge`: one that\ncreates its user on submit, or one carrying a passkey registration that\ncreates its user.\nReuses challenges with more than a minute remaining; otherwise issues a\nnew one. If this render resolves parked SSO state, it first returns the\nupdated cookie; fetch the step again to obtain its puzzle.\n\nThe browser sends the flow's cookie, `_zflow_{flow_id}`, which\n`createFlow` or the last submit set. A request without it, or whose\ncookie holds another flow, answers `404` with `flow.not_found`.\n\nReuses the deployment sealed into the flow's cookie at `createFlow`; it\ndoes not re-resolve from `Origin`. If that release was revoked since the attempt\nstarted, the response is `409` with `rel.revoked`.\n","tags":["Flows"],"security":[],"parameters":[{"$ref":"#/components/parameters/flow-id"}],"responses":{"200":{"description":"The current step. Only a render that resolved a parked SSO identity\nsets the flow cookie; any other render leaves it unchanged. When that\nrender completed the sign-in, the step is terminal, the cookie is\ncleared, and the step carries the handoff token, which the app\nexchanges for a session at `POST /sessions/exchange`.\n","headers":{"Set-Cookie":{"$ref":"#/components/headers/set-cookie-flow"},"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/flow-response"}}}},"404":{"description":"The flow was not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"The flow cannot continue: the flow's authentication attempt (one\nsign-in journey) expired or was already handed off\n(`flow.restart_required`), the provider's identity is linked to a user\nof a schema this flow does not serve (`flow.sso_user_schema_mismatch`,\nwhich starting again does not fix), or the sealed release was revoked\n(`rel.revoked`). Otherwise start a new flow with `createFlow`\n(`POST /flows`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"},"examples":{"revoked":{"summary":"The sealed release was revoked","value":{"code":"rel.revoked","message":"the release this attempt runs on was revoked"}}}}}},"410":{"description":"The flow has already completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"429":{"description":"The server is hashing or checking as many passwords as it allows right\nnow and could not take on another within its wait. Nothing was changed;\nretry after the number of seconds in the `Retry-After` header.\n","headers":{"Retry-After":{"$ref":"#/components/headers/retry-after"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/too-many-requests"}}}},"default":{"$ref":"#/components/responses/getFlowStep-error-response"}}}},"/flows/{flow_id}/submit":{"post":{"operationId":"submitFlowStep","x-zitadel-cookie":"_zflow_{flow_id}","x-zitadel-returns-secret":true,"summary":"Submit a flow step","description":"Submits the user's input for the current step of a flow. The server\nvalidates it, processes it (for example, verifies a credential), advances\nthe flow through any invisible steps, and returns the next visible step.\nThe flow endpoints are the runtime calls the login component\n(`<zitadel-login>`) makes, step by step; `createFlow` (`POST /flows`) starts a flow.\n\nThe browser sends the flow's encrypted `HttpOnly` cookie,\n`_zflow_{flow_id}`, and the response sets it again with the new flow\nstate. The server is stateless: all orchestration state is carried in\nthis cookie between requests. A request without it answers `401` with\n`flow.cookie_invalid`.\n\nSign-up additionally requires a single-use `gate_proofs.signup_pow`\nsolution for `step.gates.signup_pow`: a password sign-up (`create_user`)\nsends it with the submit, and a passkey registration that creates its user\nsends it with the attestation in `challenge_response`. Pending\nchallenges and rate counters are stored on the server. Invalid or spent\nproofs return `403 flow.proof_invalid`; exhausted per-flow budgets return\n`429 flow.rate_limited`. GET the current step to obtain or refresh its\nchallenge before solving. Start and Submit announce the gate without a puzzle.\n\n**Important:** The `id` in the response may differ from the `id` used in\nthe request. This happens when a flow pivots (pushes a new flow onto the\nstack) or when a stacked flow completes (auto-pops to the parent flow).\nAlways use the `id` from the latest response for the next request: the\ncookie moves with it, to `_zflow_{id}`, and the response deletes the\none under the old `id`.\n\n## Flow completion\n\nWhen `step.type` is `complete`, the flow is terminal. The `step.behavior`\nfield tells the frontend what to do:\n\n| `behavior`   | Action                                                     |\n|------------- |------------------------------------------------------------|\n| `redirect`   | Navigate to `redirect_uri` (OIDC/SAML auth request done). |\n| `show`       | Render the step as a success screen, such as registration. |\n\nA `complete` step is only returned when the **entire flow stack** is done.\nIf a stacked flow (for example, recovery pivoted from login) finishes, the\nserver auto-pops to the parent flow and returns the parent's next step.\nThe frontend never sees a `complete` for intermediate flows.\n\n## External sign-in\n\n`{action: \"sso\", sso_provider_id, return_target}` on a step that offers\n`sso_providers` returns the server-emitted `sso-redirect` step, whose\n`redirect_url` the frontend navigates to.\n\n- The flow state does not change, but its cookie is re-sealed like on\n  every response, so its ten-minute window restarts at this submission;\n  the external sign-in and the return must complete within it.\n- A second `Set-Cookie` line carries the browser-binding cookie the\n  callback checks: `HttpOnly`, `Path=/`, `SameSite=Lax`.\n- On every host except http loopback it is `__Host-_zsso` with `Secure`.\n- When the request host is http loopback (local development, where\n  Safari rejects `Secure`), it is `_zsso` with no `Secure`; the\n  `__Host-` prefix is dropped because it requires `Secure`.\n\nAn identity provider (an external sign-in such as Google) whose\n`client_id` is a `${{ NAME }}` reference has it filled from the project's\nvariables. A provider the server cannot start a sign-in with, including a\nreference with no variable behind it, re-renders the step with\n`error.sso_unavailable`.\n\nReuses the deployment sealed into the flow's cookie at `createFlow`; it\ndoes not re-resolve from `Origin`. If that release was revoked since the attempt\nstarted, the response is `409` with `rel.revoked`.\n","tags":["Flows"],"security":[],"parameters":[{"$ref":"#/components/parameters/flow-id"},{"name":"Origin","in":"header","required":false,"description":"Standard browser `Origin` header. When a step issues a passkey\nchallenge, the server derives the WebAuthn relying-party ID and the\nallowed origin from this value. An sso submission is bound to it as\nwell: `return_target` must be on this origin, and the callback route\nis built under it (see External sign-in above). Browsers send it\nautomatically on the fetch POST; no client action is required.\n","schema":{"type":"string","format":"uri","example":"https://login.example.com"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/flow-submit-request"}}}},"responses":{"200":{"description":"The next step. The `id` may have changed if a pivot or stack-pop\noccurred, so always use the returned `id` for the next request.\n","headers":{"Set-Cookie":{"$ref":"#/components/headers/set-cookie-flow"},"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/flow-response"}}}},"400":{"description":"The submission was refused, in one of two shapes:\n\n- The same step with an `error` field, when validation or proof\n  verification of the input failed. The session token and cookie are\n  still rotated. Correct the input and submit the step again.\n- An error, when the request was refused before the step could take\n  it. It sets no `Set-Cookie`, so the flow cookie stays as it was:\n  `req.invalid` for a field that\n  does not decode, or an sso submission whose `return_target` is\n  missing, does not parse or is not on the request's `Origin`;\n  `flow.invalid_action` for an action the step does not offer;\n  `flow.consent_scopes_invalid` for a consent `accept` whose\n  `fields.scopes` the request did not ask for, that grants no API\n  scope, or that is missing while the request asks for an API scope;\n  `flow.unsupported` for a submission the flow cannot take yet.\n  Fix the request; the step is unchanged.\n","headers":{"Set-Cookie":{"$ref":"#/components/headers/set-cookie-flow"},"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/flow-response"},{"$ref":"#/components/schemas/error-details"}]}}}},"409":{"description":"Conflict. The flow session moved on under another request\n(`flow.session_conflict`), the flow's authentication attempt expired or\nwas already handed off (`flow.restart_required`): start a new flow, the\nprovider's identity is linked to a user of a schema this flow does not\nserve (`flow.sso_user_schema_mismatch`), which a new flow does not\nfix, or the sealed release was revoked (`rel.revoked`). A submission\nracing the request that hands the attempt off can still fail with\n`att.already_handed_off`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"},"examples":{"revoked":{"summary":"The sealed release was revoked","value":{"code":"rel.revoked","message":"the release this attempt runs on was revoked"}}}}}},"429":{"description":"The server is hashing or checking as many passwords as it allows right\nnow and could not take on another within its wait. Nothing was changed;\nretry after the number of seconds in the `Retry-After` header.\n","headers":{"Retry-After":{"$ref":"#/components/headers/retry-after"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/too-many-requests"}}}},"default":{"$ref":"#/components/responses/submitFlowStep-error-response"}}}},"/auth_attempts":{"post":{"operationId":"createAuthAttempt","x-zitadel-plane":"app","summary":"Create an authentication attempt","description":"Creates an authentication attempt, one sign-in round that expires 15 minutes after creation.\n\nAn authentication attempt collects the proofs for one sign-in and ends in a\nhandoff token. A handoff token is the short-lived, single-use credential that\na completed attempt hands to the session exchange. A client makes these calls\nin order:\n\n1. `createAuthAttempt` (`POST /auth_attempts`) creates the attempt.\n2. `createAuthAttemptChallenge` (`POST /auth_attempts/{attempt_id}/challenges`) issues a challenge, a request to prove one factor such as\n   `identifier`, `password` or `passkey`.\n3. `verifyAuthAttemptChallenge` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`) submits the proof for that challenge: the\n   credential, code or assertion. Repeat steps 2 and 3 until\n   `getAuthAttempt` (`GET /auth_attempts/{attempt_id}`) reports state `completed`, which means every factor in\n   `required_factors` is verified.\n4. `createAuthAttemptHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) completes the attempt and returns the `handoff_token`.\n5. `exchangeHandoff` (`POST /sessions/exchange`) exchanges the handoff token\n   for the session and its `session_token`.\n\nThe body takes a `project_id` and a `challenge_nonce` (from\n`POST /bootstrap/challenge`). For step-up authentication, which adds factors\nto an existing session, also send that session's `session_id` and its\n`session_token`, as `createSession` (`POST /sessions`) or `exchangeHandoff` returned them.\nThe attempt's `attempt_id` in the response is the ID every later call takes.\n\nThe project comes from the project secret. A body `project_id` that names\nanother project answers `403` with `proj.mismatch`: send the credential's own\nproject. The attempt seals the project's newest primary deployment, whatever\nthe caller's `Origin`. With none it answers `409` with `rel.no_default`, and a\nrevoked release answers `409` with `rel.revoked`.\n","tags":["Authentication Attempts"],"security":[{"oauth2":["auth_attempt.write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-auth-attempt-request"}}}},"responses":{"201":{"description":"The created authentication attempt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-attempt-response"}}}},"403":{"description":"The body `project_id` does not match the project the credential\nbelongs to (`proj.mismatch`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"},"examples":{"mismatch":{"summary":"Body project_id disagrees with the credential","value":{"code":"proj.mismatch","message":"the project named in the request is not the one the credential belongs to"}}}}}},"default":{"$ref":"#/components/responses/createAuthAttempt-error-response"}}}},"/auth_attempts/{attempt_id}":{"get":{"operationId":"getAuthAttempt","x-zitadel-plane":"app","summary":"Get an authentication attempt by ID","description":"Returns the current state of an authentication attempt, one sign-in round.\n\nThe response holds the attempt's state, available factors for the next\nchallenge, challenges issued so far, and any errors preventing progress.\n\nUse it to poll during long-running factor verifications, for example waiting\nfor a federated identity provider (IdP) callback or a device flow.\n","tags":["Authentication Attempts"],"security":[{"oauth2":["auth_attempt.read"]}],"parameters":[{"$ref":"#/components/parameters/attempt-id"}],"responses":{"200":{"description":"The current state of the authentication attempt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-attempt-response"}}}},"default":{"$ref":"#/components/responses/getAuthAttempt-error-response"}}}},"/auth_attempts/{attempt_id}/challenges":{"post":{"operationId":"createAuthAttemptChallenge","x-zitadel-plane":"app","summary":"Issue a factor challenge","description":"Issues a challenge, a request to prove one factor, within an authentication attempt.\n\nA challenge names one factor method, such as password, passkey, TOTP or OTP\nvia SMS. The response carries the challenge's `challenge_id`, method,\nmetadata and any UI hints. The client then submits the proof with\n`verifyAuthAttemptChallenge` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`), using that `challenge_id`.\n","tags":["Authentication Attempts"],"security":[{"oauth2":["auth_attempt.write"]}],"parameters":[{"$ref":"#/components/parameters/attempt-id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/issue-challenge-request"}}}},"responses":{"201":{"description":"The issued challenge.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/challenge-response"}}}},"default":{"$ref":"#/components/responses/createAuthAttemptChallenge-error-response"}}}},"/auth_attempts/{attempt_id}/challenges/{challenge_id}/verify":{"post":{"operationId":"verifyAuthAttemptChallenge","x-zitadel-plane":"app","summary":"Verify a challenge proof","description":"Verifies a challenge by submitting its proof: the credential, code or assertion for the factor.\n\nThe proof format depends on the challenge method. For example:\n\n- `password` method: { password: \"…\" }\n- `totp` method: { totp: { code: \"123456\" } }\n- `passkey` method: { passkey: { assertion: \"…\" } }\n- `recovery_code` method: { recovery_code: \"…\" }\n\nOn success, the factor is recorded on the authentication attempt. The\nattempt moves to the next pending challenge, or completes when every required\nfactor is verified. Then call `createAuthAttemptHandoff` (`POST /auth_attempts/{attempt_id}/handoff`).\n\nA `409` with `att.proof_rejected` means the proof was wrong. Check it and try\nagain. There is no retry limit: you can retry until the attempt expires.\n","tags":["Authentication Attempts"],"security":[{"oauth2":["auth_attempt.write"]}],"parameters":[{"$ref":"#/components/parameters/attempt-id"},{"$ref":"#/components/parameters/challenge-id"},{"$ref":"#/components/parameters/idempotency-key","description":"Optional retry key for safe retries of the verification request.\nIf a request with the same key has already been processed,\nthe original response is returned.\nThis prevents the same proof from being processed twice after a network issue or client retry.\n"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/verify-challenge-request"}}}},"responses":{"200":{"description":"The proof was verified and the factor is recorded on the authentication\nattempt. A session is created from it only when the sign-in completes.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-attempt-response"}}}},"409":{"description":"The proof was rejected (`att.proof_rejected`). Check it and try again.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"},"examples":{"proof_rejected":{"summary":"The proof was rejected","value":{"code":"att.proof_rejected","message":"the submitted proof was rejected"}}}}}},"429":{"description":"The server is hashing or checking as many passwords as it allows right\nnow and could not take on another within its wait. Nothing was changed;\nretry after the number of seconds in the `Retry-After` header.\n","headers":{"Retry-After":{"$ref":"#/components/headers/retry-after"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/too-many-requests"}}}},"default":{"$ref":"#/components/responses/verifyAuthAttemptChallenge-error-response"}}}},"/auth_attempts/{attempt_id}/handoff":{"post":{"operationId":"createAuthAttemptHandoff","x-zitadel-plane":"app","x-zitadel-returns-secret":true,"summary":"Complete an authentication attempt and create a handoff token","description":"Completes an authentication attempt and mints a `handoff_token`.\n\nA handoff token is the short-lived credential that a completed attempt hands\nto the session exchange. Call this after every required factor is verified and\nthe attempt is in `completed` state. Otherwise it answers `409` with\n`att.not_completed`: verify the remaining factors, then call again.\n\nExchange the token at `POST /sessions/exchange` (`exchangeHandoff` (`POST /sessions/exchange`)) within 60\nseconds to receive the session and its `session_token`. The handoff token is:\n\n- Single-use: exchange it once, with no retry.\n- Bound to the project: the exchange needs the same project's credential.\n- Created once: a second call answers `409 att.already_handed_off`, even\n  with the same idempotency key.\n\nA revoked release is refused when the handoff is exchanged, not here. A\nrelease is the configuration that `zitadel deploy` publishes.\n","tags":["Authentication Attempts"],"security":[{"oauth2":["auth_attempt.write"]}],"parameters":[{"$ref":"#/components/parameters/attempt-id"},{"$ref":"#/components/parameters/idempotency-key","description":"Optional retry key. The server accepts it but does not use it: a\nretry after a successful handoff answers `409 att.already_handed_off`.\nRetries carrying the same key within the exchange window return the same handoff token\nwithout re-completing the attempt or minting a new token.\n"}],"responses":{"200":{"description":"The handoff token and its expiry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/handoff-response"}}}},"409":{"description":"The attempt is not complete (`att.not_completed`). Verify the\nremaining required factors, then call again.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"},"examples":{"not_completed":{"summary":"The attempt is not complete","value":{"code":"att.not_completed","message":"authentication attempt is not completed"}}}}}},"default":{"$ref":"#/components/responses/createAuthAttemptHandoff-error-response"}}}},"/projects":{"post":{"operationId":"createProject","x-zitadel-returns-secret":true,"summary":"Create a project","description":"Creates a project and returns its project secret and preview secret, which no\nother endpoint returns.\n\nA project is the top-level boundary that holds users, sessions and\nconfiguration. It has no owning team until someone claims it; see `createProjectClaim` (`POST /projects/{project_id}/claim/init`).\n\nThe request needs no credential and is rate-limited. On `429`, wait and retry.\nUnless `seed_defaults` is `false`, the project starts with a default user schema\nand flow. The CLI sets it to `false` and uploads its own from `.zitadel/`.\n","tags":["Projects"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-project-request"}}}},"responses":{"201":{"description":"The created project, with its project secret and preview secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-project-response"}}}},"429":{"description":"Too many requests: the client sent too many in a given amount of time.\nWait and retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/createProject-error-response"}}}},"/projects/query":{"post":{"operationId":"queryProjects","x-zitadel-cli":"project list","x-zitadel-read-only":true,"summary":"Query projects","description":"Returns the project the project secret belongs to, as a page of at most one\nproject.\n\nA credential is scoped to one project today, so the filters and sorting\napply to that project alone. A signed-in person lists the projects they can\nact on with `GET /users/me/projects`.\n","tags":["Projects"],"security":[{"oauth2":["project.write"]}],"requestBody":{"description":"Request to query projects.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-projects-request"}}}},"responses":{"200":{"description":"A page with the project the secret belongs to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-projects-response"}}}},"400":{"description":"Invalid request, for example invalid query parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"429":{"description":"Too many requests: the client sent too many in a given amount of time.\nWait and retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/queryProjects-error-response"}}}},"/projects/{project_id}":{"get":{"operationId":"getProject","x-zitadel-cli":"project get","summary":"Get a project by ID","description":"Returns a project's current state: its name, origins, password hashing\nmethod and owning team.\n\nAuthenticate with the project secret, or with the session of a signed-in\nperson who holds a grant on the project.\n","tags":["Projects"],"parameters":[{"$ref":"#/components/parameters/project-id-path"}],"security":[{"oauth2":["project.write"]},{"sessionCookie":[]}],"responses":{"200":{"description":"The project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/project-detail-response"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Project not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getProject-error-response"}}},"patch":{"operationId":"updateProject","x-zitadel-cli":"project update","summary":"Update a project","description":"Updates a project's name or password hashing method.\n\nFields you leave out keep their value. Sending `password_hash: null` drops\nthe project's own method and returns to the server default. A change of\nmethod rewrites no stored password: each moves to the new method when its\nowner next signs in or sets a new password.\n\nAuthenticate with the project secret, or with the session of a signed-in\nperson who can act on the project.\n","tags":["Projects"],"parameters":[{"$ref":"#/components/parameters/project-id-path"}],"security":[{"oauth2":["project.write"]},{"sessionCookie":[]}],"requestBody":{"description":"The new state of the project.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/patch-project-request"}}}},"responses":{"200":{"description":"The updated project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/project-detail-response"}}}},"400":{"description":"Invalid request body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Project not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/updateProject-error-response"}}}},"/projects/{project_id}/members":{"get":{"operationId":"listProjectMembers","x-zitadel-agent-note":"The people who run the deployment, its platform operators, can act on every project and are not listed.","summary":"List the members of a project","description":"Lists the people who have a role on a project, with each person's strongest\nrole and how they hold it.\n\nA person appears once, with their strongest `relation` (`viewer`, `editor`\nor `admin`; a stronger role includes the weaker ones) and one entry in\n`sources` per way they hold that role:\n\n- `owning_team`: an active member of the team that owns the project, the\n  team a claim attaches the project to. It holds `admin`. Removing a grant\n  does not remove this access. It ends only when the person leaves the\n  team or the project changes owner.\n- `grant`: an unexpired grant on the project, which is a role given to the\n  person (`grant_id` only) or to a team they are an active member of\n  (`grant_id` and `team`). Revoking that grant removes this source.\n\nGrants of a weaker role than the person's strongest are not in `sources`;\nthey still show in the project's grants (`queryGrants`,\n`POST /grants/query`).\n\nPass `relation` to list only the people whose strongest role is at least\nthat strong: `relation=admin` lists the people who can administer the\nproject.\n\nFor those two sources the list follows the authorization check. A person\nwho left a team, or whose team or user was deactivated, is not listed\nthrough it. Expired\ngrants are left out. Like the check, a direct user grant requires an\nactive user, so a suspended person's direct grant is not listed.\n\nThe people who run the deployment, its platform operators, can act on\nevery project and are not listed: they hold no role on the project itself.\n\nEvery caller who passes the project read check sees every listed person\nand every team name on `sources`. Co-membership no longer filters the\nroster.\n\nThe list is ordered by `user_id` and paginated with `page_token`.\nAuthenticate with a project secret (`oauth2`), or with the session cookie\n(`sessionCookie`) of a signed-in person who can read the project.\n","tags":["Projects"],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"},{"name":"project_id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/project-id"}},{"name":"relation","in":"query","required":false,"description":"Only the people whose strongest role is at least this strong. Absent\nlists everyone with a role.\n","schema":{"type":"string","enum":["viewer","editor","admin"]}}],"security":[{"oauth2":["project.write"]},{"sessionCookie":[]}],"responses":{"200":{"description":"A page of the project's members.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-project-members-response"}}}},"400":{"description":"The page token is not valid. Send the `next_page_token` from the previous response unchanged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"The caller cannot read the project's members.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Project not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listProjectMembers-error-response"}}}},"/projects/{project_id}/claim/init":{"post":{"operationId":"createProjectClaim","x-zitadel-returns-secret":true,"summary":"Create a project claim","description":"Starts a claim, which attaches a project created before sign-in to a\nteam, and returns the `claim_url` to open in a browser.\n\nA claim [attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim)\nso that the team's members administer it. This operation mints a\nsingle-use, short-lived challenge for an unclaimed project. The developer\nopens `claim_url`, signs in and completes the claim in the browser; see\n`completeProjectClaim` (`POST /projects/{project_id}/claim/complete`). Poll `getProjectClaimStatus` (`GET /projects/{project_id}/claim/status`) with the returned `challenge_id`,\nas `zitadel claim` does. The response's `expires_at` carries the exact expiry.\n\nAuthenticate with the project secret that `createProject` (`POST /projects`) returns as\n`project_secret`.\n\nA `409` means a team already claimed the project, and its details name\nthat team. A `410` means the project's 14-day claim window has closed,\nwhich is final.\n","tags":["Projects"],"parameters":[{"$ref":"#/components/parameters/project-id-path"}],"security":[{"oauth2":["project.write"]}],"responses":{"201":{"description":"The claim challenge, with the browser URL to open.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/init-claim-response"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Project not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/proj-not_found"}}}},"409":{"description":"The project is already claimed by a team.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/already-claimed-response"}}}},"410":{"description":"The claim window has closed: the project was created more than 14 days\nago and can no longer be claimed. Unlike an expired challenge this is\nfinal, so clients must not present it as retryable.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/proj-claim_window_expired"}}}},"default":{"$ref":"#/components/responses/createProjectClaim-error-response"}}}},"/projects/{project_id}/claim/status":{"get":{"operationId":"getProjectClaimStatus","summary":"Get the status of a project claim","description":"Returns the status of a claim challenge, `pending` or `completed`, while a\nbrowser completes the claim.\n\nA [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim).\n`zitadel claim` polls this operation after `createProjectClaim` (`POST /projects/{project_id}/claim/init`) starts the claim.\nOnce the project is claimed, the response is `completed` with the owning\nteam, the claim timestamp and the dashboard URL.\n\nThe claim itself, not the polled challenge, decides the status. A project\nclaimed through another concurrent challenge also reports `completed`. A\ncompleted claim keeps reporting `completed` past this challenge's expiry\nand past the project's claim window.\n\nPass the `challenge_id` that `createProjectClaim` returns. Authenticate with the\nproject secret that started the challenge. On `410` with `proj.claim_expired`, call\n`createProjectClaim` again for a fresh challenge.\n","tags":["Projects"],"parameters":[{"$ref":"#/components/parameters/project-id-path"},{"$ref":"#/components/parameters/challenge-id-query"}],"security":[{"oauth2":["project.write"]}],"responses":{"200":{"description":"The status of the claim.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim-status-response"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"The presented project secret did not initiate this challenge.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/proj-permission_denied"}}}},"404":{"description":"Challenge not found. Use the `challenge_id` that `createProjectClaim` (`POST /projects/{project_id}/claim/init`) returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"410":{"description":"Gone, for one of two reasons told apart by `code`.\n`proj.claim_expired` means this challenge lapsed and a fresh claim\ninit recovers. `proj.claim_window_expired` means the project itself is\npast its 14-day claim window; that refusal is final and no new\nchallenge can help.\n","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/proj-claim_expired"},{"$ref":"#/components/schemas/proj-claim_window_expired"}],"discriminator":{"propertyName":"code","mapping":{"proj.claim_expired":"#/components/schemas/proj-claim_expired","proj.claim_window_expired":"#/components/schemas/proj-claim_window_expired"}}}}}},"429":{"description":"Too many requests: the client polled too many times in a given amount\nof time. Poll less often.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getProjectClaimStatus-error-response"}}}},"/projects/{project_id}/claim/complete":{"post":{"operationId":"completeProjectClaim","summary":"Complete a project claim","description":"Completes a claim by attaching the project to the signed-in developer's\npersonal team.\n\nA [claim attaches a project to a team](https://preview.zitadel.com/docs/concepts/project-team-user#claim),\nso that the team's members administer it. The claim page in the browser\ncalls this operation after the developer signs in, with the session cookie.\nThe `challenge_id` from the claim URL that `createProjectClaim` (`POST /projects/{project_id}/claim/init`) returns is the\nrequest's single-use, browser-safe authorization.\n\nClaims are first-claim-wins and spend the challenge. If a team already\nclaimed the project, the request answers `409`. If the challenge lapsed\n(`410` with `proj.claim_expired`), call `createProjectClaim` again for a fresh one.\n","tags":["Projects"],"parameters":[{"$ref":"#/components/parameters/project-id-path"}],"security":[{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/complete-claim-request"}}}},"responses":{"200":{"description":"The claimed project and its owning team.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/complete-claim-response"}}}},"400":{"description":"Invalid request body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid session token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-unauthorized"}}}},"403":{"description":"The session user has no active personal team in the platform project,\nthe project developers sign in to when they claim. So there is no team\nto attach the claimed project to. Two codes carry this.\n`claim.no_personal_team` means no membership at all. It clears itself,\nbecause the next sign-in provisions a team.\n`claim.personal_team_not_active` means the membership exists but is not\nactive, so provisioning will not clear it. What will depends on\n`membership_status` in the details. The details object is otherwise\nuntyped, so the values to expect are listed here.\n\n  * `removed` — the membership was withdrawn, by deactivating either the\n    team or the user. A user deactivation cascades to that user's\n    memberships without touching their teams, so the team may well still\n    be active: what unblocks the claim is restoring the user's access,\n    not necessarily the team.\n  * `inactive` — the membership is suspended.\n  * `pending` — an invitation the user has not accepted yet.\n\n`auth.csrf_invalid` is the third code: the request came from another\nsite, or did not carry the session's `X-Zitadel-CSRF` token (see the\n`sessionCookie` scheme). It is refused before the claim is looked at.\nSend the token with the request.\n","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/claim-no_personal_team"},{"$ref":"#/components/schemas/claim-personal_team_not_active"},{"$ref":"#/components/schemas/auth-csrf_invalid"}],"discriminator":{"propertyName":"code","mapping":{"claim.no_personal_team":"#/components/schemas/claim-no_personal_team","claim.personal_team_not_active":"#/components/schemas/claim-personal_team_not_active","auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid"}}}}}},"404":{"description":"Challenge not found. Use the `challenge_id` from the claim URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"A team already claimed the project, so this challenge cannot be spent\nagain: claims are single-use and first-claim-wins.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/already-claimed-response"}}}},"410":{"description":"Gone, for one of two reasons told apart by `code`.\n`proj.claim_expired` means this challenge lapsed and a fresh claim\ninit recovers. `proj.claim_window_expired` means the project itself is\npast its 14-day claim window; that refusal is final and no new\nchallenge can help.\n","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/proj-claim_expired"},{"$ref":"#/components/schemas/proj-claim_window_expired"}],"discriminator":{"propertyName":"code","mapping":{"proj.claim_expired":"#/components/schemas/proj-claim_expired","proj.claim_window_expired":"#/components/schemas/proj-claim_window_expired"}}}}}},"429":{"description":"Too many requests. Completion is rate-limited so a guessed\n`challenge_id` cannot be brute-forced. Wait and retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/completeProjectClaim-error-response"}}}},"/projects/{project_id}/claim/window":{"get":{"operationId":"getProjectClaimWindow","summary":"Get the claim window for a project","description":"Returns when a project's claim window closes and whether it has already\nclosed.\n\nThe claim window is the 14 days after a project is created during which a\nteam can [claim it](https://preview.zitadel.com/docs/concepts/project-team-user#claim). The claim page\nin the browser calls this operation to show how long is left.\n\nThe request needs no credential, because the claim page calls it before the\ndeveloper has signed in. Holding the `challenge_id` from the claim URL that\n`createProjectClaim` (`POST /projects/{project_id}/claim/init`) returns is the authorization, the same one `completeProjectClaim` (`POST /projects/{project_id}/claim/complete`)\naccepts. The response reveals only the window, never the project itself.\nUnlike `completeProjectClaim` it spends nothing, so reloading the page is safe.\n","tags":["Projects"],"parameters":[{"$ref":"#/components/parameters/project-id-path"},{"$ref":"#/components/parameters/challenge-id-query"}],"security":[],"responses":{"200":{"description":"The project's claim window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/claim-window-response"}}}},"404":{"description":"No such project, or the challenge does not belong to it. One response\nfor both: a caller without a valid challenge learns nothing about\nwhether the project exists.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"429":{"description":"Too many requests. Wait and retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getProjectClaimWindow-error-response"}}}},"/projects/{project_id}/origins":{"post":{"operationId":"addProjectOrigin","x-zitadel-cli":"origin add","summary":"Add an origin pattern","description":"Adds an origin pattern, a `pattern` and its `kind`, to the project's origins.\n\nAn origin pattern says which web origins the project accepts. A `primary`\npattern must be an exact URL with no wildcard. A `preview` pattern may\ninclude a single DNS-label wildcard.\n\nWhile the project has no patterns, it admits no origin except a loopback\norigin, so the first pattern you add opens it to the origins that\npattern matches. Admitting an origin is not serving it: a new `primary`\norigin answers `rel.not_deployed` until the next deploy to primary\n(`zitadel deploy`).\n\nAdding a pattern that already exists with the same kind is idempotent and\nanswers `201` with the stored origin. If the pattern exists with the other\nkind, the request is refused with `origin.kind_conflict`: remove it with\n`removeProjectOrigin` (`POST /projects/{project_id}/origins/remove`), then add it again.\n","tags":["Projects"],"parameters":[{"$ref":"#/components/parameters/project-id-path"}],"security":[{"oauth2":["origin.write"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/project-origin"}}}},"responses":{"201":{"description":"The stored origin pattern.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/add-origin-response"}}}},"default":{"$ref":"#/components/responses/addProjectOrigin-error-response"}}}},"/projects/{project_id}/origins/remove":{"post":{"operationId":"removeProjectOrigin","x-zitadel-cli":"origin rm","x-zitadel-destructive":true,"summary":"Remove an origin pattern","description":"Removes one origin pattern from the project's origins.\n\nRequests from URLs only that pattern admitted are refused from then on.\nLive previews and deployment history are untouched. Removing the last\npattern leaves an empty list, which admits no origin except a loopback\norigin.\nRemoving a pattern that is already absent is idempotent and answers `204`.\n\nThe body's `pattern` is a pattern `addProjectOrigin` (`POST /projects/{project_id}/origins`) stored.\n","tags":["Projects"],"parameters":[{"$ref":"#/components/parameters/project-id-path"}],"security":[{"oauth2":["origin.delete"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["pattern"],"properties":{"pattern":{"type":"string","description":"The origin pattern exactly as stored on the project: the string\nthat `createProject` (`POST /projects`), `getProject` (`GET /projects/{project_id}`) or `addProjectOrigin` (`POST /projects/{project_id}/origins`) returns.\n","example":"https://app.example.com"}}}}}},"responses":{"204":{"description":"The pattern was removed."},"default":{"$ref":"#/components/responses/removeProjectOrigin-error-response"}}}},"/projects/{project_id}/previews":{"get":{"operationId":"listProjectPreviews","x-zitadel-cli":"preview list","summary":"List a project's previews","description":"Lists the project's live previews, newest first by `created_at`.\n\nA preview is a URL with a deployment on it, served until it expires.\nAn expired or removed preview is not listed. What was deployed to it stays\nin `GET /deployments`.\n","tags":["Previews"],"parameters":[{"$ref":"#/components/parameters/project-id-path"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"}],"security":[{"oauth2":["deployment.read"]}],"responses":{"200":{"description":"A page of the project's live previews.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-previews-response"},"examples":{"previews":{"summary":"Two previews of one branch","description":"One preview deploy wrote both, so they share an expiry.\n","value":{"previews":[{"origin":"https://acme-git-sso-acmeinc.vercel.app","expires_at":"2026-10-09T14:10:00Z","created_at":"2026-10-02T14:10:00Z"},{"origin":"https://acme-k3x9v2-acmeinc.vercel.app","expires_at":"2026-10-09T14:10:00Z","created_at":"2026-10-02T14:10:00Z"}],"next_page_token":null}}}}}},"default":{"$ref":"#/components/responses/listProjectPreviews-error-response"}}}},"/projects/{project_id}/previews/remove":{"post":{"operationId":"removeProjectPreview","x-zitadel-cli":"preview rm","x-zitadel-destructive":true,"summary":"Remove a preview","description":"Ends a preview before it expires: the URL stops being served at once.\n\nThe deployments to it stay in the history. The call is idempotent.\nA URL with no live preview answers `204` too. That includes one that\nexpired or was removed before, so a cleanup that races the expiry still\nsucceeds.\n\nThe URL travels in the body rather than the path because an origin\ncontains `/`. Take it from `listProjectPreviews` (`GET /projects/{project_id}/previews`).\n","tags":["Previews"],"parameters":[{"$ref":"#/components/parameters/project-id-path"}],"security":[{"oauth2":["deployment.write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/remove-preview-request"},"examples":{"remove":{"summary":"Remove a branch preview","value":{"origin":"https://acme-git-sso-acmeinc.vercel.app"}}}}}},"responses":{"204":{"description":"The URL has no live preview."},"default":{"$ref":"#/components/responses/removeProjectPreview-error-response"}}}},"/sessions":{"post":{"operationId":"createSession","x-zitadel-plane":"app","x-zitadel-returns-secret":true,"summary":"Create an anonymous session","description":"Creates an anonymous session with no user and no factors (`state: building`).\n\nA session is the durable record of a signed-in user. This call is optional: an\nauthentication attempt creates a session implicitly if none is provided.\nCreate one explicitly when you want to:\n\n- Pre-allocate a `session_id` before the user is known, so device and telemetry signals\n  can be correlated with the eventual authenticated session from the start.\n- Track anonymous state (bot detection, device fingerprint) that survives until authentication.\n\nThe session belongs to the project of the project secret. A `project_id` that\nnames another project answers `403` with `proj.mismatch` and creates nothing:\nsend the credential's own project.\n\nCreating a session runs on the project credential (`session.write`). The returned\n`session_token` is a session credential for the end-user client, not a\nmanagement scope. It is delivered as the `__Host-zitadel_session` cookie\n(`zitadel_session` over plain http to a loopback host) and authorises the\nself-service operations `GET /sessions/me` and `DELETE /sessions/me`\n(`sessionCookie` scheme). The by-id operations `GET /sessions/{session_id}`\nand `DELETE /sessions/{session_id}` are operator endpoints and require\n`session.read` / `session.delete` instead.\n\nThe `session_token` is superseded when a handoff exchange completes. Clients\nmust replace it at that point.\n\nAnonymous sessions expire after 10 minutes. The lifetime resets to the\nconfigured full session lifetime when a completing authentication attempt\nwrites the first authentication factor.\n","tags":["Sessions"],"security":[{"oauth2":["session.write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-session-request"}}}},"responses":{"201":{"description":"The anonymous session and its `session_token`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/session-with-token-response"}}},"headers":{"Set-Cookie":{"$ref":"#/components/headers/set-cookie-session-token"}}},"400":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/createSession-error-response"}}}},"/sessions/query":{"post":{"operationId":"querySessions","x-zitadel-cli":"session list","x-zitadel-read-only":true,"summary":"Query sessions","description":"Returns a page of a project's sessions.\n\nSessions of every lifecycle state are returned; each carries its `state`.\nRequires the `session.read` scope and the admin role on the project: each\nsession records the IP and user agent its user signed in from, so a viewer\nor an editor is refused.\n","tags":["Sessions"],"security":[{"oauth2":["session.read"]}],"parameters":[{"$ref":"#/components/parameters/project-id"}],"requestBody":{"description":"Request to query the sessions of a project.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-sessions-request"}}}},"responses":{"200":{"description":"A page of the project's sessions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-sessions-response"}}}},"400":{"description":"Invalid request, for example invalid query parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/querySessions-error-response"}}}},"/sessions/exchange":{"post":{"operationId":"exchangeHandoff","x-zitadel-plane":"app","x-zitadel-returns-secret":true,"summary":"Exchange a handoff token for a session","description":"Exchanges a handoff token for a session and a `session_token`.\n\nA handoff token is the short-lived, single-use credential that\n`createAuthAttemptHandoff` (`POST /auth_attempts/{attempt_id}/handoff`) returns as `handoff_token` once an authentication attempt is\ncomplete. This call consumes it. It is the last step of the sign-in sequence:\ncreate the attempt, issue a challenge, verify the proof, create the handoff,\nexchange it.\n\nThe server resolves the originating authentication attempt from the token and then:\n\n| Originating authentication attempt | Outcome |\n|---|---|\n| No `session_id` | A new authenticated session is **created**. |\n| `session_id` points to an anonymous session | Existing session is **upgraded**: user and factors written in, lifetime reset to the full session lifetime. |\n| `session_id` points to an active session (step-up) | Existing session is **upgraded**: new factors merged, `assurance_levels[]` expanded. |\n\nThe response shape is identical in all three cases.\n\nThe `session_token` supersedes any previously issued `session_token` for the\nsame session. Clients must replace their stored token at this point.\n\nRequires a project service key (OAuth2 client credentials). The project comes\nfrom the project secret. A query `project_id` that disagrees answers `403`\nwith `proj.mismatch`.\n\nThe exchange resolves a deployment the same way as other runtime operations.\nA deployment makes a release live, and a release is the configuration that\n`zitadel deploy` publishes. With no browser `Origin` and\nnothing deployed to the resolved target, the response is `409` with\n`rel.not_deployed`: run `zitadel deploy`, then retry. A revoked release\nanswers `409` with `rel.revoked`.\n","tags":["Sessions"],"security":[{"oauth2":["session.write"]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/idempotency-key","description":"Optional retry key. The server accepts it but does not use it: a\nhandoff token exchanges once, and a retry with the same key answers\n`400 sess.invalid_handoff_token`.\n"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/exchange-request"}}}},"responses":{"200":{"description":"The session and its new `session_token`.","headers":{"Set-Cookie":{"$ref":"#/components/headers/set-cookie-session-token"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/session-with-token-response"}}}},"400":{"description":"Invalid request. A handoff token that is unknown, already exchanged, or\nexpired is refused with `sess.invalid_handoff_token`. The response does\nnot say which, and in each case the caller starts a new sign-in.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid project credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"The `project_id` does not match the project the credential belongs to\n(`proj.mismatch`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"},"examples":{"mismatch":{"summary":"project_id disagrees with the credential","value":{"code":"proj.mismatch","message":"the project named in the request is not the one the credential belongs to"}}}}}},"409":{"description":"Nothing is deployed to the resolved target (`rel.not_deployed`), or the\nrelease of that deployment is revoked (`rel.revoked`). For\n`rel.not_deployed`, run `zitadel deploy` and retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"},"examples":{"not_deployed":{"summary":"No deployment for the resolved target","value":{"code":"rel.not_deployed","message":"nothing is deployed to this origin"}},"revoked":{"summary":"The release is revoked","value":{"code":"rel.revoked","message":"the release this attempt runs on was revoked"}}}}}},"default":{"$ref":"#/components/responses/exchangeHandoff-error-response"}}}},"/sessions/{session_id}":{"get":{"operationId":"getSession","x-zitadel-cli":"session get","summary":"Get a session by ID","description":"Returns the current state of a session, including its factors and all currently satisfied assurance levels.\n\nAn assurance level is a profile, such as `urn:nist:aal:2`, that the\nsession's verified factors satisfy. `assurance_levels[]` may shrink over time\nas factor freshness windows expire, without the session itself expiring.\nTo restore a dropped level, use step-up authentication: create an\nauthentication attempt with the same `session_id`.\n\nA session is read by its own user, by an admin of its project and by the\ndeployment's operators. A viewer or an editor of the project is refused.\n","tags":["Sessions"],"parameters":[{"$ref":"#/components/parameters/session-id"}],"security":[{"oauth2":["session.read"]}],"responses":{"200":{"description":"The session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/session-response"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Session not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getSession-error-response"}}},"delete":{"operationId":"revokeSession","x-zitadel-cli":"session revoke","summary":"Revoke a session","description":"Revokes a session by deleting it, immediately and for good. A later\n`getSession` (`GET /sessions/{session_id}`) for it answers `404`.\n\nIt requires the `session.delete` scope, and is allowed to the session's own\nuser, to an admin of its project and to the deployment's operators.\nEnd-user sign-out with the session cookie is `DELETE /sessions/me`\n(`sessionCookie` scheme).\n\nIdempotent: revoking a session that does not exist, or was already revoked,\nstill returns `204`. After revocation, any tokens derived from the session are\ninvalidated.\n","tags":["Sessions"],"parameters":[{"$ref":"#/components/parameters/session-id"}],"security":[{"oauth2":["session.delete"]}],"responses":{"204":{"description":"The session was revoked. Also returned when the session was already absent."},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/revokeSession-error-response"}}}},"/sessions/me":{"get":{"operationId":"getMySession","x-zitadel-self":true,"summary":"Get my session","description":"Returns the current state of the caller's session, including its factors and all currently satisfied assurance levels.\n\nWith `project_id`, the session is returned only when it belongs to that project.\n\nAn assurance level is a profile, such as `urn:nist:aal:2`, that the\nsession's verified factors satisfy. `assurance_levels[]` may shrink over time\nas factor freshness windows expire, without the session itself expiring.\nTo restore a dropped level, use step-up authentication: create an\nauthentication attempt with the same `session_id`.\n","tags":["Sessions"],"parameters":[{"$ref":"#/components/parameters/session-project-id"}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"The session.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/session-response"}}}},"401":{"description":"Missing or invalid session token.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-unauthorized"}}}},"403":{"description":"The session belongs to a different project than `project_id`.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/sess-project_mismatch"}}}},"404":{"description":"Session not found.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/sess-not_found"}}}},"default":{"$ref":"#/components/responses/getMySession-error-response"}}},"delete":{"operationId":"revokeMySession","x-zitadel-self":true,"summary":"Revoke my session","description":"Revokes the caller's own session by deleting it, which signs the user out.\n\nThe request needs the session cookie issued at creation (or superseded by a\nhandoff exchange). It also needs the session's CSRF token from\n`GET /sessions/me/csrf` in the `X-Zitadel-CSRF` header. Idempotent: if the session is already gone,\nthis still returns `204`. Any tokens derived from the session are\ninvalidated, and the response clears the cookie.\n\nWith `project_id`, only a session of that project is revoked. A session of\nanother project is left alone, and so is its cookie.\n","tags":["Sessions"],"parameters":[{"$ref":"#/components/parameters/session-project-id"}],"security":[{"sessionCookie":[]}],"responses":{"204":{"description":"The session was revoked and the cookie cleared. Also returned when the session was already absent.","headers":{"Set-Cookie":{"$ref":"#/components/headers/set-cookie-session-token"}}},"401":{"description":"Missing or invalid session token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-unauthorized"}}}},"403":{"description":"`sess.project_mismatch`: the session belongs to a different project than\n`project_id`. It is not revoked, and its cookie is not cleared.\n\n`auth.csrf_invalid`: the request came from another site, or did not carry\nthe session's `X-Zitadel-CSRF` token (see the `sessionCookie` scheme).\nIt is refused before the session is looked at. Fetch the token from\n`GET /sessions/me/csrf` and send it.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/revokeMySession-error-response"}}}},"/sessions/me/csrf":{"get":{"operationId":"getMySessionCsrfToken","x-zitadel-self":true,"summary":"Get my session's CSRF token","description":"Returns the session-bound token that protects against cross-site request\nforgery (CSRF). Browser code sends it in the `X-Zitadel-CSRF` header on the\nstate-changing requests that the session cookie authenticates and that\nrequire it; see the `sessionCookie` scheme. It authorizes nothing on its\nown: the HttpOnly cookie is still the credential, and a cross-site page\ncannot read this response. It stays the same for the life of the session,\nso a client fetches it once per session.\n\nWith `project_id`, the token is returned only when the session belongs to\nthat project.\n","tags":["Sessions"],"parameters":[{"$ref":"#/components/parameters/session-project-id"}],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"The session's CSRF token.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/csrf-token-response"}}}},"401":{"description":"Missing or invalid session token.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-unauthorized"}}}},"403":{"description":"The session belongs to a different project than `project_id`.","headers":{"Cache-Control":{"$ref":"#/components/headers/cache-control-private-no-store"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/sess-project_mismatch"}}}},"default":{"$ref":"#/components/responses/getMySessionCsrfToken-error-response"}}}},"/schemas":{"post":{"operationId":"publishSchema","summary":"Publish a schema","description":"Publishes a user schema, the JSON Schema that says which attributes a user\nhas and which attribute identifies the user.\n\nThe request is either a user schema (`kind: user-schema`) or a schema URL\n(`kind: schema-url`) that the server resolves. The response is the stored\nschema, as `getSchema` (`GET /schemas/{schema_id}`) returns it; its `id` is\nwhat `createUser` (`POST /users`) takes as `schema`.\n\nThe optional `$id` is the JSON Schema document URI that identifies the\nschema in later requests. It is a stable identity for GitOps, not a\nfree-form resource key. When `$id` is omitted, the server generates a\n`sch_*` URL. When provided, `$id` must be unique within the project and\nshould ideally be a valid URI pointing at where the schema can be accessed.\nA `$id` that already exists in the project is refused; pick another or\nomit it.\n","tags":["Schemas"],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/team-id"}],"security":[{"oauth2":["schema.write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/user-schema"},{"$ref":"#/components/schemas/schema-url"}],"discriminator":{"propertyName":"kind","mapping":{"user-schema":"#/components/schemas/user-schema","schema-url":"#/components/schemas/schema-url"}}},"examples":{"userSchema":{"summary":"An example of a schema definition for a user.","value":{"title":"ExampleUserSchema","$schema":"https://json-schema.org/draft/2020-12/schema","metaSchema":"https://auth.acme.com/user-schema.json","kind":"user-schema","type":"object","description":"This is an example of a user schema definition.","objectType":"human-user","x-auth-methods":{"password":{"enabled":false},"passkey":{"enabled":true}},"required":["email","password"],"properties":{"email":{"type":"string","format":"email","description":"The user's email address."},"password":{"type":"string","minLength":8,"description":"The user's password, which must be at least 8 characters long."},"firstName":{"type":"string","description":"The user's first name."},"lastName":{"type":"string","description":"The user's last name."},"address":{"type":"object","description":"The user's address information.","properties":{"street":{"type":"string","description":"The street address."},"houseNumber":{"type":"string","description":"The house number of the address."},"city":{"type":"string","description":"The city of the address."},"postalCode":{"type":"string","description":"The postal code of the address."},"country":{"type":"string","description":"The country of the address."}}}}}},"schemaURL":{"summary":"An example of a schema definition that references an external\nschema URL.\n","value":{"title":"ExampleSchemaUrl","$schema":"https://raw.githubusercontent.com/zitadel/nextgen/refs/heads/main/apps/api/api/openapi/endpoints/schemas/schema-url.yaml","kind":"schema-url","url":"https://example.com/schemas/user-schema.json"}},"defaultHumanUserSchema":{"summary":"The default human user schema provided by the server.","value":{"title":"DefaultHumanUserSchema","$schema":"https://json-schema.org/draft/2020-12/schema","metaSchema":"${SERVER_URL}/user-schema.json","$id":"${USER_SCHEMA_URL}","objectType":"human-user","kind":"user-schema","type":"object","x-identifier":"email","x-display":["givenName","familyName"],"description":"The default editable schema for human users.","x-auth-methods":{"password":{"enabled":true},"passkey":{"enabled":true}},"required":["email"],"properties":{"email":{"type":"string","format":"email","x-unique":"project","description":"The user's email address."},"givenName":{"type":"string","maxLength":50,"description":"The user's given (first) name."},"familyName":{"type":"string","maxLength":50,"description":"The user's family (last) name."},"dateOfBirth":{"type":"string","format":"date","description":"The user's date of birth (ISO 8601, YYYY-MM-DD)."}}}}}}}},"responses":{"201":{"description":"The published schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/schema"},"examples":{"userSchemaResponse":{"summary":"An example of the response to publishing a user schema.\n","value":{"id":"sch_01H455VB4213EF62K49QF6M73F","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","kind":"user-schema","type":"object","description":"This is an example of a user schema definition.","objectType":"human-user","x-auth-methods":{"password":{"enabled":false},"passkey":{"enabled":true}},"required":["email"],"properties":{"email":{"type":"string","format":"email","description":"The user's email address."}}},"metadata":{"created_at":"2026-07-14T09:11:00Z"}}}}}}},"default":{"$ref":"#/components/responses/publishSchema-error-response"}}},"get":{"operationId":"listSchemas","x-zitadel-cli":"schema list","summary":"List schemas","description":"Lists the schemas of a project, newest first, paginated with a cursor.\nFilter by `object_type` or `kind`, and choose which revisions to return\nwith `revisions`.\n\nA schema's `id` is what `createUser` (`POST /users`) takes as `schema`.\n","tags":["Schemas"],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"},{"name":"object_type","in":"query","description":"The type of object of the schema to filter by.","schema":{"type":"string","maxLength":256}},{"name":"revisions","in":"query","description":"Which revisions to return. Schemas are immutable and versioned by URL,\nso editing one creates a new revision that shares its `objectType`.\n\n`all` (the default) returns every revision: the full history an export,\nan audit or a GitOps diff needs. `latest` returns the newest revision of\neach `objectType`, which is one entry per schema.\n\nA schema stored without an `objectType` is a revision of nothing, and\nis returned by both.\n\nA `page_token` is bound to the mode it was issued in and is rejected by\nthe other.\n","schema":{"type":"string","default":"all","enum":["all","latest"]}},{"name":"kind","in":"query","description":"The kind of schema to filter by, read from the stored document's\n`kind` property.\n\n`schema-url` is not a kind: it discriminates the create request body,\nnot a stored schema. A schema registered by URL is stored as whatever\ndocument the URL served, and declares its own kind.\n\nA schema stored without its document being parsed has no kind that\ncould be read, and is excluded from every filtered result.\n","schema":{"type":"string","enum":["user-schema"]}},{"name":"expand","in":"query","required":false,"description":"Extra fields to add onto each returned schema.","style":"form","explode":true,"schema":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/schema-expand"}}}],"security":[{"oauth2":["schema.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"A page of schemas.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-schemas-response"}}}},"default":{"$ref":"#/components/responses/listSchemas-error-response"}}}},"/schemas/{schema_id}":{"get":{"operationId":"getSchema","x-zitadel-cli":"schema get","summary":"Get a schema by ID","description":"Returns a schema by ID. A schema ID identifies one immutable revision, so\nthis returns exactly that revision. To find the current revision of an\nobject type, call `listSchemas` (`GET /schemas`) with `revisions=latest`.\n\nSchema IDs are unique within a project, not across projects (the seeded\ndefault schema carries the same `$id` in every project). A console\nsession that manages more than one project names the project with\n`project_id`; without it, the ID is resolved in the credential's own\nproject when it is ambiguous. A project secret always resolves in its\nown project and ignores `project_id`.\n","tags":["Schemas"],"security":[{"oauth2":["schema.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/schema-id"},{"$ref":"#/components/parameters/team-id"},{"$ref":"#/components/parameters/project-id-query"}],"responses":{"200":{"description":"The schema.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/schema"}}}},"default":{"$ref":"#/components/responses/getSchema-error-response"}}}},"/flow_definitions":{"post":{"operationId":"publishFlowDefinition","summary":"Publish a flow definition","description":"Publishes a new revision of a flow definition, creating the flow definition\non its first publish. It records a `flowdef.created` event.\n\nA [flow definition](https://preview.zitadel.com/docs/concepts/flows-and-schemas) is a template that\ndefines the sequence of steps (capabilities) for one user journey, such as\nregistration, login or password reset. The body follows the flow\ndefinition schema, which includes the flow's purpose, audience and steps.\n\nEvery call allocates a new opaque ID. That `id` is the `revision_id` a\nrelease pins for `kind: flow_definition`.\n\nRevisions of one flow share its `name`. Posting a definition under an\nexisting `name` publishes a new revision of that flow, which is not a\nconflict. List with `name` to see a flow's revisions, newest by creation\ntime first.\n","tags":["Flow Definitions"],"security":[{"oauth2":["flow_definition.write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-flow-definition-request"},"examples":{"defaultLoginFlow":{"summary":"The default login flow provided by the server.","value":{"project_id":"${PROJECT_ID}","schema_uri":"https://zitadel.com/schemas/v1/flow-definition.json","flow_definition":{"name":"default-login","user_schema":"human-user","purposes":{"login":"identifier","register":"register"},"steps":[{"name":"identifier","fields":["email"],"actions":[{"name":"submit","kind":"submit","primary":true,"text_key":"identifier.action.continue"},{"name":"passkey","kind":"passkey","primary":false,"text_key":"identifier.action.passkey"}],"transitions":{"submit":{"target":"password"},"passkey":{"target":"done"},"user_not_found":{"target":"register"}}},{"name":"password","fields":["x-auth-methods#password"],"actions":[{"name":"submit","kind":"submit","primary":true,"text_key":"password.action.signin"},{"name":"passkey","kind":"passkey","primary":false,"text_key":"password.action.passkey"}],"transitions":{"submit":{"target":"done"},"passkey":{"target":"done"}}},{"name":"register","fields":["email","givenName","familyName","dateOfBirth"],"actions":[{"name":"submit","kind":"submit","primary":true,"text_key":"register.action.password"},{"name":"passkey_register","kind":"passkey_register","primary":false,"text_key":"register.action.passkey"}],"transitions":{"submit":{"target":"register-password"},"passkey_register":{"target":"done"},"user_already_exists":{"target":"password"}}},{"name":"register-password","fields":["x-auth-methods#password"],"actions":[{"name":"submit","kind":"submit","primary":true,"text_key":"register-password.action.submit"}],"on_success":"create_user","transitions":{"submit":{"target":"done"},"user_already_exists":{"target":"password"}}},{"name":"done","complete":"show"}]}}},"passwordLogin":{"summary":"Minimal login — identifier then password.","value":{"project_id":"${PROJECT_ID}","schema_uri":"https://zitadel.com/schemas/v1/flow-definition.json","flow_definition":{"name":"password-login","user_schema":"human-user","purposes":{"login":"identifier"},"steps":[{"name":"identifier","fields":["email"],"actions":[{"name":"submit","kind":"submit","primary":true}],"transitions":{"submit":{"target":"password"}}},{"name":"password","fields":["x-auth-methods#password"],"actions":[{"name":"submit","kind":"submit","primary":true}],"transitions":{"submit":{"target":"done"}}},{"name":"done","complete":"show"}]}}},"passwordRegister":{"summary":"Single-step password signup with on_success create_user.","value":{"project_id":"${PROJECT_ID}","schema_uri":"https://zitadel.com/schemas/v1/flow-definition.json","flow_definition":{"name":"password-register","user_schema":"human-user","purposes":{"register":"signup"},"steps":[{"name":"signup","fields":["email","x-auth-methods#password"],"actions":[{"name":"submit","kind":"submit","primary":true}],"on_success":"create_user","transitions":{"submit":{"target":"done"}}},{"name":"done","complete":"show"}]}}},"passkeyLogin":{"summary":"Discoverable passkey login — no identifier collected up front.","value":{"project_id":"${PROJECT_ID}","schema_uri":"https://zitadel.com/schemas/v1/flow-definition.json","flow_definition":{"name":"passkey-login","user_schema":"human-user","purposes":{"login":"signin"},"steps":[{"name":"signin","fields":["email"],"actions":[{"name":"passkey","kind":"passkey","primary":true}],"transitions":{"passkey":{"target":"done"}}},{"name":"done","complete":"show"}]}}},"passkeyRegister":{"summary":"Identifier-first passkey signup; provisional user finalized in the verify leg.","value":{"project_id":"${PROJECT_ID}","schema_uri":"https://zitadel.com/schemas/v1/flow-definition.json","flow_definition":{"name":"passkey-register","user_schema":"human-user","purposes":{"register":"signup"},"steps":[{"name":"signup","fields":["email"],"actions":[{"name":"passkey_register","kind":"passkey_register","primary":true}],"transitions":{"passkey_register":{"target":"done"}}},{"name":"done","complete":"show"}]}}},"combinedPasswordLoginRegister":{"summary":"Combined login + register with user_not_found and user_already_exists wired between sub-flows.","value":{"project_id":"${PROJECT_ID}","schema_uri":"https://zitadel.com/schemas/v1/flow-definition.json","flow_definition":{"name":"combined-password","user_schema":"human-user","purposes":{"login":"identifier","register":"register-identifier"},"steps":[{"name":"identifier","fields":["email"],"actions":[{"name":"submit","kind":"submit","primary":true},{"name":"register","kind":"submit"}],"transitions":{"submit":{"target":"password"},"register":{"target":"register-identifier"},"user_not_found":{"target":"register-identifier"}}},{"name":"password","fields":["x-auth-methods#password"],"actions":[{"name":"submit","kind":"submit","primary":true}],"transitions":{"submit":{"target":"done"}}},{"name":"register-identifier","fields":["email","name","phoneNumber"],"actions":[{"name":"submit","kind":"submit","primary":true},{"name":"login","kind":"submit"}],"transitions":{"submit":{"target":"register-password"},"login":{"target":"identifier"},"user_already_exists":{"target":"password"}}},{"name":"register-password","fields":["x-auth-methods#password"],"actions":[{"name":"submit","kind":"submit","primary":true}],"on_success":"create_user","transitions":{"submit":{"target":"done"}}},{"name":"done","complete":"show"}]}}},"combinedPasswordPasskey":{"summary":"Combined login + register with password, passkey, and post-signup passkey upsell; terminal redirect.","value":{"project_id":"${PROJECT_ID}","schema_uri":"https://zitadel.com/schemas/v1/flow-definition.json","flow_definition":{"name":"combined-password-passkey","user_schema":"human-user","purposes":{"login":"identifier","register":"register"},"steps":[{"name":"identifier","fields":["email"],"actions":[{"name":"submit","kind":"submit","primary":true},{"name":"passkey","kind":"passkey"},{"name":"register","kind":"submit"}],"transitions":{"submit":{"target":"password"},"passkey":{"target":"done"},"register":{"target":"register"},"user_not_found":{"target":"register"}}},{"name":"password","fields":["x-auth-methods#password"],"actions":[{"name":"submit","kind":"submit","primary":true},{"name":"passkey","kind":"passkey"}],"transitions":{"submit":{"target":"done"},"passkey":{"target":"done"}}},{"name":"register","fields":["email","name"],"actions":[{"name":"submit","kind":"submit","primary":true},{"name":"passkey_register","kind":"passkey_register"},{"name":"login","kind":"submit"}],"transitions":{"submit":{"target":"register-password"},"passkey_register":{"target":"done"},"login":{"target":"identifier"},"user_already_exists":{"target":"password"}}},{"name":"register-password","fields":["x-auth-methods#password","phoneNumber"],"actions":[{"name":"submit","kind":"submit","primary":true}],"on_success":"create_user","transitions":{"submit":{"target":"passkey-upsell"}}},{"name":"passkey-upsell","actions":[{"name":"passkey_register","kind":"passkey_register","primary":true},{"name":"skip","kind":"submit"}],"transitions":{"passkey_register":{"target":"done"},"skip":{"target":"done"}}},{"name":"done","complete":"redirect"}]}}}}}}},"responses":{"201":{"description":"The created flow definition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/flow-definition-response"}}}},"400":{"description":"The request is invalid, for example because required fields are missing or a step configuration is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/publishFlowDefinition-error-response"}}},"get":{"operationId":"listFlowDefinitions","x-zitadel-cli":"flow-definition list","summary":"List flow definitions","description":"Lists the project's flow definitions with their configurations, newest by\ncreation time first. A flow definition sets which step of a sign-in\nrenders when, and which fields each step collects.\n\nThe `id` of an entry is the flow definition ID that `getFlowDefinition` (`GET /flow_definitions/{flow_definition_id}`)\ntakes. Filter by `name` to list the revisions of one flow.\n","tags":["Flow Definitions"],"security":[{"oauth2":["flow_definition.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"},{"$ref":"#/components/parameters/project-id"},{"name":"purpose","in":"query","required":false,"description":"Only flow definitions with this purpose, for example `login`.","schema":{"type":"string","enum":["login","register","recovery","profiling","reauth","link_account"]}},{"name":"name","in":"query","required":false,"description":"The flow name to filter by. Every revision of a flow shares its\n`name`, so the result is that flow's revisions, newest by creation\ntime first.\n","schema":{"type":"string","pattern":"^[a-z][a-z0-9-]*$","x-zitadel-pattern-message":"must start with a lowercase letter and use only lowercase letters, digits and -"}},{"name":"revisions","in":"query","description":"Which revisions to return. Every revision of a flow shares its\n`name`, so publishing a definition under an existing `name` adds a new\nrevision.\n\n`all` (the default) returns every revision: the full history an\nexport, an audit or a GitOps diff needs. `latest` returns the newest\nrevision of each `name`, which is one entry per flow.\n\nA `page_token` is bound to the mode it was issued in and is rejected by\nthe other.\n","schema":{"type":"string","default":"all","enum":["all","latest"]}},{"name":"expand","in":"query","required":false,"description":"Related entities to embed on each returned flow definition.","schema":{"type":"array","items":{"$ref":"#/components/schemas/flow-definition-expand"}}}],"responses":{"200":{"description":"A page of flow definitions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/flow-definition-list-response"}}}},"400":{"description":"A query parameter or the page token is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listFlowDefinitions-error-response"}}}},"/flow_definitions/{flow_definition_id}":{"get":{"operationId":"getFlowDefinition","x-zitadel-cli":"flow-definition get","summary":"Get a flow definition by ID","description":"Returns one flow definition revision. Pass the `id` that\n`publishFlowDefinition` (`POST /flow_definitions`) or `listFlowDefinitions` (`GET /flow_definitions`) returns.\n","tags":["Flow Definitions"],"security":[{"oauth2":["flow_definition.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/flow-definition-id"}],"responses":{"200":{"description":"The flow definition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/flow-definition-response"}}}},"default":{"$ref":"#/components/responses/getFlowDefinition-error-response"}}}},"/teams":{"post":{"operationId":"createTeam","x-zitadel-cli":"team create","summary":"Create a team","description":"Creates a team in the project, with a name no other team in the project has.\n\nA team groups users inside a project and can represent a customer. A taken\nname is refused with `409 team.already_exists`: choose another name. The\nnew team has no members yet.\n","tags":["Teams"],"security":[{"oauth2":["team.write"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-team-request"}}}},"responses":{"201":{"description":"The created team.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/team-response"}}}},"400":{"description":"The provided parameters were not acceptable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Project not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"A team with the given name already exists in this project. Choose\nanother name.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"429":{"description":"Too many requests: the client sent too many in a given amount of time.\nWait and retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/createTeam-error-response"}}}},"/teams/query":{"post":{"operationId":"queryTeams","x-zitadel-cli":"team list","x-zitadel-read-only":true,"summary":"Query teams","description":"Returns a page of a project's teams.\n\nPass the response's `next_page_token` as `page_token` to fetch the next\npage. `project_id` names the project to list; without it, the credential's\nown project is listed.\n","tags":["Teams"],"security":[{"oauth2":["team.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id-query"}],"requestBody":{"description":"Request to query the teams of a project.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-teams-request"}}}},"responses":{"200":{"description":"A page of the project's teams.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-teams-response"}}}},"400":{"description":"Invalid request, for example invalid query parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Project not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"429":{"description":"Too many requests: the client sent too many in a given amount of time.\nWait and retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/queryTeams-error-response"}}}},"/teams/{team_id}":{"get":{"operationId":"getTeam","x-zitadel-cli":"team get","summary":"Get a team by ID","description":"Returns a team, a group of users inside a project, by ID.\n\nA deactivated team is still returned, with status `deactivated`.\n","tags":["Teams"],"parameters":[{"$ref":"#/components/parameters/team-id-path"}],"security":[{"oauth2":["team.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"The team.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/team-response"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Team not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getTeam-error-response"}}},"delete":{"operationId":"deactivateTeam","x-zitadel-cli":"team deactivate","summary":"Deactivate a team","description":"Deactivates a team and removes its memberships.\n\nThe team is kept rather than erased: `getTeam` (`GET /teams/{team_id}`) still returns it with\nstatus `deactivated`. The users whose lifecycle the team owns are\ndeactivated with it.\n\nThe request is idempotent. Deleting a team that is already deactivated\nor does not exist succeeds without changing anything.\n\nA team that still owns a project is refused with `409 team.owns_project`.\nDeactivating it would leave the project owned by a deactivated team and so\nunmanageable. No endpoint ends a team's ownership of a project yet, so for\nnow such a team cannot be deactivated through the API. A team whose\ndeactivation would deactivate the last active member of a team that owns\na project is refused with `409 proj.last_owner`, which names those\nprojects: add another member to that team first. On the deployment's\nplatform project, a team that owns the lifecycle of an active account is\ndeactivated only by an operator (`403 team.permission_denied`, reason\n`operators_only`).\n\nDeactivating a team ends the roles its members hold through it\n([ADR 094](https://github.com/zitadel/nextgen/blob/main/docs/adrs/094-project-permission-model.md) §7):\nfor a team of the deployment's platform project, the caller must hold, on\nevery project the team holds a grant on, at least the role it gives, or\nthe call answers `403 team.permission_denied` with\n`details.details.reason` `target_holds_more`.\n","tags":["Teams"],"parameters":[{"$ref":"#/components/parameters/team-id-path"}],"security":[{"oauth2":["team.delete"]}],"responses":{"204":{"description":"The team is deactivated."},"400":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions, or the credentials are not bound to the\nproject.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"The team still owns a project and cannot be deactivated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/deactivateTeam-error-response"}}},"patch":{"operationId":"updateTeam","x-zitadel-cli":"team update","summary":"Update a team","description":"Renames an active team.\n\nOnly active teams can be updated. A deactivated team answers `404`. The new\nname must be unique within the project, and a taken name answers `409`:\nchoose another name.\n","tags":["Teams"],"parameters":[{"$ref":"#/components/parameters/team-id-path"}],"security":[{"oauth2":["team.write"]},{"sessionCookie":[]}],"requestBody":{"description":"Update team request.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/update-team-request"}}}},"responses":{"200":{"description":"The updated team.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/team-response"}}}},"400":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Team not found or not active, or the project does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"A team with the same name already exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/updateTeam-error-response"}}}},"/teams/{team_id}/memberships":{"post":{"operationId":"createTeamMembership","summary":"Create a team membership","description":"Adds an existing user of the team's project to the team as an active member.\n\nThe caller needs the `admin` role on the team's project: a member of a team\nthat owns a project, or that holds a grant, gets that team's role.\n\nThe request is idempotent. Adding a user who is already an active member\nanswers `201` with the membership and changes nothing. Adding a user who\nwas removed makes the membership active again and keeps its `created_at`.\nEach change sends a `team.membership.updated` event.\n\nThe team must be active: a deactivated team answers `404 team.team_not_found`.\nA user who is not active is refused with `409 team.user_not_active`:\nreactivate the user first.\n\nA membership confers the team's roles\n([ADR 094](https://github.com/zitadel/nextgen/blob/main/docs/adrs/094-project-permission-model.md) §7).\nFor a team of the deployment's platform project, the caller must hold, on\nevery project the team owns or holds a grant on, at least the role it gives\n(owning a project gives admin), or the call answers `403` with\n`details.details.reason` `target_holds_more`; to a team that owns a\nproject, only one of its active members or an operator adds a member, not\nan admin of the team's own project (reason `owning_team_members_only`).\nThe one exception: on a deployment that names no operator, an admin of\nthe platform project adds a member to such a team that has no active\nmember ([ADR 054](https://github.com/zitadel/nextgen/blob/main/docs/adrs/054-customer-collaboration-grants.md) §8),\nand the request's events carry `metadata.authorization.path`\n`owning_team_recovery`. A team of any other project is that project's to\nmanage.\n","tags":["Teams"],"parameters":[{"$ref":"#/components/parameters/team-id-path"}],"security":[{"oauth2":["team_membership.create"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-team-membership-request"}}}},"responses":{"201":{"description":"The user is an active member of the team.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/team-membership"}}}},"400":{"description":"The provided input was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"The team is unknown or deactivated, or the user is unknown or belongs\nto another project.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"The user is not active.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/createTeamMembership-error-response"}}}},"/teams/{team_id}/memberships/{user_id}":{"delete":{"operationId":"deleteTeamMembership","summary":"Delete a team membership","description":"Removes a user from a team, and revokes the user's grants that are limited to that team.\n\nThe caller needs the `admin` role on the team's project. The user keeps\ntheir sessions and tokens, but they no longer carry the team's roles.\n\nThe request is idempotent. Removing a user who is not a member, or who was\nalready removed, answers `204` and changes nothing. A change sends a\n`team.membership.updated` event, and an `authz.revoked` event for each\nrevoked grant.\n\nRemoving the last active member of a team that owns a project is refused\nwith `409 proj.last_owner`, which names those projects: add another member\nto the team with `createTeamMembership` (`POST /teams/{team_id}/memberships`),\nthen try again.\n\nRemoving a member ends the roles the team gave them, so it is held to the\nrule of `createTeamMembership`\n([ADR 094](https://github.com/zitadel/nextgen/blob/main/docs/adrs/094-project-permission-model.md) §7):\nfor a team of the deployment's platform project, the caller must hold, on\nevery project the team owns or holds a grant on, at least the role it\ngives (reason `target_holds_more`), and from a team that owns a project\nonly one of its active members or an operator removes a member (reason\n`owning_team_members_only`), both answering `403 team.permission_denied`.\n","tags":["Teams"],"parameters":[{"$ref":"#/components/parameters/team-id-path"},{"$ref":"#/components/parameters/user-id"}],"security":[{"oauth2":["team_membership.delete"]},{"sessionCookie":[]}],"responses":{"204":{"description":"The user is not a member of the team."},"400":{"description":"The provided input was not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"The team is unknown, or the user is unknown or belongs to another project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"The user is the last active member of a team that owns a project.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/deleteTeamMembership-error-response"}}}},"/search":{"post":{"operationId":"search","x-zitadel-read-only":true,"x-zitadel-lists":"results","x-zitadel-agent-note":"Signed in as a person and without `project_id`, it reads only the 10 newest projects you can act on: `searched_project_ids` names those it read, `more_projects` says there are more, and `project_id` names another to search. A type in `incomplete_types` may have more matches than were returned.","summary":"Search resources","description":"Finds the resources of one project, or of the projects a person can act on, that match a text, across resource types.\n\n`query` is what the person typed and `types` names the kinds of result to\nlook for; only those are searched. Each result is a reference: its `type`,\nits `id`, its `project_id`, a `title` and sometimes a `subtitle`. Read the\nresource itself with the type's own operation, for example `getUser`\n(`GET /users/{user_id}`) or `getTeam` (`GET /teams/{team_id}`), in the\nresult's project.\n\nWhat a type matches on:\n- `user`: the start of the value they carry as `identifier` or of a part\n  of their `display` name, from three characters on\n- `team`: its name\n- `schema`: the `title` and the `objectType` of a user schema\n- `flow_definition`: its name\n- `idp`: the `slug` and the `display_name` of an identity provider\n  connection\n- `application`: the `slug` and the `name` of an application, at its\n  newest revision\n\nA user matches from the start of a value. Every other type matches from\nthe start of a name or of a word in it, so `staff` finds \"Partner Staff\"\nand `sso` finds `partner-sso`. Matching ignores case. A `query` that is the\n`id` of a resource of a requested type finds that one. A schema and a flow\ndefinition are found at their newest revision.\n\n`project_id` names the project to search. Without it, a project secret\nsearches its own project, and a console session searches the projects the\nperson can act on: the ones `listMyProjects` (`GET /users/me/projects`)\nlists, at most the newest 10 by when each was created (`order=desc`).\n`searched_project_ids` names the projects a search read, so an empty\nresult says where nothing was found. `more_projects` says the person can\nact on more than that; search one of the others by naming it. A caller\nwith access to part of a project finds only what that access covers.\n\nAuthenticate with the project secret (`oauth2`) or a console session cookie\n(`sessionCookie`). A preview secret is refused, as on every management\noperation. An access token issued for a person also needs the read scope\nof each type it names in `types`, the one that type's own list names:\n`user.read`, `team.read`, `schema.read`, `flow_definition.read`,\n`idp.read` or `application.read`. Without one the request answers `403`\n`auth.scope_insufficient` and names the scope.\n\nResults come best match first, at most `limit_per_type` of each type\nacross every searched project, and types can be mixed in the order.\n`incomplete_types` lists the types that have more to show: page those with\nthe type's own list, such as `queryUsers` (`POST /users/query`) or\n`queryTeams` (`POST /teams/query`).\n\nHow text is matched and ranked can change, and later versions can match\nmore of a resource. Treat the results as suggestions; to filter by an exact\nrule, use the type's own list.\n","tags":["Search"],"security":[{"oauth2":["project.write"]},{"sessionCookie":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"description":"The project to search, by the `id` that `createProject` (`POST /projects`)\nreturns. Omit it to search the credential's own project with a project\nsecret, or the projects the person can act on with a session.\n","schema":{"$ref":"#/components/schemas/project-id"},"example":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5"}],"requestBody":{"description":"The text to find and the types to look for.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/search-request"}}}},"responses":{"200":{"description":"The best matches of each requested type.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/search-response"}}}},"400":{"description":"Invalid request, for example no `types`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Project not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/search-error-response"}}}},"/branding":{"post":{"operationId":"publishBranding","summary":"Publish a branding revision","description":"Publishes a new immutable branding revision for the project, and records a\n`branding.created` event. Branding revisions cannot be updated or deleted.\nEvery edit publishes a new revision. Flow responses carry the branding\nrevision the request's release pins.\n\nThe `id` of the new revision is the revision ID a release pins for\n`kind: branding`.\n\nThe `liquid_template` is validated lexically on save (size, encoding,\nbanned patterns such as `<script>` tags, inline event handlers, and the\n`| raw` filter). Authoritative LiquidJS validation runs at authoring\ntime, in `zitadel deploy` and `zitadel deploy --dry-run`.\n","tags":["Branding"],"parameters":[{"$ref":"#/components/parameters/project-id"}],"security":[{"oauth2":["branding.write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/branding"}}}},"responses":{"201":{"description":"The created branding revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/branding-revision-response"}}}},"400":{"description":"The branding configuration is not valid. Fix what the error reports and publish again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/publishBranding-error-response"}}},"get":{"operationId":"listBranding","x-zitadel-cli":"branding list","summary":"List branding revisions","description":"Lists a project's branding revisions, newest first, paginated with a cursor.\nThe first entry of the first page is the newest revision.\n\nEvery publish adds a revision, so the list grows without bound. Pass\n`next_page_token` back as `page_token` to read the next page.\n\nThe `id` of an entry is the revision ID that `getBranding` (`GET /branding/{branding_id}`) takes and\nthat a release pins for `kind: branding`.\n","tags":["Branding"],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"}],"security":[{"oauth2":["branding.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"A page of the project's branding revisions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-branding-response"},"examples":{"firstPage":{"summary":"A page with more results behind it","value":{"branding":[{"id":"brnd_01KX3RG8A7F0N9WD3P2E4YM5C1","created_at":"2026-07-14T09:11:00Z"},{"id":"brnd_01KX2ZJ4B8C7F0N9WD3P2E4YM5","created_at":"2026-07-02T15:40:00Z"}],"next_page_token":"v1.dGhpcyBpcyBvcGFxdWU.SflKxwRJSMeKKF2QT4fw"}},"lastPage":{"summary":"The last page","value":{"branding":[{"id":"brnd_01KWH1P4MYS7F0N9WD3P2E4YM5","created_at":"2026-06-20T08:00:00Z"}]}}}}}},"default":{"$ref":"#/components/responses/listBranding-error-response"}}}},"/branding/{branding_id}":{"get":{"operationId":"getBranding","x-zitadel-cli":"branding get","summary":"Get a branding revision by ID","description":"Returns one branding revision, including its stored configuration. Pass the\n`id` that `publishBranding` (`POST /branding`) or `listBranding` (`GET /branding`) returns.\n","tags":["Branding"],"security":[{"oauth2":["branding.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/branding-id"}],"responses":{"200":{"description":"The branding revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/branding-revision-response"}}}},"404":{"description":"No branding revision was found with the given ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getBranding-error-response"}}}},"/oauth_settings/{oauth_settings_id}":{"get":{"operationId":"getOAuthSettings","summary":"Get an OAuth settings revision by ID","description":"Returns one OAuth settings revision, including its stored settings. Pass\nthe `revision_id` of the `kind: oauth` pointer on a release, which\n`buildRelease` (`POST /releases/build`) and `getRelease`\n(`GET /releases/{release_id}`) return.\n\nA release is the only writer of OAuth settings, so there is no operation\nthat publishes a revision on its own: put `oauth` in the bundle that\n`buildRelease` takes.\n","tags":["OAuth Settings"],"security":[{"oauth2":["oauth_settings.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/oauth-settings-id"}],"responses":{"200":{"description":"The OAuth settings revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/oauth-settings-revision-response"}}}},"404":{"description":"No OAuth settings revision was found with the given ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getOAuthSettings-error-response"}}}},"/idps":{"post":{"operationId":"publishIdp","x-zitadel-cli":"idp create","summary":"Publish an identity provider","description":"Creates or revises an identity provider, an external sign-in such as\nGoogle, from its connection document. If the slug does not already exist,\na new identity provider is created. If one with that slug already exists,\na revision is created.\n\nA revision gets a new `revision_id` and does not modify the identity\nprovider's `id`. Identity links, which tie a user to an account at the\nprovider, keep resolving. Releases and authentication attempts stay pinned\nto the revision they captured.\n\nIdentity fields are fixed for the life of the identity provider and a\nrevision that changes one is rejected: `protocol`, `subject_claim`, and\n`issuer`, the field that names the authority. Their values decide which provider\naccount a stored subject belongs to, so changing one would silently\nrepoint existing identities at a different provider.\n\n`subject_claim` is optional, and `sub` is used as the default value. If a\nrevision updates `subject_claim` to a different value than the one set\nduring creation, the request is rejected.\n\nOIDC is the only protocol.\n\nThe document is validated against the `idp-connection.json` schema before\nanything is stored. The rules the server applies when it starts a sign-in\nthen run on the document, so a document that could never start one is\nrefused here with `idp.endpoints_partial`: the OIDC block sets an endpoint\nwithout the others. Set no endpoint, and discovery fills them, or set\n`authorization_endpoint`, `token_endpoint`, `jwks_uri`, and\n`userinfo_endpoint`. `userinfo_endpoint` may be left out when\n`id_token_mapping` is on, but setting it alone still counts as setting an\nendpoint. The details list the missing endpoints.\n\nA refused document stores nothing, and on a revise the current revision\nstays unchanged.\n","tags":["Identity Providers"],"security":[{"oauth2":["idp.write"]}],"parameters":[{"$ref":"#/components/parameters/project-id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-idp-request"},"examples":{"google":{"summary":"An OIDC identity provider for Google","description":"Google connection document.\n","value":{"idp":{"slug":"google","protocol":"oidc","template":"google","display_name":"Google","subject_claim":"sub","claim_mapping":{"email":"email","givenName":"given_name","familyName":"family_name"},"verified_claims":{"email":"email_verified"},"provisioning":{"creation":"auto"},"oidc":{"issuer":"https://accounts.google.com","client_id":"${{ GOOGLE_CLIENT_ID }}","client_secret":"${{ GOOGLE_CLIENT_SECRET }}","scopes":["openid","profile","email"],"static_authorize_parameters":{"prompt":"select_account"}}}}},"endpoints":{"summary":"An OIDC identity provider that names every endpoint","description":"A provider that exposes no discovery document. Every endpoint\nis set, so none is fetched.\n","value":{"idp":{"slug":"acme_sso","protocol":"oidc","display_name":"Acme SSO","claim_mapping":{"email":"email","givenName":"given_name","familyName":"family_name"},"verified_claims":{"email":"email_verified"},"provisioning":{"creation":"auto"},"oidc":{"issuer":"https://sso.acme.example","authorization_endpoint":"https://sso.acme.example/authorize","token_endpoint":"https://sso.acme.example/token","jwks_uri":"https://sso.acme.example/keys","userinfo_endpoint":"https://sso.acme.example/userinfo","client_id":"${{ ACME_CLIENT_ID }}","client_secret":"${{ ACME_CLIENT_SECRET }}","scopes":["openid","profile","email"]}}}}}}}},"responses":{"200":{"description":"The revised identity provider.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/idp-response"},"examples":{"revised":{"summary":"The Google identity provider after a revision","description":"The scope list grew. `id` is the one allocated when the\nidentity provider was created, `revision_id` is new, and `updated_at`\nhas moved past `created_at`.\n","value":{"id":"idp_01KWH3B72K7M7F0N9WD3P2E4YM","revision_id":"idprev_01KWHF2XY6RN7F0N9WD3P2E4YM","slug":"google","created_at":"2026-07-14T09:11:00Z","updated_at":"2026-07-16T14:20:00Z","definition":{"slug":"google","protocol":"oidc","template":"google","display_name":"Google","subject_claim":"sub","claim_mapping":{"email":"email","givenName":"given_name","familyName":"family_name"},"verified_claims":{"email":"email_verified"},"provisioning":{"creation":"auto"},"oidc":{"issuer":"https://accounts.google.com","id_token_mapping":false,"client_id":"${{ GOOGLE_CLIENT_ID }}","client_secret":"${{ GOOGLE_CLIENT_SECRET }}","token_endpoint_auth_method":"client_secret_basic","scopes":["openid","profile","email","https://www.googleapis.com/auth/user.phonenumbers.read"],"pkce_enabled":true,"static_authorize_parameters":{"prompt":"select_account"}}}}}}}}},"201":{"description":"The created identity provider.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/idp-response"},"examples":{"created":{"summary":"A newly created identity provider","description":"The slug was new to the project, so `id` and `revision_id` were\nboth allocated and `updated_at` equals `created_at`.\n","value":{"id":"idp_01KWH3B72K7M7F0N9WD3P2E4YM","revision_id":"idprev_01KWH3B72K7M7F0N9WD3P2E4YN","slug":"google","created_at":"2026-07-14T09:11:00Z","updated_at":"2026-07-14T09:11:00Z","definition":{"slug":"google","protocol":"oidc","template":"google","display_name":"Google","subject_claim":"sub","claim_mapping":{"email":"email","givenName":"given_name","familyName":"family_name"},"verified_claims":{"email":"email_verified"},"provisioning":{"creation":"auto"},"oidc":{"issuer":"https://accounts.google.com","id_token_mapping":false,"client_id":"${{ GOOGLE_CLIENT_ID }}","client_secret":"${{ GOOGLE_CLIENT_SECRET }}","token_endpoint_auth_method":"client_secret_basic","scopes":["openid","profile","email"],"pkce_enabled":true,"static_authorize_parameters":{"prompt":"select_account"}}}}}}}}},"400":{"description":"The document failed schema validation, the server could not start a\nsign-in with it, or it revises an existing identity provider and\nchanges a field that is fixed for its life. Fix the document and send\nit again.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Project not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/publishIdp-error-response"}}}},"/idps/query":{"post":{"operationId":"queryIdps","x-zitadel-cli":"idp list","x-zitadel-read-only":true,"summary":"Query identity providers","description":"Returns the identity providers of a project, external sign-ins such as\nGoogle, paginated with a cursor. Each identity provider appears once, with\nits newest revision.\n","tags":["Identity Providers"],"security":[{"oauth2":["idp.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"}],"requestBody":{"description":"Request to query the identity providers of a project.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-idps-request"},"examples":{"firstPage":{"summary":"The first page, newest identity provider first","value":{"limit":2,"sorting":{"field":"created_at","direction":"desc"}}},"bySlug":{"summary":"Resolve a single slug","description":"A slug is unique within the project, so `equals` on it matches\nat most one row.\n","value":{"filter":[{"field":"slug","operation":"equals","value":"google"}]}}}}}},"responses":{"200":{"description":"A page of identity providers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-idps-response"},"examples":{"firstPage":{"summary":"A page with more results behind it","value":{"idps":[{"id":"idp_01KWHG09JXA7F0N9WD3P2E4YM5","revision_id":"idprev_01KWHG3B72K7M7F0N9WD3P2E4Y","slug":"acme_sso","created_at":"2026-07-15T11:02:00Z","updated_at":"2026-07-15T11:02:00Z","definition":{"slug":"acme_sso","protocol":"oidc","display_name":"Acme SSO","claim_mapping":{"email":"email","givenName":"given_name","familyName":"family_name"},"verified_claims":{"email":"email_verified"},"provisioning":{"creation":"auto"},"oidc":{"issuer":"https://sso.acme.example","authorization_endpoint":"https://sso.acme.example/authorize","token_endpoint":"https://sso.acme.example/token","jwks_uri":"https://sso.acme.example/keys","userinfo_endpoint":"https://sso.acme.example/userinfo","id_token_mapping":false,"client_id":"${{ ACME_CLIENT_ID }}","client_secret":"${{ ACME_CLIENT_SECRET }}","token_endpoint_auth_method":"client_secret_basic","scopes":["openid","profile","email"],"pkce_enabled":true}}},{"id":"idp_01KWH3B72K7M7F0N9WD3P2E4YM","revision_id":"idprev_01KWHF2XY6RN7F0N9WD3P2E4YM","slug":"google","created_at":"2026-07-14T09:11:00Z","updated_at":"2026-07-16T14:20:00Z","definition":{"slug":"google","protocol":"oidc","template":"google","display_name":"Google","subject_claim":"sub","claim_mapping":{"email":"email","givenName":"given_name","familyName":"family_name"},"verified_claims":{"email":"email_verified"},"provisioning":{"creation":"auto"},"oidc":{"issuer":"https://accounts.google.com","id_token_mapping":false,"client_id":"${{ GOOGLE_CLIENT_ID }}","client_secret":"${{ GOOGLE_CLIENT_SECRET }}","token_endpoint_auth_method":"client_secret_basic","scopes":["openid","profile","email","https://www.googleapis.com/auth/user.phonenumbers.read"],"pkce_enabled":true,"static_authorize_parameters":{"prompt":"select_account"}}}}],"next_page_token":"v1.dGhpcyBpcyBvcGFxdWU.SflKxwRJSMeKKF2QT4fw"}},"lastPage":{"summary":"The final page","description":"`next_page_token` is absent when there are no further results.\n","value":{"idps":[{"id":"idp_01KWH1P4MYS7F0N9WD3P2E4YM5","revision_id":"idprev_01KWH8Q5NZTA7F0N9WD3P2E4YM","slug":"corp_idp","created_at":"2026-07-13T08:00:00Z","updated_at":"2026-07-13T08:00:00Z","definition":{"slug":"corp_idp","protocol":"oidc","display_name":"Corporate SSO","subject_claim":"sub","claim_mapping":{"email":"email"},"oidc":{"issuer":"https://login.corp.example.com","id_token_mapping":false,"client_id":"${{ CORP_IDP_CLIENT_ID }}","client_secret":"${{ CORP_IDP_CLIENT_SECRET }}","token_endpoint_auth_method":"client_secret_basic","scopes":["openid","profile","email"],"pkce_enabled":true}}}]}}}}}},"400":{"description":"The request was not valid, for example it has invalid query parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Project not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/queryIdps-error-response"}}}},"/idps/{idp_id}":{"get":{"operationId":"getIdp","x-zitadel-cli":"idp get","summary":"Get an identity provider by ID","description":"Returns an identity provider, an external sign-in such as Google, by ID at\nits newest revision. `listIdpRevisions` (`GET /idps/{idp_id}/revisions`) lists\nevery revision of it.\n\nThe lookup is scoped to the project in `project_id`.\n","tags":["Identity Providers"],"security":[{"oauth2":["idp.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/idp-id"}],"responses":{"200":{"description":"The identity provider.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/idp-response"},"examples":{"revised":{"summary":"An identity provider that has been revised since it was created.","value":{"id":"idp_01KWH3B72K7M7F0N9WD3P2E4YM","revision_id":"idprev_01KWHF2XY6RN7F0N9WD3P2E4YM","slug":"google","created_at":"2026-07-14T09:11:00Z","updated_at":"2026-07-16T14:20:00Z","definition":{"slug":"google","protocol":"oidc","template":"google","display_name":"Google","subject_claim":"sub","claim_mapping":{"email":"email","givenName":"given_name","familyName":"family_name"},"verified_claims":{"email":"email_verified"},"provisioning":{"creation":"auto"},"oidc":{"issuer":"https://accounts.google.com","id_token_mapping":false,"client_id":"${{ GOOGLE_CLIENT_ID }}","client_secret":"${{ GOOGLE_CLIENT_SECRET }}","token_endpoint_auth_method":"client_secret_basic","scopes":["openid","profile","email"],"pkce_enabled":true,"static_authorize_parameters":{"prompt":"select_account"}}}}}}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No identity provider with this ID exists in the given project.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getIdp-error-response"}}}},"/idps/{idp_id}/revisions":{"get":{"operationId":"listIdpRevisions","summary":"List the revisions of an identity provider","description":"Lists every revision of one identity provider, an external sign-in such as\nGoogle, newest first, paginated with a cursor. The order is fixed, so there\nis no `sorting`.\n\nThe lookup is scoped to the project in `project_id`.\n","tags":["Identity Providers"],"security":[{"oauth2":["idp.read"]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/idp-id"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"}],"responses":{"200":{"description":"A page of the identity provider's revisions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-idp-revisions-response"},"examples":{"twoRevisions":{"summary":"An identity provider revised once","description":"Both revisions share `id` and `slug`. The second revision added a\nscope, so `revision_id` and `updated_at` differ. It is newest,\nso it comes first.\n","value":{"revisions":[{"id":"idp_01KWH3B72K7M7F0N9WD3P2E4YM","revision_id":"idprev_01KWHF2XY6RN7F0N9WD3P2E4YM","slug":"google","created_at":"2026-07-14T09:11:00Z","updated_at":"2026-07-16T14:20:00Z","definition":{"slug":"google","protocol":"oidc","template":"google","display_name":"Google","subject_claim":"sub","claim_mapping":{"email":"email","givenName":"given_name","familyName":"family_name"},"verified_claims":{"email":"email_verified"},"provisioning":{"creation":"auto"},"oidc":{"issuer":"https://accounts.google.com","id_token_mapping":false,"client_id":"${{ GOOGLE_CLIENT_ID }}","client_secret":"${{ GOOGLE_CLIENT_SECRET }}","token_endpoint_auth_method":"client_secret_basic","scopes":["openid","profile","email","https://www.googleapis.com/auth/user.phonenumbers.read"],"pkce_enabled":true,"static_authorize_parameters":{"prompt":"select_account"}}}},{"id":"idp_01KWH3B72K7M7F0N9WD3P2E4YM","revision_id":"idprev_01KWH3B72K7M7F0N9WD3P2E4YN","slug":"google","created_at":"2026-07-14T09:11:00Z","updated_at":"2026-07-14T09:11:00Z","definition":{"slug":"google","protocol":"oidc","template":"google","display_name":"Google","subject_claim":"sub","claim_mapping":{"email":"email","givenName":"given_name","familyName":"family_name"},"verified_claims":{"email":"email_verified"},"provisioning":{"creation":"auto"},"oidc":{"issuer":"https://accounts.google.com","id_token_mapping":false,"client_id":"${{ GOOGLE_CLIENT_ID }}","client_secret":"${{ GOOGLE_CLIENT_SECRET }}","token_endpoint_auth_method":"client_secret_basic","scopes":["openid","profile","email"],"pkce_enabled":true,"static_authorize_parameters":{"prompt":"select_account"}}}}]}}}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No identity provider with this ID exists in the given project.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listIdpRevisions-error-response"}}}},"/idps/revisions/{revision_id}":{"get":{"operationId":"getIdpRevision","summary":"Get a revision of an identity provider","description":"Returns one revision of an identity provider, an external sign-in such as\nGoogle, by its `revision_id`, the value an authentication attempt or a\nrelease pins.\n\nThe lookup is scoped to the project in `project_id`.\n","tags":["Identity Providers"],"security":[{"oauth2":["idp.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/idp-revision-id"}],"responses":{"200":{"description":"The revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/idp-response"},"examples":{"first":{"summary":"The first revision of an identity provider that has since been revised","value":{"id":"idp_01KWH3B72K7M7F0N9WD3P2E4YM","revision_id":"idprev_01KWH3B72K7M7F0N9WD3P2E4YN","slug":"google","created_at":"2026-07-14T09:11:00Z","updated_at":"2026-07-14T09:11:00Z","definition":{"slug":"google","protocol":"oidc","template":"google","display_name":"Google","subject_claim":"sub","claim_mapping":{"email":"email","givenName":"given_name","familyName":"family_name"},"verified_claims":{"email":"email_verified"},"provisioning":{"creation":"auto"},"oidc":{"issuer":"https://accounts.google.com","id_token_mapping":false,"client_id":"${{ GOOGLE_CLIENT_ID }}","client_secret":"${{ GOOGLE_CLIENT_SECRET }}","token_endpoint_auth_method":"client_secret_basic","scopes":["openid","profile","email"],"pkce_enabled":true,"static_authorize_parameters":{"prompt":"select_account"}}}}}}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No revision with this ID exists in the given project.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getIdpRevision-error-response"}}}},"/applications":{"post":{"operationId":"publishApplication","x-zitadel-returns-secret":true,"summary":"Publish an application","description":"Creates or revises a registered application that authenticates its users\nvia Zitadel. If the slug does not already exist in the project, a new\napplication is created. If one with that slug already exists, a revision\nis created.\n\nA revision gets a new `revision_id` and does not modify the application's\n`id`. Without an `Idempotency-Key`, sending an unchanged document also\ncreates a revision. Each client is matched to the stored one by its slug\nand keeps its `client_id`: a revision that changes a client's `client_id`\nis rejected with `app.field_immutable`. A revision keeps every client of\nthe stored document: one that omits a client is also rejected with\n`app.field_immutable`, since removing a client is not available yet. A\nclient with a new slug is a new client. It takes the `client_id` the\ndocument supplies, or the server generates one, and every response\ncarries it in `definition`. A `client_id` another client of the project\nholds, or ever held, is rejected with `app.client_id_taken`.\n\nEvery new client gets a secret, generated by the server and returned once\nin `client_secrets`. The server stores only its hash, so no later read\nreturns it.\n\nThe document is validated against the `application.json` schema before\nanything is stored, and then against the rules the authorization server\napplies: `refresh_token` comes with `authorization_code`, a client with\n`authorization_code` has at least one redirect URI, and each redirect\nURI meets the rules `redirect_uris` states. A document that breaks one\nis refused with `app.invalid`, whose details identify the\nsetting.\n\nAn application a release declares has one writer, the release: a slug\none holds is refused with `app.declared`. Edit its file under\n`.zitadel/applications/` and deploy instead. A client here leaves\n`secret` out, which only a release sets; one that sets it is refused with\n`app.invalid`.\n\nIf the document is refused, no change is stored and an existing\napplication keeps its current revision.\n","tags":["Applications"],"security":[{"oauth2":["application.write"]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/idempotency-key","description":"Optional. Send a key to retry the call safely, for example after its\nresponse was lost. A key is kept per project for 24 hours from the\nfirst request. A retry does not extend this time.\n\nA retry with the same key and body writes no revision. It returns the\nfirst request's status, the application at its newest revision, and\na new secret for each client the first request created. The secrets\nthose clients held before stop working, including the ones the first\nresponse returned. A retry that replaces a secret fires the\n`application.client_secret.rotated` webhook.\n\nTwo bodies are the same when they hold the same JSON. Whitespace, the\norder of keys and the escaping of strings do not count. A field that\nis left out and the same field sent with its default value make two\ndifferent bodies.\n\nThe same key with another body is refused with\n`app.idempotency_key_reused`. After 24 hours, the same key is handled\nlike a new key. An empty key is handled like no key. Without a key,\nevery call creates a revision.\n"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-application-request"},"examples":{"shop":{"summary":"A web application with one confidential client","description":"The client leaves `client_id` out, so the server generates one.\n","value":{"application":{"slug":"shop","name":"Shop","clients":[{"slug":"web","type":"confidential","grant_types":["authorization_code","refresh_token"],"redirect_uris":["https://shop.example.com/callback","http://localhost:3000/callback"]}]}}},"imported":{"summary":"A client that keeps the id a Zitadel v4 issued","value":{"application":{"slug":"shop","name":"Shop","clients":[{"slug":"web","client_id":"289374592837459283@shop","type":"confidential","grant_types":["authorization_code"],"redirect_uris":["https://shop.example.com/callback"]}]}}}}}}},"responses":{"200":{"description":"The revised application.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-application-response"},"examples":{"revised":{"summary":"The application after a revision that added a client","description":"`id` is the one allocated when the application was created,\n`revision_id` is new, and `updated_at` has moved past\n`created_at`. The new client `jobs` got a generated `client_id`\nand a secret; the kept client `web` got neither.\n","value":{"id":"app_01KWH3B72K7M7F0N9WD3P2E4YM","revision_id":"apprev_01KWHF2XY6RN7F0N9WD3P2E4YM","slug":"shop","declared":false,"created_at":"2026-11-06T09:11:00Z","updated_at":"2026-11-07T14:20:00Z","definition":{"slug":"shop","name":"Shop","clients":[{"slug":"web","client_id":"client_01KWH3B72K7M7F0N9WD3P2E4YP","type":"confidential","grant_types":["authorization_code","refresh_token"],"redirect_uris":["https://shop.example.com/callback","http://localhost:3000/callback"]},{"slug":"jobs","client_id":"client_01KWHF2XY6RN7F0N9WD3P2E4YQ","type":"confidential","grant_types":["authorization_code"],"redirect_uris":["https://jobs.shop.example.com/callback"]}]},"client_secrets":[{"client":"jobs","client_id":"client_01KWHF2XY6RN7F0N9WD3P2E4YQ","secret":"sk_client_7Kp2mQx9vR4tL8nB3wZ5yH6jF1dS0aE2"}]}}}}}},"201":{"description":"The created application.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-application-response"},"examples":{"created":{"summary":"A newly created application","description":"The slug was new to the project, so `id` and `revision_id`\nwere both allocated and `updated_at` equals `created_at`.\nThe client's `client_id` was generated, and its secret is shown\nhere and never again.\n","value":{"id":"app_01KWH3B72K7M7F0N9WD3P2E4YM","revision_id":"apprev_01KWH3B72K7M7F0N9WD3P2E4YN","slug":"shop","declared":false,"created_at":"2026-11-06T09:11:00Z","updated_at":"2026-11-06T09:11:00Z","definition":{"slug":"shop","name":"Shop","clients":[{"slug":"web","client_id":"client_01KWH3B72K7M7F0N9WD3P2E4YP","type":"confidential","grant_types":["authorization_code","refresh_token"],"redirect_uris":["https://shop.example.com/callback","http://localhost:3000/callback"]}]},"client_secrets":[{"client":"web","client_id":"client_01KWH3B72K7M7F0N9WD3P2E4YP","secret":"sk_client_7Kp2mQx9vR4tL8nB3wZ5yH6jF1dS0aE2"}]}}}}}},"400":{"description":"The document failed schema validation, breaks a rule of the\nauthorization server, or revises an existing application and changes\na field that is fixed for its life. The details identify the setting.\nFix the document and send it again.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Project not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"A `client_id` in the document is held, or was once held, by another\nclient of the project (`app.client_id_taken`). Pick another\nid, or leave it out so the server generates one.\n\nOr another revision of the same application was created at the same\ninstant (`app.revision_conflict`). Send the document again.\n\nOr a release declares the application (`app.declared`). Change its\nfile under `.zitadel/applications/` and deploy.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"422":{"description":"The `Idempotency-Key` was sent before with another body\n(`app.idempotency_key_reused`). Send the first body again, or use a\nnew key.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/publishApplication-error-response"}}}},"/applications/query":{"post":{"operationId":"queryApplications","x-zitadel-cli":"application list","x-zitadel-read-only":true,"summary":"Query applications","description":"Returns the applications of a project, paginated with a cursor. Each\napplication appears once, at its newest revision, with each client's\n`client_id` in `definition`.\n\nThe list holds both the applications a release declares and the ones\nregistered through `publishApplication` (`POST /applications`). An entry\nwith `declared: true` comes from a release: to change it, edit its file\nunder `.zitadel/applications/` and deploy. An entry with\n`declared: false` is registered: to change it, call `publishApplication`.\n\nIt never returns a client secret. A registered client's secret is only\nin the response of the `publishApplication` call that creates the client.\nA declared client's `secret` is the `${{ NAME }}` reference from its\nfile, which names the variable holding the secret.\n","tags":["Applications"],"security":[{"oauth2":["application.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"}],"requestBody":{"description":"Request to query the applications of a project.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-applications-request"},"examples":{"firstPage":{"summary":"The first page, newest application first","value":{"limit":2,"sorting":{"field":"created_at","direction":"desc"}}},"bySlug":{"summary":"Resolve a single slug","description":"A slug is unique within the project, so `equals` on it matches\nat most one row.\n","value":{"filter":[{"field":"slug","operation":"equals","value":"shop"}]}}}}}},"responses":{"200":{"description":"A page of applications.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-applications-response"},"examples":{"firstPage":{"summary":"A page with more results behind it","value":{"applications":[{"id":"app_01KWHG09JXA7F0N9WD3P2E4YM5","revision_id":"apprev_01KWHG3B72K7M7F0N9WD3P2E4Y","slug":"partner_portal","declared":false,"created_at":"2026-11-07T11:02:00Z","updated_at":"2026-11-07T11:02:00Z","definition":{"slug":"partner_portal","name":"Partner portal","clients":[{"slug":"web","client_id":"client_01KWHG09JXA7F0N9WD3P2E4YM6","type":"confidential","grant_types":["authorization_code"],"redirect_uris":["https://partners.example.com/callback"]}]}},{"id":"app_01KWH3B72K7M7F0N9WD3P2E4YM","revision_id":"apprev_01KWHF2XY6RN7F0N9WD3P2E4YM","slug":"shop","declared":true,"created_at":"2026-11-06T09:11:00Z","updated_at":"2026-11-08T14:20:00Z","definition":{"slug":"shop","name":"Shop","clients":[{"slug":"web","client_id":"shop-web","type":"confidential","secret":"${{ SHOP_WEB_CLIENT_SECRET }}","grant_types":["authorization_code","refresh_token"],"redirect_uris":["https://shop.example.com/callback","http://localhost:3000/callback"]}]}}],"next_page_token":"v1.dGhpcyBpcyBvcGFxdWU.SflKxwRJSMeKKF2QT4fw"}},"lastPage":{"summary":"The final page","description":"`next_page_token` is absent when there are no further results.\n","value":{"applications":[{"id":"app_01KWH1P4MYS7F0N9WD3P2E4YM5","revision_id":"apprev_01KWH8Q5NZTA7F0N9WD3P2E4YM","slug":"backoffice","declared":false,"created_at":"2026-11-05T08:00:00Z","updated_at":"2026-11-05T08:00:00Z","definition":{"slug":"backoffice","name":"Backoffice","clients":[{"slug":"web","client_id":"client_01KWH1P4MYS7F0N9WD3P2E4YM6","type":"confidential","grant_types":["authorization_code"],"redirect_uris":["https://backoffice.example.com/callback"]}]}}]}}}}}},"400":{"description":"The request was not valid, for example it has invalid query parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Project not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/queryApplications-error-response"}}}},"/applications/{application_id}":{"get":{"operationId":"getApplication","x-zitadel-cli":"application get","summary":"Get an application by ID","description":"Returns an application that authenticates its users via Zitadel, by ID\nat its newest revision, with each client's `client_id` in `definition`. It\nnever returns a client secret: `publishApplication` (`POST /applications`)\nshows one once, when it creates the client.\n\nThe lookup is scoped to the project in `project_id`.\n","tags":["Applications"],"security":[{"oauth2":["application.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/application-id"}],"responses":{"200":{"description":"The application.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/application-response"},"examples":{"application":{"summary":"An application with one client","value":{"id":"app_01KWH3B72K7M7F0N9WD3P2E4YM","revision_id":"apprev_01KWH3B72K7M7F0N9WD3P2E4YN","slug":"shop","declared":false,"created_at":"2026-11-06T09:11:00Z","updated_at":"2026-11-06T09:11:00Z","definition":{"slug":"shop","name":"Shop","clients":[{"slug":"web","client_id":"client_01KWH3B72K7M7F0N9WD3P2E4YP","type":"confidential","grant_types":["authorization_code","refresh_token"],"redirect_uris":["https://shop.example.com/callback","http://localhost:3000/callback"]}]}}}}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No application with this ID exists in the given project\n(`app.not_found`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getApplication-error-response"}}}},"/applications/{application_id}/client_secret/rotate":{"post":{"operationId":"rotateApplicationClientSecret","x-zitadel-destructive":true,"x-zitadel-returns-secret":true,"x-zitadel-agent-note":"Ask the user which `previous_secrets` to send. `revoke` is for a secret that leaked, and stops sign-in until every app has the new secret; `keep_one_day` replaces a secret without signing anyone out.","summary":"Rotate a client secret","description":"Replaces the secret of one confidential client of an application and\nreturns the new secret once. Name the client by its slug in `client`;\nthe application's `definition.clients` lists them, as\n`getApplication` (`GET /applications/{application_id}`) returns it.\n\n`previous_secrets` says what becomes of the secrets the client holds\nnow:\n\n- `revoke` ends them at once. Use it for a secret that leaked: from this\n  call on, only the new secret authenticates the client. Every app that\n  still sends an old one fails to sign its users in until it has the\n  new secret, so update it right after the call.\n- `keep_one_day` keeps them working for 24 hours beside the new secret.\n  Use it to replace a secret on a schedule: update every app that sends\n  the secret, and the old one ends by itself. A later call with\n  `revoke` ends it sooner.\n\nThe answer's `previous_secrets_end_at` says when the old secrets stop\nworking. The server stores only the new secret's hash, so no later read\nreturns it: store it where you keep secrets before you close the answer.\nEach call replaces the secret again, so a retry after a lost answer\nissues another new secret; the one the lost answer held stops working\nas `previous_secrets` says.\n\nThe call records an `application.client_secret.rotated` event, which\nnames who rotated the secret, the client, and when its previous secrets\nend.\n\nAn application a release declares keeps its client's secret in a\nvariable, so the call refuses it with `app.declared`: set a new value\nwith `setVariables` (`PATCH /variables`) and deploy. A public client\nholds no secret and is refused with `app.invalid`. The application is\nlooked up in the project in `project_id`.\n","tags":["Applications"],"security":[{"oauth2":["application.write"]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/application-id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/rotate-client-secret-request"},"examples":{"planned":{"summary":"Replace a secret without signing anyone out","value":{"client":"web","previous_secrets":"keep_one_day"}},"leaked":{"summary":"End a secret that leaked","value":{"client":"web","previous_secrets":"revoke"}}}}}},"responses":{"200":{"description":"The client's new secret, shown only in this answer, and when its\nprevious secrets stop working.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/rotate-client-secret-response"},"examples":{"planned":{"summary":"A secret replaced with a day's overlap","value":{"client_secret":{"client":"web","client_id":"client_01KWH3B72K7M7F0N9WD3P2E4YP","secret":"sk_client_9Rt4nWq2vX7kL3mB8zY5hJ6fD1sA0eC4"},"previous_secrets_end_at":"2026-12-03T09:14:00Z"}}}}}},"400":{"description":"The body is not valid, or the client is public and holds no secret\n(`app.invalid`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No application with this ID exists in the project (`app.not_found`),\nor none of its clients has the slug in `client`\n(`app.client_not_found`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"A release declares the application (`app.declared`). Set a new value\nfor the variable its client's `secret` names, then deploy.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/rotateApplicationClientSecret-error-response"}}}},"/applications/revisions/{revision_id}":{"get":{"operationId":"getApplicationRevision","summary":"Get a revision of an application","description":"Returns one revision of an application that authenticates its users via\nZitadel, by its `revision_id`, the value a release pins. A declared\napplication is served at the revision its deployment's release pins, so\nthis is how to read what a release serves. It never returns a client\nsecret.\n\nThe lookup is scoped to the project in `project_id`.\n","tags":["Applications"],"security":[{"oauth2":["application.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/application-revision-id"}],"responses":{"200":{"description":"The revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/application-response"},"examples":{"declared":{"summary":"A revision of an application a release declares","value":{"id":"app_01KWH3B72K7M7F0N9WD3P2E4YM","revision_id":"apprev_01KWH3B72K7M7F0N9WD3P2E4YN","slug":"shop","declared":true,"created_at":"2026-11-06T09:11:00Z","updated_at":"2026-11-06T09:11:00Z","definition":{"slug":"shop","name":"Shop","clients":[{"slug":"web","client_id":"shop-web","type":"confidential","secret":"${{ SHOP_WEB_CLIENT_SECRET }}","grant_types":["authorization_code","refresh_token"],"redirect_uris":["https://shop.example.com/callback"]}]}}}}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No revision with this ID exists in the given project\n(`app.not_found`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getApplicationRevision-error-response"}}}},"/policies":{"get":{"operationId":"listPolicies","x-zitadel-cli":"policy list","summary":"List policies","description":"Lists the project's policies, one per operation, each as its newest\nrevision.\n\nA policy holds a project's rules for one operation, such as setting a\npassword. The list is ordered by `created_at` (first publish) and then\n`id`. Filter by `operation` to read the policy of one operation; a project\nthat never published one gets an empty list.\n\nThe lookup is scoped to the project in `project_id`.\n","tags":["Policies"],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"},{"name":"operation","in":"query","description":"Only the policy of this operation.","schema":{"$ref":"#/components/schemas/policy-operation"}}],"security":[{"oauth2":["policy.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"A page of the project's policies.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-policies-response"},"examples":{"passwordPolicy":{"summary":"A project with a password policy","value":{"policies":[{"id":"pol_01KXA4F3Q8R7F0N9WD3P2E4YM5","revision_id":"polrev_01KXB7C2M4N7F0N9WD3P2E4YM7","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","operation":"auth.factor.password.set","config":{"min_length":12,"history_depth":4},"created_at":"2026-10-20T09:00:00Z","updated_at":"2026-10-20T10:30:00Z"}]}}}}}},"default":{"$ref":"#/components/responses/listPolicies-error-response"}}},"post":{"operationId":"publishPolicy","summary":"Publish a policy","description":"Publishes the project's policy for an operation as a new immutable\nrevision, creating the policy on its first publish. A revision applies\nonce a deployed release pins it. Nothing already stored is\nre-evaluated, so a stricter password policy applies the next time a\npassword is set.\n\nA policy holds a project's rules for one operation, such as setting a\npassword. The first publish records a `policy.created` event and every\nlater one a `policy.updated` event.\n\nThe request is typed by `operation`. An unknown operation or setting, or\na value of the wrong type or outside its bounds, answers `req.invalid`\nlike any malformed request.\n\nThe operation's template then checks the config again, together with the\nrules that relate settings to each other (a `min_length` above\n`max_length`), and answers `pol.invalid`. Its `details.details.violations`\nlists everything that failed, settings first, then rules.\n`{\"setting\": \"min_length\"}` names one setting. `{\"config_rule\":\n\"min_length_not_above_max_length\", \"settings\": [\"min_length\",\n\"max_length\"]}` names a rule across settings, with the settings it reads.\nFix what the violations list and publish again. To check a config without\npublishing it, call `evaluatePolicy` (`POST /policies/evaluate`).\n\nA setting left out is off, and `{}` switches every rule off; there are no\ndefaults.\n","tags":["Policies"],"parameters":[{"$ref":"#/components/parameters/project-id"}],"security":[{"oauth2":["policy.write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/publish-policy-request"},"examples":{"passwordPolicy":{"summary":"A password policy","value":{"operation":"auth.factor.password.set","config":{"min_length":12,"history_depth":4}}},"signupPolicy":{"summary":"The default sign-up policy","value":{"operation":"user.create","config":{"challenge":"zitadel_pow"}}},"clientAdmissionPolicy":{"summary":"A policy that admits client documents from two hosts","value":{"operation":"auth.client.admit","config":{"document_hosts":["client.example.com","agent.example.org"]}}}}}}},"responses":{"201":{"description":"The published policy revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy"},"examples":{"published":{"summary":"The second publish of a password policy","value":{"id":"pol_01KXA4F3Q8R7F0N9WD3P2E4YM5","revision_id":"polrev_01KXB7C2M4N7F0N9WD3P2E4YM7","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","operation":"auth.factor.password.set","config":{"min_length":12,"history_depth":4},"created_at":"2026-10-20T09:00:00Z","updated_at":"2026-10-20T10:30:00Z"}}}}}},"default":{"$ref":"#/components/responses/publishPolicy-error-response"}}}},"/policies/evaluate":{"post":{"operationId":"evaluatePolicy","x-zitadel-read-only":true,"summary":"Evaluate a policy","description":"Evaluates a policy config against one request, without side effects, and\nanswers the decision the operation would reach. A policy holds a\nproject's rules for one operation, such as setting a password.\n\nNothing is read from or written to the project. The config is the one in\nthe body, checked exactly as a publish checks it, so an invalid config\nanswers `pol.invalid` with the same violations. Fix the settings the\nviolations list and send the request again.\n\n`input` is what the operation's request carries, in the operation's own\nterms (a password, not its length). The server derives what the policy\nchecks with the code the live operation runs, guards included. `facts`\nstates what the operation would look up at runtime, such as whether the\ncandidate matches one of the user's kept passwords.\n\nThe decision and the names of the failed rules hold wherever the\noperation runs. `code` and `violations` are what an API call answers. A\nlogin flow shows the same rules as field errors on the password field\n(`error.x-auth-methods#password_<rule>` in `step.error`).\n\nThis operation does not choose which policy a project or release applies.\nRead that policy, for example with `getPolicy` (`GET /policies/{policy_id}`), and pass its `config`.\n\nThe caller needs read access to the project in `project_id`.\n","tags":["Policies"],"parameters":[{"$ref":"#/components/parameters/project-id"}],"security":[{"oauth2":["policy.read"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/evaluate-policy-request"},"examples":{"tooShort":{"summary":"A password below the minimum","value":{"operation":"auth.factor.password.set","config":{"min_length":12},"input":{"password":"short1"}}},"reused":{"summary":"A user reusing their previous password","value":{"operation":"auth.factor.password.set","config":{"min_length":12,"history_depth":3},"input":{"password":"a-long-enough-one"},"facts":{"self_service":true,"history_matches":[false,true]}}},"signup":{"summary":"A sign-up that solved the built-in proof of work","value":{"operation":"user.create","config":{"challenge":"zitadel_pow"},"input":{"solved_challenge":"zitadel_pow"}}},"clientAdmission":{"summary":"A client whose document a host the policy names serves","value":{"operation":"auth.client.admit","config":{"document_hosts":["client.example.com"]},"input":{"client_id":"https://client.example.com/oauth/client-metadata.json"}}}}}}},"responses":{"200":{"description":"The decision the operation would reach.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/evaluate-policy-response"},"examples":{"allowed":{"summary":"The password would be set","value":{"allowed":true}},"violation":{"summary":"The password breaks the policy","value":{"allowed":false,"code":"user.password_policy_violation","violations":{"min_length":12}}},"empty":{"summary":"The password is empty","value":{"allowed":false,"code":"user.password_empty"}}}}}},"default":{"$ref":"#/components/responses/evaluatePolicy-error-response"}}}},"/policies/{policy_id}":{"get":{"operationId":"getPolicy","x-zitadel-cli":"policy get","summary":"Get a policy by ID","description":"Returns a policy as its newest revision. A revision applies once a deployed\nrelease pins it.\n\nA policy holds a project's rules for one operation, such as setting a\npassword. Pass the `id` that `listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.\n\nThe lookup is scoped to the project in `project_id`: a policy of another\nproject answers not found exactly as an unknown ID does.\n","tags":["Policies"],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/policy-id"}],"security":[{"oauth2":["policy.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"The policy, as its newest revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy"}}}},"default":{"$ref":"#/components/responses/getPolicy-error-response"}}}},"/policies/{policy_id}/revisions":{"get":{"operationId":"listPolicyRevisions","summary":"List the revisions of a policy","description":"Lists every revision of one policy, newest first, one page at a time. The\norder is fixed, so there is no `sorting`.\n\nEach publish of a policy adds a revision. Pass the policy `id` that\n`listPolicies` (`GET /policies`) or `publishPolicy` (`POST /policies`) returns.\n\nThe lookup is scoped to the project in `project_id`: a policy of another\nproject answers not found exactly as an unknown ID does.\n","tags":["Policies"],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/policy-id"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"}],"security":[{"oauth2":["policy.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"A page of the policy's revisions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-policy-revisions-response"}}}},"default":{"$ref":"#/components/responses/listPolicyRevisions-error-response"}}}},"/policies/revisions/{revision_id}":{"get":{"operationId":"getPolicyRevision","summary":"Get a policy revision by ID","description":"Returns one revision of a policy, the newest or an older one.\n\nPass the `revision_id` that `publishPolicy` (`POST /policies`) or `listPolicyRevisions` (`GET /policies/{policy_id}/revisions`)\nreturns.\n\nThe lookup is scoped to the project in `project_id`: a revision of another\nproject answers not found exactly as an unknown ID does.\n","tags":["Policies"],"security":[{"oauth2":["policy.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/policy-revision-id"}],"responses":{"200":{"description":"The policy revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy"}}}},"default":{"$ref":"#/components/responses/getPolicyRevision-error-response"}}}},"/releases":{"post":{"operationId":"createRelease","summary":"Create a release","description":"Creates a release from existing revisions, given as `(kind, revision_id)`\npairs. To build one from files on disk, use `buildRelease` (`POST /releases/build`)\n(`POST /releases/build`).\n\nA release is a snapshot of the project's configuration: it pins one\nrevision of each resource it includes, and it is not tied to an origin.\nTake each `revision_id` from the operation that created the revision, for\nexample the `id` that `publishBranding` (`POST /branding`) or `publishFlowDefinition` (`POST /flow_definitions`) returns.\n\nEach revision must exist in the project and is recorded under the handle\nit declares. The release must be complete and consistent:\n\n- Every handle its revisions name must be in the release: a flow's\n  `user_schema`, and the identity provider (IdP) connections named by a\n  flow step's `sso_providers` or a schema's `x-auth-methods.sso.providers`.\n  A missing one answers `rel.unresolved_reference`, naming the resource and\n  the handle, for example `flow_definition default-login: user_schema\n  human-user not found`. Add the missing revision to the request.\n- Every flow is validated as on save, against the user schema revision in\n  the release. A flow that fails answers `rel.invalid`, with the reason in\n  `details`. Fix the flow and send the request again.\n\nThe call is idempotent on the set of revisions: the same revisions with a\ndifferent `message` answer `200` with the existing release. A new release\nanswers `201`.\n\nCreating a release does not deploy it. Pass the returned `id` to\n`createDeployment` (`POST /deployments`) to make the release live.\n","tags":["Releases"],"parameters":[{"$ref":"#/components/parameters/project-id"}],"security":[{"oauth2":["release.write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-release-request"},"examples":{"wholeProject":{"summary":"Pin every configurable resource of a project","description":"A project has several user schemas and several flow definitions,\nso `schema` and `flow_definition` each appear more than once.\nBranding appears once because a project has one, and each IdP\nconnection is pinned by its own revision.\n","value":{"pointers":[{"kind":"schema","revision_id":"https://example.com/schemas/default-human-user.json"},{"kind":"schema","revision_id":"sch_01KWHF2XY6RN7F0N9WD3P2E4YM"},{"kind":"flow_definition","revision_id":"flowdef_01KWHG09JXA7F0N9WD3P2E4YM5"},{"kind":"flow_definition","revision_id":"flowdef_01KWHG3B72K7M7F0N9WD3P2E4"},{"kind":"branding","revision_id":"brnd_01KWH1P4MYS7F0N9WD3P2E4YM5"},{"kind":"idp","revision_id":"idprev_01KWHF2XY6RN7F0N9WD3P2E4YM"}],"message":"add phone_number to human-user","git_sha":"4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7","git_dirty":false}}}}}},"responses":{"200":{"description":"A release pinning this exact set already existed and was returned\nunchanged. No new release was created.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/release"},"examples":{"reused":{"summary":"The same set was submitted again under a new message","description":"The pinned set matched an existing release, so that release is\nreturned — note the message it was originally created with,\nnot the one just submitted.\n","value":{"id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","content_hash":"sha256:9f2c1a7b4e83d05f6c2b19ae7d430f821c6b5de90a4f73829f2c1a7b4e83d05f","metadata":{"message":"add phone_number to human-user","git_sha":"4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7","git_dirty":false,"created_at":"2026-07-14T09:11:00Z","created_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","created_by_type":"human"},"revoked_at":null,"pointers":[{"kind":"schema","handle":"human-user","revision_id":"sch_01KWHF18816ZQE7F0N9WD3P2E4"},{"kind":"flow_definition","handle":"default-login","revision_id":"flowdef_01KWHG09JXA7F0N9WD3P2E4YM5"},{"kind":"branding","handle":"default","revision_id":"brnd_01KWH1P4MYS7F0N9WD3P2E4YM5"}]}}}}}},"201":{"description":"The created release.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/release"},"examples":{"pinnedByCI":{"summary":"Pinned from a pipeline, with a dirty tree","description":"A project secret names no user, so `created_by` is null while\n`created_by_type` still reports `service` — the release was\nassembled by a machine. `git_dirty` records that the working\ntree had uncommitted changes, so the content does not\ncorrespond exactly to `git_sha`.\n","value":{"id":"rel_01KX4A2B9C7F0N9WD3P2E4YM5D2","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","content_hash":"sha256:4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293","metadata":{"message":"deploy from CI","git_sha":"8d4e1a0f2b3c4d5e6f708192a3b4c5d6e7f80912","git_dirty":true,"created_at":"2026-07-15T11:02:00Z","created_by":null,"created_by_type":"service"},"revoked_at":null,"pointers":[{"kind":"schema","handle":"human-user","revision_id":"https://example.com/schemas/default-human-user.json"},{"kind":"schema","handle":"machine-user","revision_id":"sch_01KWHF2XY6RN7F0N9WD3P2E4YM"},{"kind":"flow_definition","handle":"default-login","revision_id":"flowdef_01KWHG09JXA7F0N9WD3P2E4YM5"},{"kind":"flow_definition","handle":"b2b-login","revision_id":"flowdef_01KWHG3B72K7M7F0N9WD3P2E4"},{"kind":"branding","handle":"default","revision_id":"brnd_01KWH8Q5NZT7F0N9WD3P2E4YM6"}]}}}}}},"default":{"$ref":"#/components/responses/createRelease-error-response"}}},"get":{"operationId":"listReleases","x-zitadel-cli":"release list","summary":"List releases","description":"Lists the project's releases, newest first. A release is a snapshot of the\nproject's configuration.\n\nEntries carry the digest, the metadata and `revoked_at`. The pinned set is\nomitted: read one release with `getRelease` (`GET /releases/{release_id}`) to get its pointers.\n\nThe `id` of an entry is the release ID that `getRelease`,\n`revokeRelease` (`POST /releases/{release_id}/revoke`) and `createDeployment` (`POST /deployments`) take.\n\n`content_hash` looks a release up by its content, as the CLI does when a\nperson types the digest a transcript printed. The project holds at most\none release per digest, so the filtered list has one entry or none. An\nunknown digest is an empty list rather than an error. Paths take the\n`rel_` ID only, so use the matched entry's `id` there.\n","tags":["Releases"],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/release-content-hash-filter"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"}],"security":[{"oauth2":["release.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"A page of the project's releases.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-releases-response"},"examples":{"firstPage":{"summary":"A page with more results behind it","value":{"releases":[{"id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","content_hash":"sha256:9f2c1a7b4e83d05f6c2b19ae7d430f821c6b5de90a4f73829f2c1a7b4e83d05f","metadata":{"message":"add phone_number to human-user","git_sha":"4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7","git_dirty":false,"created_at":"2026-07-14T09:11:00Z","created_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","created_by_type":"human"},"revoked_at":null},{"id":"rel_01KX2ZJ4B8C7F0N9WD3P2E4YM5","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","content_hash":"sha256:0f1e2d3c4b5a69788796a5b4c3d2e1f0091827364554637281909a8b7c6d5e4f","metadata":{"message":"initial import","git_sha":"0f1e2d3c4b5a69788796a5b4c3d2e1f009182736","git_dirty":false,"created_at":"2026-07-13T08:00:00Z","created_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","created_by_type":"human"},"revoked_at":"2026-07-14T10:30:00Z"}],"next_page_token":"v1.dGhpcyBpcyBvcGFxdWU.SflKxwRJSMeKKF2QT4fw"}},"lastPage":{"summary":"The final page","description":"`next_page_token` is absent when there are no further results.\nMetadata fields the caller never supplied are null, not absent.\n","value":{"releases":[{"id":"rel_01KX2ZJ4B8C7F0N9WD3P2E4YM5","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","content_hash":"sha256:0f1e2d3c4b5a69788796a5b4c3d2e1f0091827364554637281909a8b7c6d5e4f","metadata":{"message":"initial import","git_sha":null,"git_dirty":false,"created_at":"2026-07-13T08:00:00Z","created_by":null,"created_by_type":null},"revoked_at":null}]}},"byContentHash":{"summary":"Looked up by digest","description":"The `content_hash` filter matched one release. The same filter\nwith a digest no release of the project carries answers\n`releases: []`.\n","value":{"releases":[{"id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","content_hash":"sha256:9f2c1a7b4e83d05f6c2b19ae7d430f821c6b5de90a4f73829f2c1a7b4e83d05f","metadata":{"message":"add phone_number to human-user","git_sha":"4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7","git_dirty":false,"created_at":"2026-07-14T09:11:00Z","created_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","created_by_type":"human"},"revoked_at":null}]}},"unknownDigest":{"summary":"A digest no release carries","value":{"releases":[]}}}}}},"default":{"$ref":"#/components/responses/listReleases-error-response"}}}},"/releases/build":{"post":{"operationId":"buildRelease","x-zitadel-cli":"deploy","summary":"Build a release from files","description":"Builds a release from the resources in `.zitadel/` as authored on disk,\ngrouped by kind, in one transaction.\n\nA release is a snapshot of the project's configuration. A failure anywhere\nleaves no revision and no release. The caller records nothing. The CLI's\n`deploy` command builds its release with this operation.\n\nIf the project already holds a release with the same content, the same\n`content_hash`, the request answers `200` with that release and allocates\nnothing, however long ago it was built. Metadata is excluded from the\ncomparison, so the same content under a different `message` is the same\nrelease.\n\nOtherwise every resource is compared with the project's newest revision of\nthe same handle. Unchanged content reuses that revision, and changed\ncontent allocates a new one. The request answers `201` with the new\nrelease. A policy whose config matches only an older revision allocates a\nnew one too, so the policy reads back as the config the build carried.\n\nA structurally malformed request is refused while decoding with\n`req.invalid`, naming the offending fields. A well-formed bundle is then\nchecked resource by resource, as each kind's create endpoint checks it,\nand every failure is reported at once. The request answers `400` with\n`rel.invalid`, and `details.resources` lists each resource that failed.\nFix each listed resource and build again. A handle that resolves neither\nin the bundle nor in the project answers `rel.unresolved_reference`,\nnaming the pointer and the handle. Add the missing resource to the bundle.\n\nBuilding writes revisions, so besides `release.write` it needs the write\nscope of every kind the bundle carries a resource of: `schema.write`,\n`flow_definition.write`, `branding.write`, `idp.write`,\n`application.write`, `policy.write` and `oauth_settings.write`, as the\nper-kind create endpoints do. A missing scope answers `403` with\n`rel.permission_denied`, naming the kind. Request a token with that scope.\nAn empty kind needs no scope.\n\nBuilding a release does not deploy it. A release is not tied to an origin,\nand the same release can later be deployed to any number of origins\nunchanged. Pass the returned `id` to `createDeployment` (`POST /deployments`).\n","tags":["Releases"],"parameters":[{"$ref":"#/components/parameters/project-id"}],"security":[{"oauth2":["release.write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/build-release-request"},"examples":{"bundle":{"summary":"Built from the files on disk","description":"A whole bundle: the schemas, flow definitions, branding and\nOAuth settings as authored, the flow naming its schema by\n`objectType`. The\nschema's `metaSchema` is the one the server publishes at\n`/user-schema.json`. The server reuses whichever revisions\nalready match and allocates the rest.\n","value":{"bundle":{"schemas":[{"$schema":"https://json-schema.org/draft/2020-12/schema","kind":"user-schema","metaSchema":"https://auth.acme.com/user-schema.json","objectType":"human-user","x-auth-methods":{"password":{"enabled":true}},"x-identifier":"email","properties":{"email":{"type":"string","format":"email","x-unique":"project"},"phone_number":{"type":"string"}}}],"flow_definitions":[{"name":"default-login","user_schema":"human-user","purposes":{"login":"identify"},"steps":[{"name":"identify","fields":["email"],"actions":[{"name":"submit","kind":"submit","primary":true}],"transitions":{"submit":{"target":"authenticate"}}},{"name":"authenticate","fields":["x-auth-methods#password"],"actions":[{"name":"submit","kind":"submit","primary":true}],"transitions":{"submit":{"target":"done"}}},{"name":"done","complete":"redirect"}]}],"idps":[{"slug":"google","protocol":"oidc","template":"google","display_name":"Google","subject_claim":"sub","claim_mapping":{"email":"email"},"oidc":{"issuer":"https://accounts.google.com","client_id":"${{ GOOGLE_CLIENT_ID }}","client_secret":"${{ GOOGLE_CLIENT_SECRET }}","scopes":["openid","email"]}}],"applications":[{"slug":"shop","name":"Shop","clients":[{"slug":"web","client_id":"shop-web","type":"confidential","grant_types":["authorization_code"],"redirect_uris":["https://shop.example.com/callback"],"secret":"${{ SHOP_WEB_CLIENT_SECRET }}"}]}],"policies":[{"operation":"auth.factor.password.set","config":{"min_length":12}}],"branding":{"layout":"centered","liquid_template":"<main>{{ step.name }}</main>"},"oauth":{"enabled":true}},"message":"add phone_number to human-user","git_sha":"4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7","git_dirty":false}}}}}},"responses":{"200":{"description":"The project already held a release with this content, built earlier,\nand it was returned unchanged. No new release and no new revision was\ncreated.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/release"},"examples":{"reused":{"summary":"The same files were built again under a new message","description":"The content matched an existing release, so that release is\nreturned — note the message it was originally created with,\nnot the one just submitted.\n","value":{"id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","content_hash":"sha256:9f2c1a7b4e83d05f6c2b19ae7d430f821c6b5de90a4f73829f2c1a7b4e83d05f","metadata":{"message":"add phone_number to human-user","git_sha":"4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7","git_dirty":false,"created_at":"2026-07-14T09:11:00Z","created_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","created_by_type":"human"},"revoked_at":null,"pointers":[{"kind":"schema","handle":"human-user","revision_id":"sch_01KWHF18816ZQE7F0N9WD3P2E4"},{"kind":"flow_definition","handle":"default-login","revision_id":"flowdef_01KWHG09JXA7F0N9WD3P2E4YM5"},{"kind":"branding","handle":"default","revision_id":"brnd_01KWH1P4MYS7F0N9WD3P2E4YM5"}]}}}}}},"201":{"description":"The built release.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/release"},"examples":{"builtFromBundle":{"summary":"Built from a bundle","description":"Each pointer carries the handle the server read from the\nresource, and the revision it reused or allocated for it. The\nhandle is `objectType` for a schema, `name` for a flow\ndefinition, `default` for branding and for OAuth settings,\nand `slug` for an IdP connection and an application.\n","value":{"id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","content_hash":"sha256:9f2c1a7b4e83d05f6c2b19ae7d430f821c6b5de90a4f73829f2c1a7b4e83d05f","metadata":{"message":"add phone_number to human-user","git_sha":"4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7","git_dirty":false,"created_at":"2026-07-14T09:11:00Z","created_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","created_by_type":"human"},"revoked_at":null,"pointers":[{"kind":"schema","handle":"human-user","revision_id":"sch_01KWHF18816ZQE7F0N9WD3P2E4"},{"kind":"flow_definition","handle":"default-login","revision_id":"flowdef_01KWHG09JXA7F0N9WD3P2E4YM5"},{"kind":"branding","handle":"default","revision_id":"brnd_01KWH1P4MYS7F0N9WD3P2E4YM5"},{"kind":"idp","handle":"google","revision_id":"idprev_01KWHF2XY6RN7F0N9WD3P2E4YM"},{"kind":"application","handle":"shop","revision_id":"apprev_01KWHF3A9QZ27F0N9WD3P2E4YM"},{"kind":"oauth","handle":"default","revision_id":"oauthset_01KWHG3M5QZ27F0N9WD3P2E4YM"}]}}}}}},"400":{"description":"The bundle cannot build a release. A bundle whose resources fail\nvalidation answers `rel.invalid` with every failing resource in\n`details.resources`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/build-release-bad-request"},"examples":{"invalidBundle":{"summary":"Two bundle resources fail validation","description":"Each entry names the resource by kind, position and handle,\nand carries the error its own create endpoint would have\nanswered, details included.\n","value":{"code":"rel.invalid","message":"release: invalid","details":{"resources":[{"kind":"schema","index":0,"handle":"human-user","code":"sch.invalid_request","message":"schema designation invalid: \"x-identifier\" property \"email\" must carry \"x-unique\" \"project\", has \"none\""},{"kind":"flow_definition","index":1,"handle":"b2b-login","code":"flowdef.invalid","message":"flow definition: invalid","details":{"details":"no purposes defined"}}]}}}}}}},"default":{"$ref":"#/components/responses/buildRelease-error-response"}}}},"/releases/{release_id}":{"get":{"operationId":"getRelease","x-zitadel-cli":"release get","summary":"Get a release by ID","description":"Returns one release: its digest, its metadata, whether it was revoked, and\nthe `(kind, handle, revision_id)` tuples it pins. A release is a snapshot\nof the project's configuration.\n\nThe path takes the `rel_` ID only: the `id` that `createRelease` (`POST /releases`),\n`buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. To find a release from its\ndigest, list with the `content_hash` filter and read the matched entry's\n`id`.\n\nThe response does not embed resource content. Resolve each `revision_id`\nthrough the per-kind read endpoints when the bytes are needed.\n\nThe lookup is scoped to the project in `project_id`. A release ID\nbelonging to another project answers not found exactly as an unknown ID\ndoes, so the endpoint cannot be used to probe for releases in projects the\ncaller cannot read.\n","tags":["Releases"],"security":[{"oauth2":["release.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/release-id"}],"responses":{"200":{"description":"The release.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/release"},"examples":{"wholeProject":{"summary":"A release pinning every resource of a project","description":"`handle` names the resource and `revision_id` the revision of\nit, which is why `schema` and `flow_definition` each appear twice:\n`human-user` and `machine-user` are different resources, as are\n`default-login` and `b2b-login`.\n","value":{"id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","content_hash":"sha256:9f2c1a7b4e83d05f6c2b19ae7d430f821c6b5de90a4f73829f2c1a7b4e83d05f","metadata":{"message":"add phone_number to human-user","git_sha":"4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7","git_dirty":false,"created_at":"2026-07-14T09:11:00Z","created_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","created_by_type":"human"},"revoked_at":null,"pointers":[{"kind":"schema","handle":"human-user","revision_id":"https://example.com/schemas/default-human-user.json"},{"kind":"schema","handle":"machine-user","revision_id":"sch_01KWHF2XY6RN7F0N9WD3P2E4YM"},{"kind":"flow_definition","handle":"default-login","revision_id":"flowdef_01KWHG09JXA7F0N9WD3P2E4YM5"},{"kind":"flow_definition","handle":"b2b-login","revision_id":"flowdef_01KWHG3B72K7M7F0N9WD3P2E4"},{"kind":"branding","handle":"default","revision_id":"brnd_01KWH1P4MYS7F0N9WD3P2E4YM5"}]}},"laterRelease":{"summary":"A later release of the same project","description":"Only the branding revision moved. The handle stayed `default` —\na project has one branding, and it is revisioned like every\nother resource, so the handle is stable while `revision_id` is\nwhat differs between releases.\n","value":{"id":"rel_01KX5N7C9D2E7F0N9WD3P2E4YM","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","content_hash":"sha256:8d4e1a0f2b3c4d5e6f708192a3b4c5d6e7f80912a3b4c5d6e7f80912a3b4c5d6","metadata":{"message":"soften the sign-in page contrast","git_sha":"8d4e1a0f2b3c4d5e6f708192a3b4c5d6e7f80912","git_dirty":false,"created_at":"2026-07-16T14:20:00Z","created_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","created_by_type":"human"},"revoked_at":null,"pointers":[{"kind":"schema","handle":"human-user","revision_id":"https://example.com/schemas/default-human-user.json"},{"kind":"schema","handle":"machine-user","revision_id":"sch_01KWHF2XY6RN7F0N9WD3P2E4YM"},{"kind":"flow_definition","handle":"default-login","revision_id":"flowdef_01KWHG09JXA7F0N9WD3P2E4YM5"},{"kind":"flow_definition","handle":"b2b-login","revision_id":"flowdef_01KWHG3B72K7M7F0N9WD3P2E4"},{"kind":"branding","handle":"default","revision_id":"brnd_01KWH8Q5NZT7F0N9WD3P2E4YM6"}]}}}}}},"default":{"$ref":"#/components/responses/getRelease-error-response"}}}},"/releases/{release_id}/revoke":{"post":{"operationId":"revokeRelease","x-zitadel-cli":"release revoke","x-zitadel-destructive":true,"summary":"Revoke a release","description":"Revokes a release, so that its content is never served again. Pass the\n`id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or `listReleases` (`GET /releases`) returns. It\nrecords a `release.revoked` event.\n\nFrom then on the release cannot be deployed. Every path that would serve\nit refuses it with `rel.revoked`, including a build that pins its digest.\n\nA release that any origin still serves cannot be revoked. An origin serves\nthe release of the newest deployment to it, so the call answers `409` with\n`rel.in_use`, naming each such origin, that deployment and whether the\norigin is primary or a preview. Deploy another release to a primary origin\nor roll it back, and remove a preview, then revoke. Revoking therefore\nnever takes an origin down. Deployments that named the release earlier stay in\nthe history.\n\nThe call is idempotent: revoking a release that is already revoked answers\n`200` with the release unchanged, and `revoked_at` still names the first\nrevocation. There is no un-revoke. To serve that configuration again,\nchange it and build a new release: rebuilding unchanged content returns\nthe same revoked release.\n\nThe call takes no body. The lookup is scoped to the project in\n`project_id`, so a release ID of another project answers not found exactly\nas an unknown ID does.\n","tags":["Releases"],"security":[{"oauth2":["release.write"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/release-id"}],"responses":{"200":{"description":"The release is revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/release"},"examples":{"revoked":{"summary":"A release after revocation","description":"Only `revoked_at` changed; the pinned set and the metadata are\nimmutable and stay as they were.\n","value":{"id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","content_hash":"sha256:9f2c1a7b4e83d05f6c2b19ae7d430f821c6b5de90a4f73829f2c1a7b4e83d05f","metadata":{"message":"add phone_number to human-user","git_sha":"4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7","git_dirty":false,"created_at":"2026-07-14T09:11:00Z","created_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","created_by_type":"human"},"revoked_at":"2026-07-16T16:20:00Z","pointers":[{"kind":"schema","handle":"human-user","revision_id":"sch_01KWHF18816ZQE7F0N9WD3P2E4"},{"kind":"flow_definition","handle":"default-login","revision_id":"flowdef_01KWHG09JXA7F0N9WD3P2E4YM5"},{"kind":"branding","handle":"default","revision_id":"brnd_01KWH1P4MYS7F0N9WD3P2E4YM5"}]}}}}}},"409":{"description":"At least one origin still serves the release. `details.origins`\nnames each such origin, the newest deployment to it and whether it\nserves the release as a primary origin or a preview.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/revoke-release-conflict"},"examples":{"stillServed":{"summary":"Two origins still serve the release","description":"Deploy another release to the primary origin or roll it back,\nremove the preview, then revoke.\n","value":{"code":"rel.in_use","message":"release: still served by an origin","details":{"origins":[{"origin":"https://app.acme.com","deployment_id":"dep_01KX4SB9C8E1F0N9WD3P2E4YM5","kind":"primary"},{"origin":"https://acme-git-sso-acmeinc.vercel.app","deployment_id":"dep_01KX4SD2F7H3F0N9WD3P2E4YM5","kind":"preview"}]}}}}}}},"default":{"$ref":"#/components/responses/revokeRelease-error-response"}}}},"/grants":{"post":{"operationId":"createGrant","x-zitadel-cli":"grant create","summary":"Create a grant","description":"Creates a grant that gives a user or a team the `project.viewer`, `project.editor` or `project.admin` role on a project.\n\nThe project is the one named by the `project_id` query parameter. Name the\nprincipal with `user` (`user_id` or `identifier`) or `team` (`team_id` or\n`name`). The `id` in the response (`asgn_<opaque>`) is the grant ID that\n`getGrant` (`GET /grants/{grant_id}`) and `deleteGrant` (`DELETE /grants/{grant_id}`) take. Owning-team (`project.team`) grants are not\ncreated here: a claim, which attaches a project to a team, creates them.\n\nAn unrevoked grant with the same principal and relation holds that binding\neven after `expires_at`. Revoke it with `deleteGrant` before you create it\nagain.\n\nCreate does not accept `expand`. The `user_id` and team locators return `201`,\nwhose `user` and `team` carry only `user_id` and `team_id`. They still answer\n`404` or `409` when the principal is missing or the grant already exists.\nCreating by `user.identifier` answers `202` with no body on every outcome.\nGranting the session caller's own user is `grant.invalid` on either user\nlocator. A `201` grant names its user or team by ID only: read it back\nwith `getGrant` for the identifier and display name. A `202` returns no\ngrant ID: find the grant with `queryGrants` (`POST /grants/query`), filtered by `user_id`.\n\nAuthenticate with a project secret (`oauth2`) or a console session cookie\n(`sessionCookie`). A session caller is authorized as the signed-in person\nagainst the target project, even when the session belongs to another project.\nCookie requests follow that scheme's CSRF rules.\n","tags":["Grants"],"security":[{"oauth2":["grant.create"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-grant-request"}}}},"responses":{"201":{"description":"The grant was created. Returned for the `user.user_id` and team\nlocators only.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/grant"}}}},"202":{"description":"Accepted. Returned only for the `user.identifier` locator, on\nevery outcome. The server does not disclose whether a grant was\nwritten, whether one already existed, or whether the identifier\nmatched a user. Read the grant list to see the result.\n"},"400":{"description":"The provided parameters were not acceptable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Project not found, or an id or team-name locator could not be\nresolved. Identifier create answers 202 instead.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"An unrevoked grant with this principal and relation already\nexists on the project. Identifier create answers 202 instead. Revoke\nthe existing grant first if you need to replace it.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"429":{"description":"Too many requests: the client sent too many in a given amount of time.\nWait and retry.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/createGrant-error-response"}}}},"/grants/query":{"post":{"operationId":"queryGrants","x-zitadel-cli":"grant list","x-zitadel-read-only":true,"summary":"Query grants","description":"Returns a page of a project's grants.\n\nOnly unrevoked grants this API manages are listed, which bind a user or team\nto the viewer, editor or admin role. Expired grants are included, so a client\ncan revoke them with `deleteGrant` (`DELETE /grants/{grant_id}`) before it grants the same binding again.\nProject-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are\nnot returned. It answers a project secret, and a console session whose\nperson holds `viewer` on the project. The scope it declares is `grant.read`,\nwhich the server does not check yet.\n\n`expand: [\"principal\"]` adds envelope fields on `user` and `team`. Expanding\nrequires read access to the principal's home project (the platform project\nwhen the server has one), for project secrets and for console sessions alike.\nA caller without it gets `403` `user.permission_denied`.\n\nAuthenticate with a project secret (`oauth2`) or a console session cookie\n(`sessionCookie`). Cookie requests follow that scheme's CSRF rules.\n","tags":["Grants"],"security":[{"oauth2":["grant.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"}],"requestBody":{"description":"Request to query the grants of a project.","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-grants-request"}}}},"responses":{"200":{"description":"A page of the project's grants.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/query-grants-response"}}}},"400":{"description":"Invalid request, for example invalid query parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/queryGrants-error-response"}}}},"/grants/{grant_id}":{"get":{"operationId":"getGrant","x-zitadel-cli":"grant get","summary":"Get a grant by ID","description":"Returns a grant by ID, when this API manages it and it has not been revoked.\n\nThis API manages grants that bind a user or team to the viewer, editor or\nadmin role. An expired grant is still returned, so you can revoke it with\n`deleteGrant` (`DELETE /grants/{grant_id}`) before you grant the same binding again. Authorization still\nignores expired grants. Send `project_id` as well as the grant ID.\nMisses, revoked grants, project-secret setup rows (`sk_proj`), owning-team\n(`relation=team`) rows and grants of another project all return `404`.\n\n`expand=principal` adds envelope fields on `user` or `team`. Expanding\nrequires read access to the principal's home project (the platform project\nwhen the server has one), for project secrets and for console sessions alike.\nA caller without it gets `403` `user.permission_denied`.\n\nAuthenticate with a project secret (`oauth2`) or a console session cookie\n(`sessionCookie`). Cookie requests follow that scheme's CSRF rules.\n","tags":["Grants"],"security":[{"oauth2":["grant.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/grant-id"},{"$ref":"#/components/parameters/project-id"},{"name":"expand","in":"query","required":false,"description":"Extra principal fields to add onto `user` or `team`. It takes the same\nvalues and needs the same `user.read` and `team.read` scopes as\n`POST /grants/query`.\n","schema":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/grant-expand"}}}],"responses":{"200":{"description":"The grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/grant"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No unrevoked collaboration grant was found for the given project and\nid (including setup and owning-team rows this API does not manage).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getGrant-error-response"}}},"delete":{"operationId":"deleteGrant","x-zitadel-cli":"grant delete","summary":"Delete a grant","description":"Revokes a grant this API manages and emits `authz.revoked`.\n\nA revoked grant cannot be restored: create a new one. Already-revoked, missing,\nproject-secret setup and owning-team grants return `404`. Expired grants can\nstill be revoked, so the binding can be reused.\n\nAuthenticate with a project secret (`oauth2`) or a console session cookie\n(`sessionCookie`). Cookie requests follow that scheme's CSRF rules.\n","tags":["Grants"],"security":[{"oauth2":["grant.delete"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/grant-id"},{"$ref":"#/components/parameters/project-id"}],"responses":{"204":{"description":"The grant was revoked."},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No unrevoked collaboration grant was found for the given project and\nid (including setup and owning-team rows this API does not manage).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/deleteGrant-error-response"}}}},"/invitations":{"post":{"operationId":"createInvitation","x-zitadel-cli":"invitation create","x-zitadel-returns-secret":true,"summary":"Create an invitation","description":"Creates an invitation for a project, or replaces an existing one, and\nreturns the invitation and its one-shot link.\n\nSend `type` and the object named after it. `project_member` takes\n`relation` (`viewer`, `editor` or `admin`). `team_member` takes `team_id`\nand `role`, and answers `501` `not_implemented` until team invitations\nship. Optional `metadata.name` (1–200 characters) labels who the link is\nfor. Optional `replaces_invitation_id` replaces that invitation: the new\nrow keeps the original's `journey_id`, and the original is deleted in the\nsame transaction. An accepted original cannot be replaced: the request\nanswers `404`.\n\nThe `link` appears only in this response. Send it to the recipient\nyourself; whoever opens it and is signed in can redeem the role. It\nexpires in 72 hours.\nRefused for an unclaimed project, on a server without a platform project,\nand when the project already has 100 pending unexpired invitations.\n\nAuthenticate with a project secret (`oauth2`) or a console session cookie\n(`sessionCookie`). Creation needs the same project `admin` check as\n`createGrant` (`POST /grants`), and of a token its scope, `grant.create`:\nan invitation ends in a grant. A replace also needs `grant.delete` of an\naccess token issued for a person, since it deletes the original, and\n`grant.read` when it sends no `metadata`, since the answer then holds the\noriginal's. Cookie requests follow that scheme's CSRF rules.\n","tags":["Invitations"],"security":[{"oauth2":["grant.create"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-invitation-request"},"examples":{"project_member":{"summary":"Invite a project viewer","value":{"type":"project_member","project_member":{"relation":"viewer"},"metadata":{"name":"John Doe"}}},"replace_project_member":{"summary":"Replace a pending invitation and keep its journey","value":{"type":"project_member","project_member":{"relation":"editor"},"metadata":{"name":"John Doe"},"replaces_invitation_id":"inv_01JCQK5R7T9V1X3Z5B7D9F1H3J"}},"team_member":{"summary":"Invite a team member (answers 501 until implemented)","value":{"type":"team_member","team_member":{"team_id":"team_01JCQK5R7T9V1X3Z5B7D9F1H3J","role":"member"}}}}}}},"responses":{"201":{"description":"The invitation was created, with its one-shot link.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-invitation-response"}}}},"400":{"description":"The request body or parameters were not acceptable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"The caller is not a project administrator.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Project not found, or the invitation to replace was not found or was\nalready accepted.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"The project cannot accept invitations yet (unclaimed), the pending\ninvitation cap was reached, or the server has no platform project.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"501":{"description":"`type` is `team_member`, which is declared but not implemented yet.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/not_implemented"}}}},"default":{"$ref":"#/components/responses/createInvitation-error-response"}}},"get":{"operationId":"listInvitations","x-zitadel-cli":"invitation list","summary":"List invitations","description":"Lists a project's invitations, newest first, in any status, paginated with\n`limit` and `page_token`.\n\nOptional `status` and `type` filters narrow the page. Repeat `status` to\nmatch any of several statuses, for example\n`status=pending&status=expired&status=rejected`. `expired` is derived on\nread from `expires_at`. `expand=inviter` adds `inviter` to each\ninvitation; an access token issued for a person needs `user.read` for it.\nAuthenticate with a project secret (`oauth2`) or\na console session cookie (`sessionCookie`). Listing needs the same project\n`admin` check as `createGrant` (`POST /grants`).\n","tags":["Invitations"],"security":[{"oauth2":["grant.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"},{"name":"status","in":"query","required":false,"description":"Only invitations with this status. Repeat the parameter to match any\nof several statuses.\n","style":"form","explode":true,"schema":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/invitation-status"}}},{"name":"type","in":"query","required":false,"description":"Only invitations of this type.","schema":{"type":"string","enum":["project_member","team_member"]}},{"name":"expand","in":"query","required":false,"description":"Related objects to embed on each returned invitation.","style":"form","explode":true,"schema":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/invitation-expand"}}}],"responses":{"200":{"description":"A page of the project's invitations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-invitations-response"}}}},"400":{"description":"The page token is not valid. Send the `next_page_token` from the previous response unchanged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"The caller is not a project administrator.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Project not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listInvitations-error-response"}}}},"/invitations/lookup":{"post":{"operationId":"lookupInvitation","x-zitadel-read-only":true,"summary":"Look up an invitation by token","description":"Returns a lean view of the invitation for the signed-in accept page:\nproject, role, inviter and expiry.\n\nIt also returns the access the signed-in user already has to the project\nas `membership`; a user with access can neither accept nor decline the\ninvitation.\n\nSend the plaintext token from the invitation link fragment. Every unknown\nor finished token answers the same opaque `404`. Authenticate with a\nplatform-project user session cookie (`sessionCookie`). Lookup is a read:\nsame-origin cookie requests need no `X-Zitadel-CSRF` token (accept and\nreject still do).\n","tags":["Invitations"],"security":[{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/invitation-token-request"}}}},"responses":{"200":{"description":"The invitation details for the accept page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invitation-lookup-response"}}}},"400":{"description":"The request body was not acceptable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Unknown or finished invitation token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/lookupInvitation-error-response"}}}},"/invitations/accept":{"post":{"operationId":"acceptInvitation","summary":"Accept an invitation","description":"Accepts a pending invitation for the signed-in user and returns the updated\ninvitation.\n\nSend the plaintext token from the invitation link fragment. Acceptance\ngrants the invitation's role (a project grant for `project_member`) when\nthe invitation is pending and unexpired, the project is claimed, and the\ncreator still holds `admin` unless `created_by` is null. The\ninviter cannot accept their own invitation. Every unknown or finished token\nanswers the same opaque `404`.\n\nAuthenticate with a platform-project user session cookie (`sessionCookie`).\nCookie requests follow that scheme's CSRF rules.\n","tags":["Invitations"],"security":[{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/invitation-token-request"}}}},"responses":{"200":{"description":"The invitation was accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invitation"}}}},"400":{"description":"The request body was not acceptable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"The inviter cannot accept their own invitation, the creator no longer\nholds admin, or CSRF failed (`auth.csrf_invalid`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Unknown or finished invitation token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"The user already has access to the project (`inv.already_member`,\nwith their strongest role as `details.details.relation`; the\ninvitation stays pending), the project is unclaimed, or the server has\nno platform project.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/acceptInvitation-error-response"}}}},"/invitations/reject":{"post":{"operationId":"rejectInvitation","summary":"Decline an invitation","description":"Declines a pending invitation for the signed-in user and returns the\nupdated invitation with status `rejected`.\n\nSend the plaintext token from the invitation link fragment. The\ninvitation keeps its metadata for administrators, but this response\nreturns `metadata` as null. The inviter cannot decline their own invitation; an administrator\ncancels it instead. Every unknown or finished token answers the same\nopaque `404`.\nAuthenticate with a platform-project user session cookie (`sessionCookie`).\nCookie requests follow that scheme's CSRF rules.\n","tags":["Invitations"],"security":[{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/invitation-token-request"}}}},"responses":{"200":{"description":"The invitation was declined.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invitation"}}}},"400":{"description":"The request body was not acceptable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"The inviter cannot decline their own invitation, or CSRF failed\n(`auth.csrf_invalid`).\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Unknown or finished invitation token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"409":{"description":"The user already has access to the project (`inv.already_member`,\nwith their strongest role as `details.details.relation`); the\ninvitation stays pending.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/rejectInvitation-error-response"}}}},"/invitations/{invitation_id}":{"get":{"operationId":"getInvitation","x-zitadel-cli":"invitation get","summary":"Get an invitation","description":"Returns one invitation by ID for the project named by `project_id`.\n\nThe response never includes the redeem token or the create-time `link`.\nAuthenticate with a project secret (`oauth2`) or a console session cookie\n(`sessionCookie`). Reading needs the same project `admin` check as\n`createGrant` (`POST /grants`).\n","tags":["Invitations"],"security":[{"oauth2":["grant.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/invitation-id"},{"$ref":"#/components/parameters/project-id"}],"responses":{"200":{"description":"The invitation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/invitation"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"The caller is not a project administrator.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Invitation or project not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getInvitation-error-response"}}},"delete":{"operationId":"cancelInvitation","x-zitadel-cli":"invitation cancel","x-zitadel-unasked":true,"summary":"Cancel an invitation","description":"Deletes a pending, expired or rejected invitation, with its metadata. A\npending invitation's link can no longer be redeemed. An accepted\ninvitation answers the same opaque `404` as a miss.\n\nAuthenticate with a project secret (`oauth2`) or a console session cookie\n(`sessionCookie`). Cancelling needs the same project `admin` check as\n`createGrant` (`POST /grants`). Cookie requests follow that scheme's CSRF\nrules.\n","tags":["Invitations"],"security":[{"oauth2":["grant.delete"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/invitation-id"},{"$ref":"#/components/parameters/project-id"}],"responses":{"204":{"description":"The invitation was deleted."},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"The caller is not a project administrator.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"Invitation or project not found, or the invitation was accepted.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/cancelInvitation-error-response"}}}},"/events":{"get":{"operationId":"listEvents","x-zitadel-cli":"event list","x-zitadel-agent-note":"To read one sign-in, filter by the `correlation_id` of any of its events: it starts with `auth.request.created` or `auth.attempt.created`, a failed check is `auth.check.failed`, and it ends with `session.established` or `auth.token.issued`. Only `request.api` events carry the caller's IP and user agent, in `metadata.client`.","summary":"List events","description":"Lists a project's audit events, newest first. Pass `order=asc` for oldest\nfirst. Requires `events.read`.\n\nA project that is not claimed yet returns an empty list: its events are\nstored but stay invisible until the\n[claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds. The deployment's\nplatform operators read them from the start.\n\nTeam-scoped credentials see only the events whose `team_id` matches the\ncredential's team. Team-scoped credentials are not issued today.\n\nEach item carries an `event_type` that says which type of event it is, and\nthe matching `payload`. To read one event, pass its `id` to `getEvent` (`GET /events/{event_id}`).\n\nOne sign-in writes several events, which share a `correlation_id`: filter\nby it to read that sign-in. It starts with `auth.request.created` or\n`auth.attempt.created`, a failed check is `auth.check.failed`, and it ends\nwith `session.established` or `auth.token.issued`. Only `request.api`\nevents carry the caller's IP address and user agent, in `metadata.client`.\n\nFilters combine. These are answered from an index and fill their pages: no\nfilter, `category`, `event_type`, `status_class`, `operation_id` with or\nwithout `status_class`, `request_id`, `flow_id`, `correlation_id`, and `session_id`,\n`entity_id`, `user_id`, `actor_id` or `entity_type` with or without\n`category`, each with or without the time bounds. Any other filter or combination is\nmatched event by event, over at most a few thousand events per request.\nSuch a page can hold fewer events than `limit`, or none, and still carry\n`next_page_token`: keep passing the token until a response has none.\n","tags":["Events"],"security":[{"oauth2":["events.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"name":"category","in":"query","description":"Only events of this category. Repeat the parameter to match any of\nseveral categories.\n","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["request","auth","session","admin","entity","signal","policy"]}}},{"name":"event_type","in":"query","description":"Only events with exactly this `event_type`. Repeat the parameter to\nmatch any of several types.\n","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"actor_id","in":"query","description":"Only events triggered by this actor ID.","schema":{"type":"string"}},{"name":"user_id","in":"query","description":"Only events that concern this user ID, whoever triggered them: the\nuser's sign-ins, sessions and credentials, and the changes made to\nthe user. Events recorded by a server version before this filter\nexisted are not matched; they leave the list as retention removes\nthem.\n","schema":{"type":"string"}},{"name":"client_id","in":"query","description":"Only events produced by this application or agent.","schema":{"type":"string"}},{"name":"session_id","in":"query","description":"Only events of this session ID.","schema":{"type":"string"}},{"name":"flow_id","in":"query","description":"Only events of this login flow ID.","schema":{"type":"string"}},{"name":"correlation_id","in":"query","description":"Only events of this chain: the requests that one sign-in, invitation\nor project claim took, whoever sent them. Read the ID from the\n`correlation_id` of an event in the chain. Events recorded by a server\nversion before this filter existed are not matched; they leave the\nlist as retention removes them.\n","schema":{"type":"string"}},{"name":"request_id","in":"query","description":"Only events of this HTTP request ID.","schema":{"type":"string"}},{"name":"fingerprint","in":"query","description":"Only events with this device fingerprint ID.","schema":{"type":"string"}},{"name":"entity_type","in":"query","description":"Only events that affected this type of resource, such as `user`.","schema":{"type":"string"}},{"name":"entity_id","in":"query","description":"Only events that affected the resource with this ID.","schema":{"type":"string"}},{"name":"team_id","in":"query","description":"Only events emitted under this team, as stored on the event.","schema":{"type":"string"}},{"name":"operation_id","in":"query","description":"Only `request.api` events of this API operation, the\n`payload.operation_id` they record, such as `createUser`. Repeat the\nparameter to match any of up to 10 operations. Requests recorded by a\nserver version before this filter existed are not matched; they leave\nthe list as retention removes them.\n","style":"form","explode":true,"schema":{"type":"array","maxItems":10,"items":{"type":"string"}}},{"name":"status_class","in":"query","description":"Only `request.api` events whose response status, the `payload.status`\nthey record, is in this class: `4xx` is 400 to 499. Repeat the\nparameter to match any of several classes: `4xx` and `5xx` are the\nfailed requests. Requests recorded by a server version before this\nfilter existed are not matched; they leave the list as retention\nremoves them.\n","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","enum":["1xx","2xx","3xx","4xx","5xx"]}}},{"name":"created_after","in":"query","description":"Inclusive lower bound on `created_at` (RFC 3339).","schema":{"type":"string","format":"date-time"}},{"name":"created_before","in":"query","description":"Exclusive upper bound on `created_at` (RFC 3339).","schema":{"type":"string","format":"date-time"}},{"name":"order","in":"query","description":"The sort direction, by `created_at` and then `id`. The default `desc`\nlists the newest event first; `asc` lists the oldest first.\n","schema":{"type":"string","enum":["asc","desc"],"default":"desc"}},{"$ref":"#/components/parameters/page-token"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"description":"A page of events.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-events-response"}}}},"400":{"description":"A query parameter or the page token is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/listEvents-error-response"}}}},"/events/{event_id}":{"get":{"operationId":"getEvent","x-zitadel-cli":"event get","summary":"Get an event by ID","description":"Returns one event of a project by its ID. Requires `events.read`.\n\nPass the `id` of an event that `listEvents` (`GET /events`) returns, with its\n`project_id`. An unknown ID and the ID of another project's event both\nanswer `404`.\n\nA project that is not claimed yet also answers `404`: its events are\nstored but stay invisible until the\n[claim](https://preview.zitadel.com/docs/concepts/project-team-user#claim) succeeds. The deployment's\nplatform operators read them from the start.\n","tags":["Events"],"security":[{"oauth2":["events.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/event-id"},{"$ref":"#/components/parameters/project-id"}],"responses":{"200":{"description":"The event.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/event"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"403":{"description":"Insufficient permissions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"404":{"description":"No event was found for the given project and ID, or the project is not claimed yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"}}}},"default":{"$ref":"#/components/responses/getEvent-error-response"}}}},"/variables":{"get":{"operationId":"listVariables","x-zitadel-cli":"variable list","summary":"List a project's variables","description":"Returns the project's variables, keyed by name, each with its value for\neach kind: `primary` for primary origins and `preview` for preview URLs.\nWith `kind`, only that kind's values are returned.\n\nSecret values are not returned. A secret appears as `{\"secret\": true}`,\nwhich says a value is held without disclosing it.\n","tags":["Variables"],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/variable-kind"}],"security":[{"oauth2":["variable.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"The project's variables, keyed by name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/variables-by-kind"}}}},"default":{"$ref":"#/components/responses/listVariables-error-response"}}},"patch":{"operationId":"setVariables","x-zitadel-cli":"variable set","summary":"Set a project's variables","description":"Sets, replaces and removes the project's variables for the requested\nkind, in one request. Names not in the body are untouched. Existing\ndeployments keep the values they froze.\n\nA bare scalar enters a non-secret value. `{\"value\": …, \"secret\": true}`\nstores the value encrypted under the project's active `secret` key, after\nwhich it can be referenced but not read back. `null` removes the name\n(RFC 7386), which is how several variables are removed in one request.\nRemoving a name the project does not hold is a no-op rather than an error.\n\nWithout `kind`, a plain value is written for both kinds. A secret is\nwritten for `primary` only and removes the name's `preview` value, so a\npreview never keeps a plaintext copy. Set a preview secret with\n`kind=preview`. `null` removes the name from both kinds.\n\nThe body is applied whole or not at all, so a rejected request leaves the\nproject's variables exactly as they were. Fix what the error reports and\nsend the request again. Writing the same name twice replaces the value\nrather than duplicating it, which makes a retry safe.\n\nEach kind written records a `variable.set` event, and each kind removed a\n`variable.removed` event. The value never appears in either.\n","tags":["Variables"],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/variable-kind"}],"security":[{"oauth2":["variable.write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/update-variables-request"},"examples":{"set":{"summary":"Enter a value and a secret, and remove a name","value":{"GOOGLE_CLIENT_ID":"1234567890-abc.apps.googleusercontent.com","GOOGLE_CLIENT_SECRET":{"value":"GOCSPX-example","secret":true},"SESSION_TTL":3600,"LEGACY_CALLBACK_URL":null}}}}}},"responses":{"200":{"description":"The project's variables, read back after the write. The body also\ncarries whatever the write did not touch.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/variables-by-kind"}}}},"default":{"$ref":"#/components/responses/setVariables-error-response"}}}},"/variables/{variable_name}":{"get":{"operationId":"getVariable","x-zitadel-cli":"variable get","summary":"Get a variable by name","description":"Returns one variable by name, with its value for each kind. A variable\nholds a value per kind: `primary` for primary origins and `preview` for\npreview URLs.\n\nPass the name of a variable the project holds, as `listVariables` (`GET /variables`) lists\nit. A name with no value for the requested kind answers `var.not_found`;\nset it with `setVariables` (`PATCH /variables`). A secret reads back as `{\"secret\": true}`.\n","tags":["Variables"],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/variable-name"},{"$ref":"#/components/parameters/variable-kind"}],"security":[{"oauth2":["variable.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"The variable, with its value for each kind.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/variable-by-kind"}}}},"default":{"$ref":"#/components/responses/getVariable-error-response"}}},"delete":{"operationId":"deleteVariable","x-zitadel-cli":"variable rm","summary":"Delete a variable by name","description":"Deletes a variable for the requested kind, or for both kinds without\n`kind`. Existing deployments keep the values they froze. Each kind removed\nrecords a `variable.removed` event.\n\nA name with no value for that kind answers `var.not_found`: there is\nnothing to delete. `listVariables` (`GET /variables`) lists the names the project holds. To\nremove several names in one request, or to remove a name that may already\nbe absent, send `null` for each name to `setVariables` (`PATCH /variables`).\n","tags":["Variables"],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/variable-name"},{"$ref":"#/components/parameters/variable-kind"}],"security":[{"oauth2":["variable.write"]}],"responses":{"204":{"description":"The variable was deleted."},"default":{"$ref":"#/components/responses/deleteVariable-error-response"}}}},"/deployments":{"post":{"operationId":"createDeployment","x-zitadel-cli":"deployment create","x-zitadel-destructive":true,"summary":"Create a deployment","description":"Creates a deployment: it makes a release live on the project's primary\norigins or on preview URLs.\n\nA release is a snapshot of the project's configuration. A deployment makes\na release live on origins and freezes the project's variable values for\nits kind, with no fallback between primary and preview values. The call is\natomic: on success every target serves the release and the deployment is\nrecorded, and it records a `deployment.created` event. On failure nothing\nchanges and nothing is recorded.\n\nName the release by exactly one of `release_id` or `content_hash`. Take the\nrelease ID from the `id` that `createRelease` (`POST /releases`), `buildRelease` (`POST /releases/build`) or\n`listReleases` (`GET /releases`) returns. The release must already exist in the project.\n`targets` is `primary`, which means every primary origin, or a list of\npreview URLs. `[\"primary\"]`, which clients released before this shape\nsend, still deploys to every primary origin until 1.0.0; its answer\ncarries a `Deprecation` header (RFC 9745) and a `Link` to these docs.\n\nThe project's newest primary deployment also serves every request with no\n`Origin`, such as a backend, a native app or the CLI, and the console's\nlogin preview of a project that does not list the console's origin. A\npreview URL serves only itself.\n\n`primary` records the project's current primary origins. One added later\nserves nothing until the next deployment to `primary`; one removed stops\nbeing served at once.\n\nA deployment to `primary` changes nothing when the project's newest\nprimary deployment has the same release and frozen values and covers\nexactly the current primary origins. The call then answers `200` with that\ndeployment. Any other request writes a new deployment and answers `201`.\nFor preview URLs, that deployment renews their previews.\n\nIf the request is refused, fix the cause and send it again:\n- `400 dep.invalid`: the request names both or neither of `release_id` and\n  `content_hash`, names a primary origin among the preview URLs, sends\n  `primary` for a project with no primary origin, sends\n  `ttl` with `primary`, or sends a `ttl` above 365 days (`P365D`). Correct\n  the request.\n- `400 dep.variables_missing`: a variable the release references has no\n  value for the kind. `details` names the kind and every missing variable.\n  Set each one for that kind with `setVariables` (`PATCH /variables`), then deploy again.\n- `403 proj.origin_not_allowed`: a preview URL matches no preview pattern\n  of the project, or is a loopback URL. Use a URL that matches a pattern.\n- `404 rel.not_found`: the release ID or digest names no release in this\n  project. List the project's releases with `listReleases`.\n- `409 dep.conflict`: `expected_deployment_id` is not the deployment this\n  write replaces, and `details.deployment` is that deployment. Inspect it,\n  then retry with its ID as `expected_deployment_id`, or stop.\n- `409 rel.revoked`: the release is revoked and cannot be deployed. Change\n  the configuration and build a new release, or deploy a release that is\n  not revoked. Rebuilding unchanged content returns the same revoked release.\n","tags":["Deployments"],"parameters":[{"$ref":"#/components/parameters/project-id"}],"security":[{"oauth2":["deployment.write"]},{"sessionCookie":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-deployment-request"},"examples":{"primary":{"summary":"Deploy to every primary origin, guarded","description":"The guard names the deployment the caller inspected before\ndeploying.\n","value":{"release_id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","targets":"primary","message":"add phone_number to human-user","expected_deployment_id":"dep_01KX4SB9C8E1F0N9WD3P2E4YM5"}},"preview":{"summary":"Deploy to two preview URLs for a week","value":{"content_hash":"sha256:9f2c1a7b4e83d05f6c2b19ae7d430f821c6b5de90a4f73829f2c1a7b4e83d05f","targets":["https://acme-git-sso-acmeinc.vercel.app","https://acme-k3x9v2-acmeinc.vercel.app"],"ttl":"P7D"}}}}}},"responses":{"200":{"description":"Nothing changed. The body is the newest primary deployment, with its\nown `reason`, `message` and `deployed_at`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deployment"},"examples":{"alreadyLive":{"summary":"The release the primary origins already serve, deployed again","value":{"id":"dep_01KX4SB9C8E1F0N9WD3P2E4YM5","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","release_id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","kind":"primary","targets":[{"origin":"https://app.acme.com"},{"origin":"https://www.acme.com"}],"status":"live","deployed_at":"2026-10-01T09:30:00Z","metadata":{"reason":"deploy","message":"initial import","rollback_to":null,"deployed_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","deployed_by_type":"human"}}}}}}},"201":{"description":"The created deployment. Every target serves the release.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deployment"},"examples":{"deployed":{"summary":"A release deployed to every primary origin","description":"`primary` comes back as every primary origin the project had.","value":{"id":"dep_01KX5N7C9D2E7F0N9WD3P2E4YM6","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","release_id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","kind":"primary","targets":[{"origin":"https://app.acme.com"},{"origin":"https://www.acme.com"}],"status":"live","deployed_at":"2026-10-02T14:52:00Z","metadata":{"reason":"deploy","message":"add phone_number to human-user","rollback_to":null,"deployed_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","deployed_by_type":"human"}}},"previewed":{"summary":"A release deployed to two preview URLs","description":"Each preview's expiry is on `GET /projects/{project_id}/previews`.\n","value":{"id":"dep_01KX5M2A0C4D7F0N9WD3P2E4YM8","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","release_id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","kind":"preview","targets":[{"origin":"https://acme-git-sso-acmeinc.vercel.app"},{"origin":"https://acme-k3x9v2-acmeinc.vercel.app"}],"status":"live","deployed_at":"2026-10-02T14:10:00Z","metadata":{"reason":"deploy","message":null,"rollback_to":null,"deployed_by":null,"deployed_by_type":"service"}}}}}}},"400":{"description":"The request cannot be deployed: `dep.invalid`, `dep.variables_missing` or `req.invalid`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/create-deployment-bad-request"},"examples":{"exactPrimaryOrigin":{"summary":"A primary origin named exactly","description":"Primary origins are deployed as a whole: send `primary`.\n","value":{"code":"dep.invalid","message":"deploy to primary origins with the primary target"}},"variablesMissing":{"summary":"The release references variables with no preview value","description":"Set each missing variable for the kind, then deploy again.\n","value":{"code":"dep.variables_missing","message":"deployment: the release references variables its kind has no value for","details":{"kind":"preview","names":["GOOGLE_CLIENT_ID","GOOGLE_CLIENT_SECRET"]}}},"invalid":{"summary":"Both release_id and content_hash","value":{"code":"dep.invalid","message":"name the release by exactly one of release_id and content_hash"}},"ttlTooLong":{"summary":"A ttl above 365 days","value":{"code":"dep.invalid","message":"ttl must be positive and at most 365 days"}}}}}},"403":{"description":"A preview URL matches no preview pattern, or is a loopback URL: `proj.origin_not_allowed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"},"examples":{"originNotAllowed":{"summary":"A URL the project's preview patterns do not admit","value":{"code":"proj.origin_not_allowed","message":"project: origin not allowed","details":{"origin":"https://acme.example"}}}}}}},"404":{"description":"The release ID or digest names no release of the project: `rel.not_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"},"examples":{"releaseNotFound":{"summary":"No such release","value":{"code":"rel.not_found","message":"release: not found"}}}}}},"409":{"description":"`dep.conflict` (the guard did not match) or `rel.revoked` (the release is revoked).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deployment-conflict"},"examples":{"conflict":{"summary":"Another deployment reached the target first","description":"Inspect the deployment in the details, then retry with its ID\nas `expected_deployment_id`, or stop.\n","value":{"code":"dep.conflict","message":"deployment: the deployment it replaces does not match expected_deployment_id","details":{"deployment":{"id":"dep_01KX6P8D0E3F7F0N9WD3P2E4YM7","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","release_id":"rel_01KX2QF7Z6D0F0N9WD3P2E4YM40","kind":"primary","targets":[{"origin":"https://app.acme.com"},{"origin":"https://www.acme.com"}],"status":"live","deployed_at":"2026-10-02T15:03:00Z","metadata":{"reason":"deploy","message":"soften the sign-in page contrast","rollback_to":null,"deployed_by":null,"deployed_by_type":null}}}}},"revoked":{"summary":"The release is revoked","value":{"code":"rel.revoked","message":"release: revoked"}}}}}},"default":{"$ref":"#/components/responses/createDeployment-error-response"}}},"get":{"operationId":"listDeployments","x-zitadel-cli":"deployment list","summary":"List deployments","description":"Lists the project's deployments: the history of what ran where and when,\nor with `live=true` what is served now.\n\nA deployment makes a release live on origins. By default the list is the\nhistory, newest first: every deployment of the project, with every target\nit made the release live on. With `origin`, it is the history of that\norigin alone. With `release_id`, it is every deployment of that release,\nsuperseded ones included.\n\nWith `live=true`, the list is what is served now, newest first. It holds\nthe project's newest primary deployment with every origin it names, an\norigin the project no longer lists included: that deployment also serves\nrequests with no `Origin`, so it stays live. It also holds the newest\ndeployment to each live preview URL, narrowed to the URLs it still\nserves. Combined with `origin`, it is the one deployment that origin\nserves, or empty, as it is for an origin the project no longer lists.\nCombined with `release_id`, it is the deployments of the live view that\nserve that release: the primary deployment only when it is of that\nrelease, and the previews serving it.\n\nThe `id` of an entry is the deployment ID that `getDeployment` (`GET /deployments/{deployment_id}`),\n`listDeploymentVariables` (`GET /deployments/{deployment_id}/variables`) and `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) take.\n\n`expand: [\"release\"]` embeds the release each deployment made live. It\nrequires `release.read` and does not change the ordering or the page\ntokens.\n","tags":["Deployments"],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/origin-filter"},{"$ref":"#/components/parameters/release-id-filter"},{"name":"live","in":"query","required":false,"description":"Lists what each target serves now instead of the history. Defaults\nto `false`.\n","schema":{"type":"boolean","default":false}},{"name":"expand","in":"query","required":false,"description":"Related objects to embed on each returned deployment.","style":"form","explode":true,"schema":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/deployment-expand"}}},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/page-token"}],"security":[{"oauth2":["deployment.read"]},{"sessionCookie":[]}],"responses":{"200":{"description":"A page of deployments.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/list-deployments-response"},"examples":{"history":{"summary":"The history, newest first","description":"A later deployment to `primary` replaced the earlier one on\nevery primary origin, so the earlier one is inactive. The\npreview deployment still serves its URL.\n","value":{"deployments":[{"id":"dep_01KX6P8D0E3F7F0N9WD3P2E4YM7","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","release_id":"rel_01KX2QF7Z6D0F0N9WD3P2E4YM40","kind":"primary","targets":[{"origin":"https://app.acme.com"},{"origin":"https://www.acme.com"}],"status":"live","deployed_at":"2026-10-02T15:03:00Z","metadata":{"reason":"rollback","message":"phone_number broke sign-up","rollback_to":"dep_01KX4SB9C8E1F0N9WD3P2E4YM5","deployed_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","deployed_by_type":"human"}},{"id":"dep_01KX5Q2R8D2E7F0N9WD3P2E4YM8","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","release_id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","kind":"preview","targets":[{"origin":"https://acme-git-sso-acmeinc.vercel.app"}],"status":"live","deployed_at":"2026-10-02T14:58:00Z","metadata":{"reason":"deploy","message":null,"rollback_to":null,"deployed_by":null,"deployed_by_type":null}},{"id":"dep_01KX5N7C9D2E7F0N9WD3P2E4YM6","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","release_id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","kind":"primary","targets":[{"origin":"https://app.acme.com"},{"origin":"https://www.acme.com"}],"status":"inactive","deployed_at":"2026-10-02T14:52:00Z","metadata":{"reason":"deploy","message":"add phone_number to human-user","rollback_to":null,"deployed_by":null,"deployed_by_type":null}},{"id":"dep_01KX4SB9C8E1F0N9WD3P2E4YM5","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","release_id":"rel_01KX2QF7Z6D0F0N9WD3P2E4YM40","kind":"primary","targets":[{"origin":"https://app.acme.com"},{"origin":"https://www.acme.com"}],"status":"inactive","deployed_at":"2026-10-01T09:30:00Z","metadata":{"reason":"deploy","message":"initial import","rollback_to":null,"deployed_by":null,"deployed_by_type":null}}],"next_page_token":null}},"live":{"summary":"The same project, live view","value":{"deployments":[{"id":"dep_01KX6P8D0E3F7F0N9WD3P2E4YM7","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","release_id":"rel_01KX2QF7Z6D0F0N9WD3P2E4YM40","kind":"primary","targets":[{"origin":"https://app.acme.com"},{"origin":"https://www.acme.com"}],"status":"live","deployed_at":"2026-10-02T15:03:00Z","metadata":{"reason":"rollback","message":"phone_number broke sign-up","rollback_to":"dep_01KX4SB9C8E1F0N9WD3P2E4YM5","deployed_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","deployed_by_type":"human"}},{"id":"dep_01KX5Q2R8D2E7F0N9WD3P2E4YM8","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","release_id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","kind":"preview","targets":[{"origin":"https://acme-git-sso-acmeinc.vercel.app"}],"status":"live","deployed_at":"2026-10-02T14:58:00Z","metadata":{"reason":"deploy","message":null,"rollback_to":null,"deployed_by":null,"deployed_by_type":null}}],"next_page_token":null}},"expandedRelease":{"summary":"The history with each release embedded","value":{"deployments":[{"id":"dep_01KX5N7C9D2E7F0N9WD3P2E4YM6","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","release_id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","kind":"primary","targets":[{"origin":"https://app.acme.com"},{"origin":"https://www.acme.com"}],"status":"inactive","deployed_at":"2026-10-02T14:52:00Z","metadata":{"reason":"deploy","message":"add phone_number to human-user","rollback_to":null,"deployed_by":null,"deployed_by_type":null},"release":{"id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","content_hash":"sha256:9f2c1a7b4e83d05f6c2b19ae7d430f821c6b5de90a4f73829f2c1a7b4e83d05f","metadata":{"message":"add phone_number to human-user","git_sha":"4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7","git_dirty":false,"created_at":"2026-10-02T14:51:00Z","created_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","created_by_type":"human"},"revoked_at":null,"pointers":[{"kind":"schema","handle":"human-user","revision_id":"sch_01KWHF18816ZQE7F0N9WD3P2E4"},{"kind":"branding","handle":"default","revision_id":"brnd_01KWH8Q5NZT7F0N9WD3P2E4YM6"}]}}],"next_page_token":null}}}}}},"default":{"$ref":"#/components/responses/listDeployments-error-response"}}}},"/deployments/{deployment_id}":{"get":{"operationId":"getDeployment","x-zitadel-cli":"deployment get","summary":"Get a deployment by ID","description":"Returns one deployment: the release it made live, the origins it made it\nlive on, and whether they still serve it.\n\nPass the `id` that `createDeployment` (`POST /deployments`), `rollbackDeployment` (`POST /deployments/{deployment_id}/rollback`) or\n`listDeployments` (`GET /deployments`) returns.\n\nThe lookup is scoped to the project in `project_id`. A deployment ID\nbelonging to another project answers not found exactly as an unknown ID\ndoes, so the endpoint cannot be used to probe for deployments in projects\nthe caller cannot read.\n","tags":["Deployments"],"security":[{"oauth2":["deployment.read"]},{"sessionCookie":[]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/deployment-id"}],"responses":{"200":{"description":"The deployment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deployment"},"examples":{"deployed":{"summary":"A deployment a later one replaced","description":"Every primary origin the deployment made the release live on,\nalso after a later primary deployment replaced it, as\n`status: inactive` says.\n","value":{"id":"dep_01KX5N7C9D2E7F0N9WD3P2E4YM6","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","release_id":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1","kind":"primary","targets":[{"origin":"https://app.acme.com"},{"origin":"https://www.acme.com"}],"status":"inactive","deployed_at":"2026-10-02T14:52:00Z","metadata":{"reason":"deploy","message":"add phone_number to human-user","rollback_to":null,"deployed_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","deployed_by_type":"human"}}}}}}},"default":{"$ref":"#/components/responses/getDeployment-error-response"}}}},"/deployments/{deployment_id}/rollback":{"post":{"operationId":"rollbackDeployment","x-zitadel-cli":"deployment rollback","x-zitadel-destructive":true,"summary":"Roll back to a deployment","description":"Rolls back to an earlier deployment by deploying its release again to the\nsame origins, with the same variable values. A listed primary origin that\ndeployment left out serves nothing until the next deployment to `primary`,\nand one it named serves its release again, even when the live deployment\nleft it out.\n\nA release is a snapshot of the project's configuration. A deployment makes\na release live on origins and freezes the project's variable values with\nit.\n\nThe deployment ID in the path is the deployment to return to, not the one\nto undo. Take it from the `id` that `listDeployments` (`GET /deployments`) returns, which lists\nthe newest deployment first.\n\nA rollback is a new deployment, not an undo. It has `reason: rollback`,\nand its `rollback_to` names the deployment you returned to. It uses the\nvariable values that deployment froze, not the project's current ones, and\ncreates no release.\n\nTo guard against a deployment that landed since you looked, set\n`expected_deployment_id` in the request body to the newest primary\ndeployment, the one live now. The call then fails with `409 dep.conflict`\nif another deployment has replaced it.\n\nA rollback is idempotent like a deployment to `primary`. When nothing\nwould change, it answers `200` with the newest primary deployment.\n\nIf the request is refused:\n- `400 dep.invalid`: the deployment went to preview URLs, which cannot be\n  rolled back. Deploy to the preview again with `createDeployment` (`POST /deployments`).\n- `404 dep.not_found`: no deployment of the project has that ID, or that\n  deployment recorded no variables to restore, so it cannot be a rollback\n  target. List them with `listDeployments` and pick another.\n- `409 dep.conflict`: `expected_deployment_id` is not the project's\n  newest primary deployment, and `details.deployment` is that deployment.\n  Inspect it, then retry with its ID, or stop.\n- `409 rel.revoked`: the release of that deployment is revoked and cannot\n  be deployed. Roll back to a deployment of a release that is not revoked.\n","tags":["Deployments"],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/deployment-id"}],"security":[{"oauth2":["deployment.write"]},{"sessionCookie":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/rollback-deployment-request"},"examples":{"rollback":{"summary":"Roll back with a message","value":{"message":"phone_number broke sign-up"}}}}}},"responses":{"200":{"description":"Nothing changed. The body is the newest primary deployment, with its\nown `reason`, `message` and `deployed_at`.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deployment"}}}},"201":{"description":"The new deployment. Its origins that the project still lists serve\nthe release again.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deployment"},"examples":{"rolledBack":{"summary":"Rolled back to an earlier deployment","value":{"id":"dep_01KX6P8D0E3F7F0N9WD3P2E4YM7","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","release_id":"rel_01KX2QF7Z6D0F0N9WD3P2E4YM40","kind":"primary","targets":[{"origin":"https://app.acme.com"},{"origin":"https://www.acme.com"}],"status":"live","deployed_at":"2026-10-02T15:03:00Z","metadata":{"reason":"rollback","message":"phone_number broke sign-up","rollback_to":"dep_01KX4SB9C8E1F0N9WD3P2E4YM5","deployed_by":"user_01KWH3B72K7M7F0N9WD3P2E4YM","deployed_by_type":"human"}}}}}}},"400":{"description":"The deployment cannot be rolled back: `dep.invalid`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error-details"},"examples":{"preview":{"summary":"The deployment targeted preview URLs","value":{"code":"dep.invalid","message":"a deployment to preview URLs cannot be rolled back"}}}}}},"409":{"description":"`dep.conflict` (the guard did not match) or `rel.revoked` (the release is revoked).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/deployment-conflict"},"examples":{"conflict":{"summary":"Another deployment is the newest primary one","value":{"code":"dep.conflict","message":"deployment: the deployment it replaces does not match expected_deployment_id","details":{"deployment":{"id":"dep_01KX6P8D0E3F7F0N9WD3P2E4YM7","project_id":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5","release_id":"rel_01KX2QF7Z6D0F0N9WD3P2E4YM40","kind":"primary","targets":[{"origin":"https://app.acme.com"},{"origin":"https://www.acme.com"}],"status":"live","deployed_at":"2026-10-02T15:03:00Z","metadata":{"reason":"deploy","message":"soften the sign-in page contrast","rollback_to":null,"deployed_by":null,"deployed_by_type":null}}}}},"revoked":{"summary":"The release is revoked","value":{"code":"rel.revoked","message":"release: revoked"}}}}}},"default":{"$ref":"#/components/responses/rollbackDeployment-error-response"}}}},"/deployments/{deployment_id}/variables":{"get":{"operationId":"listDeploymentVariables","x-zitadel-cli":"variable resolve","summary":"List a deployment's variables","description":"Returns the variable values the deployment froze when it was made. Later\nchanges to the project's variables do not affect them. A secret reads\nback as `{\"secret\": true}`.\n\nPass the `id` that `createDeployment` (`POST /deployments`) or `listDeployments` (`GET /deployments`) returns.\n","tags":["Deployments"],"security":[{"oauth2":["deployment.read","variable.read"]}],"parameters":[{"$ref":"#/components/parameters/project-id"},{"$ref":"#/components/parameters/deployment-id"}],"responses":{"200":{"description":"The variables the deployment froze, keyed by name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/variables"}}}},"default":{"$ref":"#/components/responses/listDeploymentVariables-error-response"}}}}},"webhooks":{"flow.signup_challenge.issued":{"post":{"operationId":"flowSignupChallengeIssued","summary":"flow.signup_challenge.issued","description":"A sign-up proof-of-work challenge was issued.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/flow-signup_challenge-issued-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"flow.signup_challenge.consumed":{"post":{"operationId":"flowSignupChallengeConsumed","summary":"flow.signup_challenge.consumed","description":"A signup proof was spent before attempting user creation.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/flow-signup_challenge-consumed-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"application.created":{"post":{"operationId":"applicationCreated","summary":"application.created","description":"An application was created, through the API or by the release build that\nfirst declared it.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/application-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"application.updated":{"post":{"operationId":"applicationUpdated","summary":"application.updated","description":"An application was revised, through the API or by a release build. The\npayload holds the new revision, the name when it changed, and the\nclients the revision added.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/application-updated-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"application.client_secret.rotated":{"post":{"operationId":"applicationClientSecretRotated","summary":"application.client_secret.rotated","description":"A client's secret was replaced: by `rotateApplicationClientSecret`\n(`POST /applications/{application_id}/client_secret/rotate`), or by a\nretry of `publishApplication` (`POST /applications`) with the same\n`Idempotency-Key`, which replaces the secrets of the clients the first\nrequest created. The payload holds those clients, the application's\nnewest revision and when the secrets they held before stop working; the\nevent's actor is who replaced them.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/application-client_secret-rotated-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"auth.attempt.created":{"post":{"operationId":"authAttemptCreated","summary":"auth.attempt.created","description":"An authentication attempt started. See [Sessions and auth\nattempts](https://preview.zitadel.com/docs/concepts/sessions-auth-attempts).\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-attempt-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"auth.attempt.handed_off":{"post":{"operationId":"authAttemptHandedOff","summary":"auth.attempt.handed_off","description":"An authentication attempt was handed off to a session. The attempt is\ncomplete, and its verified result moves to the session.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-attempt-handed_off-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"auth.check.failed":{"post":{"operationId":"authCheckFailed","summary":"auth.check.failed","description":"A check in an authentication attempt failed, such as a wrong password.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-check-failed-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"auth.check.succeeded":{"post":{"operationId":"authCheckSucceeded","summary":"auth.check.succeeded","description":"A check in an authentication attempt succeeded. The event is also sent\nwhen a factor is recorded without a challenge, as on sign-up.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-check-succeeded-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"auth.factor.passkey.enrolled":{"post":{"operationId":"authFactorPasskeyEnrolled","summary":"auth.factor.passkey.enrolled","description":"A passkey was enrolled for a user.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-factor-passkey-enrolled-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"auth.factor.password.set":{"post":{"operationId":"authFactorPasswordSet","summary":"auth.factor.password.set","description":"A user's password was set.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-factor-password-set-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"auth.request.created":{"post":{"operationId":"authRequestCreated","summary":"auth.request.created","description":"An app started a sign-in at the OAuth authorization endpoint. The\npayload names the app by its `client_id`.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-request-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"auth.request.exchange.failed":{"post":{"operationId":"authRequestExchangeFailed","summary":"auth.request.exchange.failed","description":"An app presented an authorization code at the OAuth token endpoint, and\na check refused it. The code is used up all the same. The payload names\nthe app by its `client_id` and says which check refused the code in\n`reason`.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-request-exchange-failed-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"auth.sso.authorization.failed":{"post":{"operationId":"authSsoAuthorizationFailed","summary":"auth.sso.authorization.failed","description":"A sign-in through an identity provider (SSO) failed at the provider. It\nanswered with an error, `access_denied` included, or the callback\ncarried no code.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-sso-authorization-failed-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"auth.sso.exchange.failed":{"post":{"operationId":"authSsoExchangeFailed","summary":"auth.sso.exchange.failed","description":"A sign-in through an identity provider (SSO) failed after its code\narrived. The token exchange, the ID token or userinfo validation, or the\nconnection's configuration failed.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-sso-exchange-failed-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"auth.sso.exchange.succeeded":{"post":{"operationId":"authSsoExchangeSucceeded","summary":"auth.sso.exchange.succeeded","description":"The code from a sign-in through an identity provider (SSO) was\nexchanged. This is not a sign-in: the identity may still match no user.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-sso-exchange-succeeded-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"auth.token.issued":{"post":{"operationId":"authTokenIssued","summary":"auth.token.issued","description":"A token was issued.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-token-issued-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"auth.token.revoked":{"post":{"operationId":"authTokenRevoked","summary":"auth.token.revoked","description":"A token was revoked. Deleting a session revokes its tokens too. Those\nevents carry the session's `session_id` and no `entity_id`. Setting a\nperson's password ends their personal access tokens: that event carries\nthe person's `user_id`, no `entity_id`, and a payload with the `reason`,\nthe `type` and the `count` of tokens that ended.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/auth-token-revoked-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"authz.granted":{"post":{"operationId":"authzGranted","summary":"authz.granted","description":"A role on a project was granted.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/authz-granted-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"authz.revoked":{"post":{"operationId":"authzRevoked","summary":"authz.revoked","description":"A role on a project was revoked.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/authz-revoked-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"branding.created":{"post":{"operationId":"brandingCreated","summary":"branding.created","description":"A branding revision was created.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/branding-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"deployment.created":{"post":{"operationId":"deploymentCreated","summary":"deployment.created","description":"A release was deployed, or a deployment rolled back. One event per\ndeployment, however many targets it has. A deployment makes a release\nlive on a set of origins.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/deployment-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"flowdef.created":{"post":{"operationId":"flowdefCreated","summary":"flowdef.created","description":"A flow definition was created. A [flow\ndefinition](https://preview.zitadel.com/docs/concepts/flows-and-schemas) sets which step of a\nsign-in renders when, and which fields each step collects.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/flowdef-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"flowdef.deleted":{"post":{"operationId":"flowdefDeleted","summary":"flowdef.deleted","description":"A flow definition was deleted.\n\nRetired: nothing sends this event any more. It stays in the API so\nstored events still decode.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"deprecated":true,"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/flowdef-deleted-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"flowdef.updated":{"post":{"operationId":"flowdefUpdated","summary":"flowdef.updated","description":"A flow definition was updated.\n\nRetired: nothing sends this event any more. It stays in the API so\nstored events still decode.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"deprecated":true,"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/flowdef-updated-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"idp.created":{"post":{"operationId":"idpCreated","summary":"idp.created","description":"An identity provider (IdP) connection was created.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/idp-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"idp.identity_link.created":{"post":{"operationId":"idpIdentityLinkCreated","summary":"idp.identity_link.created","description":"A user was created by a sign-in through an identity provider (SSO) and\nlinked to the provider account.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/idp-identity_link-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"idp.updated":{"post":{"operationId":"idpUpdated","summary":"idp.updated","description":"An IdP connection was revised. The payload holds the new revision and\nthe fields that changed.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/idp-updated-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"invitation.accepted":{"post":{"operationId":"invitationAccepted","summary":"invitation.accepted","description":"An invitation was accepted. Grant events the acceptance writes carry\nthis event's `request_id`; there are none when the user already holds an\nidentical active grant.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/invitation-accepted-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"invitation.cancelled":{"post":{"operationId":"invitationCancelled","summary":"invitation.cancelled","description":"A pending invitation was cancelled by an administrator, or an unaccepted\none was deleted by its replacement.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/invitation-cancelled-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"invitation.created":{"post":{"operationId":"invitationCreated","summary":"invitation.created","description":"An invitation was created, new or as the replacement of another.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/invitation-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"invitation.rejected":{"post":{"operationId":"invitationRejected","summary":"invitation.rejected","description":"An invitation was declined.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/invitation-rejected-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"oauth_settings.created":{"post":{"operationId":"oauthSettingsCreated","summary":"oauth_settings.created","description":"A project published a new revision of its OAuth settings, which say\nwhether its OAuth authorization server answers. A release build\npublishes one when the bundle's `oauth` resource differs from every\nearlier revision.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/oauth_settings-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"origin.added":{"post":{"operationId":"originAdded","summary":"origin.added","description":"An origin was added to a project. The payload holds its `pattern` and\nits `kind`, `primary` or `preview`.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/origin-added-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"origin.removed":{"post":{"operationId":"originRemoved","summary":"origin.removed","description":"An origin was removed from a project. The payload holds its `pattern`\nand its `kind`, `primary` or `preview`.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/origin-removed-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"policy.created":{"post":{"operationId":"policyCreated","summary":"policy.created","description":"A project published the first revision of its policy for an operation. A\npolicy guards an operation, such as setting a password.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"policy.evaluate.allowed":{"post":{"operationId":"policyEvaluateAllowed","summary":"policy.evaluate.allowed","description":"A project's policy admitted an operation. The event is written when the\npolicy decides: the operation can still fail afterwards, and its own\nevent, joined by `request_id`, says that it happened. Sent only by a\nserver that records every policy decision; by default only refusals are\nrecorded.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy-evaluate-allowed-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"policy.evaluate.denied":{"post":{"operationId":"policyEvaluateDenied","summary":"policy.evaluate.denied","description":"A project's policy refused an operation, such as setting a password that\nis too short. The payload names the policy revision and the rules that\nfailed. The event is written separately from the refusal and can be\nmissing for one.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy-evaluate-denied-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"policy.updated":{"post":{"operationId":"policyUpdated","summary":"policy.updated","description":"A project published a new revision of its policy for an operation. The\npayload holds the new revision and its settings.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/policy-updated-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"preview.removed":{"post":{"operationId":"previewRemoved","summary":"preview.removed","description":"A preview was removed before its expiry.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/preview-removed-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"project.created":{"post":{"operationId":"projectCreated","summary":"project.created","description":"A project was created.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/project-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"project.deleted":{"post":{"operationId":"projectDeleted","summary":"project.deleted","description":"A project was deleted.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/project-deleted-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"project.updated":{"post":{"operationId":"projectUpdated","summary":"project.updated","description":"A project was updated. The payload holds the fields that changed, with\ntheir new values.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/project-updated-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"release.created":{"post":{"operationId":"releaseCreated","summary":"release.created","description":"A release was created. A [release](https://preview.zitadel.com/docs/concepts/repo-config) is an\nimmutable build of the project's configuration, which a deployment makes\nlive.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/release-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"release.revoked":{"post":{"operationId":"releaseRevoked","summary":"release.revoked","description":"A release was revoked.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/release-revoked-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"request.api":{"post":{"operationId":"requestApi","summary":"request.api","description":"An API request in the project completed. One event per request; the\nhealth, liveness, and readiness probes send none. Only this event\ncarries `metadata.client`, the requester's IP, user agent and origin;\nother events of the same request join to it through `request_id`.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/request-api-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"schema.created":{"post":{"operationId":"schemaCreated","summary":"schema.created","description":"A schema was created.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/schema-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"session.deleted":{"post":{"operationId":"sessionDeleted","summary":"session.deleted","description":"A session was revoked.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/session-deleted-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"session.established":{"post":{"operationId":"sessionEstablished","summary":"session.established","description":"A session was established, by a sign-in or by exchanging a session.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/session-established-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"team.created":{"post":{"operationId":"teamCreated","summary":"team.created","description":"A team was created.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/team-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"team.deactivated":{"post":{"operationId":"teamDeactivated","summary":"team.deactivated","description":"A team was deactivated.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/team-deactivated-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"team.membership.updated":{"post":{"operationId":"teamMembershipUpdated","summary":"team.membership.updated","description":"A user was added to a team, or removed from it. The payload's `status`\nis the membership's new state.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/team-membership-updated-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"team.updated":{"post":{"operationId":"teamUpdated","summary":"team.updated","description":"A team was updated. The payload holds the fields that changed, with\ntheir new values.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/team-updated-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"user.create.failed":{"post":{"operationId":"userCreateFailed","summary":"user.create.failed","description":"A user could not be created because a unique attribute was already\ntaken. The payload's `key_name` names the unique constraint that was\nhit.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/user-create-failed-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"user.created":{"post":{"operationId":"userCreated","summary":"user.created","description":"A user was created. The payload lists the attribute keys written, with\nvalues only for schema fields marked `x-audit`.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/user-created-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"user.deleted":{"post":{"operationId":"userDeleted","summary":"user.deleted","description":"A user was deleted.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/user-deleted-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"user.updated":{"post":{"operationId":"userUpdated","summary":"user.updated","description":"A user's attributes were updated. The payload lists the attribute keys\nwritten, with values only for schema fields marked `x-audit`.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/user-updated-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"variable.removed":{"post":{"operationId":"variableRemoved","summary":"variable.removed","description":"A variable's value was removed. One event per kind removed.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/variable-removed-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}},"variable.set":{"post":{"operationId":"variableSet","summary":"variable.set","description":"A variable was given a value, new or replacing one. One event per kind\nwritten. The value never appears.\n\nThe body is the event as `GET /events` returns it.\n","tags":["Event Webhooks"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/variable-set-event"}}}},"responses":{"2XX":{"$ref":"#/components/responses/webhook-delivered"},"default":{"$ref":"#/components/responses/webhook-not-delivered"}}}}},"components":{"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://acc.nextgen.zitadel.com/oauth/authorize","tokenUrl":"https://acc.nextgen.zitadel.com/oauth/token","scopes":{"openid":"OpenID Connect scope","profile":"Access to the user's profile information","email":"Access to the user's email address","schema.read":"Permission to read schemas","schema.write":"Permission to create and manage schemas","user.write":"Permission to create and manage users","user.read":"Permission to read users","user.delete":"Permission to delete users","team.read":"Permission to read teams","team.write":"Permission to create and manage teams","team.delete":"Permission to delete teams","team_membership.read":"Permission to read team memberships","team_membership.create":"Permission to add users to teams","team_membership.delete":"Permission to remove members from teams","flow_definition.read":"Permission to read flow definitions","flow_definition.write":"Permission to create and manage flow definitions","flow_definition.delete":"Permission to delete flow definitions","project.read":"Permission to read projects","project.write":"Permission to create and manage projects","grant.create":"Permission to create grants","grant.read":"Permission to read grants","grant.delete":"Permission to delete grants","branding.read":"Permission to read branding revisions","branding.write":"Permission to publish branding revisions","oauth_settings.read":"Permission to read OAuth settings revisions","oauth_settings.write":"Permission to publish OAuth settings revisions through a release","policy.read":"Permission to read operation policies","policy.write":"Permission to publish operation policies","idp.read":"Permission to read identity provider connections","idp.write":"Permission to create and revise identity provider connections","application.read":"Permission to read applications","application.write":"Permission to create and revise applications, registered or through a release","release.read":"Permission to read project configuration releases","release.write":"Permission to create and revoke project configuration releases","deployment.read":"Permission to read deployments","deployment.write":"Permission to create deployments (deploy, roll back) and to end a preview early","events.read":"Permission to list and get project audit events","variable.read":"Permission to read project variables (a secret's value is never returned)","variable.write":"Permission to set and remove project variables and secrets","domain.read":"Permission to read project domains (reserved; endpoints not yet available)","domain.write":"Permission to create and manage project domains (reserved; endpoints not yet available)","domain.delete":"Permission to delete project domains (reserved; endpoints not yet available)","feature.read":"Permission to read project feature configuration (reserved; endpoints not yet available)","feature.write":"Permission to change project feature configuration (reserved; endpoints not yet available)","origin.read":"Permission to read project origins","origin.write":"Permission to add project origins","origin.delete":"Permission to remove project origins","signing_key.create":"Permission to create signing keys (reserved; endpoints not yet available)","signing_key.read":"Permission to read signing keys (reserved; endpoints not yet available)","signing_key.delete":"Permission to delete signing keys (reserved; endpoints not yet available)","webhook.read":"Permission to read webhooks (reserved; endpoints not yet available)","webhook.write":"Permission to create and manage webhooks (reserved; endpoints not yet available)","webhook.delete":"Permission to delete webhooks (reserved; endpoints not yet available)","session.read":"Permission to read sessions","session.write":"Permission to create and manage sessions","session.delete":"Permission to revoke sessions","personal_access_token.create":"Permission to create personal access tokens in your name, each holding no scope this token lacks","personal_access_token.read":"Permission to list your own personal access tokens (never the tokens themselves)","personal_access_token.delete":"Permission to revoke your own personal access tokens","auth_attempt.read":"Permission to read authentication attempts","auth_attempt.write":"Permission to create and manage authentication attempts"}},"clientCredentials":{"tokenUrl":"https://acc.nextgen.zitadel.com/oauth/token","scopes":{"openid":"OpenID Connect scope","schema.read":"Permission to read schemas","schema.write":"Permission to create and manage schemas","user.read":"Permission to read users","user.write":"Permission to create and manage users","user.delete":"Permission to delete users","team.read":"Permission to read teams","team.write":"Permission to create and manage teams","team.delete":"Permission to delete teams","team_membership.read":"Permission to read team memberships","team_membership.create":"Permission to add users to teams","team_membership.delete":"Permission to remove members from teams","flow_definition.read":"Permission to read flow definitions","flow_definition.write":"Permission to create and manage flow definitions","flow_definition.delete":"Permission to delete flow definitions","project.read":"Permission to read projects","project.write":"Permission to create and manage projects","grant.create":"Permission to create grants","grant.read":"Permission to read grants","grant.delete":"Permission to delete grants","branding.read":"Permission to read branding revisions","branding.write":"Permission to publish branding revisions","oauth_settings.read":"Permission to read OAuth settings revisions","oauth_settings.write":"Permission to publish OAuth settings revisions through a release","policy.read":"Permission to read operation policies","policy.write":"Permission to publish operation policies","idp.read":"Permission to read identity provider connections","idp.write":"Permission to create and revise identity provider connections","application.read":"Permission to read applications","application.write":"Permission to create and revise applications, registered or through a release","release.read":"Permission to read project configuration releases","release.write":"Permission to create and revoke project configuration releases","deployment.read":"Permission to read deployments","deployment.write":"Permission to create deployments (deploy, roll back) and to end a preview early","events.read":"Permission to list and get project audit events","variable.read":"Permission to read project variables (a secret's value is never returned)","variable.write":"Permission to set and remove project variables and secrets","domain.read":"Permission to read project domains (reserved; endpoints not yet available)","domain.write":"Permission to create and manage project domains (reserved; endpoints not yet available)","domain.delete":"Permission to delete project domains (reserved; endpoints not yet available)","feature.read":"Permission to read project feature configuration (reserved; endpoints not yet available)","feature.write":"Permission to change project feature configuration (reserved; endpoints not yet available)","origin.read":"Permission to read project origins","origin.write":"Permission to add project origins","origin.delete":"Permission to remove project origins","signing_key.create":"Permission to create signing keys (reserved; endpoints not yet available)","signing_key.read":"Permission to read signing keys (reserved; endpoints not yet available)","signing_key.delete":"Permission to delete signing keys (reserved; endpoints not yet available)","webhook.read":"Permission to read webhooks (reserved; endpoints not yet available)","webhook.write":"Permission to create and manage webhooks (reserved; endpoints not yet available)","webhook.delete":"Permission to delete webhooks (reserved; endpoints not yet available)","session.read":"Permission to read sessions","session.write":"Permission to create and manage sessions","session.delete":"Permission to revoke sessions","personal_access_token.create":"Permission to create personal access tokens in your name, each holding no scope this token lacks","personal_access_token.read":"Permission to list your own personal access tokens (never the tokens themselves)","personal_access_token.delete":"Permission to revoke your own personal access tokens","auth_attempt.read":"Permission to read authentication attempts","auth_attempt.write":"Permission to create and manage authentication attempts"}}}},"sessionCookie":{"type":"apiKey","in":"cookie","name":"__Host-zitadel_session","description":"The session cookie issued at session creation or superseding handoff exchange.\n\nA browser holds it as `__Host-zitadel_session`, with `Secure`. Over plain\nhttp to a loopback host (`localhost`, `127.0.0.1`, `::1`) the server sets it\nas `zitadel_session` instead, without `Secure` or the prefix, so that Safari\nkeeps it, and accepts that name there too; `__Host-zitadel_session` takes\nprecedence. A program sends `__Host-zitadel_session` over any transport.\n\nA missing or invalid cookie yields `401` with code `auth.unauthorized` and the message\n`Missing or invalid session token.`\n\nCross-site request forgery (CSRF) protection: a state-changing request that\nthis cookie authenticates must come from the same origin. A cross-site\nbrowser request is refused with `403` and code `auth.csrf_invalid`. Every\nsuch request must also send the session's token from `GET /sessions/me/csrf`\nin the `X-Zitadel-CSRF` header, or it answers the same `403`. The only\nexceptions are the `POST …/query` reads and `POST /invitations/lookup`,\nwhich need no token. Safe methods (`GET`) are not checked. A request a\nproject secret authenticates is not affected.\n"}},"schemas":{"error-code":{"type":"string","description":"Stable machine-readable error code."},"error-details":{"type":"object","description":"Standard error payload returned for failed API requests.","required":["code","message"],"properties":{"code":{"$ref":"#/components/schemas/error-code"},"message":{"type":"string","description":"Human-readable explanation of the error."},"details":{"type":"object","description":"Additional error-specific context.","additionalProperties":true}}},"internal":{"description":"An unexpected error occurred.\n\nError code: internal\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"internal"}},"required":["code"]}]},"req-invalid":{"description":"The request is invalid and fails base validation (missing required fields, wrong types, failed regex, etc.). Check the details for more information.\n\nError code: req.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"req.invalid"}},"required":["code"]}]},"project-id":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","x-zitadel-pattern-message":"must be one or more letters, digits, _ or -","example":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5"},"team-id":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","x-zitadel-pattern-message":"must be one or more letters, digits, _ or -","example":"team_01KZZY8PX8K8ATNVDSMRCZY4N1"},"create-user-request":{"title":"CreateUserRequest","description":"The request body for creating a user: the `schema` it follows and the\n`attributes` that must satisfy that schema.\n\nThe server assigns the user's ID and returns it in the response, so the\nrequest carries no `id`. `metadata` is server-owned for the same reason.\nNeither is part of this schema, which is what frees a user schema to declare\nproperties of those names.\n\nA request carrying any other top-level property is rejected rather than\nignored. `attributes` stays open, since the user schema determines what\nbelongs in it.\n","type":"object","additionalProperties":false,"required":["schema","attributes"],"properties":{"schema":{"type":"string","minLength":1,"description":"The ID of the schema that defines the content of `attributes`: the `id`\nthat `publishSchema` (`POST /schemas`) returns or `listSchemas` (`GET /schemas`) lists. A default schema is\nprovided.\n"},"attributes":{"type":"object","additionalProperties":true,"description":"The user's schema-defined content. Validated against `schema`; a\nproperty the schema does not permit is rejected with `req.invalid`.\n"}}},"auth-csrf_invalid":{"description":"The request failed cross-site request forgery validation.\n\nError code: auth.csrf_invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"auth.csrf_invalid"}},"required":["code"]}]},"auth-scope_insufficient":{"description":"The token was not issued with a scope this operation needs.\n\nError code: auth.scope_insufficient\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"auth.scope_insufficient"}},"required":["code"]}]},"auth-unauthorized":{"description":"The request lacks valid authentication credentials.\n\nError code: auth.unauthorized\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"auth.unauthorized"}},"required":["code"]}]},"evt-invalid":{"description":"Event: invalid\n\nError code: evt.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"evt.invalid"}},"required":["code"]}]},"not_implemented":{"description":"This feature is not implemented yet.\n\nError code: not_implemented\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"not_implemented"}},"required":["code"]}]},"unavailable":{"description":"The service could not complete the request right now. Try again.\n\nError code: unavailable\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"unavailable"}},"required":["code"]}]},"user-already_exists":{"description":"A user already exists with the given unique attributes\n\nError code: user.already_exists\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"user.already_exists"}},"required":["code"]}]},"user-invalid":{"description":"User invalid\n\nError code: user.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"user.invalid"}},"required":["code"]}]},"user-not_found":{"description":"User not found\n\nError code: user.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"user.not_found"}},"required":["code"]}]},"user-permission_denied":{"description":"The user management API requires the project secret\n\nError code: user.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"user.permission_denied"}},"required":["code"]}]},"user-id":{"type":"string","pattern":"^user_[a-zA-Z0-9_-]+$","x-zitadel-pattern-message":"must be a user ID: user_ followed by letters, digits, _ or -","example":"user_01KWH3B72K7M7F0N9WD3P2E4YM"},"user-attributes":{"title":"UserAttributes","type":"object","additionalProperties":true,"description":"The user's content, satisfying the schema named by `schema`. Property\nnames and types are determined entirely by that schema.\n"},"team-status":{"type":"string","description":"The lifecycle state of a team.\n\n- `active`: the team is available for use.\n- `deactivated`: the team is no longer active but is retained for historical and audit purposes.\n","enum":["active","deactivated"],"example":"active"},"team-response":{"type":"object","description":"Details of a team.","required":["id","name","status","created_at","updated_at"],"properties":{"id":{"type":"string","description":"The unique identifier of the team."},"name":{"type":"string","description":"The name of the team."},"status":{"$ref":"#/components/schemas/team-status"},"created_at":{"type":"string","format":"date-time","description":"The time when the team was created."},"updated_at":{"type":"string","format":"date-time","description":"The time when the team was last updated."}}},"user-metadata":{"title":"UserMetadata","type":"object","required":["created_at","updated_at","status"],"properties":{"created_at":{"type":"string","format":"date-time","description":"The time when the user was created."},"updated_at":{"type":"string","format":"date-time","description":"The time when the user was last updated."},"status":{"type":"string","description":"The status of the user.","enum":["active","suspended","deactivated","pending_purge"]},"lifecycle_owner_team_id":{"description":"The team that owns this user's identity lifecycle, or `null` when the\nuser is self-owned. This is a single team and a different concept from\nthe user's team memberships: it decides who may deprovision the user, not\nwhich teams the user collaborates in. Memberships are their own paginated\nresource, read with `listUserTeams` (`GET /users/{user_id}/teams`).\n","oneOf":[{"type":"string"},{"type":"null"}]},"lifecycle_owner_team":{"readOnly":true,"description":"The team named by `lifecycle_owner_team_id`, present only when the\nrequest asked for it with `expand: [\"lifecycle_owner_team\"]`. Absent\nmeans it was not requested; `null` means the user is self-owned and\nthere is no owner to resolve.\n\nRequesting it does not guarantee it is present on every user. Today\n`team.read` is checked once for the whole request, so it is. Once that\ncheck is per team, a page may contain a user whose owner the caller may\nnot read. Such a row answers with neither the team nor `null`, because\n`null` already means self-owned. Do not treat the two cases above as the\ncomplete set.\n\nThis is the same representation `getTeam` (`GET /teams/{team_id}`)\nserves. It is a single team, not a collection, so it carries no cap and\nno truncation flag.\n","oneOf":[{"$ref":"#/components/schemas/team-response"},{"type":"null"}]}}},"user-team":{"title":"UserTeam","type":"object","description":"One entry of a user's team memberships: a team the user belongs to, with the\nmembership's participation state. The team's `name` travels with the entry, so\na page renders without a follow-up `POST /teams/query` per row.\n\nMembership is not lifecycle ownership. A user can belong to many teams while\nstill owning their own lifecycle. That single owning team is reported as\n`metadata.lifecycle_owner_team_id` on the user itself.\n","required":["id","name","membership_status","created_at","updated_at"],"properties":{"id":{"type":"string","description":"The unique identifier of the team."},"name":{"type":"string","description":"The name of the team."},"membership_status":{"type":"string","description":"The user's participation state on this team. Memberships the user was\nremoved from are not returned.\n","enum":["pending","active","inactive"]},"created_at":{"type":"string","format":"date-time","description":"The time when the user joined this team."},"updated_at":{"type":"string","format":"date-time","description":"The time when this membership was last changed."}}},"user":{"title":"User","description":"A user is an individual identity in the system. It can represent a person, a\nservice account or any other type of identity.\n\n`attributes` is the document that satisfies the user schema named by\n`schema`. That schema defines its property names and types and validates it.\nThe rest of the object (`id`, `schema`, `metadata`) is the server-owned\nenvelope. Keeping the two apart means a schema may name a property `id` or\n`metadata` without colliding with the envelope. It also means closed-world\nkeywords (`additionalProperties: false`, `propertyNames`,\n`unevaluatedProperties`) behave as their author expects.\n","type":"object","required":["id","schema","attributes","metadata"],"properties":{"id":{"readOnly":true,"$ref":"#/components/schemas/user-id"},"schema":{"type":"string","description":"The ID of the schema that defines the content of `attributes`.\n`getSchema` (`GET /schemas/{schema_id}`) returns it, and `publishSchema` (`POST /schemas`) creates one.\n"},"attributes":{"$ref":"#/components/schemas/user-attributes"},"metadata":{"readOnly":true,"$ref":"#/components/schemas/user-metadata"},"identifier":{"readOnly":true,"type":"string","description":"The current value of the user schema's designated identifier\n(`x-identifier`), resolved when the user is read. Absent when the schema\ndesignates no identifier or the user carries no value for it.\n","example":"ada@example.com"},"identifier_property":{"readOnly":true,"type":"string","description":"The schema property `identifier` came from. With it, a client can read\nthe property's definition for its meaning (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when `identifier` is.\n","example":"email"},"display":{"readOnly":true,"type":"string","description":"The `x-display` rendering: the designated properties' values joined in\nlist order, resolved when the user is read. It is for display only.\nAbsent when the schema designates no display properties or the user\ncarries no values for them. Clients render `display`, falling back to\n`identifier`, then `id`.\n","example":"Ada Lovelace"},"teams":{"readOnly":true,"type":"array","description":"The user's team memberships, present only when the request asked for them\nwith `expand: [\"teams\"]`. Absent means it was not requested; `[]` means\nthe user has none.\n\nMemberships sit outside `metadata`: they are a related collection, not\npart of the server-owned envelope, and a different concept from\n`metadata.lifecycle_owner_team_id`, which names the one team that owns the\nuser's lifecycle.\n","items":{"$ref":"#/components/schemas/user-team"}},"teams_truncated":{"readOnly":true,"type":"boolean","description":"True when the user is on more teams than the embedded list carries. The\nembedded list is capped and cannot be paged; read every team with\n`listUserTeams` (`GET /users/{user_id}/teams`). Present only alongside\n`teams`.\n"}}},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"page-token":{"type":"string","example":"v1.dGhpcyBpcyBvcGFxdWU.SflKxwRJSMeKKF2QT4fw"},"user-expand":{"type":"string","description":"A related object to embed on each returned user.\n\n- `teams`: the user's team memberships, as `teams` on each user. The property\n  is omitted entirely when not requested and `[]` when the user has none, so\n  \"did not ask\" is distinguishable from \"there are none\". Embedded lists are\n  capped and are not paginated: past the cap the user carries\n  `teams_truncated: true` and the whole list is read with `listUserTeams` (`GET /users/{user_id}/teams`)\n  (`GET /users/{user_id}/teams`).\n\n  Membership is team participation, not lifecycle ownership. The\n  owning team stays at `metadata.lifecycle_owner_team_id`.\n\n  Requires `team_membership.read` in addition to `user.read`.\n\n- `lifecycle_owner_team`: the team that owns the user's identity lifecycle,\n  as `metadata.lifecycle_owner_team`. It resolves the ID already carried at\n  `metadata.lifecycle_owner_team_id`, and serves the same representation as\n  `getTeam` (`GET /teams/{team_id}`). The property is omitted when not requested and\n  `null` when the user is self-owned. One team, so no cap and no truncation\n  flag.\n\n  Requires `team.read` in addition to `user.read`.\n\nThe two are independent: asking for one says nothing about the other, and\nneither implies the other's permission.\n\nThe scope requirements apply to project secrets. A console session carries\nno scopes; it may use both expansions when it may read the whole project\n(the `viewer` role or above). A session whose grant covers only part of the\nproject still lists users, but an expansion is refused with\n`403 user.permission_denied`.\n","enum":["teams","lifecycle_owner_team"]},"user-sort-field":{"type":"string","description":"The field to sort users by. Only fields stored on the user are sortable: a\nvalue computed per request would skip or duplicate rows between pages.\n\nSorting by `lifecycle_owner_team_id` groups self-owned users together,\nbecause they have no owning team.\n","enum":["created_at","id","schema","status","lifecycle_owner_team_id"]},"sort-direction":{"type":"string","enum":["asc","desc"]},"user-filter-field":{"type":"string","description":"The field to filter users by, one of:\n- `created_at`: RFC3339 timestamp\n- `id`: user ID\n- `identifier`: the value returned as the user's `identifier`: the property\n  designated by `x-identifier` in the revision of the schema the user is on.\n  `starts_with`, a case-insensitive match on the start of the value, is the\n  only operation. Case is folded as for a unique property, so a value found\n  here is the value sign-in resolves. The value may not be empty or longer\n  than 256 characters, only string values match, and the filter may be given\n  once. An index answers it, and the users come back ordered by identifier,\n  then `id`: `sorting` cannot be combined with it.\n- `schema`: the schema the user's attributes satisfy, matched against the\n  value the user carries as `schema`. Each revision of a schema has its own\n  URL, so `equals` selects the users on one revision and `not_equals` the\n  users on any other.\n- `schema_object_type`: the `object_type` of the user's schema, which every\n  revision of that schema shares. It may be repeated, like any field: give\n  `not_equals` once per object type to exclude several. A schema without an\n  object type reads as `\"\"`, so `not_equals` matches its users and `equals`\n  `\"\"` selects them. Combine `equals` here with `schema` `not_equals` the\n  newest revision to find the users still on an older one.\n- `status`: one of `active`, `suspended`, `deactivated`, `pending_purge`\n- `team_id`: restricts the result to users holding an **active** membership\n  in that team. A user who has been invited but has not accepted does not\n  match. `equals` is the only operation, and the field may be given once,\n  because it names one team, not a set.\n- `lifecycle_owner_team_id`: the team that owns the user's identity\n  lifecycle. A self-owned user has no owning team, and a null filter value\n  is rejected, so self-owned users cannot be selected by this field.\n\n**The two team fields answer different questions.** `team_id` is membership:\nwhich team the user collaborates in, readable per user at\n`GET /users/{user_id}/teams`. `lifecycle_owner_team_id` is ownership: which\nteam may deprovision the user. A user can belong to many teams while owning\ntheir own lifecycle, so the two disagree often and neither implies the other.\n\n`identifier`, `team_id` and `schema_object_type` are filterable but not\nsortable, so none is a valid sort field.\n\nFiltering on `team_id` requires `team_membership.read` in addition to\n`user.read`: it reads the same memberships that `expand: [\"teams\"]` embeds.\nA console session, which carries no scopes, may filter on it when it may read\nthe whole project (the `viewer` role or above); with a grant covering only\npart of the project the filter is refused with `403 user.permission_denied`.\n","enum":["created_at","id","identifier","schema","schema_object_type","status","team_id","lifecycle_owner_team_id"]},"filter-value":{"description":"The value a query endpoint filters by. It is a union of types. A value that\ncannot be assigned to the field being filtered answers `400`.\n","oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"filter-operation":{"type":"string","description":"The operation a filter applies to a field on a query endpoint.\n\nOn text fields, `contains` is a case-insensitive substring match. `equals`\ncompares the whole value and is case-sensitive unless the field documents\notherwise. `starts_with` is a case-insensitive match on the start of the\nvalue, answered from an index; only the fields that name it accept it.\n","enum":["equals","not_equals","contains","not_contains","starts_with","less_than","less_than_or_equal","greater_than","greater_than_or_equal"]},"query-users-request":{"type":"object","description":"Request to query the users of a project.","properties":{"limit":{"$ref":"#/components/schemas/limit"},"page_token":{"description":"Token to retrieve the next page of results. Must be sent with the same\n`sorting` as the request that issued the token. Omitting `sorting` reuses\nthe default sort and only succeeds when that default matches the token.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]},"expand":{"type":"array","description":"Related collections to embed on each user. Omit it and no embedded\ncollection is returned. An unrecognised value is rejected.\n","uniqueItems":true,"items":{"$ref":"#/components/schemas/user-expand"}},"sorting":{"type":"object","required":["field","direction"],"properties":{"field":{"$ref":"#/components/schemas/user-sort-field","description":"The field to sort by."},"direction":{"$ref":"#/components/schemas/sort-direction","description":"The direction to sort by."}}},"filter":{"type":"array","description":"Filter criteria for querying users. Criteria are combined with AND.","items":{"type":"object","required":["field","operation"],"properties":{"field":{"$ref":"#/components/schemas/user-filter-field","description":"The field to filter by."},"value":{"$ref":"#/components/schemas/filter-value"},"operation":{"$ref":"#/components/schemas/filter-operation"}}}}}},"query-users-response":{"type":"object","description":"Paginated list of users.","required":["users"],"properties":{"users":{"type":"array","items":{"$ref":"#/components/schemas/user"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"proj-last_owner":{"description":"This user is the last active member of the team that owns a project. Add another member to that team, then try again.\n\nError code: proj.last_owner\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"proj.last_owner"}},"required":["code"]}]},"patch-user-request":{"title":"PatchUserRequest","description":"A partial update, merged into the user's current state. At least one of\n`schema` and `attributes` must be present; an empty patch is rejected with\n`user.invalid`.\n\n`attributes` is merged key by key into the stored attributes: an omitted\nkey stays untouched, an object merges recursively, `null` deletes the\nattribute, and any other value replaces the stored one. The merged result\nis validated as a whole against the user's schema, so a patch that deletes\nor invalidates a required property is rejected with `req.invalid`.\n\n`schema` moves the user to another registered schema, which is how a user\nupgrades to a newer schema revision. The target must be a revision of the\nuser's current schema (the same `objectType`), newer or older; a schema of\nanother `objectType` is rejected with `user.invalid`. A schema stored\nwithout an `objectType` is a revision of nothing, so a user cannot move to\nor from one. The request must be self-contained: merged attributes are\nvalidated against the new schema before commit, and every uniqueness claim\nis recomputed under the new schema's annotations. Values removed by an\nearlier move are not restored by moving back.\n","type":"object","additionalProperties":false,"minProperties":1,"properties":{"schema":{"type":"string","minLength":1,"description":"The ID of the schema the user follows after this patch: the `id` that\n`publishSchema` (`POST /schemas`) returns or `listSchemas` (`GET /schemas`) lists. Omit it to keep the\ncurrent schema. The schema must already be registered and be a revision\nof the user's current schema.\n"},"dry_run":{"type":"boolean","description":"Set to `true` to check the patch without applying it. The response is\nwhat the real request would answer now; a `200` holds the user as the\npatch would leave them, with `metadata.updated_at` unchanged. Leave it\nout to apply the patch. A server from before this field refuses the\nrequest with `400` and changes nothing.\n"},"attributes":{"type":"object","additionalProperties":true,"minProperties":1,"description":"The changed attributes only. `null` deletes an attribute; omitted\nkeys are untouched.\n"}}},"user-conflict":{"description":"The user was modified concurrently, retry the request\n\nError code: user.conflict\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"user.conflict"}},"required":["code"]}]},"user-identity-link":{"title":"UserIdentityLink","type":"object","description":"One provider account linked to the user.","required":["id","connection_id","created_at"],"properties":{"id":{"type":"string","description":"The unique identifier of the link.","example":"idplink_01KWH3B5Q8Z6V4N2M0X9C7R1TD"},"connection_id":{"type":"string","description":"The ID of the identity provider connection the account signs in through,\nnot a revision ID. `getIdp` (`GET /idps/{idp_id}`) resolves it.\n","example":"idp_01KWH3A9F2J7K5P3Q1W8E6Y4UB"},"created_at":{"type":"string","format":"date-time","description":"When the account was linked to the user."}}},"list-user-identity-links-response":{"type":"object","description":"Response containing the provider accounts linked to the user.","required":["identity_links"],"properties":{"identity_links":{"type":"array","items":{"$ref":"#/components/schemas/user-identity-link"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"list-user-passkeys-response":{"type":"object","description":"Response containing the user's passkeys.","required":["passkeys"],"properties":{"passkeys":{"type":"array","items":{"type":"object","required":["id","name","created_at"],"properties":{"id":{"type":"string","description":"The unique identifier of the passkey."},"name":{"type":"string","description":"The name of the passkey."},"created_at":{"type":"string","format":"date-time","description":"The timestamp when the passkey was created."}}}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"begin-user-passkey-registration-request":{"type":"object","description":"The request body for beginning a WebAuthn registration ceremony for the user.\n\nManagement callers are not browsers, so the relying-party parameters cannot\nbe derived from an Origin header and must be supplied explicitly.\n","required":["rp_id","rp_origins"],"additionalProperties":false,"properties":{"rp_id":{"type":"string","minLength":1,"description":"The relying party ID, the domain the credential is scoped to.","example":"example.com"},"rp_origins":{"type":"array","description":"The origins allowed for this ceremony's attestation.","minItems":1,"items":{"type":"string","format":"uri"},"example":["https://example.com"]},"username":{"type":"string","description":"The account label the browser shows in its credential picker. Optional:\nwhen omitted, a neutral default is used.\n","example":"alice@example.com"},"display_name":{"type":"string","description":"The display name the browser shows. Optional; defaults to the username.","example":"Alice Example"}}},"att-already_handed_off":{"description":"The auth attempt was already handed off. No new handoff can be created and the previous token will only be returned if the same Idempotency-Key header is provided.\n\nError code: att.already_handed_off\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"att.already_handed_off"}},"required":["code"]}]},"att-invalid_request":{"description":"Invalid request\n\nError code: att.invalid_request\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"att.invalid_request"}},"required":["code"]}]},"att-invalid_state":{"description":"The auth attempt is in an invalid state for the intended change.\n\nError code: att.invalid_state\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"att.invalid_state"}},"required":["code"]}]},"att-not_found":{"description":"The auth attempt was not found.\n\nError code: att.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"att.not_found"}},"required":["code"]}]},"begin-user-passkey-registration-response":{"type":"object","description":"The started registration ceremony.","required":["registration_id","options"],"properties":{"registration_id":{"type":"string","description":"The ID of this ceremony. Pass it back as `registration_id` on\n`POST /users/{user_id}/passkeys/registrations/{registration_id}`, together\nwith the attestation.\n"},"options":{"type":"object","description":"The `PublicKeyCredentialCreationOptions` object, passed directly to the\nbrowser's `navigator.credentials.create()`.\n","additionalProperties":true}}},"finish-user-passkey-registration-request":{"type":"object","description":"The request body for completing a WebAuthn registration ceremony.","required":["attestation"],"additionalProperties":false,"properties":{"attestation":{"type":"object","description":"The WebAuthn AttestationResponse object from `navigator.credentials.create()`.","additionalProperties":true},"name":{"type":"string","description":"Label for the credential in passkey management surfaces. Optional: when\nomitted, a name is derived from the credential itself.\n","example":"Work laptop"}}},"att-invalid_proof":{"description":"The proof or request is invalid.\n\nError code: att.invalid_proof\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"att.invalid_proof"}},"required":["code"]}]},"att-proof_rejected":{"description":"The proof was rejected.\n\nError code: att.proof_rejected\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"att.proof_rejected"}},"required":["code"]}]},"att-stale_challenge":{"description":"The challenge is stale or was re-issued.\n\nError code: att.stale_challenge\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"att.stale_challenge"}},"required":["code"]}]},"user-password_empty":{"description":"The password must not be empty.\n\nError code: user.password_empty\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"user.password_empty"}},"required":["code"]}]},"user-password_hashing_busy":{"description":"The server is hashing too many passwords right now. Try again in a moment.\n\nError code: user.password_hashing_busy\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"user.password_hashing_busy"}},"required":["code"]}]},"user-password_policy_violation":{"description":"The password does not meet the password policy.\n\nError code: user.password_policy_violation\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"user.password_policy_violation"}},"required":["code"]}]},"user-password_too_long":{"description":"The password is too long for the project's password hashing method.\n\nError code: user.password_too_long\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"user.password_too_long"}},"required":["code"]}]},"finish-user-passkey-registration-response":{"type":"object","description":"The registered passkey.","required":["id","name","created_at"],"properties":{"id":{"type":"string","description":"The unique identifier of the passkey."},"name":{"type":"string","description":"The name of the passkey."},"created_at":{"type":"string","format":"date-time","description":"The timestamp when the passkey was created."}}},"too-many-requests":{"description":"Why the server refused the request for now. Each member names its error\ncode; `req.rate_limited` joins them when the server's own rate limits land.\nRetry after the number of seconds in the `Retry-After` header.\n","oneOf":[{"$ref":"#/components/schemas/user-password_hashing_busy"}],"discriminator":{"propertyName":"code","mapping":{"user.password_hashing_busy":"#/components/schemas/user-password_hashing_busy"}}},"user-password-state":{"type":"object","description":"Whether the user has a password, and since when. The password and its hash\nare never returned.\n","properties":{"set_at":{"type":"string","format":"date-time","description":"When the current password was set. Absent when the user has no password."}}},"set-user-password-request":{"type":"object","description":"The request body for setting the user's password.","required":["password"],"properties":{"password":{"type":"string","description":"The new password for the user."}}},"proj-not_found":{"description":"Project not found\n\nError code: proj.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"proj.not_found"}},"required":["code"]}]},"proj-origin_not_allowed":{"description":"The request origin is not an origin of this project\n\nError code: proj.origin_not_allowed\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"proj.origin_not_allowed"}},"required":["code"]}]},"proj-preview_not_live":{"description":"No live preview for this origin; run zitadel preview on this branch\n\nError code: proj.preview_not_live\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"proj.preview_not_live"}},"required":["code"]}]},"rel-no_default":{"description":"The project has no primary deployment\n\nError code: rel.no_default\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"rel.no_default"}},"required":["code"]}]},"rel-not_deployed":{"description":"Nothing is deployed to this origin\n\nError code: rel.not_deployed\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"rel.not_deployed"}},"required":["code"]}]},"rel-not_found":{"description":"Release: not found\n\nError code: rel.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"rel.not_found"}},"required":["code"]}]},"rel-revoked":{"description":"The release this attempt runs on was revoked\n\nError code: rel.revoked\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"rel.revoked"}},"required":["code"]}]},"list-user-teams-response":{"type":"object","description":"Paginated list of the teams a user belongs to.","required":["teams"],"properties":{"teams":{"type":"array","items":{"$ref":"#/components/schemas/user-team"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"sess-project_mismatch":{"description":"The session belongs to a different project.\n\nError code: sess.project_mismatch\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sess.project_mismatch"}},"required":["code"]}]},"patch-my-user-request":{"title":"PatchMyUserRequest","description":"A partial update of the caller's own attributes, merged into the current\nstate: an omitted key stays untouched, an object merges recursively,\n`null` deletes the attribute, and any other value replaces the stored one.\nThe merged result is validated as a whole against the user's schema.\n\nUnlike `updateUser` (`PATCH /users/{user_id}`), this request cannot move\nthe user to another schema: schema upgrades are a management operation.\n","type":"object","additionalProperties":false,"required":["attributes"],"properties":{"attributes":{"type":"object","additionalProperties":true,"minProperties":1,"description":"The changed attributes only. `null` deletes an attribute; omitted\nkeys are untouched.\n"}}},"consent-id":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","x-zitadel-pattern-message":"must be one or more letters, digits, _ or -","description":"The consent ID (`consent_<opaque>`): the `id` that `listMyConsents`\n(`GET /users/me/consents`) lists.\n","example":"consent_01JD3B7K2M9P4R6T8V0X2Z4C6E"},"consent":{"type":"object","description":"What the signed-in user consented to a client doing with an API: their\nanswer for each scope the client was offered, granted or declined.\n","required":["id","client_id","scopes","declined_scopes","created_at","updated_at","expires_at"],"properties":{"id":{"$ref":"#/components/schemas/consent-id"},"client_id":{"type":"string","description":"The client the user consented to: a client ID of an application, or the\nURL of the client's metadata document.\n","example":"https://agent.example.com/oauth/client-metadata.json"},"resource":{"type":"string","description":"The API the consent is for, by the identifier the client's request named\nas its `resource`. Absent when the request named none.\n","example":"https://zitadel.example.com/api/v1"},"scopes":{"type":"array","description":"The scopes the user granted.","items":{"type":"string"},"example":["user.read","offline_access"]},"declined_scopes":{"type":"array","description":"The scopes the user was offered and left unticked. A client that asks\nfor no other scopes is answered without the consent step.\n","items":{"type":"string"},"example":["user.write"]},"created_at":{"type":"string","format":"date-time","description":"When the user first answered the client's consent step."},"updated_at":{"type":"string","format":"date-time","description":"When the user last answered the client's consent step."},"expires_at":{"type":"string","format":"date-time","description":"When the consent stops counting, 90 days after the user last answered\nthe step. The client is then asked again.\n"}}},"list-my-consents-response":{"type":"object","description":"The signed-in user's consents.","required":["consents"],"properties":{"consents":{"type":"array","items":{"$ref":"#/components/schemas/consent"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"consent-not_found":{"description":"Consent: not found\n\nError code: consent.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"consent.not_found"}},"required":["code"]}]},"tkn-pat_owner_not_platform":{"description":"Only a person homed in the platform project can hold a personal access token\n\nError code: tkn.pat_owner_not_platform\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"tkn.pat_owner_not_platform"}},"required":["code"]}]},"personal-access-token-id":{"type":"string","pattern":"^tkn_[a-zA-Z0-9_-]+$","x-zitadel-pattern-message":"must be a token ID: tkn_ followed by letters, digits, _ or -","description":"The personal access token's ID (`tkn_<opaque>`): the `id` that\n`createMyPersonalAccessToken` (`POST /users/me/personal_access_tokens`)\nreturns or `listMyPersonalAccessTokens` lists. It is not the token.\n","example":"tkn_01JD3B7K2M9P4R6T8V0X2Z4C6E"},"personal-access-token":{"title":"PersonalAccessToken","description":"A personal access token's record: what it is called, what it may be used\nfor and until when. It never holds the token itself.\n","type":"object","required":["id","name","scopes","created_at","expires_at"],"properties":{"id":{"$ref":"#/components/schemas/personal-access-token-id"},"name":{"type":"string","description":"The name its owner gave it, to tell it from their others.","example":"Deploy from CI"},"scopes":{"type":"array","description":"The scopes it may be used with. They cap what its owner's grants allow\nand never grant anything themselves.\n","items":{"type":"string"},"example":["project.read","deployment.read"]},"created_at":{"type":"string","format":"date-time","description":"When it was created.","example":"2026-12-02T10:00:00Z"},"expires_at":{"type":"string","format":"date-time","description":"When it stops working. A token past this time is refused.","example":"2027-03-02T10:00:00Z"},"client_id":{"description":"The OAuth client of the access token it was created with, such as the\nCLI or an MCP client. Null when it was created from a console session.\n","oneOf":[{"type":"string"},{"type":"null"}],"example":"https://claude.ai/oauth/mcp-client-metadata"}}},"list-personal-access-tokens-response":{"type":"object","description":"A page of the caller's personal access tokens, newest first, expired ones\nincluded.\n","required":["personal_access_tokens"],"properties":{"personal_access_tokens":{"type":"array","items":{"$ref":"#/components/schemas/personal-access-token"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nPresent when the page was full. A following request may return an empty page\nand no token, which ends the listing.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"create-personal-access-token-request":{"title":"CreatePersonalAccessTokenRequest","type":"object","additionalProperties":false,"required":["name","scopes","expires_at"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"A name that tells this token from your others, 1–200 characters.","example":"Deploy from CI"},"scopes":{"type":"array","minItems":1,"maxItems":100,"uniqueItems":true,"description":"The scopes the token may be used with, one or more. Each must be a\nscope an access token issued for a person can be used with: the ones\nthe MCP endpoint's metadata lists in `scopes_supported`, except\n`personal_access_token.create`. Created with an access token, it holds\nno scope that token was not issued with.\n","items":{"type":"string","minLength":1,"maxLength":100},"example":["project.read","deployment.read"]},"expires_at":{"type":"string","format":"date-time","description":"When the token stops working: in the future, and at most 90 days from\nnow. It cannot be extended later.\n","example":"2027-03-02T10:00:00Z"}}},"tkn-invalid_tknid":{"description":"Token identifiers do not match token type\n\nError code: tkn.invalid_tknid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"tkn.invalid_tknid"}},"required":["code"]}]},"tkn-pat_invalid":{"description":"The personal access token request is invalid\n\nError code: tkn.pat_invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"tkn.pat_invalid"}},"required":["code"]}]},"tkn-pat_sign_in_required":{"description":"Sign in again, then create the personal access token.\n\nError code: tkn.pat_sign_in_required\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"tkn.pat_sign_in_required"}},"required":["code"]}]},"create-personal-access-token-response":{"title":"CreatePersonalAccessTokenResponse","description":"The new token's record, and the token, which no other response returns.","allOf":[{"$ref":"#/components/schemas/personal-access-token"},{"type":"object","required":["token"],"properties":{"token":{"type":"string","description":"The token: `zpat_`, its `id` without `tkn_`, `_`, then a random\nsecret and a checksum. Send it as `Authorization: Bearer <token>`.\nStore it now: the server keeps only a hash of it, and no response\nreturns it again.\n","example":"zpat_01JD3B7K2M9P4R6T8V0X2Z4C6E_HJLUCeGiemasUd5AEkBcszevcyRgH7XfVjZncj3xyem0IDZ5N"}}}]},"tkn-pat_not_found":{"description":"Personal access token not found\n\nError code: tkn.pat_not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"tkn.pat_not_found"}},"required":["code"]}]},"project-origin":{"title":"ProjectOrigin","type":"object","description":"One of a project's origins: a pattern and what it is for. A `primary`\npattern is an exact origin (scheme and host, no `*`) that admits requests\nfrom the URLs it matches. A `preview` pattern only bounds which URLs a\npreview deploy may register. It may include at most one `*` inside a single\nhost label; `*` matches one or more characters, none of them a dot. A\nliteral beats a wildcard. Unknown hosts are accepted as written.\nAn empty list admits no origin except a loopback origin, which is admitted\nwithout a pattern.\n\nA loopback origin is on the local machine: `localhost`, a name under\n`.localhost`, or a loopback IP such as `127.0.0.1` or `[::1]`, on any port\nand over `http` or `https`. It is never a preview URL.\n","required":["pattern","kind"],"properties":{"pattern":{"type":"string","description":"The origin pattern: an exact origin for `primary`, or an origin with at\nmost one `*` for `preview`.\n"},"kind":{"type":"string","description":"What the pattern is for: `primary` admits requests from the URLs it\nmatches, `preview` bounds which URLs a preview deploy may register.\n","enum":["primary","preview"]}},"example":{"pattern":"https://*-acmeinc.vercel.app","kind":"preview"}},"password-hash-policy":{"type":"object","description":"The method a project's passwords are hashed with. A project that has not set\none hashes with the server default, which is argon2id unless the deployment\nconfigured otherwise.\n\nThis governs hashing only. Passwords already stored keep verifying under the\nmethod they were written with. A policy change rewrites no stored password.\nA password moves to the new method on its owner's next successful sign-in,\nor when its owner sets a new one.\n","required":["algorithm","params"],"properties":{"algorithm":{"type":"string","description":"The hashing algorithm. Only algorithms that can hash appear here. The\nlegacy encodings the server can still verify for imported users\n(md5, phpass, drupal7) are not among them.\n","enum":["argon2i","argon2id","bcrypt","scrypt","pbkdf2","sha2"],"example":"argon2id"},"params":{"type":"object","description":"The algorithm's cost parameters. Give exactly the parameters the chosen\nalgorithm takes: `time`, `memory` and `threads` for argon2i and argon2id;\n`cost` for bcrypt and scrypt; `rounds` and `hash` for pbkdf2 and sha2.\nA parameter another algorithm takes is rejected rather than ignored.\nA missing one is not filled in from a default, because cost is the whole\nof a hashing method's strength.\n\nThe properties below are the union across algorithms, so which of them\napply, and which `hash` values, depends on `algorithm`.\n\nValues outside the limits the deployment configured are rejected. So is\nan algorithm the deployment cannot verify, because hashing with a method\nthat cannot be read back would lock out every user whose password was\nwritten that way.\n","properties":{"time":{"type":"integer","description":"argon2 passes over memory.","example":3},"memory":{"type":"integer","description":"argon2 memory in KiB.","example":65536},"threads":{"type":"integer","description":"argon2 lanes.","example":4},"cost":{"type":"integer","description":"bcrypt cost, or scrypt's log2 of the CPU/memory cost.","example":12},"rounds":{"type":"integer","description":"pbkdf2 or sha2 iteration count.","example":210000},"hash":{"type":"string","description":"The underlying hash. pbkdf2 takes any of the values listed here.\nsha2 takes only `sha256` and `sha512`, because it is the crypt(3)\nscheme, which has no other form. Any other combination is rejected\nwith `proj.password_hash_invalid`.\n","enum":["sha1","sha224","sha256","sha384","sha512"],"example":"sha256"}}}}},"project-response":{"type":"object","description":"The current state of a project.","required":["id","name","origins","created_at","updated_at"],"properties":{"id":{"type":"string","description":"The unique identifier of the project."},"name":{"type":"string","description":"The name of the project."},"origins":{"type":"array","items":{"$ref":"#/components/schemas/project-origin"},"description":"The project's origins. An empty list admits no origin except a loopback\norigin, which is admitted without a pattern.\n"},"created_at":{"type":"string","format":"date-time","description":"The time when the project was created."},"updated_at":{"type":"string","format":"date-time","description":"The time when the project was last updated."},"password_hash":{"description":"The method this project's passwords are hashed with. Null when the project\nuses the server default.\n","oneOf":[{"$ref":"#/components/schemas/password-hash-policy"},{"type":"null"}]}}},"list-my-projects-response":{"type":"object","description":"Paginated list of projects, ordered by project ID.","required":["projects"],"properties":{"projects":{"type":"array","items":{"$ref":"#/components/schemas/project-response"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nPresent when the page was full. A following request may return an empty page\nand no token, which ends the listing.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"auth-method":{"x-meta-schema":true,"type":"object","required":["enabled"],"additionalProperties":false,"properties":{"enabled":{"type":"boolean","description":"Whether the authentication method is enabled."}}},"sso-auth-method":{"x-meta-schema":true,"title":"SSOAuthMethod","type":"object","required":["enabled"],"additionalProperties":false,"properties":{"enabled":{"type":"boolean","description":"Whether the authentication method is enabled."},"providers":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]*$","x-zitadel-pattern-message":"must start with a lowercase letter or digit and use only lowercase letters, digits, _ and -","maxLength":64,"examples":["google","corp_idp"]},"description":"Slugs of the project's identity providers (external sign-ins such as Google) that users of this schema can sign in with. Each entry must match the `slug` of a connection document under `.zitadel/idps/`; an identity provider existing does not by itself make it available here."}},"if":{"properties":{"enabled":{"const":true}},"required":["enabled"]},"then":{"required":["providers"]},"else":{"not":{"required":["providers"]}}},"auth-methods":{"x-meta-schema":true,"type":"object","description":"The authentication methods users of this schema can use, one entry per method. At least one is required.","minProperties":1,"additionalProperties":false,"properties":{"password":{"$ref":"#/components/schemas/auth-method"},"passkey":{"$ref":"#/components/schemas/auth-method"},"magic_link":{"$ref":"#/components/schemas/auth-method"},"sso":{"$ref":"#/components/schemas/sso-auth-method"},"otp":{"$ref":"#/components/schemas/auth-method"}}},"property-name":{"x-meta-schema":true,"type":"string","pattern":"^[^.]+$","x-zitadel-pattern-message":"must not be empty or contain a .","description":"The name of a single user attribute."},"user-property":{"x-meta-schema":"json-schema","$schema":"https://json-schema.org/draft/2020-12/schema","title":"UserProperty","type":"object","description":"The meta-schema that one property of a user schema is validated against.\n\nNative JSON Schema keywords such as `type`, `format`, `title` and `writeOnly`\nare accepted without being listed below. Any other key is refused, unless it\nis one of the annotations listed below. `writeOnly: true` is reserved for a\nvalue that may be written but is never returned by the read API; nothing\nenforces it today, so responses still include write-only properties.\n\n`format` is enforced on user writes for the standard JSON Schema names, such\nas `email`, `uri`, `uuid`, `date` and `date-time`. Any other name, such as\n`phone`, is only an annotation; use `pattern` to enforce one.\n","additionalProperties":true,"properties":{"x-unique":{"oneOf":[{"type":"string","enum":["unspecified","project","team"]},{"type":"null"}],"description":"The scope in which this property's value must be unique, if applicable. `unspecified` enforces no uniqueness."},"x-claim":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The name of the claim this property supplies in a token, if applicable. A claim is a named piece of user data in a token."},"x-audit":{"type":"boolean","default":false,"description":"Whether this property's value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n"},"properties":{"type":"object","description":"The nested properties of this property, as a map. The key is the\nproperty name and the value is that property's schema.\n","propertyNames":{"$ref":"#/components/schemas/property-name"},"additionalProperties":{"$ref":"#/components/schemas/user-property"}}}},"user-schema":{"x-meta-schema":"json-schema","title":"UserSchema","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","description":"The meta-schema that a user schema document is validated against. A user\nschema is the JSON Schema that says which attributes a user has, and which\nattribute identifies the user.\n","required":["metaSchema","kind","objectType","x-auth-methods"],"additionalProperties":true,"properties":{"$schema":{"type":"string","const":"https://json-schema.org/draft/2020-12/schema","description":"The JSON Schema version used for this schema."},"objectType":{"type":"string","maxLength":256,"description":"The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n","example":"human-user"},"kind":{"type":"string","const":"user-schema","description":"Must be `user-schema`. It selects this schema type in a create request."},"metaSchema":{"type":"string","format":"uri","maxLength":1024,"description":"The URI of the user meta-schema version this schema uses."},"x-auth-methods":{"$ref":"#/components/schemas/auth-methods"},"x-identifier":{"type":"string","minLength":1,"description":"Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` \"project\".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n","example":"email"},"x-display":{"type":"array","minItems":1,"items":{"type":"string","minLength":1},"description":"Ordered leaf property paths whose values, joined with a space, render\nthe user's display name.\n"},"properties":{"type":"object","description":"The user's attributes, as a map. The key is the attribute name and the\nvalue is that attribute's schema.\n","propertyNames":{"$ref":"#/components/schemas/property-name"},"additionalProperties":{"$ref":"#/components/schemas/user-property"}}}},"schema-document":{"title":"SchemaDocument","description":"The customer-authored JSON Schema document, served verbatim.","oneOf":[{"$ref":"#/components/schemas/user-schema"}],"discriminator":{"propertyName":"kind","mapping":{"user-schema":"#/components/schemas/user-schema"}}},"schema-metadata":{"title":"SchemaMetadata","type":"object","required":["created_at"],"properties":{"created_at":{"type":"string","format":"date-time","description":"The time when the schema was created."},"in_use":{"type":"boolean","description":"Whether any user of the project is on this revision. Only set when\n`listSchemas` (`GET /schemas`) is asked for it with `expand=in_use`;\nomitted otherwise.\n"}}},"schema":{"title":"Schema","description":"A schema resource: the server-owned envelope around a customer-authored\nJSON Schema document.\n\n`schema` is the customer-authored document, served verbatim: its author\ndefines its keys and contents. The rest of the object (`id` and `metadata`)\nis the server-owned envelope. Keeping the two apart means the\ndocument may declare any property (including `id` or `metadata`) without\ncolliding with the envelope, and the resource `id` stays distinguishable\nfrom the document's own `$id`.\n","type":"object","required":["id","schema","metadata"],"properties":{"id":{"readOnly":true,"type":"string","description":"The schema's ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n","example":"sch_01H455VB4213EF62K49QF6M73F"},"schema":{"$ref":"#/components/schemas/schema-document"},"metadata":{"readOnly":true,"$ref":"#/components/schemas/schema-metadata"}}},"proj-missing_id":{"description":"Project: missing id\n\nError code: proj.missing_id\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"proj.missing_id"}},"required":["code"]}]},"session-id":{"type":"string","pattern":"^sess_[a-zA-Z0-9_-]+$","x-zitadel-pattern-message":"must be a session ID: sess_ followed by letters, digits, _ or -","example":"sess_01J0Z9KX7Y0Q2Y7JX5M9K2YF3C","description":"The unique identifier of this session, an opaque string with a `sess_` prefix."},"user-ref":{"type":"object","title":"UserRef","description":"A resolved reference to a user. Fields are named for their role, not for a\nschema property, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema's `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nA missing or deleted user degrades to `user_id` only.\n","required":["user_id"],"properties":{"user_id":{"$ref":"#/components/schemas/user-id","description":"The referenced user's ID. Always present."},"identifier":{"type":"string","description":"The current value of the schema's designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n","example":"ada@example.com"},"identifier_property":{"type":"string","description":"The schema property `identifier` came from, so clients can reach the\nproperty's schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n","example":"email"},"display":{"type":"string","description":"The `x-display` rendering: the designated properties' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n","example":"Ada Lovelace"}}},"factor-method":{"type":"string","description":"An authentication factor method.","enum":["identifier","password","passkey","sso"],"example":"password"},"identifier-factor-payload":{"title":"IdentifierFactorPayload","type":"object","description":"The metadata of a verified identifier factor.","required":["method","user_id"],"properties":{"method":{"type":"string","enum":["identifier"],"description":"Always `identifier`; the discriminator of the payload union."},"user_id":{"$ref":"#/components/schemas/user-id","description":"The ID of the identified user."}}},"password-factor-payload":{"title":"PasswordFactorPayload","type":"object","description":"Password authentication carries no metadata beyond the discriminator the\n`payload` union resolves on.\n","additionalProperties":false,"required":["method"],"properties":{"method":{"type":"string","enum":["password"],"description":"Always `password`; the discriminator of the payload union."}}},"passkey-factor-payload":{"title":"PasskeyFactorPayload","type":"object","description":"The metadata of a verified passkey factor, including the credential and the verification details.","required":["method","credential_id","user_verified"],"properties":{"method":{"type":"string","enum":["passkey"],"description":"Always `passkey`; the discriminator of the payload union."},"credential_id":{"type":"string","description":"The ID of the credential that was used.","example":"Y3JlZGVudGlhbDE="},"user_verified":{"type":"boolean","description":"Whether user verification was performed, by PIN or biometric."},"backup_eligible":{"type":"boolean","description":"Whether the credential is backup eligible, which means it can be synced."},"backup_state":{"type":"boolean","description":"Whether the credential is currently backed up."},"authenticator_attachment":{"type":"string","enum":["platform","cross-platform"],"description":"The authenticator attachment modality."}}},"completed-factor":{"type":"object","description":"An authentication factor that was verified, with its verification metadata.\nMethod-specific details are included in the `payload` field.\n","required":["method","verified_at"],"properties":{"method":{"$ref":"#/components/schemas/factor-method","description":"The authentication method that was verified."},"verified_at":{"type":"string","format":"date-time","description":"When this factor was verified.","example":"2026-04-28T15:32:00Z"},"payload":{"description":"Method-specific factor metadata. Structure depends on the `method` field.\n- `identifier`: includes user_id\n- `password`: no additional data\n- `passkey`: includes credential details and verification flags\n- `sso`: no additional data\n","oneOf":[{"$ref":"#/components/schemas/identifier-factor-payload"},{"$ref":"#/components/schemas/password-factor-payload"},{"$ref":"#/components/schemas/passkey-factor-payload"}],"discriminator":{"propertyName":"method","mapping":{"identifier":"#/components/schemas/identifier-factor-payload","password":"#/components/schemas/password-factor-payload","passkey":"#/components/schemas/passkey-factor-payload"}}}}},"session-response":{"type":"object","description":"The current state of a session.\n\nA session is the durable record of a user who has signed in. It accumulates verified\nauthentication factors and exposes `assurance_levels[]`, the set of assurance profiles\nits current factors satisfy. Sessions are read-only for the client: factors flow\nin through authentication attempts.\n","required":["session_id","project_id","state","factors","created_at","expires_at"],"properties":{"session_id":{"$ref":"#/components/schemas/session-id"},"project_id":{"$ref":"#/components/schemas/project-id"},"state":{"type":"string","description":"Current lifecycle state of the session:\n- `building`: no verified authentication factors yet\n- `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age\n- `expired`: the session's lifetime has passed\n","enum":["building","active","expired"],"example":"active"},"user_id":{"description":"The authenticated user. Null for anonymous sessions and until the `user`\nfactor has been verified through an authentication attempt.\n","oneOf":[{"$ref":"#/components/schemas/user-id"},{"type":"null"}]},"user":{"$ref":"#/components/schemas/user-ref","description":"The authenticated user's resolved reference, derived live from the\nuser schema's `x-identifier`/`x-display` designations.\nPresent on identity-hydrating reads (`GET /sessions/me`, session get\nand query) whenever the session has an authenticated user; absent\nfor anonymous sessions. Clients render `display`, falling back to\n`identifier`, then `user_id`.\n"},"factors":{"type":"array","description":"Verified authentication factors accumulated by this session.\nEach key is a factor type, for example `password`, `totp` or `passkey`.\nEach value is a factor event object with at least `verified_at` and\nmethod-specific properties, for example `user_verified` and `hardware` for passkeys.\n","items":{"$ref":"#/components/schemas/completed-factor"}},"assurance_levels":{"type":"array","description":"All assurance levels whose schemas the current session factors satisfy.\nThis list shrinks as factor freshness windows expire and grows when step-up\nauthentication attempts add or refresh factors.\nThe request context, not the session, decides whether any level is enough.\n","items":{"type":"string"},"example":["urn:nist:aal:1","urn:nist:aal:2"]},"metadata":{"description":"Arbitrary key/value metadata attached to the session.","oneOf":[{"type":"object","additionalProperties":true},{"type":"null"}]},"user_agent":{"description":"User agent information captured at session creation.","oneOf":[{"type":"object","properties":{"fingerprint":{"type":"string","description":"Client-supplied device fingerprint.","example":"fp_abc123"},"ip":{"type":"string","description":"IP address of the client at session creation.","example":"203.0.113.42"}},"additionalProperties":true},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","description":"When this session was created.","example":"2026-04-29T10:00:00Z"},"expires_at":{"type":"string","format":"date-time","description":"When this session expires. An anonymous session lasts 10 minutes. The lifetime\nresets to the full configured session lifetime once the first authentication factor is written.\n","example":"2026-04-30T10:00:00Z"}}},"query-sessions-response":{"type":"object","description":"Paginated list of sessions.","required":["sessions"],"properties":{"sessions":{"type":"array","items":{"$ref":"#/components/schemas/session-response"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"challenge-nonce":{"type":"string","description":"Origin-bound, single-use nonce obtained from `POST /bootstrap/challenge`.\nBinds the request to the browser that initiated the flow, preventing\ncross-origin replay.\n","example":"nonce_abc123def456"},"session-proof-token":{"type":"string","format":"password","writeOnly":true,"description":"The `session_token` of the session the request runs against, as\n`POST /sessions` or `POST /sessions/exchange` returned it. It proves the\ncaller holds that session. Required with `session_id`, and must belong to the\nsame session and project; with `session_token` alone, the request runs\nagainst the token's session. A missing, foreign, expired or revoked token is\nrefused with the same invalid-request error, whether or not the session\nexists.\n"},"flow-hint":{"type":"object","description":"Optional hints that narrow how the server resolves and starts a flow.","properties":{"login_name":{"type":"string","maxLength":254,"description":"Pre-fills the identifier field until the user types one. It is never\nsubmitted for the user: a link anyone can craft starts no identifier\nlookup. An authorization request's `login_hint` takes its place. At\nmost 254 characters, as the flow's cookie carries it.\n"},"team_id":{"type":"string","description":"Scopes flow resolution to a team."},"user_schema_id":{"type":"string","description":"Scopes to a specific user type, the `objectType` of a user schema."},"app_id":{"type":"string","description":"Scopes to a specific application. A flow for an authorization\nrequest (`auth_request_id`) is scoped to the request's application\ninstead, and to none for a client of no application.\n"}}},"create-flow-request":{"type":"object","description":"The request body for starting a flow.","required":["project_id","purpose"],"properties":{"project_id":{"$ref":"#/components/schemas/project-id"},"purpose":{"type":"string","enum":["login","register","recovery","profiling","reauth","link_account"],"description":"What the user is doing. It selects the entry step the flow definition lists for this purpose."},"flow_definition_name":{"type":"string","pattern":"^[a-z][a-z0-9-]*$","x-zitadel-pattern-message":"must start with a lowercase letter and use only lowercase letters, digits and -","description":"Name of a specific flow definition to use.\nWhen omitted, the server selects the best-matching definition\nbased on purpose + audience context.\n","example":"custom-login"},"dry_run":{"type":"boolean","description":"Set to true to simulate the flow without actually creating any\nuser or session. Useful for testing and validation of flow definitions.\nThis requires setting the `flow_definition_name` property as well.\n","example":false,"default":false},"schema_version":{"type":"string","description":"Semver version of the flow definition JSON Schema to use.\nWhen omitted, the latest version is used.\n","pattern":"^\\d+\\.\\d+\\.\\d+$","x-zitadel-pattern-message":"must be a version such as 1.2.3","example":"1.0.0"},"challenge_nonce":{"$ref":"#/components/schemas/challenge-nonce"},"session_id":{"type":"string","description":"Existing session to attach to, for step-up or reauthentication.\nOmit to let the flow create a new session implicitly.\nRequires `session_token`.\n"},"session_token":{"$ref":"#/components/schemas/session-proof-token"},"auth_request_id":{"type":"string","description":"The handle of the OAuth authorization request this flow answers: the\n`auth_request` query parameter the authorization endpoint sent the\nbrowser to the login page with. The login component sends it; page\ncode never needs to.\n\nThe handle alone opens nothing. The flow starts only from the browser\nthe authorization endpoint redirected, which holds the cookie that\nendpoint set for the request, on the issuer's origin, and only while\nthe request is open: not expired, and not answered. Anything else\nanswers `400` with `flow.auth_request_invalid`, and the client starts\nits sign-in again.\n\nA request expires 15 minutes after the authorization endpoint\nredirected the browser, however long its flow takes. The flow's own\ncookie is renewed on every step, the request is not: a sign-in that\nis still going at minute 15 fails on the step that would answer the\nrequest, with the same `400`.\n\nThe request shapes the flow. One that says `prompt=create` starts the\nproject's registration in place of `purpose`: in the definition\n`flow_definition_name` names, else in the one the audience picks. It\nsigns the user in as `purpose` says when the project has no\nregistration. Its `login_hint` takes the place of `hint.login_name`.\n\nA flow that signs the user in ends in a `redirect` to the client,\nwhatever its terminal step says: `redirect_uri` is the client's\nregistered redirect URI with `code`, `state` and `iss`. Exchange the\n`handoff_token` before navigating there, because the code buys a\ntoken only once the session it is bound to holds the sign-in. For a\nclient that is not the project's own, and for the project's own when\nthe request says `prompt=consent`, the server inserts a `consent`\nstep before that (`step.consent`).\n\nA user already signed in needs no page to sign in. A flow of purpose\n`login` ends at once in a `redirect` that carries the code, with no\n`handoff_token`, when the browser's session cookie holds an active\nsession of the project and all of these hold:\n\n- its user is active, of the flow definition's user schema, and the\n  one the request's `login_hint` names, when it names one;\n- the user last signed in within the request's `max_age`;\n- the client holds a secret, or its answer goes to an `https` address\n  that is not a loopback one;\n- the client needs no consent, or the user already gave it for every\n  scope the request asks.\n\n`prompt=login`, `prompt=select_account` and `prompt=create` ask for a\npage all the same. A request that says `prompt=none` and cannot be\nanswered so ends at once too, with `error=login_required`, or\n`error=consent_required` when the client needs consent. So does one\nno flow definition resolves for, with `error=login_required`. A\nrefusal spends the request: a later flow for it is refused with\n`400`. A flow that ends at once runs against no session of its own:\n`session_id` is the live session's, or empty for a refusal. It has\nno `handoff_token` and sets no flow cookie, so navigate to\n`redirect_uri` at once; for a refusal it carries `error` in place of\n`code`.\n"},"redirect_uri":{"type":"string","maxLength":2048,"description":"The page a finished sign-in sends the browser to, when its terminal\nstep is `redirect`. It must be on the origin that sent the request,\nas an absolute URL or a path such as `/dashboard`, so a request\nwithout an `Origin` header cannot set it. A target a browser could\nread as another host (a leading `//`, a backslash, an encoded dot or\nslash, userinfo, a non-http(s) scheme) is refused with\n`req.invalid`. Not allowed together with `auth_request_id`: an\nauthorization request already carries the client's registered\nredirect URI.\n"},"hint":{"$ref":"#/components/schemas/flow-hint"}}},"app-client_not_found":{"description":"Application: no client serving the request holds this client_id\n\nError code: app.client_not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"app.client_not_found"}},"required":["code"]}]},"authreq-code_not_issued":{"description":"Auth request: the request is unknown or already has a code\n\nError code: authreq.code_not_issued\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"authreq.code_not_issued"}},"required":["code"]}]},"clientdoc-invalid":{"description":"Client document: the client metadata document cannot be used\n\nError code: clientdoc.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"clientdoc.invalid"}},"required":["code"]}]},"clientdoc-not_admitted":{"description":"Client document: this server does not admit clients whose document that host serves\n\nError code: clientdoc.not_admitted\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"clientdoc.not_admitted"}},"required":["code"]}]},"clientdoc-unavailable":{"description":"Client document: the client metadata document could not be fetched\n\nError code: clientdoc.unavailable\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"clientdoc.unavailable"}},"required":["code"]}]},"enc_key-decrypt_failed":{"description":"Failed to decrypt data\n\nError code: enc_key.decrypt_failed\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"enc_key.decrypt_failed"}},"required":["code"]}]},"dep-not_found":{"description":"Deployment: not found\n\nError code: dep.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"dep.not_found"}},"required":["code"]}]},"enc_key-encrypt_failed":{"description":"Failed to encrypt data\n\nError code: enc_key.encrypt_failed\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"enc_key.encrypt_failed"}},"required":["code"]}]},"enc_key-not_found":{"description":"Encryption key not found\n\nError code: enc_key.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"enc_key.not_found"}},"required":["code"]}]},"flow-auth_request_invalid":{"description":"This sign-in request expired or was opened in another browser\n\nError code: flow.auth_request_invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flow.auth_request_invalid"}},"required":["code"]}]},"flow-consent_scopes_invalid":{"description":"The granted scopes must be some of the requested ones, with at least one API scope\n\nError code: flow.consent_scopes_invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flow.consent_scopes_invalid"}},"required":["code"]}]},"flowdef-not_found":{"description":"Flow definition: not found\n\nError code: flowdef.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flowdef.not_found"}},"required":["code"]}]},"flowdef-purpose_mismatch":{"description":"Flow definition: does not serve requested purpose\n\nError code: flowdef.purpose_mismatch\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flowdef.purpose_mismatch"}},"required":["code"]}]},"flow-integrity":{"description":"Flow state integrity violation\n\nError code: flow.integrity\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flow.integrity"}},"required":["code"]}]},"flow-invalid_purpose":{"description":"Unknown or unsupported flow purpose\n\nError code: flow.invalid_purpose\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flow.invalid_purpose"}},"required":["code"]}]},"tkn-invalid":{"description":"The token is not valid\n\nError code: tkn.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"tkn.invalid"}},"required":["code"]}]},"sess-not_found":{"description":"The session was not found\n\nError code: sess.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sess.not_found"}},"required":["code"]}]},"enc_key-unknown_alg":{"description":"Unsupported encryption algorithm\n\nError code: enc_key.unknown_alg\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"enc_key.unknown_alg"}},"required":["code"]}]},"step-texts":{"type":"object","description":"Step-level localization keys. Resolved client-side via the `| t` LiquidJS filter.\nThe server never sends display text, only semantic keys.\n","properties":{"title_key":{"type":"string","description":"Localization key for the step heading.","example":"identifier.title"},"description_key":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Localization key for explanatory text: `<step>.description`, or\n`<step>.description.sso` when the step offers sign-in providers\n(`sso_providers`). A client without the `.sso` key falls back to\n`<step>.description`.\n","example":"identifier.description"}}},"field":{"type":"object","required":["name","type","text_key"],"description":"A field is one input a step collects from the user. It describes what the\nuser must provide. It carries no display text, only a `text_key` that the\nclient resolves.\n","properties":{"name":{"type":"string","description":"Field name, matching a property in the flow's user schema. Carries\nthe submitted value back to the server.\n","example":"email"},"type":{"type":"string","enum":["text","email","password","tel","number","url","date","date_time","hidden","checkbox","select"],"description":"The input kind the client should render. Encodes the formats and\nJSON types that map to a familiar HTML input: `email`, `url`,\n`date`, `date_time` come from `format`; `checkbox` from JSON\n`type: boolean`; `select` from a closed `enum`. For other formats (for\nexample uuid) the type is `text` and `validation.format` carries the\nrule. A `date_time` value is an RFC 3339 timestamp, both prefilled and\nsubmitted, which a `datetime-local` input neither shows nor produces on\nits own.\n"},"text_key":{"type":"string","description":"Localization key for the field label.","example":"login.field.email"},"autocomplete":{"type":"string","description":"Value for the HTML `autocomplete` attribute of the input rendered\nfor this field, so password managers and browser autofill\nrecognize it. A space-separated token list; put it on the\nattribute verbatim and do not reinterpret it.\n\nThe server sends `username` on the field carrying the user's\nidentifier, whatever that field's `type` is. `username` is the\ntoken a password manager pairs with a password, while `email`\nmeans contact information, so an email-typed identifier still\ntakes `username` and matches the `identifier` a later password\nstep carries. On a password field it sends `current-password`\nwhere the submitted value is verified against the stored\ncredential, and `new-password` where the value is saved as the\nuser's password, so a manager offers to fill on sign-in and to\ngenerate on registration. A flow whose purpose does not yet\nestablish or verify a password sends neither.\n\nOmitted when no token applies, in which case render no attribute\nrather than an empty one.\n\nAutofill only: it says nothing about validation, and the input's\n`type` still comes from `type`.\n","example":"current-password"},"required":{"type":"boolean","default":false,"description":"The field MUST be present and non-empty on submit. Mirrors the\nschema's top-level `required` array.\n\nA `checkbox` always submits a boolean, so `required` alone never\nmakes it one to tick: `validation.const` does.\n"},"value":{"description":"Pre-filled value, for example an identifier carried over from a pivot."},"read_only":{"type":"boolean","default":false,"description":"The server refuses a submitted value that differs from `value`, so\nrender the input read-only. Submit the value unchanged: a read-only\ninput is still sent with the form, unlike a disabled one.\n\nSet on a step that creates the user from an SSO identity, for a\nfield prefilled from a provider claim that is verified and unique.\n"},"validation":{"type":"object","description":"Schema-derived rules the frontend SHOULD apply at input time. The\nserver runs the same rules on submit and is the only authority on\nwhether the step advances. These rules are a UX hint to reduce\nround trips, not a contract guarantee.\n\nOmitted entirely when the field has no rules beyond its `type`.\nEach key mirrors a JSON Schema keyword on the underlying user\nproperty; absent keys mean no rule.\n","properties":{"format":{"type":"string","enum":["email","date-time","uuid","uri"],"description":"Semantic format the value must match. Values mirror the user\nmeta-schema. When `type` already encodes the format (email,\nurl, date), this key is informative and the input type is\nsufficient for client-side validation. When `type` is `text`\n(for example `format: uuid`), this key is the only signal.\n"},"min_length":{"type":"integer","minimum":0,"description":"Minimum length in characters (inclusive). Mirrors `minLength`."},"max_length":{"type":"integer","minimum":0,"description":"Maximum length in characters (inclusive). Mirrors `maxLength`."},"enum":{"type":"array","items":{"type":"string"},"description":"Closed list of allowed values. Mirrors the JSON Schema `enum`\nkeyword on the underlying user property. When `type` is\n`select` the client renders these as options; for other types\nthe rule still applies as a membership check.\n"},"const":{"description":"The only value the field accepts. Mirrors the JSON Schema `const`\nkeyword on the underlying user property. On a `checkbox`, `true`\nmeans the box must be ticked to continue, as for accepting terms:\nrender it as required and refuse an unticked submit.\n","example":true}}}}},"flow-step-action":{"type":"object","required":["name","kind"],"additionalProperties":false,"description":"An action the server offers on a runtime step. Every declared action of the\ndefinition's step appears here, plus the server-injected `back` whenever\nreturning to the previous step is possible.\n","properties":{"name":{"type":"string","minLength":1,"description":"Action identifier. Sent back in the submit request as `action`.","example":"submit"},"kind":{"type":"string","enum":["submit","passkey","passkey_register","navigate","back"],"example":"submit","description":"How the client should treat the action:\n- `submit`: collect the step's fields and submit.\n- `passkey`: run a WebAuthn assertion, then submit the result.\n- `passkey_register`: run a WebAuthn registration, then submit the result.\n- `navigate`: submit without collecting fields; pure routing.\n- `back`: return the user to the previous step. Server-injected, never\n  declared in a flow definition.\n"},"primary":{"type":"boolean","default":false,"example":true,"description":"Marks this as the default/primary action. The runtime template uses\nthis hint to choose visual emphasis.\n"},"text_key":{"type":"string","description":"Localization key for the action's label, resolved client-side from a\nlocale dictionary.\n","example":"actions.signin.submit"}}},"pow-challenge":{"type":"object","additionalProperties":false,"required":["protocol","challenge_id","profile_id","salt","nonce","key_prefix","expires_at"],"description":"A short-lived, single-use signup challenge scoped to this project and flow.\nFor pbkdf2_sha256_5000_l1, try counters 0 through 511, deriving 32 bytes with\nPBKDF2-HMAC-SHA256 (5000 iterations), password nonce || uint32_be(counter),\nand the supplied salt. Match the first 16 derived bytes to key_prefix.\nSubmit gate_proofs.signup_pow as a JSON string containing protocol,\nchallenge_id and derived_key (the full 32 bytes in lowercase hex).\nThe proof is spent before the user is created (for a password, before it\nis hashed), even if user creation fails.\n","properties":{"protocol":{"type":"string","example":"zitadel_pow_poc_v1"},"challenge_id":{"type":"string","example":"ch_example"},"profile_id":{"type":"string","example":"pbkdf2_sha256_5000_l1"},"salt":{"type":"string","pattern":"^[0-9a-f]{32}$","x-zitadel-pattern-message":"must be 32 lowercase hex digits"},"nonce":{"type":"string","pattern":"^[0-9a-f]{32}$","x-zitadel-pattern-message":"must be 32 lowercase hex digits"},"key_prefix":{"type":"string","pattern":"^[0-9a-f]{32}$","x-zitadel-pattern-message":"must be 32 lowercase hex digits"},"expires_at":{"type":"string","format":"date-time"}}},"runtime-gate":{"type":"object","additionalProperties":false,"required":["kind","provider"],"description":"A runtime security challenge that must be satisfied before this step's submission\nis accepted. The engine may also inject gates at runtime based on policy\nor risk evaluation.\n","properties":{"kind":{"type":"string","enum":["captcha"],"example":"captcha","description":"The gate category. Only `captcha` is currently defined. Authenticator\nceremonies (e.g. passkey) are modelled as credential auth_attempts via\n`x-credential` on a field, not as gates.\n"},"provider":{"type":"string","description":"Implementation identifier. `zitadel_pow` protects sign-up with the\nbuilt-in proof-of-work solver: a step that creates its user on submit\n(`create_user`), and a step carrying a passkey registration that creates\nits user, whose attestation carries the proof. External providers are\nnot supported.\n","example":"zitadel_pow"},"challenge":{"$ref":"#/components/schemas/pow-challenge"},"config":{"type":"object","description":"Reserved provider-specific configuration. The built-in signup gate uses\n`challenge` and does not accept caller-selected cost parameters.\n","additionalProperties":true}}},"sso-provider":{"type":"object","additionalProperties":false,"required":["id","name","template"],"description":"An identity provider (an external sign-in such as Google) that a step offers.","properties":{"id":{"type":"string","description":"Provider instance identifier.","example":"google"},"name":{"type":"string","description":"Display name for the provider.","example":"Google"},"template":{"type":"string","description":"Template hint for rendering (logo, colors).","example":"google"}}},"flow-step":{"type":"object","required":["name","fields","actions","gates"],"description":"The step the login component renders now. A step is one screen of a flow.\nIt holds ordered arrays of what to collect (fields), what the user can do\n(actions), and which security checks must pass (gates). The LiquidJS template\nin `branding.liquid_template` iterates these arrays in order and builds\nname-keyed indexes locally for lookup.\n","example":{"name":"login","texts":{"title_key":"login.title","description_key":"login.description.sso"},"fields":[{"name":"email","type":"email","text_key":"login.field.email","autocomplete":"username","required":true},{"name":"password","type":"password","text_key":"login.field.password","autocomplete":"current-password","required":true}],"actions":[{"name":"submit","kind":"submit","text_key":"login.action.submit","primary":true},{"name":"register","kind":"navigate","text_key":"login.action.register"},{"name":"recover","kind":"navigate","text_key":"login.action.recover"}],"gates":{"captcha":{"kind":"captcha","provider":"altcha","config":{"algorithm":"SHA-256","challenge":"abc123","salt":"xyz789","max_number":100000}}},"sso_providers":[{"id":"google","name":"Google","template":"google"},{"id":"entra","name":"Microsoft","template":"entraid"}]},"properties":{"name":{"type":"string","description":"Step name from the flow definition."},"texts":{"$ref":"#/components/schemas/step-texts"},"purpose":{"type":"string","enum":["login","register","recovery","profiling","reauth","link_account"],"description":"What the flow does on this step. A login moves between `login` and\n`register` by itself: an identifier with no account continues as a\nsign-up, and one with an account continues a sign-up as a sign-in.\nA page that titles the login itself follows this value rather than\nthe step's `name`, which the flow definition chooses.\n"},"notice":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"Localization key that tells the user why the flow moved to this\nstep's `purpose` without being asked: `notice.user_not_found` (an\nidentifier with no account, now signing up),\n`notice.user_already_exists` (an identifier that has an account, now\nsigning in) or `notice.sso_user_not_found` (a provider's sign-in\nwith no account, now signing up). Present only on the step right\nafter the move, not when the user chose it.\n"},"error":{"oneOf":[{"type":"string"},{"type":"null"}],"description":"The error from the previous failed submission. Field-validation failures\ncarry localization text keys: one `error.<field>_<rule>` per violation,\nfor example `error.email_required`, with multiple violations joined with\n`\"; \"`. The `format` rule is spelled `error.<field>_invalid`.\n\nField names appear verbatim, so clients localize unknown keys through\nthe generic `error.field_<rule>` catalog entries. Other server failures\ncarry `error.*` catalog keys as well, for example\n`error.invalid_credentials` or `error.passkey_invalid`.\n\nAn outcome the step has no transition for sends `error.user_not_found`,\n`error.user_already_exists` or `error.sso_user_not_found` for those\noutcomes, and `error.outcome_unhandled` for any other outcome.\n"},"complete":{"type":"string","enum":["redirect","show"],"description":"Present only on terminal steps. Tells the frontend what to do:\n- redirect: navigate to redirect_uri immediately (OIDC/SAML done)\n- show: render the step as a success screen, such as registration confirmed\n"},"redirect_url":{"type":"string","format":"uri","description":"URL to navigate to, for example an SSO provider redirect."},"fields":{"type":"array","description":"Ordered list of input fields to collect. Field metadata (type, validation)\nis resolved by the server from the flow's user schema. The LiquidJS\ntemplate iterates this array; for keyed lookup it builds a name-indexed\nmap locally.\n","items":{"$ref":"#/components/schemas/field"},"default":[]},"identifier":{"type":"object","required":["value","autocomplete"],"description":"The user's identifier, collected on an earlier step, for this\nstep's form to carry alongside the password. Present only when the\nstep collects a password and does not itself collect the\nidentifier: a step that collects the identifier carries it in\n`fields` instead, and needs nothing here.\n\nA password manager saves an identifier and a password as one\ncredential, and reads both from the same form. A step that\ncollects only the password leaves it nothing to pair with, so the\nserver hands the identifier back here.\n\n**What the client does with it.** Add one input to the same form\nelement as the password, carrying `value` and `autocomplete` as\ngiven, and:\n\n- *with no `name`*: a control without a name is never submitted,\n  so the form data stays exactly the step's `fields`. That is what\n  keeps this input from reaching the server as an unknown field,\n  whether the client builds its submission from `fields` or from\n  whatever the form contains;\n- *read-only*: the server already resolved the user from this\n  value, so a changed one would not change who is signing in;\n- *hidden from view*: the user supplied it on the previous step\n  and is not being asked for it again. Prefer hiding a real input\n  with CSS over `type=\"hidden\"`: a manager looks for a\n  credential-shaped control, and a hidden-typed input is easy to\n  skip.\n\nThe client may also show it as the account being signed in to, next\nto a way to change it (the step's `back` action, which returns to\nthe step that collects the identifier). Do not build other text from\nit; `texts.description_key` is the place for that.\n","properties":{"value":{"type":"string","description":"The identifier the user supplied. Use it as the input's\n`value`, verbatim. After an identity provider's sign-in\ncollided with an existing account, it is the address that\nprovider verified; an address the provider did not verify is\nnot sent unless the user typed it.\n","example":"alice@acme.com"},"autocomplete":{"type":"string","description":"Value for the input's HTML `autocomplete` attribute, used\nverbatim. `username` is the token that pairs an identifier\nwith a password in the same form.\n","example":"username"}}},"actions":{"type":"array","description":"Ordered list of available user actions. The LiquidJS template iterates\nthis array and builds a name-indexed map locally for keyed lookup.\n","items":{"$ref":"#/components/schemas/flow-step-action"},"default":[]},"gates":{"type":"object","description":"Security gates, the security checks that must be satisfied before the\nstep can be submitted.\nThe server injects gates dynamically based on policy, even if they\nare not declared in the flow definition.\n","additionalProperties":{"$ref":"#/components/schemas/runtime-gate"},"default":{}},"sso_providers":{"type":"array","description":"Available SSO identity providers for this step.","items":{"$ref":"#/components/schemas/sso-provider"},"default":[]},"challenge":{"type":"object","description":"A pending authentication challenge issued by the server. Present when the\nserver has issued a challenge through an authentication attempt\n(`auth_attempts`), for example after the user submits\n`action: \"passkey\"`. The `<zl-passkey>` component reads this and\ntriggers the appropriate WebAuthn ceremony.\n\nThe challenge is NOT present on the initial step. It appears only after\nthe user explicitly selects a ceremony-based action.\n","properties":{"method":{"type":"string","enum":["passkey","passkey_register"],"description":"Challenge method. Determines which component handles the ceremony."},"challenge_id":{"type":"string","description":"Server-side challenge identifier. Included in the proof submission\nso the server can match the response to the original challenge.\n"},"options":{"type":"object","description":"Protocol-specific challenge options. For passkey, this is the\n`PublicKeyCredentialRequestOptions` (authenticate) or\n`PublicKeyCredentialCreationOptions` (register). Passed directly\nto the browser's `navigator.credentials` API.\n","additionalProperties":true}}},"consent":{"type":"object","required":["client","scopes"],"description":"What the user is asked to agree to. Present only on the `consent`\nstep, which the server inserts into a flow that answers an OAuth\nauthorization request (`auth_request_id`) from a client that is not\nthe project's own, after the user has signed in and before the client\ngets its answer. No flow definition holds this step, and none can\nremove it.\n\nThe step has two actions, both of kind `submit`: `accept` continues\nto the client with an authorization code, and `deny` returns to the\nclient with `error=access_denied`. Either way the flow ends in a\n`redirect`.\n\n**The user chooses the scopes.** `accept` names the scopes the user\ngrants in `fields.scopes`, a list of `scopes[].name`. They must be some\nof the requested ones and, when any requested scope is an API's (any\nbut `offline_access`), hold at least one of those; anything else is\nrefused with 400 (`flow.consent_scopes_invalid`) and the step stays.\nTo grant nothing, `deny`. The code is issued for the granted scopes\nonly, and the token response's `scope` names them (RFC 6749 §3.3). An\n`accept` without `fields.scopes` is refused the same way when any\nrequested scope is an API's: the user chooses those. For a request\nthat asks for no API scope it grants the scopes marked `selected`.\n\n**What the client shows.** Who asks (`client.name`), who says so\n(`client.document_host`, for a client nobody registered), where the\nanswer goes (`client.redirect_host`, which tells a client from another\none that took its name), a warning when `client.loopback` is set, what\nfor (`resource`), and the `scopes` as choices: grouped by their\n`group`, with what each lets the client do (`access`), ticked to\nstart when `selected`, and `offline_access` as a choice of its own to\nstay connected. Reading starts ticked, changing and deleting take a\ndeliberate tick. The name is the client's own text: show it as text,\nnever as markup.\n","properties":{"client":{"type":"object","required":["client_id","name","redirect_host"],"description":"The OAuth client that asks.","properties":{"client_id":{"type":"string","description":"The client's `client_id`.","example":"client_01JZ8C6Q2B4Y8F2K7N9T5W3X1D"},"name":{"type":"string","description":"The name of the client's application.","example":"Acme Reports"},"redirect_host":{"type":"string","description":"Host, and port when it has one, of the redirect URI the answer\ngoes to.\n","example":"reports.acme.example"},"document_host":{"type":"string","description":"Host, and port when it has one, that serves the client's\nmetadata document: the one party that vouches for `name`.\nPresent only for a client that nobody registered with the\nproject and that identifies itself by the URL of that document\n(its `client_id`).\n","example":"claude.ai"},"loopback":{"type":"boolean","description":"`true` when the answer goes to a loopback address of the\nuser's device and the client holds no secret. Any program on\nthat device can then present this client's name and receive\nthe answer, so warn the user to allow only a sign-in they\nstarted themselves. Absent otherwise.\n"}}},"resource":{"type":"string","description":"The API the client asks a token for, by its identifier (RFC 8707).\nAbsent when the request names none: the token is then for the\nclient itself.\n","example":"https://zitadel.example/api/v1"},"scopes":{"type":"array","description":"The scopes the client asks for, in the request's order.","items":{"type":"object","required":["name","text_key","access","selected"],"properties":{"name":{"type":"string","description":"The scope, as the token will carry it.","example":"user.read"},"group":{"type":"string","description":"The group the user's choice shows the scope in: the part of\n`name` before its verb (`user` for `user.read`). The group's\nname is the localization key `consent.group.<group>`,\nresolved client-side like `text_key`; a client with no text\nfor it shows `group`. Absent for `offline_access`.\n","example":"user"},"access":{"type":"string","enum":["read","change","delete","offline"],"description":"What the scope lets the client do, by its name: `read` for a\nname ending in `.read`, `delete` for one ending in\n`.delete`, `change` for any other verb (`write`, `create`,\n`set_password` …).\n`offline` is `offline_access`, which keeps the client\nconnected with a refresh token and reaches no API on its own.\n","example":"read"},"selected":{"type":"boolean","description":"Whether the choice starts ticked: `true` for `read` and\n`offline`, `false` for `change` and `delete`.\n","example":true},"text_key":{"type":"string","description":"Localization key for the scope's line, resolved client-side\nfrom a locale dictionary: `consent.scope.<name>`. A client\nwith no text for the key shows `name`.\n","example":"consent.scope.user.read"}}}}}}}},"branding-color":{"type":"string","minLength":1,"maxLength":128,"description":"A color on a theme side: hex (`#4F46E5`), a CSS color name, or a color\nfunction: `rgb()`, `rgba()`, `hsl()`, `hsla()`, `hwb()`, `lab()`, `lch()`,\n`oklab()`, `oklch()`, `color()` or `color-mix()`. `url()` and `var()` are\nrejected: the value is written into a stylesheet, so only forms that resolve\nto a color are stored.\n\nThe pattern pins the shape: no semicolons, braces, comment markers or\nbackslashes, so a value cannot leave its declaration whatever it spells.\nWhich names CSS actually knows is the browser's business: an unrecognized\none is stored and paints nothing, rather than being refused here.\n","pattern":"^(?:#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|[a-zA-Z]{3,24}|[a-zA-Z][a-zA-Z-]{2,12}\\((?:[0-9a-zA-Z%.,+/# -]|[a-zA-Z][a-zA-Z-]{2,12}\\([0-9a-zA-Z%.,+/# -]*\\))*\\))$","x-zitadel-pattern-message":"must be hex (#4F46E5), a CSS colour name, or a colour function such as rgb(), hsl() or oklch()","examples":["#4F46E5","#fff","#4F46E5CC","rebeccapurple","currentColor","transparent","rgb(79 70 229)","rgba(79 70 229 / 50%)","oklch(0.7 0.15 250)","color-mix(in oklab, #4F46E5 40%, white)"]},"branding-palette":{"type":"object","additionalProperties":false,"description":"Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel's default for this side, never the other\nside's value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n","properties":{"primary":{"$ref":"#/components/schemas/branding-color","description":"Brand color, and the source the focus rings derive from."},"on_primary":{"$ref":"#/components/schemas/branding-color","description":"Text and icons drawn on `primary`."},"background":{"$ref":"#/components/schemas/branding-color","description":"The surface behind the card."},"surface":{"$ref":"#/components/schemas/branding-color","description":"The card and popover surfaces."},"muted":{"$ref":"#/components/schemas/branding-color","description":"Neutral fills: the secondary button, accents and muted panels."},"border":{"$ref":"#/components/schemas/branding-color","description":"Card and control edges."},"text":{"$ref":"#/components/schemas/branding-color","description":"Body text, and the foreground of every neutral surface. A side that\nsets `muted` without `text` keeps the default label color on it.\n"},"text_muted":{"$ref":"#/components/schemas/branding-color","description":"Secondary text."},"link":{"$ref":"#/components/schemas/branding-color","description":"Link color. Defaults to the surrounding text color, so setting it\ntints exactly the links and nothing else.\n"},"success":{"$ref":"#/components/schemas/branding-color","description":"Valid fields, success alerts and pills."},"warning":{"$ref":"#/components/schemas/branding-color","description":"Warning surfaces. Stored, but nothing renders it yet."},"error":{"$ref":"#/components/schemas/branding-color","description":"Invalid fields, error alerts and pills."}}},"branding-theme-side":{"type":"object","additionalProperties":false,"description":"One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel's defaults.\n","properties":{"logo_url":{"type":"string","format":"uri","maxLength":2048,"description":"The logo for this surface. A logo is never recolored, so each side\ncarries its own file. Absent means no logo on this side, unless the\ntop-level `logo_url` is the only one set.\n","example":"https://cdn.example.com/logo-on-light.svg","pattern":"^([hH][tT][tT][pP][sS]://(?:\\[(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,7}:|(?:[0-9A-Fa-f]{1,4}:){1,6}:[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,5}(?::[0-9A-Fa-f]{1,4}){1,2}|(?:[0-9A-Fa-f]{1,4}:){1,4}(?::[0-9A-Fa-f]{1,4}){1,3}|(?:[0-9A-Fa-f]{1,4}:){1,3}(?::[0-9A-Fa-f]{1,4}){1,4}|(?:[0-9A-Fa-f]{1,4}:){1,2}(?::[0-9A-Fa-f]{1,4}){1,5}|[0-9A-Fa-f]{1,4}:(?::[0-9A-Fa-f]{1,4}){1,6}|:(?:(?::[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){6}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|::(?:[0-9A-Fa-f]{1,4}:){0,5}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}::(?:[0-9A-Fa-f]{1,4}:){0,4}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})::(?:[0-9A-Fa-f]{1,4}:){0,3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){2}::(?:[0-9A-Fa-f]{1,4}:){0,2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){3}::(?:[0-9A-Fa-f]{1,4}:){0,1}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){4}::(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\\]|(?:[^\\s\\\\/:?#@%\\[\\]{}|^`\\x00-\\x1f\\x7f]|%[89A-Fa-f][0-9A-Fa-f])+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:/(?:[^%?\\x00-\\x1f\\x7f]|%[0-9A-Fa-f]{2})*)?(?:\\?[^\\x00-\\x1f\\x7f]*)?$|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:/(?:[^%?\\x00-\\x1f\\x7f]|%[0-9A-Fa-f]{2})*)?(?:\\?[^\\x00-\\x1f\\x7f]*)?$)","x-zitadel-pattern-message":"must be a valid absolute https URL without credentials (http is allowed for canonical loopback development hosts only)"},"palette":{"$ref":"#/components/schemas/branding-palette"}}},"branding-theme":{"type":"object","additionalProperties":false,"description":"The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel's defaults.\n","properties":{"mode":{"type":"string","enum":["light","dark","auto"],"description":"Which published side may run. `auto` follows the operating system.\n","example":"auto"},"light":{"$ref":"#/components/schemas/branding-theme-side"},"dark":{"$ref":"#/components/schemas/branding-theme-side"}}},"branding-typography":{"type":"object","additionalProperties":false,"dependentRequired":{"font_url":["font_family"]},"description":"The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n","properties":{"font_family":{"type":"string","minLength":1,"maxLength":256,"pattern":"^ *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*)(?: *, *(?:\"[^\"\\\\;{}]*\"|'[^'\\\\;{}]*'|[A-Za-z0-9_-]+(?: [A-Za-z0-9_-]+)*))* *$","x-zitadel-pattern-message":"must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")","description":"CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`\"APK Futural\"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n","example":"Inter, ui-sans-serif, sans-serif"},"font_url":{"type":"string","format":"uri","maxLength":2048,"description":"Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant=\"page\"`, the\nfull-page login. In the default `variant=\"widget\"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n","example":"https://fonts.googleapis.com/css2?family=Inter&display=swap","pattern":"^[hH][tT][tT][pP][sS]://(?:\\[(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,7}:|(?:[0-9A-Fa-f]{1,4}:){1,6}:[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,5}(?::[0-9A-Fa-f]{1,4}){1,2}|(?:[0-9A-Fa-f]{1,4}:){1,4}(?::[0-9A-Fa-f]{1,4}){1,3}|(?:[0-9A-Fa-f]{1,4}:){1,3}(?::[0-9A-Fa-f]{1,4}){1,4}|(?:[0-9A-Fa-f]{1,4}:){1,2}(?::[0-9A-Fa-f]{1,4}){1,5}|[0-9A-Fa-f]{1,4}:(?::[0-9A-Fa-f]{1,4}){1,6}|:(?:(?::[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){6}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|::(?:[0-9A-Fa-f]{1,4}:){0,5}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}::(?:[0-9A-Fa-f]{1,4}:){0,4}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})::(?:[0-9A-Fa-f]{1,4}:){0,3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){2}::(?:[0-9A-Fa-f]{1,4}:){0,2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){3}::(?:[0-9A-Fa-f]{1,4}:){0,1}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){4}::(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\\]|(?:[^\\s\\\\/:?#@%\\[\\]{}|^`\\x00-\\x1f\\x7f]|%[89A-Fa-f][0-9A-Fa-f])+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:/(?:[^%?\\x00-\\x1f\\x7f]|%[0-9A-Fa-f]{2})*)?(?:\\?[^\\x00-\\x1f\\x7f]*)?$","x-zitadel-pattern-message":"must be a valid absolute https URL without credentials"},"scale":{"type":"number","minimum":0.75,"maximum":1.25,"description":"Multiplier on the base text sizes, `1` when omitted.","example":1}}},"branding-radius-preset":{"type":"string","enum":["none","sm","md","lg","full"],"description":"A named corner rounding: `none` (0), `sm` (4), `md` (8), `lg` (12), and\n`full` (pill). Send `full` for a pill rather than a large pixel value.\n","example":"md"},"branding-shape":{"type":"object","additionalProperties":false,"description":"Corner rounding, spacing and logo size. Shared across theme sides.\n","properties":{"radius":{"description":"Corner rounding for the card, inputs, buttons and alerts: either a\npreset name or an integer number of pixels. One value scales the whole\ncorner ramp in proportion, so the card stays rounder than the controls\ninside it.\n","oneOf":[{"$ref":"#/components/schemas/branding-radius-preset"},{"type":"integer","minimum":0,"maximum":32}],"example":10},"density":{"type":"string","enum":["compact","regular","comfortable"],"description":"Spacing and control height.","example":"regular"},"logo_scale":{"type":"number","minimum":0.5,"maximum":2,"description":"Multiplier on the logo's maximum height, `1` when omitted. The image keeps its intrinsic\naspect ratio inside that cap; no width, height or ratio is stored.\n","example":1}}},"branding":{"x-meta-schema":true,"type":"object","description":"The branding of the login: logo, theme colors, typography, shape and\ntemplate. It has one shape in two places: the request body of\n`publishBranding` (`POST /branding`), which publishes it as a new immutable\nrevision, and a read-only copy on flow responses, which carries the\nrevision the request's release pins. Locally it is the `.zitadel/branding/` descriptor\nthat `zitadel deploy` publishes.\n\nEvery field is optional. An omitted key uses Zitadel's default, so a\nrevision carrying one color is as valid as one carrying the whole object.\n","additionalProperties":false,"properties":{"$schema":{"type":"string","description":"Editor affordance: path or URL of this file's JSON meta-schema, so an\neditor validates and autocompletes it. The CLI strips it before upload;\nthe platform ignores it.\n"},"layout":{"type":"string","enum":["centered","split"],"description":"The layout preset the revision declares, `centered` or `split`. It is\nvalidated on publish and handed to the template as `branding.layout`.\nThe bundled default template does not read it, so changing it alone\nchanges nothing on screen. It is not an appearance control, and not a\ndesign catalog.\n\nTo switch designs, run `zitadel branding eject --design <name>` instead\nof editing this field. The ejectable designs (`centered`, `minimal`) ship\nas templates and both carry `centered`. `split` appears on revisions\npublished from the earlier split designs.\n","default":"centered"},"liquid_template":{"type":"string","x-local":"file","maxLength":131072,"description":"The LiquidJS template that renders a step. The login component\n(`<zitadel-login>`) renders it into its Shadow DOM, with the step's\nfields, actions and gates as context.\n"},"logo_url":{"type":"string","format":"uri","maxLength":2048,"description":"Fallback logo, used only when neither `theme.light.logo_url` nor\n`theme.dark.logo_url` is set. Prefer the per-side logos, because one\nfile cannot serve both surfaces.\n","pattern":"^([hH][tT][tT][pP][sS]://(?:\\[(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,7}:|(?:[0-9A-Fa-f]{1,4}:){1,6}:[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,5}(?::[0-9A-Fa-f]{1,4}){1,2}|(?:[0-9A-Fa-f]{1,4}:){1,4}(?::[0-9A-Fa-f]{1,4}){1,3}|(?:[0-9A-Fa-f]{1,4}:){1,3}(?::[0-9A-Fa-f]{1,4}){1,4}|(?:[0-9A-Fa-f]{1,4}:){1,2}(?::[0-9A-Fa-f]{1,4}){1,5}|[0-9A-Fa-f]{1,4}:(?::[0-9A-Fa-f]{1,4}){1,6}|:(?:(?::[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){6}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|::(?:[0-9A-Fa-f]{1,4}:){0,5}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}::(?:[0-9A-Fa-f]{1,4}:){0,4}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})::(?:[0-9A-Fa-f]{1,4}:){0,3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){2}::(?:[0-9A-Fa-f]{1,4}:){0,2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){3}::(?:[0-9A-Fa-f]{1,4}:){0,1}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){4}::(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\\]|(?:[^\\s\\\\/:?#@%\\[\\]{}|^`\\x00-\\x1f\\x7f]|%[89A-Fa-f][0-9A-Fa-f])+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:/(?:[^%?\\x00-\\x1f\\x7f]|%[0-9A-Fa-f]{2})*)?(?:\\?[^\\x00-\\x1f\\x7f]*)?$|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:/(?:[^%?\\x00-\\x1f\\x7f]|%[0-9A-Fa-f]{2})*)?(?:\\?[^\\x00-\\x1f\\x7f]*)?$)","x-zitadel-pattern-message":"must be a valid absolute https URL without credentials (http is allowed for canonical loopback development hosts only)"},"hero_url":{"type":"string","format":"uri","maxLength":2048,"description":"Hero image URL, for templates that reference `branding.hero_url`. The\nbundled default template does not use it.\n","pattern":"^([hH][tT][tT][pP][sS]://(?:\\[(?:(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,7}:|(?:[0-9A-Fa-f]{1,4}:){1,6}:[0-9A-Fa-f]{1,4}|(?:[0-9A-Fa-f]{1,4}:){1,5}(?::[0-9A-Fa-f]{1,4}){1,2}|(?:[0-9A-Fa-f]{1,4}:){1,4}(?::[0-9A-Fa-f]{1,4}){1,3}|(?:[0-9A-Fa-f]{1,4}:){1,3}(?::[0-9A-Fa-f]{1,4}){1,4}|(?:[0-9A-Fa-f]{1,4}:){1,2}(?::[0-9A-Fa-f]{1,4}){1,5}|[0-9A-Fa-f]{1,4}:(?::[0-9A-Fa-f]{1,4}){1,6}|:(?:(?::[0-9A-Fa-f]{1,4}){1,7}|:)|(?:[0-9A-Fa-f]{1,4}:){6}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|::(?:[0-9A-Fa-f]{1,4}:){0,5}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}::(?:[0-9A-Fa-f]{1,4}:){0,4}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})::(?:[0-9A-Fa-f]{1,4}:){0,3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){2}::(?:[0-9A-Fa-f]{1,4}:){0,2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){3}::(?:[0-9A-Fa-f]{1,4}:){0,1}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4}){4}::(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\\]|(?:[^\\s\\\\/:?#@%\\[\\]{}|^`\\x00-\\x1f\\x7f]|%[89A-Fa-f][0-9A-Fa-f])+)(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:/(?:[^%?\\x00-\\x1f\\x7f]|%[0-9A-Fa-f]{2})*)?(?:\\?[^\\x00-\\x1f\\x7f]*)?$|[hH][tT][tT][pP]://([lL][oO][cC][aA][lL][hH][oO][sS][tT]|127\\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){2}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|\\[::1\\])(?::0*(?:[0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?(?:/(?:[^%?\\x00-\\x1f\\x7f]|%[0-9A-Fa-f]{2})*)?(?:\\?[^\\x00-\\x1f\\x7f]*)?$)","x-zitadel-pattern-message":"must be a valid absolute https URL without credentials (http is allowed for canonical loopback development hosts only)"},"theme":{"$ref":"#/components/schemas/branding-theme"},"typography":{"$ref":"#/components/schemas/branding-typography"},"shape":{"$ref":"#/components/schemas/branding-shape"}}},"flow-client":{"type":"object","required":["client_id","name","redirect_host","first_party"],"description":"The OAuth client whose authorization request the flow answers\n(`auth_request_id`), as it stood when the flow started. A page shows it so\nthe user knows what they sign in to. The name is the client's own text:\nshow it as text, never as markup.\n","properties":{"client_id":{"type":"string","description":"The client's `client_id`.","example":"client_01JZ8C6Q2B4Y8F2K7N9T5W3X1D"},"application_id":{"type":"string","description":"The project's application the client belongs to, which also picks\nthe flow definition by its `audience.app_ids`. Absent for a client\nthat identifies itself by the URL of its metadata document.\n","example":"app_01JZ8C6Q2B4Y8F2K7N9T5W3X1D"},"name":{"type":"string","description":"The client's name, or its application's.","example":"Acme Reports"},"redirect_host":{"type":"string","description":"Host, and port when it has one, of the redirect URI the answer goes\nto.\n","example":"reports.acme.example"},"document_host":{"type":"string","description":"Host, and port when it has one, that serves the client's metadata\ndocument: the one party that vouches for `name`. Present only for a\nclient that nobody registered with the project.\n","example":"claude.ai"},"first_party":{"type":"boolean","description":"`true` for the project's own client, which is asked no consent unless\nits request says `prompt=consent`.\n"}}},"flow-response":{"type":"object","description":"The state of a flow, with its handle, its session and the step to render.","required":["id","session_id","step"],"properties":{"id":{"type":"string","description":"Flow handle. Use this as the path parameter for subsequent\nsubmit/event calls. May change between responses when a\nflow pivot or pop occurs. Empty when a `prompt=none` request is\nrefused because no flow can start for it: nothing is left to submit.\n","example":"flow_01H8Z"},"session_id":{"type":"string","description":"Underlying session ID. Stable across all stacked flows. Empty when a\nflow for an authorization request ends as it starts with a refusal,\nwhich no session is behind; the browser's live session when it ends\nwith the code.\n"},"session_token":{"type":"string","description":"Reserved for future rotation. The flow's sealed `_zflow_{flow_id}` cookie carries the flow state today."},"step":{"$ref":"#/components/schemas/flow-step"},"branding":{"$ref":"#/components/schemas/branding","description":"Resolved branding inherited from the app → team → project hierarchy.\nDetermined at flow creation based on audience context. Does not change between steps.\n"},"client":{"$ref":"#/components/schemas/flow-client","description":"The client whose authorization request the flow answers. Present on\nevery response of a flow started with `auth_request_id`, absent on\nany other.\n"},"redirect_uri":{"type":"string","format":"uri","description":"Present when `step.complete` is `redirect`."},"handoff_token":{"type":"string","description":"Short-lived, audience-bound token produced on flow completion.\nExchange it for a session via `POST /sessions/exchange`.\nOnly present when `step.complete` is set.\n"},"handoff_token_expires_at":{"type":"string","format":"date-time","description":"Expiry timestamp for `handoff_token`. Only present when\n`handoff_token` is set.\n"}}},"att-not_completed":{"description":"The auth attempt must be completed for any further action.\n\nError code: att.not_completed\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"att.not_completed"}},"required":["code"]}]},"flow-completed":{"description":"Flow has already completed\n\nError code: flow.completed\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flow.completed"}},"required":["code"]}]},"flow-cookie_expired":{"description":"Flow cookie has expired\n\nError code: flow.cookie_expired\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flow.cookie_expired"}},"required":["code"]}]},"flow-cookie_invalid":{"description":"Flow cookie is missing or invalid\n\nError code: flow.cookie_invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flow.cookie_invalid"}},"required":["code"]}]},"flow-invalid_action":{"description":"Action is not allowed on the current step\n\nError code: flow.invalid_action\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flow.invalid_action"}},"required":["code"]}]},"flow-not_found":{"description":"Flow not found\n\nError code: flow.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flow.not_found"}},"required":["code"]}]},"flow-rate_limited":{"description":"Signup request limit reached; retry after one minute\n\nError code: flow.rate_limited\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flow.rate_limited"}},"required":["code"]}]},"flow-restart_required":{"description":"The flow must be restarted\n\nError code: flow.restart_required\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flow.restart_required"}},"required":["code"]}]},"flow-sso_user_schema_mismatch":{"description":"The linked account cannot sign in through this flow\n\nError code: flow.sso_user_schema_mismatch\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flow.sso_user_schema_mismatch"}},"required":["code"]}]},"flow-unsupported":{"description":"Flow feature is not supported\n\nError code: flow.unsupported\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flow.unsupported"}},"required":["code"]}]},"idp-not_found":{"description":"Identity provider connection: not found\n\nError code: idp.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"idp.not_found"}},"required":["code"]}]},"idp-endpoint_cleartext":{"description":"Identity provider connection: an endpoint is not https\n\nError code: idp.endpoint_cleartext\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"idp.endpoint_cleartext"}},"required":["code"]}]},"idp-endpoints_partial":{"description":"Identity provider connection: the endpoints are partially set\n\nError code: idp.endpoints_partial\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"idp.endpoints_partial"}},"required":["code"]}]},"idp-protocol_block_missing":{"description":"Identity provider connection: the protocol block is missing\n\nError code: idp.protocol_block_missing\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"idp.protocol_block_missing"}},"required":["code"]}]},"idp-scopes_missing_openid":{"description":"Identity provider connection: OIDC scopes must contain openid\n\nError code: idp.scopes_missing_openid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"idp.scopes_missing_openid"}},"required":["code"]}]},"flow-submit-request":{"type":"object","description":"The request body for submitting the current step of a flow.","required":["action"],"additionalProperties":false,"properties":{"session_token":{"type":"string","description":"Reserved for future rotation. The flow's sealed `_zflow_{flow_id}` cookie carries the flow state today."},"action":{"type":"string","description":"Which action to take. Must be a key from the step's `actions` dictionary:\n- A regular action (for example \"submit\", \"register\" or \"back\")\n- The reserved value \"sso\", which triggers an SSO redirect (requires `sso_provider_id`)\n\nA name the current step does not declare is refused with 400\n(`flow.invalid_action`). That includes the outcome names the server\nroutes on its own (`user_not_found`, `user_already_exists`,\n`sso_user_not_found`, `sso_authenticated`), which are never actions.\n"},"fields":{"type":"object","description":"User input values. Keys match field names from the step's `fields`\ndictionary. On the `consent` step, `accept` takes `scopes`: the list of\nscope names the user grants (see the step's `consent`).\n","additionalProperties":true,"example":{"identifier":"alice@acme.com"}},"gate_proofs":{"type":"object","description":"Solutions for security gates. Keys match gate names from the step's `gates` dictionary.\nFor sign-up, the login component solves the built-in challenge with Web\nCrypto and submits its JSON proof under `signup_pow`: with the password\nfor a password sign-up, and with `challenge_response` for a passkey\nregistration that creates the user.\n","additionalProperties":{"type":"string"}},"challenge_response":{"type":"object","description":"Response to a pending challenge on the step. Required when the step has a\n`challenge` property (for example, after submitting a passkey action).\nThe `<zl-passkey>` component populates this after the WebAuthn ceremony.\n","properties":{"challenge_id":{"type":"string","description":"The challenge identifier from `step.challenge.challenge_id`.\nMatches the server-side challenge for verification.\n"},"method":{"type":"string","description":"Which authentication method this response is for, for example 'passkey'."},"proof":{"type":"object","description":"Method-specific proof payload.\nFor passkeys, this is the WebAuthn JSON serialization of PublicKeyCredential.\n","additionalProperties":true}}},"sso_provider_id":{"type":"string","description":"ID of the selected SSO provider (from `sso_providers[].id`).\nRequired when `action` is \"sso\".\n","example":"google"},"return_target":{"type":"string","maxLength":2048,"description":"The page hosting the login component, where the flow resumes after an\nexternal sign-in: the callback sends the browser here unchanged, and\nthe page loads `GET /flows/{flow_id}` to render the next step. The client\nputs the flow ID in it; the login component reads `?flow=<id>` on the\nreload. Required when `action` is \"sso\". An absolute URL; the server\nparses it and keeps a fragment, so a hash-routed page returns to its\nroute. Its origin must equal the request origin; any other origin is\nrejected and no sign-in is started.\n","example":"https://login.example.com/login?flow=flow_2"}}},"flow-proof_invalid":{"description":"Signup proof is missing, invalid, expired or already used; refresh the step\n\nError code: flow.proof_invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flow.proof_invalid"}},"required":["code"]}]},"create-auth-attempt-request":{"type":"object","description":"Request to create an authentication attempt.","required":["project_id"],"properties":{"project_id":{"$ref":"#/components/schemas/project-id"},"challenge_nonce":{"$ref":"#/components/schemas/challenge-nonce"},"session_id":{"description":"Optional. If provided, this attempt adds factors to an existing session (step-up authentication).\nIf omitted, a new session is created implicitly when the handoff is exchanged.\nRequires `session_token`.\n","oneOf":[{"$ref":"#/components/schemas/session-id"},{"type":"null"}]},"session_token":{"$ref":"#/components/schemas/session-proof-token"}}},"proj-mismatch":{"description":"The project named in the request is not the one the credential belongs to\n\nError code: proj.mismatch\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"proj.mismatch"}},"required":["code"]}]},"attempt-id":{"type":"string","pattern":"^att_[a-zA-Z0-9_-]+$","x-zitadel-pattern-message":"must be an attempt ID: att_ followed by letters, digits, _ or -","example":"att_01J0Z9KX7Y0Q2Y7JX5M9K2YF3C","description":"The unique identifier of this authentication attempt, an opaque string with an `att_` prefix."},"challenge-id":{"type":"string","pattern":"^ch_[a-zA-Z0-9_-]+$","x-zitadel-pattern-message":"must be a challenge ID: ch_ followed by letters, digits, _ or -","example":"ch_01J0Z9KX7Y0Q2Y7JX5M9K2YF3C","description":"The unique identifier of this challenge, an opaque string with a `ch_` prefix."},"challenge-method":{"type":"string","description":"An authentication factor method a client can challenge. It leaves out\n`sso`: an SSO sign-in starts from a flow step, not from this endpoint.\n","enum":["identifier","password","passkey"],"example":"password"},"identifier-challenge-payload":{"title":"IdentifierChallengePayload","type":"object","description":"An identifier challenge has no data beyond the base challenge fields.","additionalProperties":false},"password-challenge-payload":{"title":"PasswordChallengePayload","type":"object","description":"A password challenge has no data beyond the base challenge fields.","additionalProperties":false},"passkey-challenge-payload":{"title":"PasskeyChallengePayload","type":"object","description":"The WebAuthn challenge data for passkey authentication.","required":["public_key"],"properties":{"public_key":{"type":"object","description":"Contains the options for the Assertion Generation (dictionary PublicKeyCredentialRequestOptions).\nSee also: https://www.w3.org/TR/webauthn/#dictdef-publickeycredentialrequestoptions\n","required":["challenge"],"properties":{"challenge":{"type":"string","description":"Base64-encoded WebAuthn challenge","example":"dGVzdGNoYWxsZW5nZQ=="},"allowed_credentials":{"type":"array","description":"List of credential IDs that can be used for this authentication","items":{"type":"object","required":["id","type"],"properties":{"id":{"type":"string","description":"Base64-encoded credential ID"},"type":{"type":"string","enum":["public-key"]}}},"example":[{"id":"Y3JlZGVudGlhbDE=","type":"public-key"}]},"user_verification":{"type":"string","enum":["required","preferred","discouraged"],"description":"User verification requirement for this challenge","example":"preferred"},"rp_id":{"type":"string","description":"Relying Party ID for WebAuthn","example":"example.com"}}}}},"challenge-response":{"type":"object","description":"A challenge issued within an authentication attempt.\n\nA challenge asks the user to prove one factor: a password, a TOTP code, a\npasskey assertion and so on. The client submits the proof with\n`verifyAuthAttemptChallenge` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`)\n(`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`).\n","required":["challenge_id","method","state","created_at"],"properties":{"challenge_id":{"$ref":"#/components/schemas/challenge-id"},"method":{"$ref":"#/components/schemas/challenge-method","description":"The authentication method this challenge represents.\nIt determines which proof `verifyAuthAttemptChallenge` (`POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`) expects.\n"},"state":{"type":"string","enum":["pending","failed","expired"],"description":"Current state of this challenge:\n- `pending`: awaiting proof submission\n- `failed`: proof rejected (invalid credential, wrong code, etc.)\n- `expired`: the challenge's lifetime passed without a verified proof\n"},"created_at":{"type":"string","format":"date-time","description":"When this challenge was issued.","example":"2026-04-28T15:31:00Z"},"expires_at":{"description":"When this challenge expires.","oneOf":[{"type":"string","format":"date-time","example":"2026-04-28T15:41:00Z"},{"type":"null"}]},"payload":{"description":"Method-specific challenge data. Structure depends on the `method` field.\n- `identifier`, `password`: null (no additional data needed)\n- `passkey`: WebAuthn challenge and credential options\n- `idp`: Authorization URL and provider information\n","oneOf":[{"$ref":"#/components/schemas/identifier-challenge-payload"},{"$ref":"#/components/schemas/password-challenge-payload"},{"$ref":"#/components/schemas/passkey-challenge-payload"}],"discriminator":{"propertyName":"method","mapping":{"identifier":"#/components/schemas/identifier-challenge-payload","password":"#/components/schemas/password-challenge-payload","passkey":"#/components/schemas/passkey-challenge-payload"}}}}},"auth-attempt-response":{"type":"object","description":"The current state of an authentication attempt.\n\nAn authentication attempt is one sign-in round, and it expires 15 minutes\nafter creation. It accepts factor challenges, verifies proofs and completes\ninto a handoff token. Clients drive the attempt by:\n\n1. Issuing challenges: `POST /auth_attempts/{attempt_id}/challenges`\n2. Verifying proofs: `POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify`\n3. Completing: `POST /auth_attempts/{attempt_id}/handoff`\n","required":["attempt_id","project_id","state","created_at"],"properties":{"attempt_id":{"$ref":"#/components/schemas/attempt-id"},"project_id":{"$ref":"#/components/schemas/project-id"},"state":{"type":"string","description":"Overall state of the authentication attempt:\n- `in_progress`: factors are still being collected; continue issuing challenges.\n- `completed`: all required factors have been verified; the attempt is ready for handoff.\n- `failed`: the attempt has failed, for example after too many failed proofs, and cannot be continued.\n- `expired`: the attempt's 15-minute lifetime has passed.\n","enum":["in_progress","completed","failed","expired"],"example":"in_progress"},"session_id":{"description":"The session being authenticated into. Either newly created or passed in on `POST`.\nFor step-up authentication, this is the existing `session_id` provided on creation.\n","oneOf":[{"$ref":"#/components/schemas/session-id"},{"type":"null"}]},"user_id":{"description":"The user ID, if known at this point in the flow.\nNull until an identifier challenge has been verified.\n","oneOf":[{"$ref":"#/components/schemas/user-id"},{"type":"null"}]},"required_factors":{"type":"array","description":"The authentication factor methods that the project policy requires to\ncomplete this attempt. The server computes them from the project's\nauthentication policy. Use them to decide which challenges still need to be issued.\n","items":{"$ref":"#/components/schemas/factor-method"},"example":["identifier","password"]},"completed_factors":{"type":"array","description":"The factors verified in this attempt so far.\nEach item includes method-specific metadata in the `payload` field.\n\nThe server uses the `verified_at` timestamps to enforce time-based policies.\nOne example is requiring a password verified within the last 5 minutes for\nstep-up authentication to reach sensitive operations.\n\nA factor appears here once its challenge reaches `verified` state.\n","items":{"$ref":"#/components/schemas/completed-factor"}},"challenges":{"type":"array","description":"All challenges issued within this attempt, in creation order.\nUse them to track the state of each factor challenge: pending, verified, failed or expired.\n","items":{"$ref":"#/components/schemas/challenge-response"}},"expires_at":{"type":"string","format":"date-time","description":"When this attempt expires, 15 minutes after creation.","example":"2026-04-28T15:45:00Z"},"created_at":{"type":"string","format":"date-time","description":"When this attempt was created.","example":"2026-04-28T15:30:00Z"}}},"issue-challenge-request":{"type":"object","description":"Request to issue a challenge for one factor.\n\nThe `method` field selects which factor to challenge. Additional fields are\nonly relevant for specific methods:\n- `passkey_options` is optional and only used when `method` is `passkey`.\n- `idp_provider` is required when `method` is `idp` and must be omitted otherwise.\n  The server enforces this conditional requirement.\n","required":["method"],"additionalProperties":false,"properties":{"method":{"$ref":"#/components/schemas/challenge-method","description":"The authentication factor method to challenge."},"passkey_options":{"type":"object","description":"Optional WebAuthn ceremony options. Only relevant when `method` is `passkey`.","additionalProperties":false,"properties":{"rp_id":{"type":"string","description":"Relying Party ID for WebAuthn. Optional; if not provided, the server may use a default value.","example":"example.com"},"rp_origins":{"type":"array","description":"List of allowed origins for this WebAuthn challenge. Optional; if not provided, the server may use a default value.","items":{"type":"string","format":"uri"},"example":["https://example.com"]},"user_verification":{"type":"string","enum":["required","preferred","discouraged"],"example":"required"}}}}},"identifier-proof":{"title":"IdentifierProof","type":"object","description":"The proof for an `identifier` challenge: the login name of the user.\n\nThe login name is resolved against the designated identifier (`x-identifier`)\nof every user schema in the project, and must identify exactly one user. A\nlogin name that matches none, or users of more than one schema, rejects the\nproof. The caller does not name the property: the project decides which\nproperty identifies users, in its user schemas.\n","required":["login_name"],"additionalProperties":false,"properties":{"login_name":{"type":"string","description":"The value being identified, as the user typed it.","example":"alice@acme.com"}}},"password-proof":{"title":"PasswordProof","type":"object","description":"The proof for a `password` challenge.","required":["password"],"additionalProperties":false,"properties":{"password":{"type":"string","description":"The password being verified","format":"password"}}},"passkey-proof":{"title":"PasskeyProof","type":"object","description":"The proof for a `passkey` challenge.","required":["passkey"],"additionalProperties":false,"properties":{"passkey":{"type":"object","description":"WebAuthn passkey assertion","required":["assertion"],"properties":{"assertion":{"type":"object","description":"The WebAuthn AssertionResponse object","additionalProperties":true}}}}},"verify-challenge-request":{"type":"object","description":"Proof for verifying a factor challenge.\n\nThe exact format depends on the challenge method. The proof object contains\nonly the credential, code or assertion for the challenge method being verified.\n","oneOf":[{"$ref":"#/components/schemas/identifier-proof"},{"$ref":"#/components/schemas/password-proof"},{"$ref":"#/components/schemas/passkey-proof"}]},"handoff-response":{"type":"object","description":"The handoff token and its expiry.\n\nThe handoff token is a short-lived credential, valid for 60 seconds at most.\nThe client exchanges it at `POST /sessions/exchange` to receive the final\nsession and `session_token`. It is single-use and bound to the project.\n","required":["handoff_token","expires_at"],"properties":{"handoff_token":{"type":"string","description":"The short-lived handoff token for session exchange.\n\nExchange at: `POST /sessions/exchange`\n\nRequirements:\n- Single-use\n- Valid for 60 seconds at most\n- Bound to the project: the exchange needs `sk_proj_…` of the matching project\n","example":"handoff_abc123def456xyz"},"expires_at":{"type":"string","format":"date-time","description":"When this handoff token expires.","example":"2026-04-28T15:31:00Z"}}},"create-project-request":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"The name of the project."},"origins":{"type":"array","items":{"$ref":"#/components/schemas/project-origin"},"description":"The origins the project starts with. An omitted or empty list admits no\norigin except a loopback origin, which is admitted without a pattern.\n"},"seed_defaults":{"type":"boolean","default":true,"description":"Whether the server creates a default user schema and flow for the project.\nCLI-managed projects set this to `false` and upload their local `.zitadel/`\nfiles through the schema and flow APIs.\n"}}},"sch-invalid_request":{"description":"Invalid request\n\nError code: sch.invalid_request\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sch.invalid_request"}},"required":["code"]}]},"origin-invalid":{"description":"Origin: must be scheme://host[:port], lowercase, with no path\n\nError code: origin.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"origin.invalid"}},"required":["code"]}]},"origin-kind_conflict":{"description":"Origin: the pattern is already stored with a different kind\n\nError code: origin.kind_conflict\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"origin.kind_conflict"}},"required":["code"]}]},"origin-primary_not_exact":{"description":"A primary origin is an exact URL, no wildcard\n\nError code: origin.primary_not_exact\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"origin.primary_not_exact"}},"required":["code"]}]},"proj-name_invalid":{"description":"The project name is invalid. Expected a non-empty string.\n\nError code: proj.name_invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"proj.name_invalid"}},"required":["code"]}]},"create-project-response":{"type":"object","required":["id","name","project_secret","preview_secret","origins","created_at"],"properties":{"id":{"type":"string","description":"The unique identifier of the project."},"name":{"type":"string","description":"The name of the project."},"project_secret":{"type":"string","description":"The secret that authenticates requests that change the project. Only\nthis response returns it.\n"},"preview_secret":{"type":"string","description":"The secret that authenticates previewing and testing the project. Only\nthis response returns it.\n"},"origins":{"type":"array","items":{"$ref":"#/components/schemas/project-origin"},"description":"The project's origins. An empty list admits no origin except a loopback\norigin, which is admitted without a pattern.\n"},"created_at":{"type":"string","format":"date-time","description":"The time when the project was created."}}},"filter-field":{"type":"string","enum":["created_at"]},"query-projects-request":{"type":"object","description":"Request to query projects.","properties":{"limit":{"$ref":"#/components/schemas/limit"},"page_token":{"description":"Token to retrieve the next page of results. Must be sent with the same\n`sorting` as the request that issued the token. Omitting `sorting` reuses\nthe default sort and only succeeds when that default matches the token.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]},"sorting":{"type":"object","required":["field","direction"],"properties":{"field":{"$ref":"#/components/schemas/filter-field","description":"The field to sort by."},"direction":{"$ref":"#/components/schemas/sort-direction","description":"The direction to sort by."}}},"filter":{"type":"array","description":"Filter criteria for querying projects.","items":{"type":"object","required":["field","operation"],"properties":{"field":{"$ref":"#/components/schemas/filter-field","description":"The field to filter by."},"value":{"$ref":"#/components/schemas/filter-value"},"operation":{"$ref":"#/components/schemas/filter-operation"}}}}}},"proj-permission_denied":{"description":"The project management API requires the project secret\n\nError code: proj.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"proj.permission_denied"}},"required":["code"]}]},"query-projects-response":{"type":"object","description":"Paginated list of projects.","required":["projects"],"properties":{"projects":{"type":"array","items":{"$ref":"#/components/schemas/project-response"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results. The follow-up request must repeat the\nsame `sorting` that produced this token (omit only when both pages use the default).\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"project-detail-response":{"description":"The current state of one project. It adds the owning team to the fields\nevery project listing carries.\n","allOf":[{"$ref":"#/components/schemas/project-response"},{"type":"object","required":["owning_team_id"],"properties":{"owning_team_id":{"description":"The team that owns the project, which is how its members administer\nit. Null when no team owns the project, for example before it is\nclaimed.\n\nThe team lives in the platform project, so treat this ID as opaque.\n`GET /projects/{project_id}/members?relation=admin` lists the people\nwho administer the project, through it or through a grant.\n","oneOf":[{"$ref":"#/components/schemas/team-id"},{"type":"null"}]}}}]},"patch-project-request":{"type":"object","properties":{"name":{"description":"The name of the project.","oneOf":[{"type":"null"},{"type":"string"}]},"password_hash":{"description":"The method this project's passwords are hashed with. Send `null` to drop\nthe project's own method and go back to the server default. Leave the\nfield out to keep whatever the project has.\n","oneOf":[{"$ref":"#/components/schemas/password-hash-policy"},{"type":"null"}]}}},"proj-password_hash_invalid":{"description":"The password hashing method is invalid\n\nError code: proj.password_hash_invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"proj.password_hash_invalid"}},"required":["code"]}]},"team-ref":{"type":"object","title":"TeamRef","description":"A resolved reference to a team. It carries the team's ID and name, so a grant\nlist is readable without embedding the full team. Reading it needs only\n`project.read`, because it holds just the ID and the name. A missing or\ndeleted team degrades to `team_id` only.\n","required":["team_id"],"properties":{"team_id":{"type":"string","description":"The referenced team's ID (`team_<opaque>`). Always present.","example":"team_01KZZY8PX8K8ATNVDSMRCZY4N1"},"name":{"type":"string","description":"The team's name. Absent when the team can no longer be loaded, or where\nthe referencing endpoint leaves it out for a team the caller may not see.\n","example":"Platform admins"}}},"project-member-owning-team-source":{"title":"ProjectMemberOwningTeamSource","description":"Admin access as an active member of the team that owns the project.","type":"object","required":["type","team"],"properties":{"type":{"type":"string","enum":["owning_team"]},"team":{"description":"The owning team.","$ref":"#/components/schemas/team-ref"}}},"project-member-grant-source":{"title":"ProjectMemberGrantSource","description":"A role through a grant on the project, to the person or to a team they are\nan active member of.\n","type":"object","required":["type","grant_id"],"properties":{"type":{"type":"string","enum":["grant"]},"grant_id":{"type":"string","description":"The grant (`asgn_<opaque>`), as served by `GET /grants/{id}`."},"team":{"description":"The team the grant is to, absent for a grant to the person directly.","$ref":"#/components/schemas/team-ref"}}},"project-member-source":{"title":"ProjectMemberSource","description":"One way a person holds their role on the project. Discriminate on `type`.\n\n- `owning_team`: the person is an active member of the owning team named by\n  `team`, which holds `admin`. There is no `grant_id`: this access is not a\n  grant, so the grants API cannot revoke it.\n- `grant`: a grant on the project, named by `grant_id`. `team` is present\n  when the grant is to a team the person is an active member of. It is\n  absent when the grant is to the person directly.\n","oneOf":[{"$ref":"#/components/schemas/project-member-owning-team-source"},{"$ref":"#/components/schemas/project-member-grant-source"}],"discriminator":{"propertyName":"type","mapping":{"owning_team":"#/components/schemas/project-member-owning-team-source","grant":"#/components/schemas/project-member-grant-source"}}},"project-member":{"title":"ProjectMember","description":"One person with a role on the project: their strongest role, and every way\nthey hold it.\n","type":"object","required":["user","relation","sources"],"properties":{"user":{"description":"The person. A user-ref: render `display`, falling back to `identifier`,\nthen `user_id`.\n","$ref":"#/components/schemas/user-ref"},"relation":{"type":"string","enum":["viewer","editor","admin"],"description":"The person's strongest role on the project. A stronger role includes\nthe weaker ones.\n"},"sources":{"type":"array","minItems":1,"description":"How the person holds `relation`: owning-team access first, then grants\nto teams, then grants to the person. Grants of a weaker role are left\nout; they still show in the project's grants.\n","items":{"$ref":"#/components/schemas/project-member-source"}}}},"list-project-members-response":{"type":"object","description":"A page of the people who have a role on a project.","required":["members"],"properties":{"members":{"type":"array","items":{"$ref":"#/components/schemas/project-member"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"claim_challenge-invalid":{"description":"The claim challenge is invalid. Expected a non-empty id, project id, and initiating secret hash.\n\nError code: claim_challenge.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"claim_challenge.invalid"}},"required":["code"]}]},"proj-already_claimed":{"description":"The project is already claimed by a team\n\nError code: proj.already_claimed\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"proj.already_claimed"}},"required":["code"]}]},"proj-claim_window_expired":{"description":"The project was not claimed within 14 days of creation and can no longer be claimed\n\nError code: proj.claim_window_expired\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"proj.claim_window_expired"}},"required":["code"]}]},"init-claim-response":{"type":"object","description":"The claim challenge for a project.","required":["claim_url","challenge_id","expires_at"],"properties":{"claim_url":{"type":"string","format":"uri","description":"The browser URL a developer opens to complete the claim. It embeds the\n`challenge_id`, so the browser needs no project secret.\n"},"challenge_id":{"$ref":"#/components/schemas/challenge-id"},"expires_at":{"type":"string","format":"date-time","description":"The time when the claim challenge expires."}}},"already-claimed-response":{"description":"A team already claimed the project. The `details` carry the owning team and\nthe dashboard where it can be managed.\n","allOf":[{"$ref":"#/components/schemas/proj-already_claimed"},{"type":"object","required":["details"],"properties":{"details":{"type":"object","required":["team_id","dashboard_url"],"properties":{"team_id":{"$ref":"#/components/schemas/team-id"},"dashboard_url":{"type":"string","format":"uri","description":"The dashboard URL for the team that owns the project."}}}}}]},"claim_challenge-not_found":{"description":"Claim challenge not found\n\nError code: claim_challenge.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"claim_challenge.not_found"}},"required":["code"]}]},"proj-claim_expired":{"description":"The claim challenge has expired\n\nError code: proj.claim_expired\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"proj.claim_expired"}},"required":["code"]}]},"claim-status-pending":{"type":"object","description":"A claim challenge that is still awaiting the browser leg.","required":["status"],"properties":{"status":{"type":"string","enum":["pending"],"description":"The claim has not completed yet."}}},"claim-status-completed":{"type":"object","description":"A completed claim. It carries the owning team, when the claim landed and the\ndashboard where it can be managed. These fields are always present when\n`status` is `completed`.\n","required":["status","team_id","claimed_at","dashboard_url"],"properties":{"status":{"type":"string","enum":["completed"],"description":"The claim has completed."},"team_id":{"$ref":"#/components/schemas/team-id"},"claimed_at":{"type":"string","format":"date-time","description":"The time when the project was claimed."},"dashboard_url":{"type":"string","format":"uri","description":"The dashboard URL for the owning team."}}},"claim-status-response":{"description":"The state of a claim challenge. While pending it carries only `status`. Once\ncompleted it also carries the owning team, the claim timestamp and the\ndashboard URL. Switch on `status`: a `pending` response never carries\ncompletion fields, and a `completed` response always does.\n","oneOf":[{"$ref":"#/components/schemas/claim-status-pending"},{"$ref":"#/components/schemas/claim-status-completed"}],"discriminator":{"propertyName":"status","mapping":{"pending":"#/components/schemas/claim-status-pending","completed":"#/components/schemas/claim-status-completed"}}},"complete-claim-request":{"type":"object","description":"The request to complete a project claim.","required":["challenge_id"],"properties":{"challenge_id":{"$ref":"#/components/schemas/challenge-id"}}},"claim-no_personal_team":{"description":"The user has no active personal team in the platform project.\n\nError code: claim.no_personal_team\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"claim.no_personal_team"}},"required":["code"]}]},"claim-personal_team_not_active":{"description":"The user's personal team in the platform project is not active.\n\nError code: claim.personal_team_not_active\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"claim.personal_team_not_active"}},"required":["code"]}]},"complete-claim-response":{"type":"object","description":"The result of a completed project claim.","required":["project_id","team_id","claimed_at"],"properties":{"project_id":{"$ref":"#/components/schemas/project-id"},"team_id":{"$ref":"#/components/schemas/team-id"},"claimed_at":{"type":"string","format":"date-time","description":"The time when the project was claimed."}}},"claim-window-response":{"type":"object","description":"How long the project can still be claimed. It derives from the project's\ncreation time and the fixed 14-day claim window. It does not depend on the\nchallenge, which has its own much shorter expiry.\n","required":["expires_at","expired"],"properties":{"expires_at":{"type":"string","format":"date-time","description":"The time when the project's claim window closes.","example":"2026-09-20T09:12:00Z"},"expired":{"type":"boolean","description":"Whether the window has already closed. The server reports it alongside\n`expires_at`, so a browser with a skewed clock does not show a claimable\nproject as expired, or the reverse.\n","example":false}}},"origin-not_found":{"description":"Origin: not found\n\nError code: origin.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"origin.not_found"}},"required":["code"]}]},"origin-permission_denied":{"description":"Origin: permission denied\n\nError code: origin.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"origin.permission_denied"}},"required":["code"]}]},"add-origin-response":{"type":"object","description":"The origin pattern as the project stores it.","required":["pattern","kind"],"properties":{"pattern":{"type":"string","description":"The origin pattern."},"kind":{"type":"string","description":"What the pattern is for, `primary` or `preview`.","enum":["primary","preview"]}}},"dep-permission_denied":{"description":"Deployment: requires an operator-grade token bound to the project (project.write or a deployment.* scope)\n\nError code: dep.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"dep.permission_denied"}},"required":["code"]}]},"origin":{"title":"Origin","type":"string","description":"A web origin: `http` or `https`, a lowercase host (a DNS name or a\nbracketed IPv6 address) and, when it is not the scheme's default, a port\nfrom 1 to 65535. No user info, path, query or fragment, and no trailing\nslash. Compared exactly, so `https://app.acme.com` and\n`https://app.acme.com:443` are different strings.\n","pattern":"^https?://(\\[[0-9a-f:.]+\\]|[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*)(:(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}))?$","x-zitadel-pattern-message":"must be an origin: http or https, a lowercase host and an optional port, with no path","maxLength":2048,"example":"https://app.acme.com"},"preview":{"title":"Preview","type":"object","description":"A preview URL that is live: an origin matching one of the project's\npreview patterns, with something deployed to it, until it expires.\n\nThere is no create operation. A deployment whose targets are preview URLs\ncreates the preview for each of them, or renews it when it exists. So a\npreview with nothing deployed to it cannot exist. A preview ends when it\nexpires or is removed with `POST /projects/{project_id}/previews/remove`.\nThe deployments to it stay in the history either way.\n","required":["origin","expires_at","created_at"],"properties":{"origin":{"readOnly":true,"description":"The preview URL, as scheme and host.","$ref":"#/components/schemas/origin"},"expires_at":{"readOnly":true,"type":"string","format":"date-time","description":"When the preview stops being served. Every deployment to it sets this\nagain from its `ttl`.\n","example":"2026-10-09T14:10:00Z"},"created_at":{"readOnly":true,"type":"string","format":"date-time","description":"When the first deployment to the URL created the preview.","example":"2026-10-02T14:10:00Z"}}},"list-previews-response":{"type":"object","description":"The project's live previews, newest first.","required":["previews"],"properties":{"previews":{"type":"array","items":{"$ref":"#/components/schemas/preview"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"remove-preview-request":{"title":"RemovePreviewRequest","type":"object","description":"The preview to remove.","required":["origin"],"additionalProperties":false,"properties":{"origin":{"description":"The preview URL, exactly as `listProjectPreviews` (`GET /projects/{project_id}/previews`) returns it in `origin`.\n","$ref":"#/components/schemas/origin"}}},"env-project_not_found":{"description":"Project not found\n\nError code: env.project_not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"env.project_not_found"}},"required":["code"]}]},"create-session-request":{"type":"object","description":"Request to create an anonymous session.","required":["project_id"],"properties":{"project_id":{"$ref":"#/components/schemas/project-id"},"user_agent":{"type":"object","description":"Optional user agent / device context to attach to the session.\nUseful for correlating telemetry and device signals with the eventual\nauthenticated session from the start.\n","properties":{"fingerprint":{"type":"string","description":"Client-supplied device fingerprint.","example":"fp_abc123"},"ip":{"type":"string","description":"IP address of the client.","example":"203.0.113.42"}},"additionalProperties":true}}},"sess-token_creation_failed":{"description":"The session token could not be created\n\nError code: sess.token_creation_failed\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sess.token_creation_failed"}},"required":["code"]}]},"session-with-token-response":{"type":"object","description":"The response of session creation and handoff exchange.\nIt holds the session state and the `session_token` required to manage it.\n","required":["session","session_token"],"properties":{"session":{"$ref":"#/components/schemas/session-response"},"session_token":{"type":"string","description":"Bearer token authorising management of this session (GET and DELETE).\nFor anonymous sessions this token is superseded when a handoff exchange completes.\nClients must replace their stored token at that point.\n","example":"stok_abc123def456"}}},"session-sort-field":{"type":"string","description":"Field to sort sessions by. Only stored values are sortable, because a\ncomputed value such as `state` could skip or repeat rows between pages.\n","enum":["created_at","user_id"]},"session-filter-field":{"type":"string","description":"Field to filter sessions by:\n- `created_at`: RFC3339 timestamp\n- `user_id`: user id\n- `state`: one of `building`, `active`, `expired`. The server computes state at read\n  time, so a session expiring mid-request can match `active` but return `expired`.\n- `lifecycle_owner_team_id`: team id. Matches the sessions of the users whose\n  lifecycle that team owns — the same users it can deactivate and whose\n  sessions it can revoke. Roster membership does not match: a collaborator on\n  the team's roster whose lifecycle another team (or the user themselves)\n  owns is not returned. A session is project-scoped and is not bound to a\n  team, so the link is read from the user at query time; a session of a\n  self-owned user, and a session with no user, match no team. Only `equals`\n  is supported.\n","enum":["created_at","user_id","state","lifecycle_owner_team_id"]},"query-sessions-request":{"type":"object","description":"Request to query the sessions of a project.","properties":{"limit":{"$ref":"#/components/schemas/limit"},"page_token":{"description":"Token to retrieve the next page of results.","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]},"sorting":{"type":"object","required":["field","direction"],"properties":{"field":{"$ref":"#/components/schemas/session-sort-field","description":"The field to sort by."},"direction":{"$ref":"#/components/schemas/sort-direction","description":"The direction to sort by."}}},"filter":{"type":"array","description":"Filter criteria for querying sessions.","items":{"type":"object","required":["field","operation"],"properties":{"field":{"$ref":"#/components/schemas/session-filter-field","description":"The field to filter by."},"value":{"$ref":"#/components/schemas/filter-value"},"operation":{"$ref":"#/components/schemas/filter-operation"}}}}}},"sess-permission_denied":{"description":"Session: requires a session scope bound to the project\n\nError code: sess.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sess.permission_denied"}},"required":["code"]}]},"exchange-request":{"type":"object","description":"Request to exchange a handoff token for a session and session_token.","required":["handoff_token"],"properties":{"handoff_token":{"type":"string","description":"The one-time handoff token that `createAuthAttemptHandoff`\n(`POST /auth_attempts/{attempt_id}/handoff`) returns as `handoff_token`.\nIt is single-use. Replaying it after a successful exchange returns `400`\nwith `sess.invalid_handoff_token`, the same answer as for an unknown or\nexpired token.\n","example":"handoff_abc123def456xyz"},"ttl":{"type":"string","format":"duration","x-ogen-type":"go.zitadel.com/zitadel/v5/ogenx.ISODuration","description":"Optional session lifetime after exchange, as an ISO-8601 duration. When omitted, the server\nuses the configured default. It must not exceed the configured maximum.\n","example":"PT1H"}}},"sess-exchange_conflict":{"description":"The exchange resulted in a conflict. Either the target session was revoked or verified factors could not be promoted consistently.\n\nError code: sess.exchange_conflict\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sess.exchange_conflict"}},"required":["code"]}]},"sess-invalid_handoff_token":{"description":"The handoff token is invalid. Either the token does not exists, was already consumed or has expired\n\nError code: sess.invalid_handoff_token\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sess.invalid_handoff_token"}},"required":["code"]}]},"sess-invalid_ttl":{"description":"The session TTL is invalid. It must be positive and not exceed the configured maximum.\n\nError code: sess.invalid_ttl\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sess.invalid_ttl"}},"required":["code"]}]},"csrf-token-response":{"type":"object","description":"The session-bound CSRF token.","required":["csrf_token"],"properties":{"csrf_token":{"type":"string","description":"Send it in the `X-Zitadel-CSRF` header on state-changing requests the\nsession cookie authenticates.\n","example":"3q9Y5mJ7m1wq0yBqS4kz0mJ3o1bG8v7t2Y4r6Pp9Ls0"}}},"schema-expand":{"type":"string","description":"Extra fields to add onto each returned schema.\n\n- `in_use`: whether any user of the project is on this revision, as\n  `metadata.in_use`. A revision in use cannot be deleted, and the users on it\n  are found with `queryUsers` (`POST /users/query`) filtering on `schema`. The property is\n  omitted entirely when not requested, so \"did not ask\" is distinguishable\n  from `false`.\n\n  The flag counts every user of the project, not only those the caller may\n  list, so it requires read on the whole project, and for a token also\n  `user.read` in addition to `schema.read`. A caller without them is refused\n  with `403`.\n","enum":["in_use"]},"sch-not_found":{"description":"Schema not found\n\nError code: sch.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sch.not_found"}},"required":["code"]}]},"sch-permission_denied":{"description":"The schema management API requires the project secret\n\nError code: sch.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sch.permission_denied"}},"required":["code"]}]},"list-schemas-response":{"type":"object","description":"A page of schemas, newest first.","required":["schemas"],"properties":{"schemas":{"type":"array","items":{"$ref":"#/components/schemas/schema"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"schema-url":{"title":"SchemaUrl","type":"object","description":"A schema definition that references an external schema by URL. On creation\nthe server fetches the document, validates it against its meta-schema and\nstores a copy.\n","required":["kind","url"],"properties":{"kind":{"type":"string","const":"schema-url","description":"Must be `schema-url`. It selects this schema type in a create request."},"url":{"type":"string","format":"uri","description":"The URL the server fetches the schema definition from."}}},"sch-already_exists":{"description":"A schema with the given id already exists\n\nError code: sch.already_exists\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sch.already_exists"}},"required":["code"]}]},"sch-fetch_denied":{"description":"The schema URL resolves to an address blocked by the egress policy\n\nError code: sch.fetch_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sch.fetch_denied"}},"required":["code"]}]},"sch-fetch_downgrade":{"description":"Fetching the schema URL was redirected from https to http, which is not allowed\n\nError code: sch.fetch_downgrade\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sch.fetch_downgrade"}},"required":["code"]}]},"sch-fetch_timeout":{"description":"Fetching the schema URL timed out\n\nError code: sch.fetch_timeout\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sch.fetch_timeout"}},"required":["code"]}]},"sch-fetch_too_large":{"description":"The fetched schema document exceeds the configured size limit\n\nError code: sch.fetch_too_large\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sch.fetch_too_large"}},"required":["code"]}]},"sch-fetch_too_many_redirects":{"description":"Fetching the schema URL exceeded the redirect limit\n\nError code: sch.fetch_too_many_redirects\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sch.fetch_too_many_redirects"}},"required":["code"]}]},"sch-revision_conflict":{"description":"Another revision of the same object type was created at the same instant\n\nError code: sch.revision_conflict\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sch.revision_conflict"}},"required":["code"]}]},"flow-definition-expand":{"type":"string","description":"A related entity to embed on each returned flow definition.\n\n- `user_schema`: the user schema the flow operates on, embedded as\n  `user_schema` on each entry. It is the same object `GET /schemas/{schema_id}`\n  returns. The property is omitted when not requested. It is `null` when the\n  referenced schema no longer resolves or the caller may not read it, so\n  \"did not ask\" stays distinguishable from \"cannot resolve\". Requesting it\n  requires read access to schemas, and of an access token issued for a\n  person the scope `schema.read`.\n","enum":["user_schema"]},"flowdef-invalid":{"description":"Flow definition: invalid\n\nError code: flowdef.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flowdef.invalid"}},"required":["code"]}]},"flowdef-permission_denied":{"description":"Flow definition: the flow definition management API requires the project secret\n\nError code: flowdef.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flowdef.permission_denied"}},"required":["code"]}]},"flowdef-missing_project_id":{"description":"Flow definition: missing project id\n\nError code: flowdef.missing_project_id\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flowdef.missing_project_id"}},"required":["code"]}]},"flow-audience":{"type":"object","additionalProperties":false,"description":"Scopes which teams or apps this flow definition applies to. Empty or\nomitted fields mean \"no restriction\"; when both are empty the definition\nmatches every request in the project. The server picks the most specific\nmatching definition: app > team > project-wide.\n","properties":{"team_ids":{"type":"array","items":{"type":"string"},"description":"Restrict to specific teams (organizations). Empty means no team restriction.","uniqueItems":true,"example":["team_acme"]},"app_ids":{"type":"array","items":{"type":"string"},"description":"Restrict to specific applications. Empty means no app restriction.","uniqueItems":true,"example":["app_saas"]}}},"step-action":{"type":"object","required":["name","kind"],"additionalProperties":false,"description":"An action a flow author declares on a step of a flow definition: something\nthe user can do on the step, such as submitting the form or following a\nlink. The `name` is sent back in the submit request as `action`; the server\nresolves the action's declared `kind` to decide how to handle the\nsubmission.\n","properties":{"name":{"type":"string","minLength":1,"description":"Action identifier. Sent back in the submit request as `action`.","example":"submit"},"kind":{"type":"string","enum":["submit","passkey","passkey_register","navigate"],"example":"submit","description":"Classifies how the server handles this action. `back` is not declarable:\nthe server injects it into runtime steps (see `flow-step-action.yaml`)\nwhenever going back is available.\n- `submit`: collect the step's fields and run validate/dispatch/on_success.\n- `passkey`: issue a WebAuthn assertion challenge; the matching transition\n  fires once the returned assertion verifies.\n- `passkey_register`: issue a WebAuthn registration challenge; the matching\n  transition fires once the returned attestation verifies.\n- `navigate`: route through the transition without running the input\n  pipeline. Used for pure-routing actions declared in the flow definition.\n"},"primary":{"type":"boolean","default":false,"example":true,"description":"Marks this as the default/primary action. The runtime template uses\nthis hint to choose visual emphasis. At most one action per step\nshould be primary; this is not enforced here.\n"},"text_key":{"type":"string","description":"Optional localization key override for the action's label. When\nomitted, the server derives a key from the step and action names.\nDisplay text is resolved client-side from a locale dictionary, never\nby the server.\n","example":"actions.signin.submit"}}},"gate":{"type":"object","additionalProperties":false,"required":["kind","provider"],"description":"A reserved gate declaration. Gates declared in a flow definition are not\ncurrently enforced. Required signup gates are attached by the server based\non `on_success: create_user`, independently of this declaration.\n","properties":{"kind":{"type":"string","enum":["captcha"],"example":"captcha","description":"The gate category. Only `captcha` is defined today. Authenticator\nceremonies, such as passkey, are not gates: they are modeled as\ncredential authentication attempts (`auth_attempts`) with `x-credential`\non a field.\n"},"provider":{"type":"string","description":"Reserved implementation identifier. Declaring a provider does not enable it.\n"},"config":{"type":"object","description":"Reserved provider-specific configuration. It has no runtime effect.\n","additionalProperties":true}}},"flow-definition-step":{"type":"object","required":["name"],"additionalProperties":false,"not":{"anyOf":[{"required":["sso_providers"],"properties":{"sso_providers":{"minItems":1}},"anyOf":[{"not":{"required":["transitions"]}},{"properties":{"transitions":{"not":{"required":["sso_authenticated"]}}}}]},{"required":["complete"],"anyOf":[{"required":["fields"],"properties":{"fields":{"minItems":1}}},{"required":["actions"],"properties":{"actions":{"minItems":1}}},{"required":["sso_providers"],"properties":{"sso_providers":{"minItems":1}}},{"required":["gates"],"properties":{"gates":{"minProperties":1}}},{"required":["transitions"],"properties":{"transitions":{"minProperties":1}}}]},{"not":{"required":["complete"]},"properties":{"fields":{"maxItems":0},"actions":{"maxItems":0},"sso_providers":{"maxItems":0},"gates":{"maxProperties":0},"transitions":{"not":{"required":["sso_authenticated"]}}}},{"required":["transitions"],"properties":{"transitions":{"anyOf":[{"required":["sso_authenticated"],"properties":{"sso_authenticated":{"anyOf":[{"required":["purpose"],"properties":{"purpose":{"type":"string"}}},{"required":["action"],"properties":{"action":{"type":"string"}}}]}}},{"required":["sso_user_not_found"],"properties":{"sso_user_not_found":{"anyOf":[{"required":["purpose"],"properties":{"purpose":{"type":"string"}}},{"required":["action"],"properties":{"action":{"type":"string"}}}]}}}]}}}]},"description":"A step in a flow definition: one screen of the flow, as an administrator\nwrites it. This is configuration, not the runtime payload sent to the\nfrontend.\n\nSteps are schema-driven: `fields` references properties from the flow's\nuser schema, and the server resolves field metadata (type, validation,\nimplicit outcomes) from schema annotations at runtime.\n\nA step with only `complete` set is a terminal step. The server sends every\nother step to the login component as fields, actions and gates to render.\n","properties":{"name":{"type":"string","description":"Unique step identifier within this flow. Used as transition targets\nand returned in the API response as `step.name`.\n\n`consent` and `account_choice` are reserved: they name the steps the\nserver inserts into a flow that answers an OAuth authorization\nrequest, which no definition can add, drop or reorder.\n","pattern":"^[a-z][a-z0-9_-]*$","not":{"enum":["consent","account_choice"]},"x-zitadel-pattern-message":"must start with a lowercase letter and use only lowercase letters, digits, _ and -","example":"login"},"fields":{"type":"array","description":"The fields to collect from the user. A field is one input of the step,\nnamed after a property in the flow's user schema. The server resolves\nfield type, validation rules, and implicit outcomes from schema\nannotations (for example, a property with `x-unique` set implies a\n`user_not_found` transition outcome).\n","items":{"type":"string"},"uniqueItems":true,"default":[],"example":["email","password"]},"actions":{"type":"array","description":"The actions the user can take, in order. An action is something the user\ndoes on the step, such as submitting the form or following a link. The\naction name is what the frontend sends back in the submit request. If\nomitted, the server provides a default `submit` action.\n","items":{"$ref":"#/components/schemas/step-action"},"default":[],"example":[{"name":"submit","kind":"submit","primary":true},{"name":"forgot_password","kind":"navigate"}]},"gates":{"type":"object","description":"Security gates that must be satisfied before submission. A gate is a\nsecurity check, such as a captcha. Keyed by gate name. Each gate selects\na kind (for example \"captcha\") and provider-specific configuration. The\nserver may also inject gates dynamically based on policy.\n","additionalProperties":{"$ref":"#/components/schemas/gate"},"default":{},"example":{"bot_check":{"kind":"captcha","provider":"altcha"}}},"sso_providers":{"type":"array","description":"Slugs of the identity providers (external sign-ins such as Google) this\nstep offers, in display order. Each names the `slug` of a connection\ndocument under `.zitadel/idps/`; the document carries the display name\nand template, so a rename there reaches every step without editing the\nflow. The rendered step the client receives carries the resolved\n`{id, name, template}` objects instead. A step offers at most 20\nproviders.\n","uniqueItems":true,"maxItems":20,"items":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]*$","x-zitadel-pattern-message":"must start with a lowercase letter or digit and use only lowercase letters, digits, _ and -","maxLength":64},"default":[],"example":["google"]},"on_success":{"type":"string","enum":["create_user","create_user_with_sso"],"description":"Server-side mutation to execute when this step completes successfully.\nRuns after field validation passes, before the transition fires.\n\n- create_user: creates the user record (registration flows)\n- create_user_with_sso: creates the user record from the identity an\n  external provider returned and the values the step collected, and\n  links it to that identity. A unique value another user holds binds\n  that user and routes user_already_exists instead.\n","example":"create_user"},"complete":{"type":"string","enum":["redirect","show"],"example":"redirect","description":"Marks this as a terminal step. Tells the frontend what to do:\n- redirect: navigate to redirect_uri (OIDC/SAML callback done)\n- show: render as a success/info screen\n"},"transitions":{"type":"object","description":"Maps action and outcome names to where the flow goes next.\n\nA key is either the `name` of an action in `actions` (the user chose\nit) or an outcome the server raises on its own:\n\n- `user_not_found`: an identifier with no account. Following this\n  transition also switches the flow to `register`.\n- `user_already_exists`: an identifier that has an account, typed on\n  a sign-up or returned by a provider's sign-in. Following this\n  transition also switches the flow to `login`.\n- `sso_authenticated`: a provider's sign-in matched an account.\n- `sso_user_not_found`: a provider's sign-in matched no account.\n\nEach action needs its transition, and a step that offers\n`sso_providers` needs `sso_authenticated`; the server requires no\nother outcome. `zitadel deploy` also requires `sso_user_not_found` and\n`user_already_exists` on a step that offers a provider that creates\nusers, since a provider's sign-in can raise both. An outcome the step\nhas no transition for leaves the user on the step with that outcome's\nerror (for example `error.user_not_found`), so a flow that leaves out\n`user_not_found` signs in only users that already exist.\n","additionalProperties":{"type":"object","description":"Where the flow goes: a step (`target`), or the entry step of another\npurpose (`purpose`). Set at least one of them.\n","properties":{"target":{"type":"string","minLength":1,"description":"Step name within this flow (when `action` is null), or the name\nof another flow (when `action` is `switch` or `pivot`). Optional\nwhen `purpose` is set: the transition then goes to that purpose's\nentry step.\n","example":"password"},"action":{"oneOf":[{"type":"string","enum":["switch","pivot"]},{"type":"null"}],"description":"Reserved for transitions to another flow definition. The server\ndoes not run them yet: taking one fails with `flow.unsupported`.\nKeep transitions within one flow definition, and use `purpose`\nto move between signing in and signing up.\n\nHow `target` will be read:\n- null (omitted): a step in the current flow.\n- switch: replace the current flow with the target flow.\n  No return: the current flow is discarded.\n- pivot: push the target flow onto the stack. The current flow\n  is paused and resumes when the target flow completes (auto-pop).\n"},"purpose":{"oneOf":[{"type":"string","enum":["login","register","recovery","profiling","reauth","link_account"]},{"type":"null"}],"description":"Switches the flow to this purpose and goes to its entry step,\nstarting it fresh: the user the flow found so far and the\npassword collected for them are dropped. The flow's original\npurpose stays pinned. Must be a purpose this definition serves.\n`target` may be left out; when it is set it must name that\npurpose's entry step. Mutually exclusive with `action`.\nExample: a \"Sign up\" navigation on the login identifier step\n(`{ purpose: register }`).\n"}},"additionalProperties":false,"not":{"anyOf":[{"required":["purpose","action"],"properties":{"purpose":{"type":"string"},"action":{"type":"string"}}},{"not":{"required":["target"]},"properties":{"purpose":{"type":"null"}}}]}},"example":{"submit":{"target":"password"},"user_not_found":{"target":"register"},"register":{"purpose":"register"}}}}},"flow-definition":{"x-meta-schema":true,"type":"object","required":["name","user_schema","purposes","steps"],"description":"A flow definition is the configuration of one flow: the sequence of screens\nthe login component (`<zitadel-login>`) walks a user through to sign in,\nregister, recover access or similar. Each screen is a step. A step collects\nfields (inputs taken from properties of the user schema), offers actions\n(what the user can do, such as submit the form or follow a link) and may\nrequire gates (security checks, such as a captcha, that must pass before the\nserver accepts the submission). Transitions say which step follows each\naction.\n\nThe definition is server-side configuration and is never sent to the\nfrontend. The server evaluates it and returns the current step, with its\nfields, actions and gates, to the client.\n\nAdministrators create flow definitions, either as `.zitadel/flows/` files\nthat `zitadel deploy` publishes or through the API, and they are stored in\nthe project/team configuration hierarchy. The server selects the matching\ndefinition from the purpose and audience when a flow starts with\n`createFlow` (`POST /flows`).\n","additionalProperties":false,"properties":{"$schema":{"type":"string","description":"Editor affordance: path or URL of this file's JSON meta-schema, so an\neditor validates and autocompletes it. The CLI strips it before upload;\nthe platform ignores it.\n"},"name":{"type":"string","pattern":"^[a-z][a-z0-9-]*$","x-zitadel-pattern-message":"must start with a lowercase letter and use only lowercase letters, digits and -","examples":["standard-login","combined-auth"],"description":"Stable identifier for this flow, and the name a cross-flow `switch` or\n`pivot` transition will target once the server runs them. Every\nrevision of a flow shares its `name`; publishing a definition under an\nexisting `name` adds a revision to that flow. Renaming is not\nsupported: the `name` is part of the public contract another\ndefinition may reference. It acts as the human display label as well;\nthere is no separate slug.\n"},"user_schema":{"type":"string","description":"The user schema this flow operates on, named by its `objectType`. The\nflow runs against the revision of that schema its release pins, so\npublishing a schema revision needs no change to the flow. A schema ID\nas `publishSchema` (`POST /schemas`) returns it is also accepted and is stored as that\nschema's `objectType`; reading the definition back returns the\n`objectType`. A value naming no schema of the project is refused with\n`flowdef.invalid`; use the `objectType` of a schema that `listSchemas` (`GET /schemas`)\nreturns. Step `fields` reference properties defined in the resolved\nschema; the server resolves field types, validation, and implicit\noutcomes from schema annotations at runtime.\n","example":"human-user"},"purposes":{"type":"object","description":"Maps each purpose this definition handles to its entry-point step.\nA purpose is what the user is doing, such as `login` or `recovery`.\nKeys are purpose names; values must match a `name` in `steps`. A\ndefinition can serve multiple purposes (for example a combined\nlogin/register flow) by listing one entry per purpose, or just one: a\nsign-in-only flow lists `login` alone.\n\n- `login`: verify an existing user.\n- `register`: create a user.\n- `recovery`, `profiling`, `reauth`, `link_account`: reserved. A\n  definition may declare them, but the server does not run their\n  journeys yet; `recovery` only asks a password field for a new\n  password.\n","minProperties":1,"propertyNames":{"type":"string","enum":["login","register","recovery","profiling","reauth","link_account"]},"additionalProperties":{"type":"string"},"example":{"login":"identify"}},"audience":{"$ref":"#/components/schemas/flow-audience","example":{"app_ids":["app_saas"]}},"steps":{"type":"array","items":{"$ref":"#/components/schemas/flow-definition-step"},"minItems":1,"description":"The steps of this flow. The order is for human readability: transitions\ndetermine the actual step sequencing.\n","example":[{"name":"identify","fields":["email"],"actions":[{"name":"submit","kind":"submit","primary":true}],"transitions":{"submit":{"target":"authenticate"}}},{"name":"authenticate","fields":["x-auth-methods#password"],"actions":[{"name":"submit","kind":"submit","primary":true}],"transitions":{"submit":{"target":"done"}}},{"name":"done","complete":"redirect"}]}}},"flow-definition-response":{"type":"object","required":["id","project_id","flow_definition","created_at","updated_at"],"properties":{"id":{"type":"string","description":"The ID of the flow definition.","example":"fd_123abc456def"},"project_id":{"type":"string","description":"The ID of the project this flow definition belongs to.","example":"proj_789ghi012jkl"},"flow_definition":{"$ref":"#/components/schemas/flow-definition"},"user_schema":{"readOnly":true,"description":"The user schema this flow operates on: the same object\n`getSchema` (`GET /schemas/{schema_id}`) returns. Present only when the request asked for it\nwith `expand=user_schema`; `null` when it was requested but the\nreferenced schema no longer resolves or the caller may not read it.\n","oneOf":[{"$ref":"#/components/schemas/schema"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","description":"When the flow definition was created.","example":"2020-01-28T14:25:39.123456Z"},"updated_at":{"type":"string","format":"date-time","description":"When the flow definition was last updated.","example":"2020-01-28T14:25:39.123456Z"}}},"flow-definition-list-response":{"type":"object","description":"List of flow definitions, newest by creation time first.","required":["flow_definitions"],"properties":{"flow_definitions":{"type":"array","items":{"$ref":"#/components/schemas/flow-definition-response"}},"next_page_token":{"description":"The token to retrieve the next page of results. Absent if there are no more results.","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"schema-uri":{"type":"string","format":"uri","description":"The URI of the server-published flow definition schema this definition was\nauthored against. The server validates the definition against it.\nIf you omit it, the server uses the latest schema version.\n","example":"https://raw.githubusercontent.com/zitadel/nextgen/refs/heads/main/api/openapi/endpoints/schemas/flow-definition.yaml"},"create-flow-definition-request":{"type":"object","description":"The request body for creating a flow definition.\n","required":["project_id","flow_definition"],"properties":{"project_id":{"$ref":"#/components/schemas/project-id"},"schema_uri":{"$ref":"#/components/schemas/schema-uri"},"flow_definition":{"$ref":"#/components/schemas/flow-definition"}}},"flowdef-revision_conflict":{"description":"Flow definition: another revision of the same flow was created at the same instant\n\nError code: flowdef.revision_conflict\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flowdef.revision_conflict"}},"required":["code"]}]},"flowdef-schema_fetch_failed":{"description":"Flow definition: failed to fetch schema\n\nError code: flowdef.schema_fetch_failed\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flowdef.schema_fetch_failed"}},"required":["code"]}]},"flowdef-missing_id":{"description":"Flow definition: missing id\n\nError code: flowdef.missing_id\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"flowdef.missing_id"}},"required":["code"]}]},"create-team-request":{"type":"object","required":["name"],"properties":{"name":{"description":"The name of the team. Must be unique within the project, ignoring case.","type":"string","minLength":1,"maxLength":200}}},"team-already_exists":{"description":"A team with this name already exists in the project\n\nError code: team.already_exists\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"team.already_exists"}},"required":["code"]}]},"team-name_invalid":{"description":"The team name is invalid. Expected a non-empty string of at most 200 characters.\n\nError code: team.name_invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"team.name_invalid"}},"required":["code"]}]},"team-team_not_found":{"description":"Team not found\n\nError code: team.team_not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"team.team_not_found"}},"required":["code"]}]},"team-permission_denied":{"description":"The team management API requires the project secret\n\nError code: team.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"team.permission_denied"}},"required":["code"]}]},"team-project_not_found":{"description":"Project not found\n\nError code: team.project_not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"team.project_not_found"}},"required":["code"]}]},"team-filter-field":{"type":"string","description":"Field to filter or sort teams by.\n\nTeam names are unique per project case-insensitively, so `name` is matched\ncase-insensitively by `equals` as well as by `contains`.\n","enum":["created_at","name","status"]},"query-teams-request":{"type":"object","description":"Request to query the teams of a project.","properties":{"limit":{"$ref":"#/components/schemas/limit"},"page_token":{"description":"Token to retrieve the next page of results. Must be sent with the same\n`sorting` as the request that issued the token. Omitting `sorting` reuses\nthe default sort and only succeeds when that default matches the token.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]},"sorting":{"type":"object","required":["field","direction"],"properties":{"field":{"$ref":"#/components/schemas/team-filter-field","description":"The field to sort by."},"direction":{"$ref":"#/components/schemas/sort-direction","description":"The direction to sort by."}}},"filter":{"type":"array","description":"Filter criteria for querying teams.","items":{"type":"object","required":["field","operation"],"properties":{"field":{"$ref":"#/components/schemas/team-filter-field","description":"The field to filter by."},"value":{"$ref":"#/components/schemas/filter-value"},"operation":{"$ref":"#/components/schemas/filter-operation"}}}}}},"query-teams-response":{"type":"object","description":"Paginated list of teams.","required":["teams"],"properties":{"teams":{"type":"array","items":{"$ref":"#/components/schemas/team-response"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results. The follow-up request must repeat the\nsame `sorting` that produced this token (omit only when both pages use the default).\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"team-owns_project":{"description":"The team still owns a project and cannot be deactivated while it does\n\nError code: team.owns_project\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"team.owns_project"}},"required":["code"]}]},"update-team-request":{"type":"object","properties":{"name":{"description":"The new name of the team. Must be unique within the project, ignoring case.","type":"string","minLength":1,"maxLength":200}}},"create-team-membership-request":{"type":"object","required":["user_id"],"properties":{"user_id":{"description":"The user to add: the `id` that `createUser` (`POST /users`) or\n`queryUsers` (`POST /users/query`) returns. The user must be active and\nbelong to the team's project.\n","$ref":"#/components/schemas/user-id"}}},"team-user_not_active":{"description":"The user is not active, so they cannot be added to the team.\n\nError code: team.user_not_active\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"team.user_not_active"}},"required":["code"]}]},"team-membership":{"title":"TeamMembership","type":"object","description":"A user's membership of a team.","required":["team_id","user_id","status","created_at","updated_at"],"properties":{"team_id":{"type":"string","description":"The team the user belongs to."},"user_id":{"type":"string","description":"The user who belongs to the team."},"status":{"type":"string","description":"The user's participation state on the team.","enum":["pending","active","inactive"]},"created_at":{"type":"string","format":"date-time","description":"The time when the user was first added to the team. Adding a user again\nafter a removal keeps it.\n"},"updated_at":{"type":"string","format":"date-time","description":"The time when the membership last changed."}}},"search-result-type":{"type":"string","description":"A type of result `search` (`POST /search`) finds:\n- `user`: a user, matched on the start of the value they carry as\n  `identifier` or of a part of their `display` name\n- `team`: a team, matched on its name\n- `schema`: a user schema at its newest revision, matched on its `title`\n  and its `objectType`\n- `flow_definition`: a flow definition at its newest revision, matched on\n  its name\n- `idp`: an identity provider connection, matched on its `slug` and its\n  `display_name`\n- `application`: an application, matched on its `slug` and its `name`\n","enum":["user","team","schema","flow_definition","idp","application"]},"search-request":{"type":"object","description":"Request to search a project.","required":["query","types"],"properties":{"query":{"type":"string","minLength":1,"maxLength":200,"description":"The text to find. Spaces around it are ignored, and a text of spaces\nalone finds nothing.\n","example":"ann@example.com"},"types":{"type":"array","minItems":1,"uniqueItems":true,"description":"The types to search. Only these appear in `results`, so a client never\nreceives a type it did not ask for.\n","items":{"$ref":"#/components/schemas/search-result-type"},"example":["user","team"]},"limit_per_type":{"type":"integer","minimum":1,"maximum":20,"default":5,"description":"The most results each type contributes."}}},"sess-token_invalid":{"description":"The session token is invalid (either malformed or expired).\n\nError code: sess.token_invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"sess.token_invalid"}},"required":["code"]}]},"search-result":{"type":"object","description":"One match: a reference to a resource, not the resource. Every type has this\nshape.\n","required":["type","id","project_id","title"],"properties":{"type":{"$ref":"#/components/schemas/search-result-type"},"id":{"type":"string","description":"The resource's `id`, as its type's own operations take it. For a schema\nand a flow definition, the `id` of the newest revision.\n","example":"user_01KWH3B72K7M7F0N9WD3P2E4YM"},"project_id":{"$ref":"#/components/schemas/project-id","description":"The project the resource belongs to."},"title":{"type":"string","description":"What to call the resource:\n- a user: their `display`, else their `identifier`, else their `id`\n- a team: its name\n- a schema: its `title`, else its `objectType`, else its `id`\n- a flow definition: its name\n- an identity provider connection: its `display_name`, else its `slug`\n- an application: its `name`, else its `slug`\n","example":"Ann Lee"},"subtitle":{"type":"string","description":"A second line that tells two titles apart, absent when there is nothing\nto add:\n- a user shown by their `display`: their `identifier`\n- a schema shown by its `title`: its `objectType`\n- a flow definition: the purposes it handles\n- an identity provider connection shown by its `display_name`: its\n  `slug`\n- an application shown by its `name`: its `slug`\n","example":"ann@example.com"}}},"search-response":{"type":"object","description":"The best matches of each requested type.","required":["results","incomplete_types","more_projects","searched_project_ids"],"properties":{"results":{"type":"array","description":"The matches, best first. Types can be mixed in the order: group by\n`type` to show them by type.\n","items":{"$ref":"#/components/schemas/search-result"}},"incomplete_types":{"type":"array","uniqueItems":true,"description":"The requested types whose matches are not all in `results`: there were\nmore than `limit_per_type`, the text was too short to search that type,\na project holds more matches of that type than one search reads, or\n`more_projects` is true. Empty when every requested type is complete.\n","items":{"$ref":"#/components/schemas/search-result-type"}},"more_projects":{"type":"boolean","description":"True when a session searched without `project_id` and the person can act\non more projects than one search reads: the results come from the\nnewest 10 of them. Search another by naming it in `project_id`. Always\nfalse when the request names a project or uses a project secret.\n"},"searched_project_ids":{"type":"array","uniqueItems":true,"description":"The projects this search read, newest first: the one `project_id`\nnames, the credential's own with a project secret, or the newest the\nperson can act on with a session. Empty when the person can read none.\nA project not listed here was not searched, so a match there is not in\n`results`.\n","items":{"$ref":"#/components/schemas/project-id"}}}},"brnd-not_found":{"description":"Branding: not found\n\nError code: brnd.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"brnd.not_found"}},"required":["code"]}]},"brnd-permission_denied":{"description":"Branding: requires an operator-grade token bound to the project (project.write or a branding.* scope)\n\nError code: brnd.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"brnd.permission_denied"}},"required":["code"]}]},"branding-revision-summary":{"title":"BrandingRevisionSummary","description":"A branding revision without its configuration: the shape `GET /branding`\nreturns. Read the configuration with `GET /branding/{branding_id}`.\n","type":"object","required":["id","created_at"],"properties":{"id":{"type":"string","description":"The unique identifier of this branding revision."},"created_at":{"type":"string","format":"date-time","description":"When this revision was published."}}},"list-branding-response":{"type":"object","description":"A page of the project's branding revisions, newest first.","required":["branding"],"properties":{"branding":{"type":"array","items":{"$ref":"#/components/schemas/branding-revision-summary"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"brnd-invalid":{"description":"Branding: invalid\n\nError code: brnd.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"brnd.invalid"}},"required":["code"]}]},"brnd-missing_project_id":{"description":"Branding: missing project id\n\nError code: brnd.missing_project_id\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"brnd.missing_project_id"}},"required":["code"]}]},"branding-revision-response":{"type":"object","description":"A stored branding revision. `branding` echoes the canonical stored\nconfiguration, so a client such as the CLI can reconcile local files with\nthe server's stored state.\n","required":["id","created_at","branding"],"properties":{"id":{"type":"string","description":"The unique identifier of this branding revision."},"created_at":{"type":"string","format":"date-time","description":"When this revision was published."},"branding":{"$ref":"#/components/schemas/branding"}}},"oauthset-not_found":{"description":"Oauth settings: not found\n\nError code: oauthset.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"oauthset.not_found"}},"required":["code"]}]},"oauthset-permission_denied":{"description":"Oauth settings: requires an operator-grade token bound to the project (project.write or an oauth_settings.* scope)\n\nError code: oauthset.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"oauthset.permission_denied"}},"required":["code"]}]},"oauth-settings":{"x-meta-schema":true,"type":"object","description":"The OAuth settings of a project: whether the project's OAuth authorization\nserver answers. It has one shape in two places: the `oauth` resource of the\nbundle `buildRelease` (`POST /releases/build`) takes, which publishes it as\na new immutable revision, and the read-only revision\n`getOAuthSettings` (`GET /oauth_settings/{oauth_settings_id}`)\nreturns. Locally it is the `.zitadel/oauth/` descriptor that\n`zitadel deploy` publishes with the rest of the bundle.\n\nA release is the only writer: there is no operation that publishes OAuth\nsettings on their own. A release without `oauth` leaves the authorization\nserver off.\n","additionalProperties":false,"required":["enabled"],"properties":{"$schema":{"type":"string","description":"Editor affordance: path or URL of this file's JSON meta-schema, so an\neditor validates and autocompletes it. The CLI strips it before upload;\nthe platform ignores it.\n"},"enabled":{"type":"boolean","description":"Whether the project's OAuth authorization server answers. While it is\n`false`, or the deployed release pins no OAuth settings, the server\npublishes no authorization server metadata for the project and refuses\nevery OAuth request to it.\n","example":true}}},"oauth-settings-revision-response":{"type":"object","description":"A stored OAuth settings revision. `oauth` echoes the canonical stored\nsettings, so a client such as the CLI can reconcile local files with the\nserver's stored state.\n","required":["id","created_at","oauth"],"properties":{"id":{"type":"string","description":"The unique identifier of this OAuth settings revision.","example":"oauthset_01KWHG3M5QZ27F0N9WD3P2E4YM"},"created_at":{"type":"string","format":"date-time","description":"When this revision was published."},"oauth":{"$ref":"#/components/schemas/oauth-settings"}}},"idp-protocol":{"type":"string","enum":["oidc"],"description":"The protocol used by the identity provider. OIDC is the only protocol."},"idp-connection":{"title":"IdentityProviderConnection","$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","required":["slug","protocol","display_name"],"additionalProperties":false,"properties":{"$schema":{"type":"string","minLength":1,"description":"Editor affordance: path or URL of this schema so editors validate and autocomplete the file (scaffolded connection files point at `.zitadel/meta/idp-connection.json`). Ignored by the platform."},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]*$","x-zitadel-pattern-message":"must start with a lowercase letter or digit and use only lowercase letters, digits, _ and -","maxLength":64,"description":"Stable identifier of the identity provider. User schemas (`x-auth-methods.sso.providers`) and flow steps (`sso_providers`) reference it. Unique within the project.","examples":["google","corp_idp"]},"protocol":{"$ref":"#/components/schemas/idp-protocol"},"template":{"type":"string","examples":["google","okta"],"description":"A hint for rendering the provider (logo, colors). It carries no protocol behavior: behavior comes only from the protocol blocks."},"display_name":{"type":"string","minLength":1,"maxLength":256,"description":"Shown to the user on the sign-in button."},"subject_claim":{"type":"string","minLength":1,"description":"The claim (a named piece of user data the provider returns) that carries the provider's stable subject identifier. Optional; the server uses `sub`, as the OIDC specification defines. Override it where `sub` is pairwise, for example Entra `oid`."},"claim_mapping":{"type":"object","additionalProperties":{"type":"string","pattern":"^[^$]","x-zitadel-pattern-message":"must not be empty or start with $"},"description":"Maps user schema property names (keys) to provider claim names (values). A value is an exact top-level claim key: no path syntax, and a dot is part of the key, so nested claims (OIDC `address`) are not addressable yet. `$`-prefixed strings and non-string values are reserved for future mapping forms. Add properties defined in the user schemas; unmatched entries are ignored."},"verified_claims":{"type":"object","additionalProperties":{"oneOf":[{"type":"boolean"},{"type":"string"}]},"description":"Maps a verifiable user schema property to its verification source: a claim name (read the claim) or the literal `true` (trust this provider unconditionally). Values starting with `$` are reserved for future sources. Distinct from `claim_mapping`, which carries values, not verification state.","examples":[{"email":"email_verified"},{"email":true}]},"provisioning":{"type":"object","additionalProperties":false,"description":"How far this provider's data is trusted. `creation` defines what happens to a subject that has no account yet. With `disabled`, a user is not created. With `auto`, the user is created without a collection step (the step that asks the user for missing data) when the mapped claims fill every required property of the schema. A required property with an `x-unique` scope must also arrive verified according to `verified_claims`. When a required property is missing or such a property is unverified, the collection step is shown instead, prefilled with the claims. Gating on other properties is not available yet. These are not available yet either: the `auto_only` value, which creates the user from complete claims or fails without collecting; the linking policy (`is_linking_allowed`, `auto_linking`), together with the account-linking journey; and `is_auto_update`, together with per-property verification state.","properties":{"creation":{"type":"string","enum":["disabled","auto"],"default":"auto"}}},"oidc":{"type":"object","additionalProperties":false,"description":"OIDC settings of the identity provider. Endpoints come from the issuer's discovery document (its `.well-known` document). A provider that exposes no `.well-known` document names them all instead: `authorization_endpoint`, `token_endpoint`, `jwks_uri`, and `userinfo_endpoint` unless `id_token_mapping` is set. Setting any endpoint without the others is rejected with `idp.endpoints_partial`; set all of them or none.","required":["issuer","client_id","client_secret","scopes"],"properties":{"issuer":{"type":"string","pattern":"^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)(/[^\\s?#]*)?$","x-zitadel-pattern-message":"must be an https URL (http is allowed for localhost only)","description":"Discovery base. Endpoints are resolved from its `.well-known` document unless the document names them all."},"jwks_uri":{"type":"string","pattern":"^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$","x-zitadel-pattern-message":"must be an https URL (http is allowed for localhost only)","description":"JWKS endpoint, for a provider that exposes no .well-known document. Set together with the other endpoints."},"id_token_mapping":{"type":"boolean","default":false,"description":"Read user claims from the id_token instead of the userinfo endpoint, for providers that populate only the former."},"authorization_endpoint":{"type":"string","pattern":"^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$","x-zitadel-pattern-message":"must be an https URL (http is allowed for localhost only)","description":"For a provider that exposes no .well-known document. Set together with the other endpoints."},"token_endpoint":{"type":"string","pattern":"^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$","x-zitadel-pattern-message":"must be an https URL (http is allowed for localhost only)","description":"For a provider that exposes no .well-known document. Set together with the other endpoints."},"userinfo_endpoint":{"type":"string","pattern":"^(https://[^\\s/?#]+|http://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?)([/?][^\\s#]*)?$","x-zitadel-pattern-message":"must be an https URL (http is allowed for localhost only)","description":"For a provider that exposes no .well-known document. Set together with the other endpoints; not needed when id_token_mapping is set."},"client_id":{"type":"string","minLength":1,"maxLength":512,"description":"Either a literal, when all environments use the same client, or a `${{ NAME }}` reference to a variable, when each environment has its own client."},"client_secret":{"type":"string","pattern":"^\\$\\{\\{ *[A-Za-z0-9_]{1,255} *\\}\\}$","x-zitadel-pattern-message":"must be a variable reference such as ${{ CLIENT_SECRET }}, not the secret itself, naming a variable of at most 255 characters","description":"A reference to the variable holding the client secret, never the secret itself. A secret may only be referenced as the entire value: text around the placeholder would be rendered into the resolved credential, so it is rejected. The server resolves it against the environment serving the request, and a deploy is refused while the variable has no value or holds a plain value instead of a secret."},"token_endpoint_auth_method":{"type":"string","enum":["client_secret_basic","client_secret_post"],"default":"client_secret_basic","description":"How the client authenticates at the token endpoint."},"scopes":{"type":"array","items":{"type":"string","minLength":1},"uniqueItems":true,"minItems":1,"contains":{"const":"openid"},"default":["openid","profile","email"],"description":"Must contain `openid`: without it the provider returns no id_token and the sign-in is not OIDC. An omitted `scopes` is rejected. The default (`openid`, `profile`, `email`) only pre-fills editors; validators never inject it."},"pkce_enabled":{"type":"boolean","default":true,"description":"Send PKCE (`code_challenge` and `code_verifier`), which binds the code exchange to the client that started it. Providers that do not support PKCE typically ignore the parameters, so `true` is safe and future-proofs; set `false` only for a provider whose token endpoint rejects them."},"static_authorize_parameters":{"type":"object","propertyNames":{"minLength":1,"not":{"enum":["client_id","redirect_uri","response_type","scope","state","nonce","code_challenge","code_challenge_method","response_mode","request","request_uri","client_secret","client_assertion"]}},"additionalProperties":{"type":"string"},"description":"Extra provider-specific authorize parameters (for example `prompt`). Protocol parameters the server sets are reserved and rejected by `propertyNames`: the server composes them itself, and an override of `state` or `nonce` would silently defeat CSRF and token binding. `client_secret` and `client_assertion` are rejected as they could be appended to the public authorize URL."}}}}},"create-idp-request":{"type":"object","description":"The request body for creating or revising an identity provider.","required":["idp"],"properties":{"idp":{"$ref":"#/components/schemas/idp-connection","description":"The connection document, in the shape of a `.zitadel/idps/<slug>.json`\nfile. If its slug does not already exist, a new identity provider is\ncreated. If one with that slug already exists, this becomes a new\nrevision of it. The document is validated against the\n`idp-connection.json` schema, and returned as the `definition` in the\nresponse.\n"}}},"idp-field_immutable":{"description":"Identity provider connection: the field is fixed for the life of the connection\n\nError code: idp.field_immutable\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"idp.field_immutable"}},"required":["code"]}]},"idp-permission_denied":{"description":"Identity provider connection: the caller's project role does not allow this operation\n\nError code: idp.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"idp.permission_denied"}},"required":["code"]}]},"idp-revision_conflict":{"description":"Identity provider connection: another revision of the same connection was created at the same instant\n\nError code: idp.revision_conflict\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"idp.revision_conflict"}},"required":["code"]}]},"idp-response":{"type":"object","description":"An identity provider, with its connection document as `definition`.\n","required":["id","revision_id","slug","definition","created_at","updated_at"],"properties":{"id":{"type":"string","description":"A unique ID, generated when the identity provider is created and shared\nby every revision. The identity links reference this ID.\n","example":"idp_01KWH3B72K7M7F0N9WD3P2E4YM"},"revision_id":{"type":"string","description":"The ID of the revision this entry holds, pinned by authentication\nattempts and releases. `getIdp` (`GET /idps/{idp_id}`) and `queryIdps` (`POST /idps/query`)\nreturn the newest one; `getIdpRevision` (`GET /idps/revisions/{revision_id}`)\n(`GET /idps/revisions/{revision_id}`) returns the requested revision.\n","example":"idprev_01KWH3B72K7M7F0N9WD3P2E4YN"},"slug":{"type":"string","description":"The identifier by which user schemas and flow definitions reference the\nidentity provider. Fixed for the life of the identity provider.\n","example":"google"},"created_at":{"type":"string","format":"date-time","description":"When the identity provider was created.","example":"2026-07-14T09:11:00Z"},"updated_at":{"type":"string","format":"date-time","description":"When this revision was created. On the newest revision, that is when\nthe identity provider was last revised.\n","example":"2026-07-14T09:11:00Z"},"definition":{"$ref":"#/components/schemas/idp-connection","description":"The stored connection document.\n"}}},"idp-filter-field":{"type":"string","description":"The field to filter or sort identity providers by, one of:\n- `slug`: unique within the project. `equals` returns the newest revision\n  of that identity provider\n- `created_at`: RFC3339 timestamp\n","enum":["slug","created_at"]},"query-idps-request":{"type":"object","description":"Request to query the identity providers of a project.","properties":{"limit":{"$ref":"#/components/schemas/limit"},"page_token":{"description":"Token to retrieve the next page of results. Must be sent with the same\n`sorting` as the request that issued the token. Omitting `sorting` reuses\nthe default sort and only succeeds when that default matches the token.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]},"sorting":{"type":"object","description":"Sort order. Defaults to `created_at` ascending; `id` breaks ties either way.","required":["field","direction"],"properties":{"field":{"$ref":"#/components/schemas/idp-filter-field","description":"The field to sort by."},"direction":{"$ref":"#/components/schemas/sort-direction","description":"The direction to sort by."}}},"filter":{"type":"array","description":"Filter criteria for querying identity providers. Combined with AND.","items":{"type":"object","required":["field","operation"],"properties":{"field":{"$ref":"#/components/schemas/idp-filter-field","description":"The field to filter by."},"value":{"$ref":"#/components/schemas/filter-value"},"operation":{"$ref":"#/components/schemas/filter-operation"}}}}}},"query-idps-response":{"type":"object","description":"Paginated list of identity providers.\n","required":["idps"],"properties":{"idps":{"type":"array","items":{"$ref":"#/components/schemas/idp-response"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results. The follow-up request must repeat the\nsame `sorting` that produced this token (omit only when both pages use the default).\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"list-idp-revisions-response":{"type":"object","description":"Paginated list of the revisions of one identity provider, newest first.\n","required":["revisions"],"properties":{"revisions":{"type":"array","items":{"$ref":"#/components/schemas/idp-response"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following\npage. Absent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"application-client":{"title":"ApplicationClient","description":"One OAuth client of the application: one way it talks to Zitadel, such as\nits web backend. Its `redirect_uris` and `grant_types` are its OAuth\nsettings. OpenID Connect is OAuth plus the `openid` scope, so one shape\nserves both.\n","type":"object","required":["slug","type","grant_types"],"additionalProperties":false,"properties":{"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]*$","maxLength":64,"description":"Stable identifier of the client, unique among the application's clients\nand fixed for the client's life. A revision matches each client to the\nstored one by its slug, which is how a client keeps its `client_id`.\nOther documents refer to it as `<application>/<client>`.\n","examples":["web"]},"name":{"type":"string","minLength":1,"maxLength":256,"description":"Shown to the user in place of the application's name. Optional."},"client_id":{"type":"string","pattern":"^[A-Za-z0-9_.~@-]+$","x-zitadel-pattern-message":"must be letters, digits, or _ . ~ @ -","minLength":1,"maxLength":255,"description":"The `client_id` the client presents. Leave it out and the server\ngenerates one the first time the client is written and fills it into\nthe stored document. Set it to keep an id the client already has: one\na Zitadel v4 issued (`<id>@<project>`), or one the CLI generated before\nany deploy. Once set, the id never changes: a later revision may leave it\nout, but may not provide a different one. No two clients in the project\nshare an id, and an id is never reused once a client has held it. A\nnew client may not supply an id that starts with `client_` or `dcr_`:\nthose prefixes mark ids the server generates. A server-generated id\nsent back unchanged in a revision is accepted. A client declared in a\nrelease must set it.\n","examples":["289374592837459283@shop"]},"type":{"type":"string","enum":["confidential"],"description":"A `confidential` client runs where a secret can be kept, such as a web\napp's backend, and authenticates with one at the token endpoint. Public\nclients, which hold no secret, are not available yet.\n"},"grant_types":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","enum":["authorization_code","refresh_token"]},"description":"The grant types the client may use, named as in RFC 7591.\n`authorization_code` signs a user in and needs `redirect_uris`.\n`refresh_token` lets the client renew its access tokens without a new\nsign-in; a refresh token is issued on sign-in, so it is only valid\ntogether with `authorization_code`.\n"},"redirect_uris":{"type":"array","uniqueItems":true,"minItems":1,"maxItems":50,"items":{"type":"string","minLength":1,"maxLength":2048},"description":"Where the authorization endpoint may send the user back. Required with\n`authorization_code`; omit it otherwise, an empty list is refused. Each\nis an `https` URL, or an `http` URL on a loopback host for local\ndevelopment: `localhost`, a name under `.localhost`, or a loopback IP\nsuch as `127.0.0.1` or `[::1]`. A URI is written as the client will\nsend it, with a lowercase host and no fragment, since it is matched\nexactly; a loopback URI matches on any port (RFC 8252 §7.3).\n","examples":[["https://shop.example.com/callback"]]},"secret":{"type":"string","pattern":"^\\$\\{\\{ *[A-Za-z0-9_]{1,255} *\\}\\}$","x-zitadel-pattern-message":"must be a variable reference such as ${{ CLIENT_SECRET }}, not the secret itself, naming a variable of at most 255 characters","description":"A reference to the project variable holding the client's secret, never\nthe secret itself, for a confidential client declared in a release.\nRequired there. A variable stays the client's that first named it, so\nno other client in the project can name it. The server reads the value\nthe deployment serving the request froze, and a deploy is refused while\nthe variable has no value or holds a plain value instead of a secret.\n\nA client registered through `POST /applications` leaves it out: the\nserver generates that client's secret and returns it once.\n","examples":["${{ SHOP_WEB_CLIENT_SECRET }}"]},"first_party":{"type":"boolean","description":"A first-party client belongs to the project's own product and skips\nconsent unless the request asks for it. A client declared in a release\nis first-party, and one registered through the API third-party, unless\nthis says otherwise. The server stores the value in effect, so a\nresponse always carries it.\n"}}},"application":{"x-meta-schema":true,"title":"Application","description":"An application that authenticates its users via Zitadel, with its OAuth\nclients. The document is a `.zitadel/applications/<slug>.json` file, which\na release declares, or the `application` field of the `publishApplication`\n(`POST /applications`) body, which registers it.\n","type":"object","required":["slug","name","clients"],"additionalProperties":false,"properties":{"$schema":{"type":"string","minLength":1,"description":"Editor affordance: path or URL of this schema so editors validate and autocomplete the file. Ignored by the platform."},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]*$","maxLength":64,"description":"Stable identifier of the application, unique within the project and\nfixed for its life. Flows and other documents reference it.\n","examples":["shop"]},"name":{"type":"string","minLength":1,"maxLength":256,"description":"The application's name, shown to the user when consent is asked.","examples":["Shop"]},"clients":{"type":"array","minItems":1,"maxItems":20,"items":{"$ref":"#/components/schemas/application-client"},"description":"The application's OAuth clients. Each slug is unique within the application."}}},"create-application-request":{"type":"object","description":"The request body for creating or revising a registered application.","required":["application"],"properties":{"application":{"$ref":"#/components/schemas/application","description":"The application document. If its slug does not already exist in the\nproject, a new application is created. If one with that\nslug already exists, this becomes a new revision of it. The document is\nvalidated against the `application.json` schema, and returned as the\n`definition` in the response with each client's `client_id` filled in.\n"}}},"app-client_id_taken":{"description":"Application: another client of the project holds this client_id\n\nError code: app.client_id_taken\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"app.client_id_taken"}},"required":["code"]}]},"app-declared":{"description":"Application: declared in a release, so only a deploy revises it\n\nError code: app.declared\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"app.declared"}},"required":["code"]}]},"app-field_immutable":{"description":"Application: a revision may not change a client's client_id or remove a client\n\nError code: app.field_immutable\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"app.field_immutable"}},"required":["code"]}]},"app-idempotency_key_reused":{"description":"Application: the Idempotency-Key was sent before with another body\n\nError code: app.idempotency_key_reused\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"app.idempotency_key_reused"}},"required":["code"]}]},"app-invalid":{"description":"Application: invalid\n\nError code: app.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"app.invalid"}},"required":["code"]}]},"app-not_found":{"description":"Application: not found\n\nError code: app.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"app.not_found"}},"required":["code"]}]},"app-permission_denied":{"description":"Application: the caller's project role does not allow this operation\n\nError code: app.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"app.permission_denied"}},"required":["code"]}]},"app-revision_conflict":{"description":"Application: another revision of the same application was created at the same instant\n\nError code: app.revision_conflict\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"app.revision_conflict"}},"required":["code"]}]},"application-response":{"type":"object","description":"An application at its newest revision, with its document as `definition`.\nIt never carries a client secret.\n","required":["id","revision_id","slug","declared","definition","created_at","updated_at"],"properties":{"id":{"type":"string","description":"A unique ID, generated when the application is created and shared by\nevery revision.\n","example":"app_01KWH3B72K7M7F0N9WD3P2E4YM"},"revision_id":{"type":"string","description":"The ID of the revision this entry holds. `getApplication`\n(`GET /applications/{application_id}`) returns the newest one.\n","example":"apprev_01KWH3B72K7M7F0N9WD3P2E4YN"},"slug":{"type":"string","description":"The identifier by which other documents reference the application.\nFixed for the life of the application.\n","example":"shop"},"declared":{"type":"boolean","description":"True when a release declares the application, from a file under\n`.zitadel/applications/`, and only a deploy revises it. False when it\nwas registered through `publishApplication` (`POST /applications`).\n","example":false},"created_at":{"type":"string","format":"date-time","description":"When the application was created.","example":"2026-11-06T09:11:00Z"},"updated_at":{"type":"string","format":"date-time","description":"When this revision was created. On the newest revision, that is when\nthe application was last revised.\n","example":"2026-11-06T09:11:00Z"},"definition":{"$ref":"#/components/schemas/application","description":"The stored application document, with each client's `client_id`."}}},"application-client-secret":{"type":"object","description":"A client secret the server generated, returned once.","required":["client","client_id","secret"],"properties":{"client":{"type":"string","description":"The slug of the client the secret belongs to.","example":"web"},"client_id":{"type":"string","description":"The `client_id` the client presents together with the secret.","example":"client_01KWH3B72K7M7F0N9WD3P2E4YP"},"secret":{"type":"string","description":"The secret, shown only in this response. Save it securely: the server cannot return it again.\n","example":"sk_client_7Kp2mQx9vR4tL8nB3wZ5yH6jF1dS0aE2"}}},"create-application-response":{"description":"An application as `publishApplication` (`POST /applications`) wrote it, with\nits document as `definition` and the secrets of the clients it created.\n","allOf":[{"$ref":"#/components/schemas/application-response"},{"type":"object","properties":{"client_secrets":{"type":"array","items":{"$ref":"#/components/schemas/application-client-secret"},"description":"The secrets this write generated, one for each client it created,\neach with the client's `client_id`. Absent when the write created\nno client. Each secret is shown only once.\n"}}}]},"application-sort-field":{"type":"string","description":"The field to sort applications by.","enum":["slug","created_at"]},"application-filter-field":{"type":"string","description":"The field to filter applications by, one of:\n- `slug`: unique within the project. `equals` returns the newest revision\n  of that application\n- `created_at`: RFC3339 timestamp\n","enum":["slug","created_at"]},"query-applications-request":{"type":"object","description":"Request to query the applications of a project.","properties":{"limit":{"$ref":"#/components/schemas/limit"},"page_token":{"description":"Token to retrieve the next page of results. Send the same `sorting` as\nthe request that issued the token.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]},"sorting":{"type":"object","description":"Sort order. Defaults to `created_at` ascending; `id` breaks ties either way.","required":["field","direction"],"properties":{"field":{"$ref":"#/components/schemas/application-sort-field","description":"The field to sort by."},"direction":{"$ref":"#/components/schemas/sort-direction","description":"The direction to sort by."}}},"filter":{"type":"array","description":"Filter criteria for querying applications. Combined with AND.","items":{"type":"object","required":["field","operation"],"properties":{"field":{"$ref":"#/components/schemas/application-filter-field","description":"The field to filter by."},"value":{"$ref":"#/components/schemas/filter-value"},"operation":{"$ref":"#/components/schemas/filter-operation"}}}}}},"query-applications-response":{"type":"object","description":"Paginated list of applications.\n","required":["applications"],"properties":{"applications":{"type":"array","items":{"$ref":"#/components/schemas/application-response"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results. The follow-up request must repeat the\nsame `sorting` that produced this token (omit only when both pages use the default).\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"rotate-client-secret-request":{"type":"object","description":"The client whose secret to replace, and what becomes of the secrets it holds now.","additionalProperties":false,"required":["client","previous_secrets"],"properties":{"client":{"type":"string","description":"The slug of the client whose secret to replace, as the application's\n`definition.clients[].slug` names it.\n","example":"web"},"previous_secrets":{"type":"string","enum":["revoke","keep_one_day"],"description":"What becomes of the secrets the client holds now. `revoke` ends them\nat once: use it for a secret that leaked. Every app that still sends\none fails to authenticate the client until it has the new secret.\n`keep_one_day` keeps them working for 24 hours beside the new one, so\neach app can move to the new secret before the old one ends.\n","example":"keep_one_day"}}},"rotate-client-secret-response":{"type":"object","description":"The client's new secret, and when the secrets it held before stop working.","required":["client_secret","previous_secrets_end_at"],"properties":{"client_secret":{"$ref":"#/components/schemas/application-client-secret"},"previous_secrets_end_at":{"type":"string","format":"date-time","description":"When the last of the secrets the client held before stops working:\nthe time of this call for `revoke`, 24 hours after the new secret was\nstored for `keep_one_day`. A secret an earlier `keep_one_day` kept\nstill ends when that call said, which can be sooner.\n","example":"2026-12-03T09:14:00Z"}}},"application-revision-id":{"type":"string","description":"The identifier of one immutable revision of an application.","pattern":"^apprev_[a-zA-Z0-9_-]+$","x-zitadel-pattern-message":"must be an application revision ID: apprev_ followed by letters, digits, _ or -","example":"apprev_01KWH3B72K7M7F0N9WD3P2E4YN"},"policy-operation":{"title":"PolicyOperation","type":"string","description":"An operation a policy can guard; the policy catalog lists them.","enum":["auth.client.admit","auth.factor.password.set","user.create"]},"pol-not_found":{"description":"Policy: not found\n\nError code: pol.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"pol.not_found"}},"required":["code"]}]},"pol-permission_denied":{"description":"Policy: the caller's project role does not allow this operation\n\nError code: pol.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"pol.permission_denied"}},"required":["code"]}]},"policy-id":{"type":"string","description":"The identifier of a policy, shared by all of its revisions.","pattern":"^pol_[a-zA-Z0-9_-]+$","x-zitadel-pattern-message":"must be a policy ID: pol_ followed by letters, digits, _ or -","example":"pol_01KXA4F3Q8R7F0N9WD3P2E4YM5"},"policy-revision-id":{"type":"string","description":"The identifier of one immutable revision of a policy.","pattern":"^polrev_[a-zA-Z0-9_-]+$","x-zitadel-pattern-message":"must be a policy revision ID: polrev_ followed by letters, digits, _ or -","example":"polrev_01KXA4F3Q8R7F0N9WD3P2E4YM6"},"client-admit-config":{"title":"ClientAdmitPolicyConfig","type":"object","additionalProperties":false,"description":"The settings of an `auth.client.admit` policy, checked before the OAuth\nserver serves a client nobody registered: one that presents the URL of its\nclient ID metadata document as its client ID. Every setting is optional; a\nsetting left out switches its rule off, and `{}` switches every rule off,\nwhich admits every such client. The policy narrows admission where an\nissuer admits such clients at all, which today is the platform project's\nissuer only. It never switches off what holds for every such client:\nconsent on each request, public addresses only for the fetch, and tokens\nthat end with the session.\n","properties":{"document_hosts":{"type":"array","maxItems":64,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z0-9]([a-z0-9.-]*[a-z0-9])?(:[0-9]{1,5})?$","x-zitadel-pattern-message":"must be a host in lower case, such as client.example.com, with :port only when its client IDs name one"},"description":"The hosts whose client documents are admitted. A client is admitted\nwhen the host of its client ID is one of them, spelled as the client\nID spells it: lower case, with `:port` when the URL names one, for\nexample `claude.ai`. A host is matched whole: `claude.ai` does not\nadmit `sub.claude.ai`. An empty list admits no such client. A document\non a host not listed is never fetched.\n"}}},"client-admit-policy":{"title":"ClientAdmitPolicy","type":"object","description":"One revision of a project's `auth.client.admit` policy. `id` is shared by\nevery revision of the operation's policy; `revision_id` names this\nrevision.\n","required":["id","revision_id","project_id","operation","config","created_at","updated_at"],"properties":{"id":{"readOnly":true,"$ref":"#/components/schemas/policy-id"},"revision_id":{"readOnly":true,"$ref":"#/components/schemas/policy-revision-id"},"project_id":{"readOnly":true,"description":"The project the policy belongs to.","$ref":"#/components/schemas/project-id"},"operation":{"type":"string","enum":["auth.client.admit"],"readOnly":true,"description":"The operation the policy guards."},"config":{"readOnly":true,"$ref":"#/components/schemas/client-admit-config"},"created_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the operation's policy was first published."},"updated_at":{"type":"string","format":"date-time","readOnly":true,"description":"When this revision was published."}}},"password-set-config":{"title":"PasswordSetPolicyConfig","type":"object","additionalProperties":false,"description":"The settings of an `auth.factor.password.set` policy. Every setting is\noptional; a setting left out switches its rule off, and `{}` switches every\nrule off. There are no defaults. The bounds are technical limits, not\nrecommendations; the server's template checks the same bounds.\n","properties":{"min_length":{"type":"integer","minimum":1,"maximum":64,"description":"The fewest Unicode code points a new password may have, counted after\nNFC normalization. At most `max_length` when both are set.\n"},"max_length":{"type":"integer","minimum":1,"maximum":64,"description":"The most Unicode code points a new password may have. A password above\n64 code points is refused whether or not this is set.\n"},"history_depth":{"type":"integer","minimum":1,"maximum":4,"description":"How many of the user's passwords a new one may not repeat, the current\none included. Checked only when users set their own password.\n"}}},"password-set-policy":{"title":"PasswordSetPolicy","type":"object","description":"One revision of a project's `auth.factor.password.set` policy. `id` is shared\nby every revision of the operation's policy; `revision_id` names this\nrevision.\n","required":["id","revision_id","project_id","operation","config","created_at","updated_at"],"properties":{"id":{"readOnly":true,"$ref":"#/components/schemas/policy-id"},"revision_id":{"readOnly":true,"$ref":"#/components/schemas/policy-revision-id"},"project_id":{"readOnly":true,"description":"The project the policy belongs to.","$ref":"#/components/schemas/project-id"},"operation":{"type":"string","enum":["auth.factor.password.set"],"readOnly":true,"description":"The operation the policy guards."},"config":{"readOnly":true,"$ref":"#/components/schemas/password-set-config"},"created_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the operation's policy was first published."},"updated_at":{"type":"string","format":"date-time","readOnly":true,"description":"When this revision was published."}}},"user-create-config":{"title":"UserCreatePolicyConfig","type":"object","additionalProperties":false,"description":"The settings of a `user.create` policy, checked before a sign-up creates a\nuser. Every setting is optional; a setting left out switches its rule off,\nand `{}` switches every rule off. Zitadel's own sign-up protection, a proof\nof work on every sign-up with a password or a passkey and limits per\nsign-up flow, applies either way: a policy chooses among challenges and\nnever switches it off. Sign-ups through a sign-in provider are not\nchallenged: each needs an account at the provider.\n","properties":{"challenge":{"type":"string","enum":["zitadel_pow"],"description":"The challenge a sign-up with a password or a passkey must solve before\nthe user is created. `zitadel_pow` is Zitadel's built-in proof of work,\nwhich every such sign-up solves when no policy names a challenge.\n"}}},"user-create-policy":{"title":"UserCreatePolicy","type":"object","description":"One revision of a project's `user.create` policy. `id` is shared by every\nrevision of the operation's policy; `revision_id` names this revision.\n","required":["id","revision_id","project_id","operation","config","created_at","updated_at"],"properties":{"id":{"readOnly":true,"$ref":"#/components/schemas/policy-id"},"revision_id":{"readOnly":true,"$ref":"#/components/schemas/policy-revision-id"},"project_id":{"readOnly":true,"description":"The project the policy belongs to.","$ref":"#/components/schemas/project-id"},"operation":{"type":"string","enum":["user.create"],"readOnly":true,"description":"The operation the policy guards."},"config":{"readOnly":true,"$ref":"#/components/schemas/user-create-config"},"created_at":{"type":"string","format":"date-time","readOnly":true,"description":"When the operation's policy was first published."},"updated_at":{"type":"string","format":"date-time","readOnly":true,"description":"When this revision was published."}}},"policy":{"title":"Policy","description":"One revision of a project's policy for an operation, typed by `operation`.\n`id` is shared by every revision of the operation's policy; `revision_id`\nnames this revision.\n","oneOf":[{"$ref":"#/components/schemas/client-admit-policy"},{"$ref":"#/components/schemas/password-set-policy"},{"$ref":"#/components/schemas/user-create-policy"}],"discriminator":{"propertyName":"operation","mapping":{"auth.client.admit":"#/components/schemas/client-admit-policy","auth.factor.password.set":"#/components/schemas/password-set-policy","user.create":"#/components/schemas/user-create-policy"}}},"list-policies-response":{"type":"object","description":"A page of the project's policies, one per operation, each as its newest\nrevision.\n","required":["policies"],"properties":{"policies":{"type":"array","items":{"$ref":"#/components/schemas/policy"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following\npage. Absent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"client-admit-policy-input":{"title":"ClientAdmitPolicyInput","type":"object","description":"A publish of the client admission policy, checked before a client that\npresents a client ID metadata document is served.\n","required":["operation","config"],"properties":{"operation":{"type":"string","enum":["auth.client.admit"],"description":"The operation the policy guards."},"config":{"$ref":"#/components/schemas/client-admit-config"}}},"password-set-policy-input":{"title":"PasswordSetPolicyInput","type":"object","description":"A publish of the password policy, checked before a password is set.","required":["operation","config"],"properties":{"operation":{"type":"string","enum":["auth.factor.password.set"],"description":"The operation the policy guards."},"config":{"$ref":"#/components/schemas/password-set-config"}}},"user-create-policy-input":{"title":"UserCreatePolicyInput","type":"object","description":"A publish of the sign-up policy, checked before a sign-up creates a user.","required":["operation","config"],"properties":{"operation":{"type":"string","enum":["user.create"],"description":"The operation the policy guards."},"config":{"$ref":"#/components/schemas/user-create-config"}}},"publish-policy-request":{"title":"PublishPolicyRequest","description":"One publish of the project's policy for an operation. `operation` selects\nthe operation's template, and `config` sets that template's settings. A\nsetting left out is off, and `{}` switches every rule off. The policy catalog\nlists the settings each operation accepts.\n","oneOf":[{"$ref":"#/components/schemas/client-admit-policy-input"},{"$ref":"#/components/schemas/password-set-policy-input"},{"$ref":"#/components/schemas/user-create-policy-input"}],"discriminator":{"propertyName":"operation","mapping":{"auth.client.admit":"#/components/schemas/client-admit-policy-input","auth.factor.password.set":"#/components/schemas/password-set-policy-input","user.create":"#/components/schemas/user-create-policy-input"}}},"pol-invalid":{"description":"Policy: invalid\n\nError code: pol.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"pol.invalid"}},"required":["code"]}]},"pol-revision_conflict":{"description":"Policy: another revision of the same policy was published at the same instant; retry\n\nError code: pol.revision_conflict\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"pol.revision_conflict"}},"required":["code"]}]},"client-admit-evaluate-input":{"title":"ClientAdmitEvaluateInput","type":"object","additionalProperties":false,"description":"The client as it reaches the OAuth server: the client ID it presents. A\ndry run fetches nothing: it answers what the policy says of the client ID.\n","required":["client_id"],"properties":{"client_id":{"type":"string","minLength":1,"maxLength":255,"description":"The client ID the client presents: the `https` URL of its client ID\nmetadata document, for example\n`https://client.example.com/oauth/client-metadata.json`.\n"}}},"client-admit-evaluate-request":{"title":"ClientAdmitEvaluateRequest","type":"object","description":"A dry run of the client admission policy for one client.","required":["operation","config","input"],"properties":{"operation":{"type":"string","enum":["auth.client.admit"],"description":"The operation the policy guards."},"config":{"$ref":"#/components/schemas/client-admit-config"},"input":{"$ref":"#/components/schemas/client-admit-evaluate-input"}}},"password-set-evaluate-input":{"title":"PasswordSetEvaluateInput","type":"object","additionalProperties":false,"description":"The password as a user or administrator would set it. The server derives\nwhat the policy checks, its length in code points after NFC normalization,\nwith the same code a real password set runs.\n","required":["password"],"properties":{"password":{"type":"string","format":"password","writeOnly":true,"maxLength":4096,"description":"The candidate password. It is evaluated and dropped: never stored,\nlogged or returned. Anything above the server's cap of 64 characters is\nrefused as `max_length`, as on a real set. The 4096 bound only keeps a\ndry run's body small.\n"}}},"password-set-evaluate-facts":{"title":"PasswordSetEvaluateFacts","type":"object","additionalProperties":false,"description":"What a password set looks up instead of reading from the request. A dry run\nhas no user, so it is stated here.\n","properties":{"self_service":{"type":"boolean","default":true,"description":"Whether the user sets their own password. Only then is the password\nhistory checked; an administrator's set skips it.\n"},"history_matches":{"type":"array","default":[],"maxItems":4,"items":{"type":"boolean"},"description":"Whether the candidate matches each of the user's kept passwords,\ncurrent first, newest first. Only the first `history_depth` entries\ncount, so at most 4 matter: 4 is the highest `history_depth`.\n"}}},"password-set-evaluate-request":{"title":"PasswordSetEvaluateRequest","type":"object","description":"A dry run of the password policy for one candidate password.","required":["operation","config","input"],"properties":{"operation":{"type":"string","enum":["auth.factor.password.set"],"description":"The operation the policy guards."},"config":{"$ref":"#/components/schemas/password-set-config"},"input":{"$ref":"#/components/schemas/password-set-evaluate-input"},"facts":{"$ref":"#/components/schemas/password-set-evaluate-facts"}}},"user-create-evaluate-input":{"title":"UserCreateEvaluateInput","type":"object","additionalProperties":false,"description":"The sign-up as it reaches the server. A real sign-up proves the challenge\nit solved; a dry run names it.\n","required":["solved_challenge"],"properties":{"solved_challenge":{"type":"string","enum":["zitadel_pow"],"description":"The challenge the sign-up solved. `zitadel_pow` is Zitadel's built-in\nproof of work.\n"}}},"user-create-evaluate-request":{"title":"UserCreateEvaluateRequest","type":"object","description":"A dry run of the sign-up policy for one sign-up.","required":["operation","config","input"],"properties":{"operation":{"type":"string","enum":["user.create"],"description":"The operation the policy guards."},"config":{"$ref":"#/components/schemas/user-create-config"},"input":{"$ref":"#/components/schemas/user-create-evaluate-input"}}},"evaluate-policy-request":{"title":"EvaluatePolicyRequest","description":"One dry run of an operation's policy. `operation` selects the operation's\ntemplate. `config` is the policy to evaluate, checked exactly as a publish\nchecks it. `input` is what the operation's request carries, in the\noperation's own terms. `facts` states what the operation would look up at\nruntime. The policy catalog lists the fields each operation accepts.\n","oneOf":[{"$ref":"#/components/schemas/client-admit-evaluate-request"},{"$ref":"#/components/schemas/password-set-evaluate-request"},{"$ref":"#/components/schemas/user-create-evaluate-request"}],"discriminator":{"propertyName":"operation","mapping":{"auth.client.admit":"#/components/schemas/client-admit-evaluate-request","auth.factor.password.set":"#/components/schemas/password-set-evaluate-request","user.create":"#/components/schemas/user-create-evaluate-request"}}},"evaluate-policy-response":{"title":"EvaluatePolicyResponse","type":"object","description":"The decision the operation would reach for the request. A refusal carries\nthe error code and violations an API call of the operation would answer\nwith. A login flow shows the same rules as field errors instead.\n","required":["allowed"],"properties":{"allowed":{"type":"boolean","description":"Whether the operation would go ahead."},"code":{"type":"string","description":"The error code an API call of the operation would answer with, set\nonly when it would refuse, for example `user.password_empty`,\n`user.password_policy_violation`, for a sign-up `flow.proof_invalid`,\nor for a client `clientdoc.not_admitted`.\n"},"violations":{"type":"object","additionalProperties":true,"description":"Every failed rule keyed by name, with the value of the setting it is\nnamed after, for example `{\"min_length\": 12}`. It matches the live\nerror's `details.violations`. Set only with\n`user.password_policy_violation`.\n"}}},"list-policy-revisions-response":{"type":"object","description":"A page of the revisions of one policy, newest first.","required":["revisions"],"properties":{"revisions":{"type":"array","items":{"$ref":"#/components/schemas/policy"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following\npage. Absent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"release-content-hash":{"title":"ReleaseContentHash","type":"string","description":"The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project's revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n   `POST /releases/build` carries it, with `kind` set to `schema`,\n   `flow_definition`, `branding`, `idp`, `oauth`, `policy` or\n   `application`, and `handle` set to the schema's `objectType`, the flow\n   definition's `name`, `default` for branding and oauth, the identity\n   provider's `slug`, the policy's `operation` or the application's `slug`.\n   A `schema-url` entry's content is the entry as written, and its handle\n   is the `objectType` of the document the URL serves.\n2. Build the JSON document\n   `{\"version\": 1, \"resources\": [{\"kind\": …, \"handle\": …, \"content\": …}, …]}`,\n   with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n   lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n","pattern":"^sha256:[0-9a-f]{64}$","x-zitadel-pattern-message":"must be sha256: followed by 64 lowercase hex digits","minLength":71,"maxLength":71,"example":"sha256:9f2c1a7b4e83d05f6c2b19ae7d430f821c6b5de90a4f73829f2c1a7b4e83d05f"},"rel-permission_denied":{"description":"Release: requires an operator-grade token bound to the project (project.write or a release.* scope)\n\nError code: rel.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"rel.permission_denied"}},"required":["code"]}]},"release-id":{"type":"string","description":"The opaque, immutable identifier of a release.","pattern":"^rel_[a-zA-Z0-9_-]+$","x-zitadel-pattern-message":"must be a release ID: rel_ followed by letters, digits, _ or -","example":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1"},"release-metadata":{"title":"ReleaseMetadata","type":"object","description":"Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n","required":["git_dirty","created_at"],"properties":{"message":{"description":"A short caller-supplied summary of what the release changes, analogous to\na git commit message.\n","oneOf":[{"type":"string","maxLength":1024},{"type":"null"}],"example":"add phone_number to human-user"},"git_sha":{"description":"The source commit the caller was operating from. Recording it on two\nreleases lets you diff them at field level in the source repository they\nwere built from.\n","oneOf":[{"type":"string","maxLength":64},{"type":"null"}],"example":"4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7"},"git_dirty":{"type":"boolean","default":false,"description":"True when the working tree had uncommitted changes when the release was\nassembled. `git_sha` still points at HEAD, but the release content does\nnot correspond to that commit exactly, so skip a git diff when either\nside is dirty.\n"},"created_at":{"type":"string","format":"date-time","description":"When the release was assembled.","example":"2026-07-14T09:11:00Z"},"created_by":{"description":"The identity that assembled the release. Absent when the caller is a\nmachine principal carrying no user identity, which is the common case for\nreleases assembled from CI or the CLI.\n","oneOf":[{"type":"string"},{"type":"null"}],"example":"user_01KX3RG8A7F0N9WD3P2E4YM5C1"},"created_by_type":{"description":"What kind of principal `created_by` names.","oneOf":[{"type":"string","enum":["human","service","system","agent"]},{"type":"null"}],"example":"human"}}},"release-summary":{"title":"ReleaseSummary","description":"A release without its pinned set: the shape `GET /releases` returns.\n\nPointers are omitted rather than optional, so a list entry can never be\nmistaken for a release that pins nothing. Fetch them with\n`GET /releases/{release_id}`.\n","type":"object","required":["id","project_id","content_hash","metadata","revoked_at"],"properties":{"id":{"readOnly":true,"description":"The release ID, opaque and immutable, assigned when the release is assembled.","$ref":"#/components/schemas/release-id"},"project_id":{"readOnly":true,"description":"The project this release belongs to.","$ref":"#/components/schemas/project-id"},"content_hash":{"readOnly":true,"description":"The digest of the pinned content.","$ref":"#/components/schemas/release-content-hash"},"metadata":{"readOnly":true,"$ref":"#/components/schemas/release-metadata"},"revoked_at":{"readOnly":true,"description":"When the release was revoked, or null while it is not.","oneOf":[{"type":"string","format":"date-time"},{"type":"null"}],"example":null}}},"list-releases-response":{"type":"object","description":"A page of the project's releases, newest first.","required":["releases"],"properties":{"releases":{"type":"array","items":{"$ref":"#/components/schemas/release-summary"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"release-pointer-kind":{"title":"ReleasePointerKind","type":"string","description":"The kind of resource a release pointer pins.\n\nThe kind is explicit, not inferred from `revision_id`, because a revision ID\ndoes not always identify its kind: a schema's is its `$id`, which may be any\nURL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flows`.\n","enum":["schema","flow_definition","branding","idp","policy","oauth","application"],"example":"schema"},"create-release-pointer":{"type":"object","description":"One revision to pin. The handle is not supplied: it is the resource's own\nidentifying field, so the server reads it from the revision being pinned and\nrecords it on the release.\n","required":["kind","revision_id"],"properties":{"kind":{"$ref":"#/components/schemas/release-pointer-kind"},"revision_id":{"type":"string","minLength":1,"maxLength":512,"description":"The revision of that resource to pin. It must already exist in the\nproject: this operation pins revisions, it does not create them.\n\nNot constrained to a prefixed ID. For `kind: schema` this is the schema's\n`$id`, a URL whenever the document supplied one and otherwise a\ngenerated `sch_*` value.\n","example":"https://example.com/schemas/default-human-user.json"}}},"create-release-request":{"type":"object","description":"The set of revisions to bundle into a release, plus the metadata to record\nalongside it.\n\n`created_at` and `created_by` are derived server-side from the caller's\nauthentication context and are not accepted here.\n","required":["pointers"],"properties":{"pointers":{"type":"array","minItems":1,"maxItems":50,"description":"The revisions to pin. Must not be empty.\n\nA kind usually appears more than once: a project has several user schemas\nand several flow definitions, and each is pinned on its own. What a\nrelease cannot do is pin two revisions of the *same* resource. A second\nrevision of the `human-user` schema is rejected rather than ordered,\nsince a release describes one state of the project.\n\nThe upper bound counts *resources*, not revisions, because one release\npins at most one revision of each. It limits how much a project\nconfigures, not how often it changes.\n","items":{"$ref":"#/components/schemas/create-release-pointer"}},"message":{"type":"string","maxLength":1024,"description":"A short summary of what the release changes, analogous to a git commit\nmessage. Recorded on the release and shown when listing releases.\n","example":"add phone_number to human-user"},"git_sha":{"type":"string","maxLength":64,"description":"The source commit the caller was operating from.","example":"4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7"},"git_dirty":{"type":"boolean","default":false,"description":"Set when the working tree had uncommitted changes, so the release content\ndoes not correspond exactly to `git_sha`.\n"}}},"app-registered":{"description":"Application: registered through the API, so a release may not declare it\n\nError code: app.registered\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"app.registered"}},"required":["code"]}]},"rel-invalid":{"description":"Release: invalid\n\nError code: rel.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"rel.invalid"}},"required":["code"]}]},"rel-project_not_found":{"description":"Release: project not found\n\nError code: rel.project_not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"rel.project_not_found"}},"required":["code"]}]},"rel-revision_not_found":{"description":"Release: pinned revision does not exist\n\nError code: rel.revision_not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"rel.revision_not_found"}},"required":["code"]}]},"rel-revision_unpinnable":{"description":"Release: pinned revision declares no handle\n\nError code: rel.revision_unpinnable\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"rel.revision_unpinnable"}},"required":["code"]}]},"rel-unresolved_reference":{"description":"Release: handle is not in the release\n\nError code: rel.unresolved_reference\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"rel.unresolved_reference"}},"required":["code"]}]},"release-pointer":{"type":"object","description":"One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n","required":["kind","handle","revision_id"],"properties":{"kind":{"$ref":"#/components/schemas/release-pointer-kind"},"handle":{"type":"string","minLength":1,"maxLength":256,"description":"Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision, and `handle` says what the revision\nis a revision *of*. The server determines it when the release is\nassembled; the caller does not supply it:\n\n- `schema` — the document's `objectType`, so `human-user` and\n  `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition's `name`, likewise for\n  `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n  nothing to distinguish. It is revisioned like everything else, and\n  `revision_id` is what varies between releases.\n- `oauth` — always `default`, likewise: a project has one set of OAuth\n  settings, and `revision_id` is what varies between releases.\n- `idp` — the connection's `slug`, so `google` and `github` are\n  separate resources a release pins separately\n- `policy` — the policy's `operation`, so a project's password policy\n  is one resource however often it is revised\n- `application` — the application's `slug`, so `shop` and `blog` are\n  separate resources a release pins separately\n\nResources inside a release reference each other by handle, not by\nrevision ID. The same handle therefore names the same resource in every\nrelease.\n","example":"human-user"},"revision_id":{"type":"string","minLength":1,"maxLength":512,"description":"The revision of that resource this release pins.\n\nNot constrained to a prefixed ID. For `kind: schema` this is the schema's\n`$id`, a URL whenever the document supplied one and otherwise a\ngenerated `sch_*` value.\n","example":"https://example.com/schemas/default-human-user.json"}}},"release":{"title":"Release","description":"An immutable snapshot of a project's configuration. It pins one revision of\nevery resource it includes.\n\nA release owns pointers and metadata, not content: it records *which*\nrevisions belong together. To get the resource bytes, resolve each\n`revision_id` through the per-kind read endpoints (`GET /schemas/{schema_id}`,\n`GET /flow_definitions/{flow_definition_id}`, …).\n\nA release exists on its own and is not tied to an origin. Deploying it is a\nseparate call (`createDeployment` (`POST /deployments`)).\n\nA release has two identifiers. `id` is the one paths and `release_id` fields\ntake. `content_hash` is the digest of the content the release pins. The CLI\nprints it, builds pin it, and fields that name it look a release up by it.\n","type":"object","required":["id","project_id","content_hash","metadata","revoked_at","pointers"],"properties":{"id":{"readOnly":true,"description":"The release ID, opaque and immutable, assigned when the release is assembled.","$ref":"#/components/schemas/release-id"},"project_id":{"readOnly":true,"description":"The project this release belongs to.","$ref":"#/components/schemas/project-id"},"content_hash":{"readOnly":true,"description":"The digest of the pinned content. Identical for two releases with the\nsame content, which is why a project never holds two such releases.\n","$ref":"#/components/schemas/release-content-hash"},"metadata":{"readOnly":true,"$ref":"#/components/schemas/release-metadata"},"revoked_at":{"readOnly":true,"description":"When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed. Every path that would serve it refuses it,\nincluding a build that pins its digest. No origin serves a revoked\nrelease, since a release an origin still serves cannot be revoked.\nEarlier deployments that named it stay in the history.\n","oneOf":[{"type":"string","format":"date-time"},{"type":"null"}],"example":null},"pointers":{"readOnly":true,"type":"array","minItems":1,"maxItems":50,"description":"The revisions this release pins, one entry per `(kind, handle)`. Never\nempty, because a release must contain at least one resource, and never\nlonger than the set `POST /releases` accepts.\n","items":{"$ref":"#/components/schemas/release-pointer"}}}},"configuration-bundle":{"title":"ConfigurationBundle","type":"object","description":"The resources of a project's `.zitadel/` directory as authored on disk,\ngrouped by kind.\n\nResources reference each other by handle. A flow definition's\n`user_schema` names a schema by its `objectType`. A flow step's\n`sso_providers`, like a schema's `x-auth-methods.sso.providers`, name\nidentity provider (IdP) connections by `slug`. A reference resolves to the\nresource with that handle in this bundle. Failing that, it resolves to the\nproject's newest revision of it, which the release then pins as well. A\nhandle that neither holds refuses the release, naming the pointer and the\nhandle. A bundle that references only resources it carries builds the same\nrelease on any project.\n\nA handle names one resource of its kind in a bundle. The server refuses the\nrelease with `rel.invalid`, with an entry for each such resource, when the\nbundle holds:\n- two schemas with the same `objectType`;\n- two flow definitions with the same `name`;\n- two IdP connections with the same `slug`;\n- two applications with the same `slug`;\n- two policies for the same `operation`;\n- a schema without an `objectType`.\n\nEach kind is optional, and the arrays may be empty: a project that never\nejected its branding omits `branding`, and one that never turned on its\nOAuth authorization server omits `oauth`. `branding` and `oauth` are\nsingle objects, because a project has one of each. The bundle carries at\nleast one resource. The release it builds pins at most 50 resources, which\ncounts the resources the bundle carries plus those resolved from the\nproject. The server refuses anything outside that with `rel.invalid`.\nUnknown keys are refused.\n","additionalProperties":false,"properties":{"schemas":{"type":"array","maxItems":50,"description":"User schemas, one per `.zitadel/schemas/*.json`, in either form\n`POST /schemas` takes.\n\nAn inline `user-schema` must not declare `$id`: a schema's `$id` is\nits revision's identity, so a changed schema under the same `$id`\ncould never become a new revision. Such a schema gets a `rel.invalid`\nentry.\n\nA `schema-url` entry's handle is the `objectType` of the document the\nURL serves. Its revision is identified by the URL, so the release\nreuses the project's revision for a URL the project already holds and\nfetches the document only for a URL it does not.\n","items":{"oneOf":[{"$ref":"#/components/schemas/user-schema"},{"$ref":"#/components/schemas/schema-url"}],"discriminator":{"propertyName":"kind","mapping":{"user-schema":"#/components/schemas/user-schema","schema-url":"#/components/schemas/schema-url"}}}},"flow_definitions":{"type":"array","maxItems":50,"description":"Flow definitions, one per `.zitadel/flows/*.json`.","items":{"$ref":"#/components/schemas/flow-definition"}},"idps":{"type":"array","maxItems":50,"description":"IdP connections, one per `.zitadel/idps/<slug>.json`, each the\nconnection document `POST /idps` takes as `idp`. Secrets appear only\nas `${{ NAME }}` references to variables, never as values, so a bundle\ncarries no credentials.\n","items":{"$ref":"#/components/schemas/idp-connection"}},"applications":{"type":"array","maxItems":50,"description":"Declared applications, one per `.zitadel/applications/<slug>.json`,\neach the document `POST /applications` takes as `application`. The\nhandle is `slug`. A release is the only writer of a declared\napplication: the build refuses a slug an application registered\nthrough `POST /applications` holds, with an `app.registered` entry.\n\nA declared application differs from a registered one in three ways,\neach refused with an `app.invalid` entry naming the setting:\n- every client sets its `client_id`, so the id is known before any\n  deploy;\n- every confidential client names its secret as a `${{ NAME }}`\n  reference to a variable in `secret`, and no two clients in the\n  bundle name the same variable;\n- no two clients in the bundle share a `client_id`.\nEvery client on either side of such a clash is refused.\n\nA `client_id` another client of the project holds, or once held, gets\nan `app.client_id_taken` entry, and a variable another client of the\nproject names, or once named, an `app.invalid` entry: a variable stays\nthe client's that first named it, so no other client is handed its\nsecret. A revision may not change a client's `client_id`\n(`app.field_immutable`), even for a client an earlier release dropped.\nUnlike on `POST /applications`, a revision may drop a client: the\ndeployments of that release stop serving it. A deploy is refused while\na variable a client names has no value for the target\n(`dep.variables_missing`), or holds a plain value instead of a secret\n(`dep.variables_not_secret`).\n\nA declared application's clients are first-party unless their\n`first_party` says otherwise.\n","items":{"$ref":"#/components/schemas/application"}},"policies":{"type":"array","maxItems":50,"description":"Operation policies, one per `.zitadel/policies/<operation>.json`, each\nthe body `POST /policies` takes. The handle is `operation`: a project\nhas one policy per operation. An unknown setting or a value outside a\nsetting's bounds is refused while the request is decoded, with\n`req.invalid` and no `details.resources`. A config the operation's\ntemplate refuses beyond that, such as settings that contradict each\nother, gets a `rel.invalid` entry.\n\nA request served this release reads the policy revision it pins for\nthe operation, as it reads the user schema, branding and identity\nproviders. That holds once the release pins a flow. A release that pins\na flow and no policy for an operation means no policy for it.\n","items":{"$ref":"#/components/schemas/publish-policy-request"}},"branding":{"$ref":"#/components/schemas/branding","description":"The descriptor from `.zitadel/branding/branding.json` with its template\ninlined, exactly as `POST /branding` takes it. A project has one\nbranding, so this is a single object.\n"},"oauth":{"$ref":"#/components/schemas/oauth-settings","description":"The project's OAuth settings. A project has one set of them, so this is\na single object, and the release is its only writer: there is no\nper-kind create endpoint. Omit it to leave the project's OAuth\nauthorization server off.\n"}}},"build-release-request":{"title":"BuildReleaseRequest","type":"object","description":"The resources to build a release from, plus the metadata to record\nalongside it.\n\n`created_at` and `created_by` are derived server-side from the caller's\nauthentication context and are not accepted here.\n","required":["bundle"],"additionalProperties":false,"properties":{"bundle":{"$ref":"#/components/schemas/configuration-bundle"},"message":{"type":"string","maxLength":1024,"description":"A short summary of what the release changes, analogous to a git commit\nmessage. Recorded on the release and shown when listing releases.\n","example":"add phone_number to human-user"},"git_sha":{"type":"string","maxLength":64,"description":"The source commit the caller was operating from.","example":"4a5b6c7d8e9f0a1b2c3d4e5f60718293a4b5c6d7"},"git_dirty":{"type":"boolean","default":false,"description":"Set when the working tree had uncommitted changes, so the release content\ndoes not correspond exactly to `git_sha`.\n"}}},"bundle-resource-error":{"title":"BundleResourceError","description":"One bundle resource that failed validation: the error its kind's create\nendpoint would have answered, `code`, `message` and `details` unchanged,\nwith the resource it belongs to.\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","required":["kind","index"],"properties":{"kind":{"$ref":"#/components/schemas/release-pointer-kind"},"index":{"type":"integer","minimum":0,"description":"The resource's position in its kind's array in the bundle; `0` for the branding and for the OAuth settings, which are single objects."},"handle":{"type":"string","description":"The resource's handle, when it declares one."}}}]},"build-release-bad-request":{"title":"BuildReleaseBadRequest","description":"The bundle cannot build a release. `code` says why. A structurally\nmalformed request, such as a wrong type, a missing required field, an\nunknown key or a kind over its cap, is refused while decoding with\n`req.invalid`, naming the offending fields. A well-formed bundle whose\nresources fail the checks their kinds' create endpoints run answers\n`rel.invalid`, and `details.resources` lists every resource that failed.\n\n`resources` sits at the top of `details`, not under `details.details`.\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"details":{"type":"object","properties":{"resources":{"type":"array","description":"Every bundle resource that failed validation.","items":{"$ref":"#/components/schemas/bundle-resource-error"}}}}}}]},"rel-in_use":{"description":"Release: still served by an origin\n\nError code: rel.in_use\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"rel.in_use"}},"required":["code"]}]},"deployment-id":{"type":"string","description":"The opaque, immutable identifier of a deployment.","pattern":"^dep_[a-zA-Z0-9_-]+$","x-zitadel-pattern-message":"must be a deployment ID: dep_ followed by letters, digits, _ or -","example":"dep_01KX4SB9C8E1F0N9WD3P2E4YM5"},"deployment-kind":{"title":"DeploymentKind","type":"string","description":"`primary` for the project's primary origins, `preview` for preview URLs.\n","enum":["primary","preview"],"example":"primary"},"revoke-release-conflict":{"title":"RevokeReleaseConflict","type":"object","description":"The release cannot be revoked because origins still serve it.\n","required":["code","message","details"],"properties":{"code":{"$ref":"#/components/schemas/error-code"},"message":{"type":"string","description":"Human-readable explanation of the error."},"details":{"type":"object","required":["origins"],"properties":{"origins":{"type":"array","minItems":1,"description":"Every origin that still serves the release.","items":{"type":"object","required":["origin","deployment_id","kind"],"properties":{"origin":{"$ref":"#/components/schemas/origin"},"deployment_id":{"$ref":"#/components/schemas/deployment-id","description":"The newest deployment to the origin, which pins the release."},"kind":{"$ref":"#/components/schemas/deployment-kind","description":"Whether the origin serves the release as a primary origin or as\na preview. A deploy or a rollback frees a primary origin;\nremoving the preview frees a preview.\n"}}}}}}}},"user-locator":{"title":"UserLocator","description":"Names a user with exactly one of `user_id` or `identifier`. Sending both\nor neither is `grant.invalid`. Unknown properties are rejected as\n`req.invalid`.\n","type":"object","additionalProperties":false,"properties":{"user_id":{"$ref":"#/components/schemas/user-id","description":"Platform-homed user id (`user_<opaque>`). The user must be active.\nGranting the session caller's own user id is `grant.invalid`.\n"},"identifier":{"type":"string","minLength":1,"description":"The user schema's designated identifier (`x-identifier`), looked\nup in the platform project. Create answers `202` with no body on\nevery outcome. A hit, a duplicate, a miss and several matches are\nindistinguishable, and a miss or several matches write nothing.\nThe server logs the lookup outcome. Granting the session caller's\nown resolved user is `grant.invalid`.\n","example":"alice@acme.com"}}},"team-locator":{"title":"TeamLocator","description":"Names a team with exactly one of `team_id` or `name`. Sending both\nor neither is `grant.invalid`. Unknown properties are rejected as\n`req.invalid`.\n","type":"object","additionalProperties":false,"properties":{"team_id":{"$ref":"#/components/schemas/team-id","description":"Platform-homed team id (`team_<opaque>`). The team must be active.\n"},"name":{"type":"string","minLength":1,"description":"Team name, unique per project case-insensitively. Looked up in\nthe platform project. The team must be active.\n","example":"Acme AI Admins"}}},"create-grant-request":{"title":"CreateGrantRequest","description":"Gives a user or a team a role on the project. Send exactly one of `user` or\n`team`. Shared fields are `relation` and optional `expires_at`. Sending both\nlocators or neither is `grant.invalid`.\n","type":"object","required":["relation"],"properties":{"relation":{"type":"string","enum":["viewer","editor","admin"],"description":"The role on the project (`object_type` `project`). `team` (owning-team) is not allowed."},"expires_at":{"type":"string","format":"date-time","description":"Optional expiry. Must be in the future when set. Expiry stops\nauthorization but does not free the binding: delete the grant\nbefore creating the same principal and relation again.\n"},"user":{"description":"The user to give the role. Send exactly one of `user_id` or `identifier`.\nThe user must exist in the platform project when a platform project is\nconfigured. Mutually exclusive with `team`.\n","$ref":"#/components/schemas/user-locator"},"team":{"description":"The team to give the role. Send exactly one of `team_id` or `name`.\nThe team must exist in the platform project when a platform project is\nconfigured. Mutually exclusive with `user`.\n","$ref":"#/components/schemas/team-locator"}}},"grant-already_exists":{"description":"An unrevoked grant with this principal and relation already exists on the project\n\nError code: grant.already_exists\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"grant.already_exists"}},"required":["code"]}]},"grant-invalid":{"description":"The grant request is invalid\n\nError code: grant.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"grant.invalid"}},"required":["code"]}]},"grant-not_found":{"description":"Grant not found\n\nError code: grant.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"grant.not_found"}},"required":["code"]}]},"grant-permission_denied":{"description":"Insufficient permissions to manage grants\n\nError code: grant.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"grant.permission_denied"}},"required":["code"]}]},"grant-principal_not_found":{"description":"The principal could not be resolved\n\nError code: grant.principal_not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"grant.principal_not_found"}},"required":["code"]}]},"grant-project_unclaimed":{"description":"Claim the project before granting access to it\n\nError code: grant.project_unclaimed\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"grant.project_unclaimed"}},"required":["code"]}]},"grant-user":{"title":"GrantUser","description":"The user who holds this grant. Always a user-ref (`user_id`, never `id`).\n`expand: [\"principal\"]` adds the User envelope fields `schema`,\n`attributes` and `metadata` on this same object. A missing user degrades to\n`user_id` only, with or without expand.\n","allOf":[{"$ref":"#/components/schemas/user-ref"},{"type":"object","properties":{"schema":{"type":"string","description":"The schema that defines `attributes`. Present only when the request\nasked for `expand: [\"principal\"]` and the user could be loaded.\n"},"attributes":{"description":"Present only when the request asked for `expand: [\"principal\"]` and\nthe user could be loaded.\n","$ref":"#/components/schemas/user-attributes"},"metadata":{"description":"Server-owned user envelope. Present only when the request asked\nfor `expand: [\"principal\"]` and the user could be loaded. Grant\nexpand does not populate `lifecycle_owner_team`.\n","$ref":"#/components/schemas/user-metadata"}}}]},"grant-team":{"title":"GrantTeam","description":"The team that holds this grant. Always a team-ref (`team_id`, never `id`).\n`expand: [\"principal\"]` adds `status`, `created_at` and `updated_at` on\nthis same object. A missing team degrades to `team_id` only, with or\nwithout expand.\n","allOf":[{"$ref":"#/components/schemas/team-ref"},{"type":"object","properties":{"status":{"$ref":"#/components/schemas/team-status","description":"Team lifecycle. Present only when the request asked for\n`expand: [\"principal\"]` and the team could be loaded.\n"},"created_at":{"type":"string","format":"date-time","description":"When the team was created. Present only when expand loaded the team.\n"},"updated_at":{"type":"string","format":"date-time","description":"When the team was last updated. Present only when expand loaded the team.\n"}}}]},"grant":{"title":"Grant","description":"A collaboration grant: it gives a user or a team a role on a project.\nCheck which of `user` or `team` is present. Those objects are always refs\n(`user_id` / `team_id`); expand adds extra fields on the same object rather\nthan a sibling.\n","type":"object","required":["id","project_id","object_type","relation","created_at"],"properties":{"id":{"type":"string","description":"Managed assignment id (`asgn_<opaque>`)."},"project_id":{"type":"string","description":"The project this grant is scoped to."},"object_type":{"type":"string","enum":["project"],"description":"The type of object the role applies to. Always `project` for this API."},"relation":{"type":"string","enum":["viewer","editor","admin"],"description":"The role on the project."},"created_at":{"type":"string","format":"date-time","description":"When the grant was created."},"expires_at":{"description":"When the grant expires. Null when it does not expire. GET still\nreturns expired unrevoked grants; authorization ignores them.\n","oneOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"user":{"description":"Present on a user grant. Omit on a team grant. Always a user-ref\n(`user_id`); expand adds envelope fields on this same object.\n","$ref":"#/components/schemas/grant-user"},"team":{"description":"Present on a team grant. Omit on a user grant. Always a team-ref\n(`team_id`); expand adds envelope fields on this same object.\n","$ref":"#/components/schemas/grant-team"}}},"grant-expand":{"type":"string","description":"Ask for extra fields on the bound user or team. Those extras land on\n`user` or `team` themselves; there is no sibling `principal` object.\n\n`principal` adds `schema`, `attributes`, and `metadata` on `user`, or\n`status`, `created_at`, and `updated_at` on `team`. The id (`user_id` /\n`team_id`) is always present. If the user or team cannot be loaded, the\nobject stays id-only — the same shape as not expanding.\n\nExpanding requires read on the whole of the principal's home project (the\nplatform project when the server has one), checked once per home project.\nA project secret of another project never has it, and a session has it\nonly with a grant that covers the whole of that project. A caller without\nit gets 403 `user.permission_denied`; extras\nare never omitted silently. An access token issued for a person also needs\nthe scope `user.read`, and gets 403 `auth.scope_insufficient` without it. Without `expand`, every caller who may read\nthe grants sees `user_id`, `identifier` and `display`, or the team's\n`name`.\n","enum":["principal"]},"grant-sorting-field":{"type":"string","description":"Field to sort grants by. Default is `created_at` ascending with `id` as\nthe tiebreaker.\n","enum":["created_at","expires_at","id"]},"grant-filter-field":{"type":"string","description":"Field to filter grants by:\n- `created_at`: RFC3339 timestamp\n- `user_id`: user principal id (`user_<opaque>`)\n- `team_id`: team principal id (`team_<opaque>`)\n- `relation`: `viewer`, `editor`, or `admin`\n- `expires_at`: RFC3339 timestamp (null when the grant does not expire)\n","enum":["created_at","user_id","team_id","relation","expires_at"]},"query-grants-request":{"type":"object","description":"Request to query the grants of a project.","properties":{"limit":{"$ref":"#/components/schemas/limit"},"page_token":{"description":"Token to retrieve the next page of results. Must be sent with the same\n`sorting` as the request that issued the token. Omitting `sorting` reuses\nthe default sort and only succeeds when that default matches the token.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]},"expand":{"type":"array","description":"Extra principal fields to add onto each grant's `user` or `team`. Omit\nit and those objects stay refs. An unrecognised value is rejected.\n","uniqueItems":true,"items":{"$ref":"#/components/schemas/grant-expand"}},"sorting":{"type":"object","required":["field","direction"],"properties":{"field":{"$ref":"#/components/schemas/grant-sorting-field","description":"The field to sort by."},"direction":{"$ref":"#/components/schemas/sort-direction","description":"The direction to sort by."}}},"filter":{"type":"array","description":"Filter criteria for querying grants. Combined with AND.","items":{"type":"object","required":["field","operation"],"properties":{"field":{"$ref":"#/components/schemas/grant-filter-field","description":"The field to filter by."},"value":{"$ref":"#/components/schemas/filter-value"},"operation":{"$ref":"#/components/schemas/filter-operation"}}}}}},"query-grants-response":{"type":"object","description":"Paginated list of grants.","required":["grants"],"properties":{"grants":{"type":"array","items":{"$ref":"#/components/schemas/grant"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results. The follow-up request must repeat the\nsame `sorting` that produced this token (omit only when both pages use the default).\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"invitation-status":{"title":"InvitationStatus","type":"string","enum":["pending","accepted","rejected","expired"],"description":"Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n"},"invitation-expand":{"type":"string","description":"A related object to embed on each returned invitation.\n\n- `inviter`: the user who created the invitation, as `inviter`, a user\n  reference. It is null when a project secret created the invitation. The\n  property is omitted when not requested.\n\n  It needs no permission beyond listing: like the user on a grant, the\n  reference carries only `user_id`, `identifier` and `display`, never the\n  user's record.\n","enum":["inviter"]},"inv-not_found":{"description":"Invitation not found\n\nError code: inv.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"inv.not_found"}},"required":["code"]}]},"inv-permission_denied":{"description":"Insufficient permissions to manage invitations\n\nError code: inv.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"inv.permission_denied"}},"required":["code"]}]},"invitation-id":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","x-zitadel-pattern-message":"must be one or more letters, digits, _ or -","description":"The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n","example":"inv_01JD3B7K2M9P4R6T8V0X2Z4C6E"},"invitation-metadata":{"title":"InvitationMetadata","description":"What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n","type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"A display name for who the invitation is intended for.","example":"John Doe"}}},"invitation-created-by-type":{"title":"InvitationCreatedByType","description":"What kind of principal `created_by` names.","oneOf":[{"type":"string","enum":["human","service","system","agent"]},{"type":"null"}],"example":"human"},"invitation-common":{"title":"InvitationCommon","description":"Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n","type":"object","required":["id","project_id","status","created_at","expires_at","journey_id"],"properties":{"id":{"$ref":"#/components/schemas/invitation-id"},"project_id":{"$ref":"#/components/schemas/project-id"},"metadata":{"description":"Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n","oneOf":[{"$ref":"#/components/schemas/invitation-metadata"},{"type":"null"}]},"status":{"$ref":"#/components/schemas/invitation-status"},"created_by":{"description":"The user who created the invitation. Null when a project secret created\nit (`created_by_type` is then `service`).\n","oneOf":[{"type":"string","example":"user_01JC9X3N5Q7S9U1W3Y5A7C9E1G"},{"type":"null"}]},"created_by_type":{"$ref":"#/components/schemas/invitation-created-by-type"},"created_at":{"type":"string","format":"date-time","description":"When the invitation was created.","example":"2026-11-04T10:00:00Z"},"expires_at":{"type":"string","format":"date-time","description":"When the invitation expires (72 hours after create).","example":"2026-11-07T10:00:00Z"},"journey_id":{"type":"string","minLength":1,"description":"Correlates this invitation with its replacements. A replacement keeps the\noriginal's `journey_id`. It is a random correlation id, not a resource id.\n","example":"q7Z0bX2rT1aM4cV8nL5wYg"},"responded_by":{"description":"The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n","oneOf":[{"type":"string","example":"user_01JD4F2H6K8M0P2R4T6V8X0Z2B"},{"type":"null"}]},"responded_at":{"description":"When the invitation was accepted or declined. Null while it is pending or\nexpired.\n","oneOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"inviter":{"description":"The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n","oneOf":[{"$ref":"#/components/schemas/user-ref"},{"type":"null"}]}}},"invitation-project-member-payload":{"title":"ProjectMemberInvitationPayload","description":"Type-specific input for a `project_member` invitation.","type":"object","required":["relation"],"properties":{"relation":{"type":"string","enum":["viewer","editor","admin"],"description":"The project role the accepter receives, as in `POST /grants`."}}},"invitation-project-member":{"title":"ProjectMemberInvitation","description":"An invitation that grants a project role (`viewer`, `editor` or `admin`) to\nwhoever redeems its link.\n","allOf":[{"$ref":"#/components/schemas/invitation-common"},{"type":"object","required":["type","project_member"],"properties":{"type":{"type":"string","enum":["project_member"]},"project_member":{"$ref":"#/components/schemas/invitation-project-member-payload"}}}]},"invitation-team-member-payload":{"title":"TeamMemberInvitationPayload","description":"Type-specific input for a `team_member` invitation.","type":"object","required":["team_id","role"],"properties":{"team_id":{"$ref":"#/components/schemas/team-id"},"role":{"type":"string","enum":["member"],"description":"The team role the accepter receives."}}},"invitation-team-member":{"title":"TeamMemberInvitation","description":"An invitation that adds the accepter to a team. Declared now so the contract\ndoes not change when team invitations ship; creating one answers `501`\n`not_implemented` until then.\n","allOf":[{"$ref":"#/components/schemas/invitation-common"},{"type":"object","required":["type","team_member"],"properties":{"type":{"type":"string","enum":["team_member"]},"team_member":{"$ref":"#/components/schemas/invitation-team-member-payload"}}}]},"invitation":{"title":"Invitation","description":"An invitation is a link, valid for 72 hours, that grants a role to whoever\nredeems it. Discriminate on `type`; the object named after the type holds\neverything specific to that type.\n","oneOf":[{"$ref":"#/components/schemas/invitation-project-member"},{"$ref":"#/components/schemas/invitation-team-member"}],"discriminator":{"propertyName":"type","mapping":{"project_member":"#/components/schemas/invitation-project-member","team_member":"#/components/schemas/invitation-team-member"}}},"list-invitations-response":{"title":"ListInvitationsResponse","description":"A page of a project's invitations, newest first.","type":"object","required":["invitations"],"properties":{"invitations":{"type":"array","items":{"$ref":"#/components/schemas/invitation"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"create-invitation-common":{"title":"CreateInvitationCommon","description":"Shared optional fields on every create-invitation request.","type":"object","properties":{"metadata":{"description":"Optional label for who the link is for. Displayed only; never matched.","$ref":"#/components/schemas/invitation-metadata"},"replaces_invitation_id":{"description":"When set, this create replaces that invitation: the new invitation keeps\nthe original's `journey_id` and, without `metadata` of its own, the\noriginal's metadata. The original is deleted in the same transaction. An\naccepted invitation cannot be replaced. Use the `id` that\n`createInvitation` (`POST /invitations`) or `listInvitations`\n(`GET /invitations`) returns.\n","$ref":"#/components/schemas/invitation-id"}}},"create-invitation-project-member-request":{"title":"CreateProjectMemberInvitationRequest","description":"Creates a project-member invitation, or replaces an existing one.","allOf":[{"$ref":"#/components/schemas/create-invitation-common"},{"type":"object","required":["type","project_member"],"properties":{"type":{"type":"string","enum":["project_member"]},"project_member":{"$ref":"#/components/schemas/invitation-project-member-payload"}}}]},"create-invitation-team-member-request":{"title":"CreateTeamMemberInvitationRequest","description":"Creates a team-member invitation. Declared now; creating one answers `501`\n`not_implemented` until team invitations ship.\n","allOf":[{"$ref":"#/components/schemas/create-invitation-common"},{"type":"object","required":["type","team_member"],"properties":{"type":{"type":"string","enum":["team_member"]},"team_member":{"$ref":"#/components/schemas/invitation-team-member-payload"}}}]},"create-invitation-request":{"title":"CreateInvitationRequest","description":"Creates an invitation. Discriminate on `type`. Optional `metadata` labels who\nthe link is for. Optional `replaces_invitation_id` replaces an existing\ninvitation in the same create.\n","oneOf":[{"$ref":"#/components/schemas/create-invitation-project-member-request"},{"$ref":"#/components/schemas/create-invitation-team-member-request"}],"discriminator":{"propertyName":"type","mapping":{"project_member":"#/components/schemas/create-invitation-project-member-request","team_member":"#/components/schemas/create-invitation-team-member-request"}}},"inv-invalid":{"description":"The invitation request is invalid\n\nError code: inv.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"inv.invalid"}},"required":["code"]}]},"inv-pending_limit":{"description":"The project has reached its pending invitation limit\n\nError code: inv.pending_limit\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"inv.pending_limit"}},"required":["code"]}]},"inv-platform_required":{"description":"Invitations require a platform project\n\nError code: inv.platform_required\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"inv.platform_required"}},"required":["code"]}]},"inv-project_unclaimed":{"description":"Claim the project before inviting into it\n\nError code: inv.project_unclaimed\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"inv.project_unclaimed"}},"required":["code"]}]},"create-invitation-project-member-response":{"title":"CreateProjectMemberInvitationResponse","description":"The created project-member invitation and its one-shot link. Only this\nresponse returns the link; later reads never include it.\n","allOf":[{"$ref":"#/components/schemas/invitation-project-member"},{"type":"object","required":["link"],"properties":{"link":{"type":"string","description":"The browser URL to share. It carries the redeem token in the fragment.\nOnly this create or replace response returns it.\n","example":"https://console.example.com/invitations/accept#token=dGhpc2lzYXRva2Vu"}}}]},"create-invitation-team-member-response":{"title":"CreateTeamMemberInvitationResponse","description":"The created team-member invitation and its one-shot link. Creating a\nteam-member invitation answers `501` until team invitations ship.\n","allOf":[{"$ref":"#/components/schemas/invitation-team-member"},{"type":"object","required":["link"],"properties":{"link":{"type":"string","description":"The browser URL to share. It carries the redeem token in the fragment.\nOnly this create or replace response returns it.\n"}}}]},"create-invitation-response":{"title":"CreateInvitationResponse","description":"The created invitation and its one-shot `link`. Discriminate on `type`.\n","oneOf":[{"$ref":"#/components/schemas/create-invitation-project-member-response"},{"$ref":"#/components/schemas/create-invitation-team-member-response"}],"discriminator":{"propertyName":"type","mapping":{"project_member":"#/components/schemas/create-invitation-project-member-response","team_member":"#/components/schemas/create-invitation-team-member-response"}}},"invitation-token-request":{"title":"InvitationTokenRequest","description":"The redeem token from an invitation link's fragment.","type":"object","required":["token"],"properties":{"token":{"type":"string","minLength":1,"description":"The plaintext token from the invitation link fragment. It never appears in\na URL query. Every unknown or finished token gets the same `404`.\n"}}},"invitation-lookup-common":{"title":"LookupInvitationCommon","description":"Shared fields of the lean invitation view for the accept page.\n","type":"object","required":["project_id","project_name","status","expires_at"],"properties":{"project_id":{"$ref":"#/components/schemas/project-id"},"project_name":{"type":"string","description":"The project's display name."},"created_by":{"description":"The user who created the invitation. Null when a project secret created it.\n","oneOf":[{"type":"string","example":"user_01JC9X3N5Q7S9U1W3Y5A7C9E1G"},{"type":"null"}]},"created_by_type":{"$ref":"#/components/schemas/invitation-created-by-type"},"inviter":{"description":"The user who created the invitation, resolved so the accept page can\nname them: render `display`, falling back to `identifier`, then\n`user_id`. Null when a project secret created it.\n","oneOf":[{"$ref":"#/components/schemas/user-ref"},{"type":"null"}]},"expires_at":{"type":"string","format":"date-time","description":"When the invitation expires."},"status":{"$ref":"#/components/schemas/invitation-status"}}},"invitation-lookup-membership":{"title":"LookupInvitationMembership","description":"The access the signed-in user already has to the project.\n","type":"object","required":["relation"],"properties":{"relation":{"type":"string","enum":["viewer","editor","admin"],"description":"The user's strongest role on the project, by any path: a grant to them\nor to a team they're in, the owning team, or operating the deployment.\nA stronger role includes the weaker ones.\n"}}},"invitation-lookup-project-member-response":{"title":"LookupProjectMemberInvitationResponse","description":"Lean view of a project-member invitation for the accept page: project, role,\ninviter and expiry.\n","allOf":[{"$ref":"#/components/schemas/invitation-lookup-common"},{"type":"object","required":["type","project_member"],"properties":{"type":{"type":"string","enum":["project_member"]},"project_member":{"$ref":"#/components/schemas/invitation-project-member-payload"},"membership":{"description":"The access the signed-in user already has to the project. A user\nwith access can neither accept nor decline the invitation: both\nanswer `409 inv.already_member` and leave it pending for the person\nit was meant for. Its inviter gets `inv.self_accept` or\n`inv.self_reject` instead. Null when the user has no access.\n","oneOf":[{"$ref":"#/components/schemas/invitation-lookup-membership"},{"type":"null"}]}}}]},"invitation-lookup-team-member-response":{"title":"LookupTeamMemberInvitationResponse","description":"Lean view of a team-member invitation for the accept page: project, team role,\ninviter and expiry.\n","allOf":[{"$ref":"#/components/schemas/invitation-lookup-common"},{"type":"object","required":["type","team_member"],"properties":{"type":{"type":"string","enum":["team_member"]},"team_member":{"$ref":"#/components/schemas/invitation-team-member-payload"}}}]},"invitation-lookup-response":{"title":"LookupInvitationResponse","description":"Lean invitation view for the signed-in accept page. Discriminate on `type`.\nUnknown and finished tokens answer the same opaque `404`.\n","oneOf":[{"$ref":"#/components/schemas/invitation-lookup-project-member-response"},{"$ref":"#/components/schemas/invitation-lookup-team-member-response"}],"discriminator":{"propertyName":"type","mapping":{"project_member":"#/components/schemas/invitation-lookup-project-member-response","team_member":"#/components/schemas/invitation-lookup-team-member-response"}}},"inv-already_member":{"description":"You already have access to this project\n\nError code: inv.already_member\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"inv.already_member"}},"required":["code"]}]},"inv-inviter_not_admin":{"description":"The inviter no longer administers the project\n\nError code: inv.inviter_not_admin\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"inv.inviter_not_admin"}},"required":["code"]}]},"inv-self_accept":{"description":"The inviter cannot accept their own invitation\n\nError code: inv.self_accept\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"inv.self_accept"}},"required":["code"]}]},"inv-self_reject":{"description":"The inviter cannot decline their own invitation\n\nError code: inv.self_reject\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"inv.self_reject"}},"required":["code"]}]},"evt-not_found":{"description":"Event: not found\n\nError code: evt.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"evt.not_found"}},"required":["code"]}]},"evt-permission_denied":{"description":"Event: permission denied\n\nError code: evt.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"evt.permission_denied"}},"required":["code"]}]},"event-metadata":{"type":"object","description":"Metadata the server records when it emits the event, already redacted when\nwritten. An event from an API request (`request.api`) may set `client`\n(`ip`, `user_agent`, `origin`), so a SIEM can join it on `request_id`. It is\nnot a live risk-evaluator input.\n","additionalProperties":true,"properties":{"authorization":{"description":"What authorized the request, when it was not a grant on the event's\nproject. Every event of such a request carries it.\n","type":"object","additionalProperties":false,"required":["path"],"properties":{"path":{"type":"string","description":"`platform_operator`: the deployment's platform operator relation,\nwhich administers every project.\n\n`owning_team_recovery`: an admin of the platform project added a\nmember to a team that owns a project and had no active member, on\na deployment that names no platform operator\n([ADR 054](https://github.com/zitadel/nextgen/blob/main/docs/adrs/054-customer-collaboration-grants.md) §8).\n","enum":["platform_operator","owning_team_recovery"]},"actor_home_project_id":{"type":"string","description":"The project the actor's user belongs to."}}},"trace_id":{"type":"string","description":"The OpenTelemetry trace ID of the request, set only on events from an\nAPI request (`request.api`) whose trace was sampled. It leads from the\nevent to the request's trace in the operator's tracing backend. It is\nobserved context, not a filter: `correlation_id` and `request_id`\ncorrelate events.\n"},"invoked_by":{"type":"string","description":"What made the request for its caller, when the server made it and no\nclient sent it to the API itself, set only on events from an API\nrequest (`request.api`). `mcp`: a tool call on the MCP endpoint\n(`/api/v1/mcp`), which the endpoint sends as the operation's own\nrequest. Absent on a request a client sent directly, so the same\ncredential's calls through an agent and its direct calls can be told\napart. The server sets it; no header does. It is not a filter. Values\ntoday: `mcp`. A later server may record another surface, so a reader\nkeeps a value it does not know rather than refusing the event.\n"},"client":{"description":"The observed HTTP requestor context, set only on events from an API request (`request.api`).","type":"object","additionalProperties":false,"properties":{"ip":{"type":"string","description":"The client IP, from the first `X-Forwarded-For` hop or the remote\naddress. Answered only to an admin of the event's project, as a\nsession's IP is; absent for anyone else.\n"},"user_agent":{"type":"string","description":"The observed `User-Agent` header. Answered only to an admin of the\nevent's project, as a session's user agent is; absent for anyone\nelse.\n"},"origin":{"type":"string","description":"The `Origin` header, when present."}}}}},"event-base":{"type":"object","description":"The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n","required":["id","project_id","event_type","category","occurred_at","created_at","client_id"],"properties":{"id":{"type":"string","description":"The event ID, in the form `evt_<opaque>`.","example":"evt_01HZYABCDEFGHJKMNPQRSTVWXY"},"project_id":{"$ref":"#/components/schemas/project-id"},"team_id":{"description":"The team the actor operated under when the event was emitted, if any.","oneOf":[{"type":"string"},{"type":"null"}]},"event_type":{"type":"string","description":"The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n"},"category":{"type":"string","description":"The category of the event.","enum":["request","auth","session","admin","entity","signal","policy"],"example":"entity"},"occurred_at":{"type":"string","format":"date-time","x-ogen-time-format":"2006-01-02T15:04:05.999Z07:00","description":"When the action happened, on the server's clock, to the millisecond.\n"},"created_at":{"type":"string","format":"date-time","x-ogen-time-format":"2006-01-02T15:04:05.999Z07:00","description":"When the event was stored, on the server's clock, to the millisecond.\n"},"actor_id":{"description":"The ID of the actor that triggered the event.","oneOf":[{"type":"string"},{"type":"null"}]},"actor_type":{"description":"The kind of actor that triggered the event.","oneOf":[{"type":"string","enum":["human","service","system","agent"]},{"type":"null"}]},"entity_type":{"description":"The type of resource the event affected.","oneOf":[{"type":"string"},{"type":"null"}]},"entity_id":{"description":"The ID of the resource the event affected.","oneOf":[{"type":"string"},{"type":"null"}]},"user_id":{"description":"The ID of the user the event concerns, whoever triggered it: the user a\nsession, a token, a sign-in check or a credential belongs to, or the\nuser a change was made to. Absent on an event that concerns no user.\n","oneOf":[{"type":"string"},{"type":"null"}]},"client_id":{"type":"string","description":"The application or agent that produced the event."},"token_id":{"type":"string","description":"The ID of the token in use when the event was emitted, when there was one."},"delegation_type":{"type":"string","description":"The kind of delegation. Absent when unset.","enum":["direct","delegated","pat_shared","exchanged"]},"delegation_id":{"type":"string"},"grantor":{"type":"string"},"fingerprint":{"type":"string","description":"A device fingerprint ID that correlates events from the same device."},"request_id":{"description":"The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n","oneOf":[{"type":"string"},{"type":"null"}]},"session_id":{"description":"The ID of the session the event belongs to.","oneOf":[{"type":"string"},{"type":"null"}]},"flow_id":{"description":"An ID that correlates the events of one login flow.","oneOf":[{"type":"string"},{"type":"null"}]},"correlation_id":{"description":"An ID that correlates the events of one chain: the requests that one\npiece of work took, whoever sent them. A sign-in shares it from the\nOAuth authorization request or the first step of the login flow to the\nsession and the token it ends with. An invitation shares it with its\nreplacements and its answer, and a project claim from its start to its\ncompletion. The server assigns it and never reads it from a request.\nAbsent on an event whose request is the whole of its work; `request_id`\ncorrelates those.\n","oneOf":[{"type":"string"},{"type":"null"}]},"metadata":{"$ref":"#/components/schemas/event-metadata"}}},"application-payload":{"title":"ApplicationPayload","type":"object","description":"Payload for `application.created`, which holds every field, and\n`application.updated`, which holds the new `revision_id`, `name` when it\nchanged, and `client_ids` when the revision added a client.\n`application.client_secret.rotated` holds the `client_ids` whose secrets\nwere replaced, the newest `revision_id`, and `previous_secrets_end_at`.\nThe application ID is the event's `entity_id`, and who replaced the\nsecrets is its actor. The application document and the client secrets\nare never included.\n","required":["revision_id"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"client_ids":{"type":"array","description":"The `client_id` of each client the write created. A registered\napplication's new client got a new secret; a declared one's names the\nvariable holding its secret. For `application.client_secret.rotated`,\nthe clients whose secrets were replaced.\n","items":{"type":"string"}},"revision_id":{"type":"string","description":"The revision the write appended. For\n`application.client_secret.rotated`, the newest revision, which the\nrotation did not change.\n"},"previous_secrets_end_at":{"type":"string","format":"date-time","description":"For `application.client_secret.rotated`, when the last of the secrets\nthe clients held before stops working: the time of the rotation when\nthey were revoked, 24 hours after the new secret was stored when they\nwere kept.\n"}}},"application-client_secret-rotated-event":{"title":"ApplicationClientSecretRotatedEvent","description":"An event of type application.client_secret.rotated, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"application.client_secret.rotated"},"payload":{"$ref":"#/components/schemas/application-payload"}}}]},"application-created-event":{"title":"ApplicationCreatedEvent","description":"An event of type application.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"application.created"},"payload":{"$ref":"#/components/schemas/application-payload"}}}]},"application-updated-event":{"title":"ApplicationUpdatedEvent","description":"An event of type application.updated, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"application.updated"},"payload":{"$ref":"#/components/schemas/application-payload"}}}]},"empty-event-payload":{"title":"EmptyEventPayload","type":"object","description":"Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n","additionalProperties":false},"auth-attempt-created-event":{"title":"AuthAttemptCreatedEvent","description":"An event of type auth.attempt.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"auth.attempt.created"},"payload":{"$ref":"#/components/schemas/empty-event-payload"}}}]},"auth-attempt-handed_off-event":{"title":"AuthAttemptHandedOffEvent","description":"An event of type auth.attempt.handed_off, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"auth.attempt.handed_off"},"payload":{"$ref":"#/components/schemas/empty-event-payload"}}}]},"auth-check-payload":{"title":"AuthCheckPayload","type":"object","description":"Payload for `auth.check.failed`, `auth.check.succeeded`,\n`auth.sso.authorization.failed`, `auth.sso.exchange.failed` and\n`auth.sso.exchange.succeeded`.\n`auth_attempt_id` joins the check to its authentication attempt, so a SIEM\ntool can correlate them.\n","required":["check_id"],"properties":{"check_id":{"type":"string"},"check_type":{"type":"string"},"auth_attempt_id":{"type":"string"}}},"auth-check-failed-event":{"title":"AuthCheckFailedEvent","description":"An event of type auth.check.failed, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"auth.check.failed"},"payload":{"$ref":"#/components/schemas/auth-check-payload"}}}]},"auth-check-succeeded-event":{"title":"AuthCheckSucceededEvent","description":"An event of type auth.check.succeeded, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"auth.check.succeeded"},"payload":{"$ref":"#/components/schemas/auth-check-payload"}}}]},"auth-factor-payload":{"title":"AuthFactorPayload","type":"object","description":"Payload for `auth.factor.*` events.","required":["user_id"],"properties":{"user_id":{"type":"string"},"factor_id":{"type":"string"}}},"auth-factor-passkey-enrolled-event":{"title":"AuthFactorPasskeyEnrolledEvent","description":"An event of type auth.factor.passkey.enrolled, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"auth.factor.passkey.enrolled"},"payload":{"$ref":"#/components/schemas/auth-factor-payload"}}}]},"auth-factor-password-set-event":{"title":"AuthFactorPasswordSetEvent","description":"An event of type auth.factor.password.set, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"auth.factor.password.set"},"payload":{"$ref":"#/components/schemas/auth-factor-payload"}}}]},"auth-request-created-payload":{"title":"AuthRequestCreatedPayload","type":"object","description":"Payload for `auth.request.created` events.","required":["client_id"],"properties":{"client_id":{"type":"string"}}},"auth-request-created-event":{"title":"AuthRequestCreatedEvent","description":"An event of type auth.request.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"auth.request.created"},"payload":{"$ref":"#/components/schemas/auth-request-created-payload"}}}]},"auth-request-exchange-failed-payload":{"title":"AuthRequestExchangeFailedPayload","type":"object","description":"Payload for `auth.request.exchange.failed` events. The code, the\n`code_verifier` and the `redirect_uri` the client sent stay out.\n","required":["client_id","reason"],"properties":{"client_id":{"type":"string","description":"The client that presented the code."},"reason":{"type":"string","description":"The check that refused the code.","enum":["client_mismatch","code_expired","redirect_uri_mismatch","code_verifier_missing","code_verifier_invalid","code_verifier_unexpected","resource_mismatch","release_revoked","session_not_active","user_not_active"]}}},"auth-request-exchange-failed-event":{"title":"AuthRequestExchangeFailedEvent","description":"An event of type auth.request.exchange.failed, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"auth.request.exchange.failed"},"payload":{"$ref":"#/components/schemas/auth-request-exchange-failed-payload"}}}]},"auth-sso-authorization-failed-event":{"title":"AuthSsoAuthorizationFailedEvent","description":"An event of type auth.sso.authorization.failed, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"auth.sso.authorization.failed"},"payload":{"$ref":"#/components/schemas/auth-check-payload"}}}]},"auth-sso-exchange-failed-event":{"title":"AuthSsoExchangeFailedEvent","description":"An event of type auth.sso.exchange.failed, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"auth.sso.exchange.failed"},"payload":{"$ref":"#/components/schemas/auth-check-payload"}}}]},"auth-sso-exchange-succeeded-event":{"title":"AuthSsoExchangeSucceededEvent","description":"An event of type auth.sso.exchange.succeeded, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"auth.sso.exchange.succeeded"},"payload":{"$ref":"#/components/schemas/auth-check-payload"}}}]},"auth-token-issued-payload":{"title":"AuthTokenIssuedPayload","type":"object","description":"Payload for `auth.token.issued` events.","properties":{"scopes":{"type":"array","items":{"type":"string"}},"client_id":{"type":"string","description":"The client the token was issued to, for a token an authorization code or a refresh token was exchanged for. No other token has it."},"type":{"type":"string","enum":["personal_access_token"],"description":"The kind of token, for a personal access token. No other token has it."},"expires_at":{"type":"string","format":"date-time","description":"When a personal access token stops working. No other token has it."}}},"auth-token-issued-event":{"title":"AuthTokenIssuedEvent","description":"An event of type auth.token.issued, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"auth.token.issued"},"payload":{"$ref":"#/components/schemas/auth-token-issued-payload"}}}]},"auth-token-revoked-payload":{"title":"AuthTokenRevokedPayload","type":"object","description":"Payload for `auth.token.revoked` events. Empty for one revoked token and for\na session's tokens. When setting a person's password ended their personal\naccess tokens, one event stands for all of them and says so.\n","properties":{"reason":{"type":"string","enum":["password_set"],"description":"Why the tokens ended, for personal access tokens a password set ended. No other event has it."},"type":{"type":"string","enum":["personal_access_token"],"description":"The kind of token that ended, with `reason`."},"count":{"type":"integer","format":"int64","minimum":1,"description":"How many tokens that had not expired ended, with `reason`."}}},"auth-token-revoked-event":{"title":"AuthTokenRevokedEvent","description":"An event of type auth.token.revoked, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"auth.token.revoked"},"payload":{"$ref":"#/components/schemas/auth-token-revoked-payload"}}}]},"authz-granted-payload":{"title":"AuthzGrantedPayload","type":"object","description":"Payload for `authz.granted` events.","properties":{"principal_type":{"type":"string"},"principal_id":{"type":"string"},"relation":{"type":"string"}}},"authz-granted-event":{"title":"AuthzGrantedEvent","description":"An event of type authz.granted, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"authz.granted"},"payload":{"$ref":"#/components/schemas/authz-granted-payload"}}}]},"authz-revoked-event":{"title":"AuthzRevokedEvent","description":"An event of type authz.revoked, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"authz.revoked"},"payload":{"$ref":"#/components/schemas/authz-granted-payload"}}}]},"branding-created-payload":{"title":"BrandingCreatedPayload","type":"object","description":"Payload for `branding.created`. It holds only the fields listed here and\nleaves out `liquid_template`.\n","properties":{"layout":{"type":"string"},"logo_url":{"type":"string"},"font_url":{"type":"string"},"hero_url":{"type":"string"}}},"branding-created-event":{"title":"BrandingCreatedEvent","description":"An event of type branding.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"branding.created"},"payload":{"$ref":"#/components/schemas/branding-created-payload"}}}]},"deployment-created-payload":{"title":"DeploymentCreatedPayload","type":"object","description":"Payload for `deployment.created`. The deployment ID is the event's\n`entity_id`; the fields here say which release went live on which origins.\n","properties":{"release_id":{"type":"string"},"targets":{"type":"array","description":"The origins the release went live on, sorted.","items":{"type":"string"}},"reason":{"type":"string"},"message":{"type":"string"},"rollback_to":{"type":"string"}}},"deployment-created-event":{"title":"DeploymentCreatedEvent","description":"An event of type deployment.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"deployment.created"},"payload":{"$ref":"#/components/schemas/deployment-created-payload"}}}]},"flow-signup_challenge-consumed-event":{"title":"FlowSignupChallengeConsumedEvent","description":"An event of type flow.signup_challenge.consumed, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"flow.signup_challenge.consumed"},"payload":{"$ref":"#/components/schemas/empty-event-payload"}}}]},"flow-signup_challenge-issued-event":{"title":"FlowSignupChallengeIssuedEvent","description":"An event of type flow.signup_challenge.issued, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"flow.signup_challenge.issued"},"payload":{"$ref":"#/components/schemas/empty-event-payload"}}}]},"flowdef-payload":{"title":"FlowdefPayload","type":"object","description":"Payload for `flowdef.created`: the fields of the created flow definition\nrevision, without its steps. The retired `flowdef.updated` event carries the\nchanged fields in the same shape.\n","properties":{"name":{"type":"string"},"user_schema":{"type":"string"},"purposes":{"type":"object","additionalProperties":{"type":"string"}},"audience":{"type":"object","properties":{"app_ids":{"type":"array","items":{"type":"string"}},"team_ids":{"type":"array","items":{"type":"string"}}}}}},"flowdef-created-event":{"title":"FlowdefCreatedEvent","description":"An event of type flowdef.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"flowdef.created"},"payload":{"$ref":"#/components/schemas/flowdef-payload"}}}]},"flowdef-deleted-event":{"title":"FlowdefDeletedEvent","description":"An event of type flowdef.deleted, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"flowdef.deleted"},"payload":{"$ref":"#/components/schemas/empty-event-payload"}}}]},"flowdef-updated-event":{"title":"FlowdefUpdatedEvent","description":"An event of type flowdef.updated, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"flowdef.updated"},"payload":{"$ref":"#/components/schemas/flowdef-payload"}}}]},"idp-payload":{"title":"IdpPayload","type":"object","description":"Payload for `idp.created`, which holds every field, and `idp.updated`, which\nholds only the changed fields plus the new `revision_id`. The identity\nprovider (IdP) connection ID is the event's `entity_id`. The connection\ndocument, and with it the reference to its `client_secret`, is never\nincluded.\n","required":["revision_id"],"properties":{"slug":{"type":"string"},"protocol":{"type":"string"},"template":{"type":"string","description":"The rendering template hint. On `idp.updated`, the empty string means\nthe revision removed it.\n"},"display_name":{"type":"string"},"revision_id":{"type":"string","description":"The revision the write appended."}}},"idp-created-event":{"title":"IdpCreatedEvent","description":"An event of type idp.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"idp.created"},"payload":{"$ref":"#/components/schemas/idp-payload"}}}]},"idp-identity-link-created-payload":{"title":"IdpIdentityLinkCreatedPayload","type":"object","description":"Payload for `idp.identity_link.created`, sent when a sign-in through an\nidentity provider (IdP) creates a user and links the provider account to it.\nThe link ID is the event's `entity_id`. The provider's subject and claims, the\nprofile data it sends about the account, are never included.\n","required":["connection_id","user_id"],"properties":{"connection_id":{"type":"string","description":"The IdP connection the account signed in through."},"user_id":{"type":"string","description":"The user the provider account is linked to."}}},"idp-identity_link-created-event":{"title":"IdpIdentityLinkCreatedEvent","description":"An event of type idp.identity_link.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"idp.identity_link.created"},"payload":{"$ref":"#/components/schemas/idp-identity-link-created-payload"}}}]},"idp-updated-event":{"title":"IdpUpdatedEvent","description":"An event of type idp.updated, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"idp.updated"},"payload":{"$ref":"#/components/schemas/idp-payload"}}}]},"invitation-accepted-common-payload":{"title":"InvitationAcceptedCommonPayload","description":"Fields every `invitation.accepted` payload carries, whatever its `type`.\n","type":"object","required":["journey_id","user_id"],"properties":{"journey_id":{"type":"string","description":"Shared by an invitation and every invitation that replaces it."},"user_id":{"type":"string"}}},"invitation-accepted-project-member-payload":{"title":"InvitationAcceptedProjectMemberPayload","description":"An `invitation.accepted` payload for a `project_member` invitation.\n","allOf":[{"$ref":"#/components/schemas/invitation-accepted-common-payload"},{"type":"object","required":["type","project_member"],"properties":{"type":{"type":"string","enum":["project_member"]},"project_member":{"$ref":"#/components/schemas/invitation-project-member-payload"}}}]},"invitation-accepted-team-member-payload":{"title":"InvitationAcceptedTeamMemberPayload","description":"An `invitation.accepted` payload for a `team_member` invitation.\n","allOf":[{"$ref":"#/components/schemas/invitation-accepted-common-payload"},{"type":"object","required":["type","team_member"],"properties":{"type":{"type":"string","enum":["team_member"]},"team_member":{"$ref":"#/components/schemas/invitation-team-member-payload"}}}]},"invitation-accepted-payload":{"title":"InvitationAcceptedPayload","description":"Payload for `invitation.accepted`. The invitation ID is the event's\n`entity_id`, and `user_id` is the user who redeemed the link. Discriminate\non `type`; the object named after it says what the invitation granted. Grant\nevents the acceptance writes, such as `authz.granted`, carry this event's\n`request_id`. There are none when the user already holds an identical\nactive grant.\n","oneOf":[{"$ref":"#/components/schemas/invitation-accepted-project-member-payload"},{"$ref":"#/components/schemas/invitation-accepted-team-member-payload"}],"discriminator":{"propertyName":"type","mapping":{"project_member":"#/components/schemas/invitation-accepted-project-member-payload","team_member":"#/components/schemas/invitation-accepted-team-member-payload"}}},"invitation-accepted-event":{"title":"InvitationAcceptedEvent","description":"An event of type invitation.accepted, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"invitation.accepted"},"payload":{"$ref":"#/components/schemas/invitation-accepted-payload"}}}]},"invitation-cancelled-by-administrator-payload":{"title":"InvitationCancelledByAdministratorPayload","description":"An `invitation.cancelled` payload for an invitation an administrator\ncancelled.\n","type":"object","required":["journey_id","reason"],"properties":{"journey_id":{"type":"string","description":"Shared by an invitation and every invitation that replaces it."},"reason":{"type":"string","enum":["cancelled"]}}},"invitation-cancelled-by-replacement-payload":{"title":"InvitationCancelledByReplacementPayload","description":"An `invitation.cancelled` payload for an invitation a replacement\ncancelled.\n","type":"object","required":["journey_id","reason","replaced_by_invitation_id"],"properties":{"journey_id":{"type":"string","description":"Shared by an invitation and every invitation that replaces it."},"reason":{"type":"string","enum":["replaced"]},"replaced_by_invitation_id":{"type":"string","description":"The invitation that replaced this one."}}},"invitation-cancelled-payload":{"title":"InvitationCancelledPayload","description":"Payload for `invitation.cancelled`. The invitation ID is the event's\n`entity_id`. Discriminate on `reason`: `cancelled` when an administrator\ncancelled it, `replaced` when a replacement cancelled it, which then names\nthe replacement in `replaced_by_invitation_id`.\n","oneOf":[{"$ref":"#/components/schemas/invitation-cancelled-by-administrator-payload"},{"$ref":"#/components/schemas/invitation-cancelled-by-replacement-payload"}],"discriminator":{"propertyName":"reason","mapping":{"cancelled":"#/components/schemas/invitation-cancelled-by-administrator-payload","replaced":"#/components/schemas/invitation-cancelled-by-replacement-payload"}}},"invitation-cancelled-event":{"title":"InvitationCancelledEvent","description":"An event of type invitation.cancelled, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"invitation.cancelled"},"payload":{"$ref":"#/components/schemas/invitation-cancelled-payload"}}}]},"invitation-created-common-payload":{"title":"InvitationCreatedCommonPayload","description":"Fields every `invitation.created` payload carries, whatever its `type`.\n","type":"object","required":["journey_id","expires_at"],"properties":{"journey_id":{"type":"string","description":"Shared by an invitation and every invitation that replaces it."},"replaces_invitation_id":{"type":"string","description":"The invitation this one replaces, when it was created as a replacement."},"expires_at":{"type":"string","format":"date-time"}}},"invitation-created-project-member-payload":{"title":"InvitationCreatedProjectMemberPayload","description":"An `invitation.created` payload for a `project_member` invitation.\n","allOf":[{"$ref":"#/components/schemas/invitation-created-common-payload"},{"type":"object","required":["type","project_member"],"properties":{"type":{"type":"string","enum":["project_member"]},"project_member":{"$ref":"#/components/schemas/invitation-project-member-payload"}}}]},"invitation-created-team-member-payload":{"title":"InvitationCreatedTeamMemberPayload","description":"An `invitation.created` payload for a `team_member` invitation.\n","allOf":[{"$ref":"#/components/schemas/invitation-created-common-payload"},{"type":"object","required":["type","team_member"],"properties":{"type":{"type":"string","enum":["team_member"]},"team_member":{"$ref":"#/components/schemas/invitation-team-member-payload"}}}]},"invitation-created-payload":{"title":"InvitationCreatedPayload","description":"Payload for `invitation.created`. The invitation ID is the event's\n`entity_id`. Discriminate on `type`; the object named after it says what\nthe invitation's link grants. The metadata entered at creation and the\nlink's token never appear.\n","oneOf":[{"$ref":"#/components/schemas/invitation-created-project-member-payload"},{"$ref":"#/components/schemas/invitation-created-team-member-payload"}],"discriminator":{"propertyName":"type","mapping":{"project_member":"#/components/schemas/invitation-created-project-member-payload","team_member":"#/components/schemas/invitation-created-team-member-payload"}}},"invitation-created-event":{"title":"InvitationCreatedEvent","description":"An event of type invitation.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"invitation.created"},"payload":{"$ref":"#/components/schemas/invitation-created-payload"}}}]},"invitation-rejected-payload":{"title":"InvitationRejectedPayload","type":"object","description":"Payload for `invitation.rejected`. The invitation ID is the event's\n`entity_id`, and `user_id` is the user who declined it.\n","required":["journey_id","user_id"],"properties":{"journey_id":{"type":"string","description":"Shared by an invitation and every invitation that replaces it."},"user_id":{"type":"string"}}},"invitation-rejected-event":{"title":"InvitationRejectedEvent","description":"An event of type invitation.rejected, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"invitation.rejected"},"payload":{"$ref":"#/components/schemas/invitation-rejected-payload"}}}]},"oauth-settings-created-payload":{"title":"OAuthSettingsCreatedPayload","type":"object","description":"Payload for `oauth_settings.created`: the settings the new revision holds.\nThe revision id is the event's `entity_id`.\n","required":["enabled"],"properties":{"enabled":{"type":"boolean","description":"Whether the project's OAuth authorization server answers."}}},"oauth_settings-created-event":{"title":"OauthSettingsCreatedEvent","description":"An event of type oauth_settings.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"oauth_settings.created"},"payload":{"$ref":"#/components/schemas/oauth-settings-created-payload"}}}]},"origin-payload":{"title":"OriginPayload","type":"object","description":"Payload for `origin.added` and `origin.removed`.\n","required":["pattern","kind"],"properties":{"pattern":{"type":"string"},"kind":{"type":"string","enum":["primary","preview"]}}},"origin-added-event":{"title":"OriginAddedEvent","description":"An event of type origin.added, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"origin.added"},"payload":{"$ref":"#/components/schemas/origin-payload"}}}]},"origin-removed-event":{"title":"OriginRemovedEvent","description":"An event of type origin.removed, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"origin.removed"},"payload":{"$ref":"#/components/schemas/origin-payload"}}}]},"policy-payload":{"title":"PolicyPayload","type":"object","description":"Payload for `policy.created`, the first publish of an operation's policy,\nand `policy.updated`, every later publish. The policy ID is the event's\n`entity_id`. `config` holds the published settings, which are configuration\nvalues, never user data.\n","required":["operation","revision_id","config"],"properties":{"operation":{"type":"string","description":"The operation the policy guards, for example `auth.factor.password.set`."},"revision_id":{"type":"string","description":"The revision the publish appended."},"config":{"type":"object","additionalProperties":true,"description":"The settings as published."}}},"policy-created-event":{"title":"PolicyCreatedEvent","description":"An event of type policy.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"policy.created"},"payload":{"$ref":"#/components/schemas/policy-payload"}}}]},"policy-decision-payload":{"title":"PolicyDecisionPayload","type":"object","description":"Payload for `policy.evaluate.denied` and `policy.evaluate.allowed`, the\ndecision of a project's policy on an operation. The policy ID is the event's\n`entity_id`.\n","required":["operation","revision_id"],"properties":{"operation":{"type":"string","description":"The operation the policy guards, for example `auth.factor.password.set`."},"revision_id":{"type":"string","description":"The policy revision that decided."},"violations":{"type":"object","additionalProperties":true,"description":"On a denial, every failed rule of that revision with the value of its\nsetting. Never a value taken from the request.\n"}}},"policy-evaluate-allowed-event":{"title":"PolicyEvaluateAllowedEvent","description":"An event of type policy.evaluate.allowed, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"policy.evaluate.allowed"},"payload":{"$ref":"#/components/schemas/policy-decision-payload"}}}]},"policy-evaluate-denied-event":{"title":"PolicyEvaluateDeniedEvent","description":"An event of type policy.evaluate.denied, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"policy.evaluate.denied"},"payload":{"$ref":"#/components/schemas/policy-decision-payload"}}}]},"policy-updated-event":{"title":"PolicyUpdatedEvent","description":"An event of type policy.updated, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"policy.updated"},"payload":{"$ref":"#/components/schemas/policy-payload"}}}]},"preview-removed-event":{"title":"PreviewRemovedEvent","description":"An event of type preview.removed, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"preview.removed"},"payload":{"$ref":"#/components/schemas/empty-event-payload"}}}]},"project-payload":{"title":"ProjectPayload","type":"object","description":"Payload for `project.created`, which holds every field, and\n`project.updated`, which holds only the changed fields.\n","properties":{"name":{"type":"string"},"origins":{"type":"array","items":{"$ref":"#/components/schemas/project-origin"}},"password_hash_algorithm":{"type":"string","description":"The password hashing algorithm the project switched to. The empty string\nmeans it was handed back to the server default. Absent when the update\ndid not touch hashing.\n"}}},"project-created-event":{"title":"ProjectCreatedEvent","description":"An event of type project.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"project.created"},"payload":{"$ref":"#/components/schemas/project-payload"}}}]},"project-deleted-event":{"title":"ProjectDeletedEvent","description":"An event of type project.deleted, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"project.deleted"},"payload":{"$ref":"#/components/schemas/empty-event-payload"}}}]},"project-updated-event":{"title":"ProjectUpdatedEvent","description":"An event of type project.updated, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"project.updated"},"payload":{"$ref":"#/components/schemas/project-payload"}}}]},"release-created-payload":{"title":"ReleaseCreatedPayload","type":"object","description":"Payload for `release.created`. The release ID is the event's `entity_id`.\nThe payload repeats the pinned set, the revisions the\n[release](https://preview.zitadel.com/docs/concepts/repo-config) freezes, so the event stream shows\nwhat a release contained without reading the release itself.\n","properties":{"content_hash":{"type":"string"},"message":{"type":"string"},"git_sha":{"type":"string"},"git_dirty":{"type":"boolean"},"pointers":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"handle":{"type":"string"},"revision_id":{"type":"string"}}}}}},"release-created-event":{"title":"ReleaseCreatedEvent","description":"An event of type release.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"release.created"},"payload":{"$ref":"#/components/schemas/release-created-payload"}}}]},"release-revoked-payload":{"title":"ReleaseRevokedPayload","type":"object","description":"Payload for `release.revoked`. The release ID is the event's `entity_id`.\nThe payload repeats the content hash, which is how the CLI prints a\n[release](https://preview.zitadel.com/docs/concepts/repo-config) and how builds pin it.\n","required":["content_hash"],"properties":{"content_hash":{"$ref":"#/components/schemas/release-content-hash"}}},"release-revoked-event":{"title":"ReleaseRevokedEvent","description":"An event of type release.revoked, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"release.revoked"},"payload":{"$ref":"#/components/schemas/release-revoked-payload"}}}]},"request-api-payload":{"title":"RequestAPIPayload","type":"object","description":"Payload for `request.api` events.","required":["operation_id","method","route_template","status","duration_ms"],"properties":{"operation_id":{"type":"string"},"method":{"type":"string","description":"HTTP method.","enum":["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]},"route_template":{"type":"string"},"status":{"type":"integer","minimum":100,"maximum":599},"duration_ms":{"type":"integer","format":"int64","minimum":0}}},"request-api-event":{"title":"RequestAPIEvent","description":"An event of type request.api, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"request.api"},"payload":{"$ref":"#/components/schemas/request-api-payload"}}}]},"schema-created-payload":{"title":"SchemaCreatedPayload","type":"object","description":"Payload for `schema.created`. It leaves out the schema document, which the\ncustomer writes and which has no size bound; the event's `entity_id`\nidentifies the schema that was created.\n","properties":{"kind":{"type":"string","description":"The kind the stored document declares. `unknown` when the schema was\nstored without parsing its document.\n"},"object_type":{"type":"string","description":"The customer-chosen object type the schema describes. Absent when the\ndocument declares none.\n"}}},"schema-created-event":{"title":"SchemaCreatedEvent","description":"An event of type schema.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"schema.created"},"payload":{"$ref":"#/components/schemas/schema-created-payload"}}}]},"session-deleted-payload":{"title":"SessionDeletedPayload","type":"object","description":"Payload for `session.deleted` events.","properties":{"reason":{"type":"string"}}},"session-deleted-event":{"title":"SessionDeletedEvent","description":"An event of type session.deleted, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"session.deleted"},"payload":{"$ref":"#/components/schemas/session-deleted-payload"}}}]},"session-established-payload":{"title":"SessionEstablishedPayload","type":"object","description":"Payload for `session.established` events.","properties":{"user_id":{"type":"string"}}},"session-established-event":{"title":"SessionEstablishedEvent","description":"An event of type session.established, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"session.established"},"payload":{"$ref":"#/components/schemas/session-established-payload"}}}]},"team-payload":{"title":"TeamPayload","type":"object","description":"Payload for `team.created`, which holds every field, and `team.updated`,\nwhich holds only the changed fields.\n","properties":{"name":{"type":"string"}}},"team-created-event":{"title":"TeamCreatedEvent","description":"An event of type team.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"team.created"},"payload":{"$ref":"#/components/schemas/team-payload"}}}]},"team-deactivated-event":{"title":"TeamDeactivatedEvent","description":"An event of type team.deactivated, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"team.deactivated"},"payload":{"$ref":"#/components/schemas/empty-event-payload"}}}]},"team-membership-updated-payload":{"title":"TeamMembershipUpdatedPayload","type":"object","description":"Payload for `team.membership.updated` events.","required":["user_id","team_id","status"],"properties":{"user_id":{"type":"string"},"team_id":{"type":"string"},"status":{"type":"string","enum":["pending","active","inactive","removed"]}}},"team-membership-updated-event":{"title":"TeamMembershipUpdatedEvent","description":"An event of type team.membership.updated, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"team.membership.updated"},"payload":{"$ref":"#/components/schemas/team-membership-updated-payload"}}}]},"team-updated-event":{"title":"TeamUpdatedEvent","description":"An event of type team.updated, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"team.updated"},"payload":{"$ref":"#/components/schemas/team-payload"}}}]},"user-create-failed-payload":{"title":"UserCreateFailedPayload","type":"object","description":"Payload for `user.create.failed` events.","properties":{"key_name":{"type":"string","description":"The name of the unique constraint that was already taken."}}},"user-create-failed-event":{"title":"UserCreateFailedEvent","description":"An event of type user.create.failed, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"user.create.failed"},"payload":{"$ref":"#/components/schemas/user-create-failed-payload"}}}]},"user-created-payload":{"title":"UserCreatedPayload","type":"object","description":"Payload for `user.created`. The user's ID is the event's `entity_id`;\nattribute values appear only for schema fields marked `x-audit`.\n","properties":{"schema_id":{"type":"string"},"attribute_keys":{"type":"array","items":{"type":"string"}},"attributes":{"type":"object","additionalProperties":true}}},"user-created-event":{"title":"UserCreatedEvent","description":"An event of type user.created, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"user.created"},"payload":{"$ref":"#/components/schemas/user-created-payload"}}}]},"user-deleted-event":{"title":"UserDeletedEvent","description":"An event of type user.deleted, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"user.deleted"},"payload":{"$ref":"#/components/schemas/empty-event-payload"}}}]},"user-updated-payload":{"title":"UserUpdatedPayload","type":"object","description":"Payload for `user.updated`. The attribute rules are those of `user.created`:\nthe keys written, plus values only for fields marked `x-audit`.\n","properties":{"attribute_keys":{"type":"array","items":{"type":"string"}},"attributes":{"type":"object","additionalProperties":true}}},"user-updated-event":{"title":"UserUpdatedEvent","description":"An event of type user.updated, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"user.updated"},"payload":{"$ref":"#/components/schemas/user-updated-payload"}}}]},"variable-removed-payload":{"title":"VariableRemovedPayload","type":"object","description":"Payload for `variable.removed` events, one value of the variable removed.","properties":{"kind":{"type":"string","enum":["primary","preview"]}}},"variable-removed-event":{"title":"VariableRemovedEvent","description":"An event of type variable.removed, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"variable.removed"},"payload":{"$ref":"#/components/schemas/variable-removed-payload"}}}]},"variable-set-payload":{"title":"VariableSetPayload","type":"object","description":"Payload for `variable.set` events: one value of the variable entered or\nreplaced. The value is never included, plain or encrypted.\n","properties":{"kind":{"type":"string","enum":["primary","preview"]},"secret":{"type":"boolean"}}},"variable-set-event":{"title":"VariableSetEvent","description":"An event of type variable.set, with the shared event fields and its own payload.\n","allOf":[{"$ref":"#/components/schemas/event-base"},{"type":"object","required":["event_type","payload"],"properties":{"event_type":{"type":"string","const":"variable.set"},"payload":{"$ref":"#/components/schemas/variable-set-payload"}}}]},"event":{"description":"An event of any type. Read event_type to tell which type it is; each type\ncarries its own typed payload.\n","oneOf":[{"$ref":"#/components/schemas/application-client_secret-rotated-event"},{"$ref":"#/components/schemas/application-created-event"},{"$ref":"#/components/schemas/application-updated-event"},{"$ref":"#/components/schemas/auth-attempt-created-event"},{"$ref":"#/components/schemas/auth-attempt-handed_off-event"},{"$ref":"#/components/schemas/auth-check-failed-event"},{"$ref":"#/components/schemas/auth-check-succeeded-event"},{"$ref":"#/components/schemas/auth-factor-passkey-enrolled-event"},{"$ref":"#/components/schemas/auth-factor-password-set-event"},{"$ref":"#/components/schemas/auth-request-created-event"},{"$ref":"#/components/schemas/auth-request-exchange-failed-event"},{"$ref":"#/components/schemas/auth-sso-authorization-failed-event"},{"$ref":"#/components/schemas/auth-sso-exchange-failed-event"},{"$ref":"#/components/schemas/auth-sso-exchange-succeeded-event"},{"$ref":"#/components/schemas/auth-token-issued-event"},{"$ref":"#/components/schemas/auth-token-revoked-event"},{"$ref":"#/components/schemas/authz-granted-event"},{"$ref":"#/components/schemas/authz-revoked-event"},{"$ref":"#/components/schemas/branding-created-event"},{"$ref":"#/components/schemas/deployment-created-event"},{"$ref":"#/components/schemas/flow-signup_challenge-consumed-event"},{"$ref":"#/components/schemas/flow-signup_challenge-issued-event"},{"$ref":"#/components/schemas/flowdef-created-event"},{"$ref":"#/components/schemas/flowdef-deleted-event"},{"$ref":"#/components/schemas/flowdef-updated-event"},{"$ref":"#/components/schemas/idp-created-event"},{"$ref":"#/components/schemas/idp-identity_link-created-event"},{"$ref":"#/components/schemas/idp-updated-event"},{"$ref":"#/components/schemas/invitation-accepted-event"},{"$ref":"#/components/schemas/invitation-cancelled-event"},{"$ref":"#/components/schemas/invitation-created-event"},{"$ref":"#/components/schemas/invitation-rejected-event"},{"$ref":"#/components/schemas/oauth_settings-created-event"},{"$ref":"#/components/schemas/origin-added-event"},{"$ref":"#/components/schemas/origin-removed-event"},{"$ref":"#/components/schemas/policy-created-event"},{"$ref":"#/components/schemas/policy-evaluate-allowed-event"},{"$ref":"#/components/schemas/policy-evaluate-denied-event"},{"$ref":"#/components/schemas/policy-updated-event"},{"$ref":"#/components/schemas/preview-removed-event"},{"$ref":"#/components/schemas/project-created-event"},{"$ref":"#/components/schemas/project-deleted-event"},{"$ref":"#/components/schemas/project-updated-event"},{"$ref":"#/components/schemas/release-created-event"},{"$ref":"#/components/schemas/release-revoked-event"},{"$ref":"#/components/schemas/request-api-event"},{"$ref":"#/components/schemas/schema-created-event"},{"$ref":"#/components/schemas/session-deleted-event"},{"$ref":"#/components/schemas/session-established-event"},{"$ref":"#/components/schemas/team-created-event"},{"$ref":"#/components/schemas/team-deactivated-event"},{"$ref":"#/components/schemas/team-membership-updated-event"},{"$ref":"#/components/schemas/team-updated-event"},{"$ref":"#/components/schemas/user-create-failed-event"},{"$ref":"#/components/schemas/user-created-event"},{"$ref":"#/components/schemas/user-deleted-event"},{"$ref":"#/components/schemas/user-updated-event"},{"$ref":"#/components/schemas/variable-removed-event"},{"$ref":"#/components/schemas/variable-set-event"}],"discriminator":{"propertyName":"event_type","mapping":{"application.client_secret.rotated":"#/components/schemas/application-client_secret-rotated-event","application.created":"#/components/schemas/application-created-event","application.updated":"#/components/schemas/application-updated-event","auth.attempt.created":"#/components/schemas/auth-attempt-created-event","auth.attempt.handed_off":"#/components/schemas/auth-attempt-handed_off-event","auth.check.failed":"#/components/schemas/auth-check-failed-event","auth.check.succeeded":"#/components/schemas/auth-check-succeeded-event","auth.factor.passkey.enrolled":"#/components/schemas/auth-factor-passkey-enrolled-event","auth.factor.password.set":"#/components/schemas/auth-factor-password-set-event","auth.request.created":"#/components/schemas/auth-request-created-event","auth.request.exchange.failed":"#/components/schemas/auth-request-exchange-failed-event","auth.sso.authorization.failed":"#/components/schemas/auth-sso-authorization-failed-event","auth.sso.exchange.failed":"#/components/schemas/auth-sso-exchange-failed-event","auth.sso.exchange.succeeded":"#/components/schemas/auth-sso-exchange-succeeded-event","auth.token.issued":"#/components/schemas/auth-token-issued-event","auth.token.revoked":"#/components/schemas/auth-token-revoked-event","authz.granted":"#/components/schemas/authz-granted-event","authz.revoked":"#/components/schemas/authz-revoked-event","branding.created":"#/components/schemas/branding-created-event","deployment.created":"#/components/schemas/deployment-created-event","flow.signup_challenge.consumed":"#/components/schemas/flow-signup_challenge-consumed-event","flow.signup_challenge.issued":"#/components/schemas/flow-signup_challenge-issued-event","flowdef.created":"#/components/schemas/flowdef-created-event","flowdef.deleted":"#/components/schemas/flowdef-deleted-event","flowdef.updated":"#/components/schemas/flowdef-updated-event","idp.created":"#/components/schemas/idp-created-event","idp.identity_link.created":"#/components/schemas/idp-identity_link-created-event","idp.updated":"#/components/schemas/idp-updated-event","invitation.accepted":"#/components/schemas/invitation-accepted-event","invitation.cancelled":"#/components/schemas/invitation-cancelled-event","invitation.created":"#/components/schemas/invitation-created-event","invitation.rejected":"#/components/schemas/invitation-rejected-event","oauth_settings.created":"#/components/schemas/oauth_settings-created-event","origin.added":"#/components/schemas/origin-added-event","origin.removed":"#/components/schemas/origin-removed-event","policy.created":"#/components/schemas/policy-created-event","policy.evaluate.allowed":"#/components/schemas/policy-evaluate-allowed-event","policy.evaluate.denied":"#/components/schemas/policy-evaluate-denied-event","policy.updated":"#/components/schemas/policy-updated-event","preview.removed":"#/components/schemas/preview-removed-event","project.created":"#/components/schemas/project-created-event","project.deleted":"#/components/schemas/project-deleted-event","project.updated":"#/components/schemas/project-updated-event","release.created":"#/components/schemas/release-created-event","release.revoked":"#/components/schemas/release-revoked-event","request.api":"#/components/schemas/request-api-event","schema.created":"#/components/schemas/schema-created-event","session.deleted":"#/components/schemas/session-deleted-event","session.established":"#/components/schemas/session-established-event","team.created":"#/components/schemas/team-created-event","team.deactivated":"#/components/schemas/team-deactivated-event","team.membership.updated":"#/components/schemas/team-membership-updated-event","team.updated":"#/components/schemas/team-updated-event","user.create.failed":"#/components/schemas/user-create-failed-event","user.created":"#/components/schemas/user-created-event","user.deleted":"#/components/schemas/user-deleted-event","user.updated":"#/components/schemas/user-updated-event","variable.removed":"#/components/schemas/variable-removed-event","variable.set":"#/components/schemas/variable-set-event"}}},"list-events-response":{"type":"object","description":"A page of events.","required":["events"],"properties":{"events":{"description":"The events of this page. A filter the server matches event by event can\nleave it shorter than `limit`, or empty, while more events remain:\n`next_page_token` says whether they do.\n","type":"array","items":{"$ref":"#/components/schemas/event"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results. A short or empty page still\ncarries one while the server has not read every event the filter could\nmatch.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"variable-kind":{"type":"string","description":"Which deployments a value reaches: `primary` for primary origins,\n`preview` for preview URLs. There is no fallback between kinds.\n","enum":["primary","preview"]},"var-not_found":{"description":"Variable: not found\n\nError code: var.not_found\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"var.not_found"}},"required":["code"]}]},"var-permission_denied":{"description":"Variable: permission denied\n\nError code: var.permission_denied\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"var.permission_denied"}},"required":["code"]}]},"variable-name":{"type":"string","minLength":1,"maxLength":255,"pattern":"^\\w+$","x-zitadel-pattern-message":"must be one or more letters, digits or _","example":"GITHUB_CLIENT_ID","description":"A variable's name, unique per project and kind.\n\nWord characters only, which is exactly what the `${{ NAME }}` reference\nsyntax can address: a name outside that grammar could be stored\nbut never referenced from a configuration document.\n"},"variable-scalar":{"title":"VariableScalar","description":"A variable's value. JSON scalars only: a string, a number, or a boolean.\n\nThe value travels through JSON in both directions, so the set of types is\nJSON's. A number always reads back as a JSON number, however it was written.\nA type JSON has no scalar for (a timestamp, say) is rejected rather than\nquietly coming back as the string it serialized to. Strings are capped at\n16 KiB: a variable is a configuration value, not a payload.\n","oneOf":[{"type":"string","maxLength":16384},{"type":"number"},{"type":"boolean"}]},"secret-variable":{"title":"SecretVariable","description":"A secret as the API returns it. It says that a value is held under this\nname and that the value is secret. It never carries the value itself.\n\nA secret is stored encrypted, so the API returns neither the plaintext, which\nwould defeat the encryption, nor the ciphertext, which no caller can use.\n\nA secret is still usable without being readable: a configuration document\nthat references `${{ NAME }}` resolves against the decrypted value when the\nserver serves it.\n","type":"object","required":["secret"],"additionalProperties":false,"properties":{"secret":{"type":"boolean","const":true,"description":"Always `true`. A non-secret variable is returned as a bare scalar instead."}}},"variable":{"title":"Variable","description":"One resolved variable. A non-secret variable is its value; a secret is an\nobject saying so and withholding the value.\n\nThe two forms mirror the update body, so a value read here can be written\nback unchanged. The one asymmetry is that a secret read back has no value to\nwrite.\n","oneOf":[{"$ref":"#/components/schemas/variable-scalar"},{"$ref":"#/components/schemas/secret-variable"}]},"variable-by-kind":{"title":"VariableByKind","description":"One variable's values, per kind. A kind with no value is absent.\n","type":"object","minProperties":1,"additionalProperties":false,"properties":{"primary":{"$ref":"#/components/schemas/variable"},"preview":{"$ref":"#/components/schemas/variable"}}},"variables-by-kind":{"title":"VariablesByKind","description":"The project's variables, keyed by name, each with its value per kind.\n\nAn empty object is an ordinary answer, not an error.\n","type":"object","propertyNames":{"$ref":"#/components/schemas/variable-name"},"additionalProperties":{"$ref":"#/components/schemas/variable-by-kind"},"example":{"GOOGLE_CLIENT_ID":{"primary":"prod-abc","preview":"prod-abc"},"GOOGLE_CLIENT_SECRET":{"primary":{"secret":true}},"RETRY_COUNT":{"primary":10,"preview":3}}},"secret-variable-input":{"title":"SecretVariableInput","description":"A variable written with its secrecy stated explicitly.\n\nUse this form to enter a secret. `{\"value\": \"s3cr3t\", \"secret\": true}` is\nstored encrypted with the project's active `secret` key and never reads\nback. The bare-scalar form is the same write with `secret: false`.\n","type":"object","required":["value","secret"],"additionalProperties":false,"properties":{"value":{"$ref":"#/components/schemas/variable-scalar"},"secret":{"type":"boolean","description":"Whether the value is stored encrypted. Changing it on an existing name\nre-writes the value under the new flag. The documents that reference the\nname do not change, because secrecy belongs to the value, not to the\nreference to it.\n"}}},"variable-input":{"title":"VariableInput","description":"One entry of an update. A bare scalar enters a non-secret value, an object\nstates the flag explicitly, and `null` removes the name.\n\nThe shorthand exists because most variables are not secrets, and spelling\n`{\"value\": …, \"secret\": false}` for each of them is noise. Making a value\nsecret is therefore always deliberate: it cannot happen by writing a plain\nscalar.\n\n`null` is the RFC 7386 merge-patch convention: the name is removed, which is\nwhat lets one request enter, replace and remove names together. Removing a\nname the project does not hold is not an error, because a patch states what\nthe project holds afterwards and that name is already absent.\n`DELETE /variables/{variable_name}` addresses one name deliberately and\nstill answers `var.not_found` there.\n\nA `null` is a removal wherever it appears. A body built from client state, in\nwhich an unset field serializes to `null`, removes that variable instead of\nleaving it alone. A secret removed this way cannot be recovered, since its\nvalue reads back nowhere. Send only the names the request means to change.\n","oneOf":[{"type":"null"},{"$ref":"#/components/schemas/variable-scalar"},{"$ref":"#/components/schemas/secret-variable-input"}]},"update-variables-request":{"title":"UpdateVariablesRequest","description":"The variables to enter, keyed by name. Each is either a bare scalar (a\nnon-secret value), an object stating the `secret` flag, or `null` to remove\nthe name.\n\nThis is a patch. A name present here is written, replacing whatever the\nproject held under it, and a name absent here is left alone. A name whose\nvalue is `null` is removed (RFC 7386), so one request can enter, replace and\nremove names together. That is also the way to remove several at once.\n`DELETE /variables/{variable_name}` remains the way to remove exactly one\nname and be told whether it was there.\n\nRemoving a name the project does not hold is not an error: a patch states\nwhat the project holds afterwards, and that name is already absent. That\nmakes a retry safe, and it is the one place this body differs from `DELETE`,\nwhich answers `var.not_found`.\n\nThe body is applied whole or not at all. Every value is validated, and every\nsecret encrypted, before anything is written, and the writes and removals\nshare one transaction.\n","type":"object","minProperties":1,"propertyNames":{"$ref":"#/components/schemas/variable-name"},"additionalProperties":{"$ref":"#/components/schemas/variable-input"},"example":{"GITHUB_CLIENT_ID":"Iv1.a1b2c3d4e5f6","GITHUB_CLIENT_SECRET":{"value":"s3cr3t","secret":true},"RETRY_COUNT":10,"LEGACY_ENDPOINT":null}},"var-invalid_name":{"description":"The name of the variable is invalid\n\nError code: var.invalid_name\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"var.invalid_name"}},"required":["code"]}]},"var-invalid_value":{"description":"The value of the variable is invalid\n\nError code: var.invalid_value\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"var.invalid_value"}},"required":["code"]}]},"var-no_project_id":{"description":"A variable must be owned by a project\n\nError code: var.no_project_id\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"var.no_project_id"}},"required":["code"]}]},"var-limit_exceeded":{"description":"The variables of this kind would not fit in one deployment\n\nError code: var.limit_exceeded\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"var.limit_exceeded"}},"required":["code"]}]},"deployment-expand":{"type":"string","description":"A related object to embed on each returned deployment.\n\n- `release`: the release this deployment made live, as `release` on each\n  deployment, in the same representation `GET /releases/{release_id}`\n  serves. The property is omitted when not requested, so \"did not ask\" is\n  distinguishable from asked-for content. There is one release per\n  deployment, so there is no cap and no truncation flag.\n\n  Requires `release.read` in addition to `deployment.read`.\n","enum":["release"]},"deployment-target":{"title":"DeploymentTarget","type":"object","description":"One origin a deployment made its release live on.","required":["origin"],"properties":{"origin":{"$ref":"#/components/schemas/origin"}}},"deployment-status":{"title":"DeploymentStatus","type":"string","description":"Whether the deployment serves its release now.\n\n- `live`: the project's newest primary deployment, or a preview deployment\n  that one of its preview URLs still serves.\n- `inactive`: a later deployment replaced it, or its previews expired or\n  were removed.\n","enum":["live","inactive"],"example":"live"},"deployment-reason":{"title":"DeploymentReason","type":"string","description":"Why the deployment was created: `deploy`, or `rollback` when an earlier\nrelease goes live again. The rollback operation always records `rollback`;\n`POST /deployments` may too, and then `rollback_to` is null.\n","enum":["deploy","rollback"],"example":"deploy"},"deployment-metadata":{"title":"DeploymentMetadata","type":"object","description":"Why the release went live and who made it happen.","required":["reason"],"properties":{"reason":{"$ref":"#/components/schemas/deployment-reason"},"message":{"description":"The caller-supplied summary of why this deployment happened, analogous\nto a git commit message.\n","oneOf":[{"type":"string","maxLength":1024},{"type":"null"}],"example":"add phone_number to human-user"},"rollback_to":{"description":"The deployment a rollback went back to; null otherwise.\n","oneOf":[{"$ref":"#/components/schemas/deployment-id"},{"type":"null"}]},"deployed_by":{"description":"The identity that created the deployment. Null when the caller is a\nmachine principal carrying no user identity, as from CI.\n","oneOf":[{"type":"string"},{"type":"null"}],"example":"user_01KX3RG8A7F0N9WD3P2E4YM5C1"},"deployed_by_type":{"description":"What kind of principal `deployed_by` names.","oneOf":[{"type":"string","enum":["human","service","system","agent"]},{"type":"null"}],"example":"human"}}},"deployment":{"title":"Deployment","description":"An immutable record of a release made live on a set of origins. A release\nis a snapshot of the project's configuration, and a deployment freezes the\nproject's variable values with it. Deploying and rolling back each append\none, so the history is the audit trail.\n\nA primary origin serves the project's newest primary deployment if that\ndeployment names it, so one added later serves nothing until the next\ndeployment to `primary`. Requests with no origin get the same deployment. A\npreview URL serves the newest deployment to it while its preview is live.\n\nEvery field is fixed at creation except `status`, which is read as of now.\n","type":"object","required":["id","project_id","release_id","kind","targets","status","deployed_at","metadata"],"properties":{"id":{"readOnly":true,"description":"The deployment ID, opaque and immutable, assigned at creation.","$ref":"#/components/schemas/deployment-id"},"project_id":{"readOnly":true,"description":"The project this deployment belongs to.","$ref":"#/components/schemas/project-id"},"release_id":{"readOnly":true,"description":"The release this deployment made live. Always the release ID, also\nwhen the request named the release by `content_hash`.\n","$ref":"#/components/schemas/release-id"},"kind":{"readOnly":true,"$ref":"#/components/schemas/deployment-kind"},"targets":{"readOnly":true,"type":"array","minItems":1,"description":"The resolved origins, sorted. For `primary`, the project's primary\norigins at creation. The live view lists only the targets still served.\n","items":{"$ref":"#/components/schemas/deployment-target"}},"status":{"readOnly":true,"$ref":"#/components/schemas/deployment-status"},"deployed_at":{"readOnly":true,"type":"string","format":"date-time","description":"When the deployment was created.","example":"2026-10-02T14:52:00Z"},"metadata":{"readOnly":true,"$ref":"#/components/schemas/deployment-metadata"},"release":{"readOnly":true,"description":"The release named by `release_id`, present only when the request asked\nfor it with `expand: [\"release\"]`, in the same representation\n`GET /releases/{release_id}` serves. Absent means it was not requested.\n","$ref":"#/components/schemas/release"}}},"list-deployments-response":{"type":"object","description":"One page of deployments, ordered as the operation describes.","required":["deployments"],"properties":{"deployments":{"type":"array","items":{"$ref":"#/components/schemas/deployment"}},"next_page_token":{"description":"Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n","oneOf":[{"$ref":"#/components/schemas/page-token"},{"type":"null"}]}}},"deployment-primary-target":{"title":"DeploymentPrimaryTarget","type":"string","enum":["primary"],"description":"Every primary origin of the project, and every request with no `Origin`."},"deployment-preview-urls":{"title":"DeploymentPreviewUrls","type":"array","minItems":1,"maxItems":50,"uniqueItems":true,"description":"Preview URLs in `Origin` form, each matching one of the project's preview\npatterns.\n","items":{"type":"string","pattern":"^https?://(\\[[0-9a-f:.]+\\]|[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*)(:(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}))?$","x-zitadel-pattern-message":"must be an origin: http or https, a lowercase host and an optional port, with no path","maxLength":2048},"example":["https://acme-k3x9v2-acmeinc.vercel.app"]},"deployment-targets-request":{"title":"DeploymentTargetsRequest","description":"Where the release goes live: `primary`, every primary origin of the project,\nor a list of preview URLs.\n","oneOf":[{"$ref":"#/components/schemas/deployment-primary-target"},{"$ref":"#/components/schemas/deployment-preview-urls"}],"example":"primary"},"preview-ttl":{"title":"PreviewTTL","type":"string","format":"duration","x-ogen-type":"go.zitadel.com/zitadel/v5/ogenx.ISODuration","description":"How long a preview stays live after the deployment that writes it, as an\nISO-8601 duration. At most 365 days (`P365D`).\n","example":"P7D"},"create-deployment-request":{"title":"CreateDeploymentRequest","type":"object","description":"The release to make live, named by exactly one of `release_id` or\n`content_hash`, and the targets to make it live on.\n","required":["targets"],"additionalProperties":false,"properties":{"release_id":{"description":"The release to make live.","$ref":"#/components/schemas/release-id"},"content_hash":{"description":"The content digest of the release to make live, in full with its\n`sha256:` prefix.\n","$ref":"#/components/schemas/release-content-hash"},"targets":{"$ref":"#/components/schemas/deployment-targets-request"},"ttl":{"description":"Preview URLs only. How long each preview stays live from this\ndeployment; omitted, 7 days (`P7D`).\n","$ref":"#/components/schemas/preview-ttl"},"reason":{"description":"Why this deployment happens. Omitted, the server records `deploy`.\n","$ref":"#/components/schemas/deployment-reason"},"message":{"type":"string","maxLength":1024,"description":"A short free-form summary of why this deployment happened, recorded on\nits metadata.\n","example":"add phone_number to human-user"},"expected_deployment_id":{"description":"Deploy only if the deployment this write replaces is this one: the\nproject's newest primary deployment, or the newest deployment to any of\nthe preview URLs. Otherwise the request fails with `409 dep.conflict`\nand nothing changes. Not stored.\n","$ref":"#/components/schemas/deployment-id"}}},"dep-conflict":{"description":"Deployment: the deployment it replaces does not match expected_deployment_id\n\nError code: dep.conflict\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"dep.conflict"}},"required":["code"]}]},"dep-invalid":{"description":"Deployment: invalid\n\nError code: dep.invalid\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"dep.invalid"}},"required":["code"]}]},"dep-variables_missing":{"description":"Deployment: the release references variables its kind has no value for\n\nError code: dep.variables_missing\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"dep.variables_missing"}},"required":["code"]}]},"dep-variables_not_secret":{"description":"Deployment: the release names variables as client secrets that are not secret, non-empty strings\n\nError code: dep.variables_not_secret\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"dep.variables_not_secret"}},"required":["code"]}]},"var-decryption_failed":{"description":"Failed to decrypt variable\n\nError code: var.decryption_failed\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"var.decryption_failed"}},"required":["code"]}]},"var-document_too_deep":{"description":"Variable: document nests too deeply\n\nError code: var.document_too_deep\n","allOf":[{"$ref":"#/components/schemas/error-details"},{"type":"object","properties":{"code":{"type":"string","const":"var.document_too_deep"}},"required":["code"]}]},"deployment-variables-missing":{"title":"DeploymentVariablesMissing","type":"object","description":"The release references variables the project holds no value for.","required":["code","message","details"],"properties":{"code":{"type":"string","const":"dep.variables_missing"},"message":{"type":"string","description":"Human-readable explanation of the error."},"details":{"type":"object","required":["kind","names"],"properties":{"kind":{"$ref":"#/components/schemas/deployment-kind","description":"The kind whose variable values the deployment would freeze."},"names":{"type":"array","minItems":1,"description":"Every variable the release references with no value stored for\nthat kind, sorted.\n","items":{"type":"string"}}}}}},"deployment-variables-not-secret":{"title":"DeploymentVariablesNotSecret","type":"object","description":"The release names variables as a client secret, of an application client\nor an identity provider, that the project holds as plain values, or as\nsecrets that are not a non-empty string.\n","required":["code","message","details"],"properties":{"code":{"type":"string","const":"dep.variables_not_secret"},"message":{"type":"string","description":"Human-readable explanation of the error."},"details":{"type":"object","required":["kind","names"],"properties":{"kind":{"$ref":"#/components/schemas/deployment-kind","description":"The kind whose variable values the deployment would freeze."},"names":{"type":"array","minItems":1,"description":"Every variable the release names as a client secret that is stored\nfor that kind as a plain value, or as a secret that is not a\nnon-empty string, sorted.\n","items":{"type":"string"}}}}}},"create-deployment-bad-request":{"title":"CreateDeploymentBadRequest","description":"The deployment cannot be made, told apart by `code`; `req.invalid` is a\nrequest the schema rejects.\n","oneOf":[{"$ref":"#/components/schemas/dep-invalid"},{"$ref":"#/components/schemas/deployment-variables-missing"},{"$ref":"#/components/schemas/deployment-variables-not-secret"},{"$ref":"#/components/schemas/req-invalid"}],"discriminator":{"propertyName":"code","mapping":{"dep.invalid":"#/components/schemas/dep-invalid","dep.variables_missing":"#/components/schemas/deployment-variables-missing","dep.variables_not_secret":"#/components/schemas/deployment-variables-not-secret","req.invalid":"#/components/schemas/req-invalid"}}},"deployment-guard-conflict":{"title":"DeploymentGuardConflict","type":"object","description":"`expected_deployment_id` is not the deployment this write replaces.","required":["code","message","details"],"properties":{"code":{"type":"string","const":"dep.conflict"},"message":{"type":"string","description":"Human-readable explanation of the error."},"details":{"type":"object","required":["deployment"],"properties":{"deployment":{"description":"The deployment this write replaces, null when there is none. Retry\nwith its ID as `expected_deployment_id`.\n","oneOf":[{"$ref":"#/components/schemas/deployment"},{"type":"null"}]}}}}},"release-revoked-conflict":{"title":"ReleaseRevokedConflict","type":"object","description":"The release is revoked and cannot be deployed.","required":["code","message"],"properties":{"code":{"type":"string","const":"rel.revoked"},"message":{"type":"string","description":"Human-readable explanation of the error."}}},"deployment-conflict":{"title":"DeploymentConflict","description":"The deployment conflicts with the project, told apart by `code`:\n`dep.conflict` (guard mismatch) or `rel.revoked`.\n","oneOf":[{"$ref":"#/components/schemas/deployment-guard-conflict"},{"$ref":"#/components/schemas/release-revoked-conflict"}],"discriminator":{"propertyName":"code","mapping":{"dep.conflict":"#/components/schemas/deployment-guard-conflict","rel.revoked":"#/components/schemas/release-revoked-conflict"}}},"rollback-deployment-request":{"title":"RollbackDeploymentRequest","type":"object","description":"What to record alongside the rollback; the release, variable values and\ntargets are not chosen here.\n","additionalProperties":false,"properties":{"message":{"type":"string","maxLength":1024,"description":"A short free-form summary of why the rollback happened. Recorded on\nthe new deployment's metadata.\n","example":"phone_number broke sign-up"},"expected_deployment_id":{"description":"Roll back only if the project's newest primary deployment is this one.\nOtherwise the request fails with `409 dep.conflict` and nothing\nchanges. Not stored.\n","$ref":"#/components/schemas/deployment-id"}}},"variables":{"title":"Variables","description":"The variables a deployment froze, keyed by name.\n\nAn empty object is an ordinary answer, not an error.\n","type":"object","propertyNames":{"$ref":"#/components/schemas/variable-name"},"additionalProperties":{"$ref":"#/components/schemas/variable"},"example":{"GITHUB_CLIENT_ID":"Iv1.a1b2c3d4e5f6","GITHUB_CLIENT_SECRET":{"secret":true},"RETRY_COUNT":10}}},"examples":{"internal":{"summary":"internal","value":{"code":"internal","message":"An unexpected error occurred."}},"req-invalid":{"summary":"req.invalid","value":{"code":"req.invalid","message":"The request is invalid and fails base validation (missing required fields, wrong types, failed regex, etc.). Check the details for more information."}},"auth-csrf_invalid":{"summary":"auth.csrf_invalid","value":{"code":"auth.csrf_invalid","message":"The request failed cross-site request forgery validation."}},"auth-scope_insufficient":{"summary":"auth.scope_insufficient","value":{"code":"auth.scope_insufficient","message":"The token was not issued with a scope this operation needs."}},"auth-unauthorized":{"summary":"auth.unauthorized","value":{"code":"auth.unauthorized","message":"The request lacks valid authentication credentials."}},"evt-invalid":{"summary":"evt.invalid","value":{"code":"evt.invalid","message":"event: invalid"}},"not_implemented":{"summary":"not_implemented","value":{"code":"not_implemented","message":"This feature is not implemented yet."}},"unavailable":{"summary":"unavailable","value":{"code":"unavailable","message":"The service could not complete the request right now. Try again."}},"user-already_exists":{"summary":"user.already_exists","value":{"code":"user.already_exists","message":"a user already exists with the given unique attributes"}},"user-invalid":{"summary":"user.invalid","value":{"code":"user.invalid","message":"user invalid"}},"user-not_found":{"summary":"user.not_found","value":{"code":"user.not_found","message":"user not found"}},"user-permission_denied":{"summary":"user.permission_denied","value":{"code":"user.permission_denied","message":"the user management API requires the project secret"}},"proj-last_owner":{"summary":"proj.last_owner","value":{"code":"proj.last_owner","message":"This user is the last active member of the team that owns a project. Add another member to that team, then try again."}},"user-conflict":{"summary":"user.conflict","value":{"code":"user.conflict","message":"the user was modified concurrently, retry the request"}},"att-already_handed_off":{"summary":"att.already_handed_off","value":{"code":"att.already_handed_off","message":"The auth attempt was already handed off. No new handoff can be created and the previous token will only be returned if the same Idempotency-Key header is provided."}},"att-invalid_request":{"summary":"att.invalid_request","value":{"code":"att.invalid_request","message":"invalid request"}},"att-invalid_state":{"summary":"att.invalid_state","value":{"code":"att.invalid_state","message":"The auth attempt is in an invalid state for the intended change."}},"att-not_found":{"summary":"att.not_found","value":{"code":"att.not_found","message":"The auth attempt was not found."}},"att-invalid_proof":{"summary":"att.invalid_proof","value":{"code":"att.invalid_proof","message":"The proof or request is invalid."}},"att-proof_rejected":{"summary":"att.proof_rejected","value":{"code":"att.proof_rejected","message":"The proof was rejected."}},"att-stale_challenge":{"summary":"att.stale_challenge","value":{"code":"att.stale_challenge","message":"The challenge is stale or was re-issued."}},"user-password_empty":{"summary":"user.password_empty","value":{"code":"user.password_empty","message":"The password must not be empty."}},"user-password_hashing_busy":{"summary":"user.password_hashing_busy","value":{"code":"user.password_hashing_busy","message":"The server is hashing too many passwords right now. Try again in a moment."}},"user-password_policy_violation":{"summary":"user.password_policy_violation","value":{"code":"user.password_policy_violation","message":"The password does not meet the password policy."}},"user-password_too_long":{"summary":"user.password_too_long","value":{"code":"user.password_too_long","message":"The password is too long for the project's password hashing method."}},"proj-not_found":{"summary":"proj.not_found","value":{"code":"proj.not_found","message":"project not found"}},"proj-origin_not_allowed":{"summary":"proj.origin_not_allowed","value":{"code":"proj.origin_not_allowed","message":"the request origin is not an origin of this project"}},"proj-preview_not_live":{"summary":"proj.preview_not_live","value":{"code":"proj.preview_not_live","message":"no live preview for this origin; run zitadel preview on this branch"}},"rel-no_default":{"summary":"rel.no_default","value":{"code":"rel.no_default","message":"the project has no primary deployment"}},"rel-not_deployed":{"summary":"rel.not_deployed","value":{"code":"rel.not_deployed","message":"nothing is deployed to this origin"}},"rel-not_found":{"summary":"rel.not_found","value":{"code":"rel.not_found","message":"release: not found"}},"rel-revoked":{"summary":"rel.revoked","value":{"code":"rel.revoked","message":"the release this attempt runs on was revoked"}},"sess-project_mismatch":{"summary":"sess.project_mismatch","value":{"code":"sess.project_mismatch","message":"The session belongs to a different project."}},"consent-not_found":{"summary":"consent.not_found","value":{"code":"consent.not_found","message":"consent: not found"}},"tkn-pat_owner_not_platform":{"summary":"tkn.pat_owner_not_platform","value":{"code":"tkn.pat_owner_not_platform","message":"only a person homed in the platform project can hold a personal access token"}},"tkn-invalid_tknid":{"summary":"tkn.invalid_tknid","value":{"code":"tkn.invalid_tknid","message":"token identifiers do not match token type"}},"tkn-pat_invalid":{"summary":"tkn.pat_invalid","value":{"code":"tkn.pat_invalid","message":"the personal access token request is invalid"}},"tkn-pat_sign_in_required":{"summary":"tkn.pat_sign_in_required","value":{"code":"tkn.pat_sign_in_required","message":"Sign in again, then create the personal access token."}},"tkn-pat_not_found":{"summary":"tkn.pat_not_found","value":{"code":"tkn.pat_not_found","message":"personal access token not found"}},"proj-missing_id":{"summary":"proj.missing_id","value":{"code":"proj.missing_id","message":"project: missing id"}},"app-client_not_found":{"summary":"app.client_not_found","value":{"code":"app.client_not_found","message":"application: no client serving the request holds this client_id"}},"authreq-code_not_issued":{"summary":"authreq.code_not_issued","value":{"code":"authreq.code_not_issued","message":"auth request: the request is unknown or already has a code"}},"clientdoc-invalid":{"summary":"clientdoc.invalid","value":{"code":"clientdoc.invalid","message":"client document: the client metadata document cannot be used"}},"clientdoc-not_admitted":{"summary":"clientdoc.not_admitted","value":{"code":"clientdoc.not_admitted","message":"client document: this server does not admit clients whose document that host serves"}},"clientdoc-unavailable":{"summary":"clientdoc.unavailable","value":{"code":"clientdoc.unavailable","message":"client document: the client metadata document could not be fetched"}},"enc_key-decrypt_failed":{"summary":"enc_key.decrypt_failed","value":{"code":"enc_key.decrypt_failed","message":"failed to decrypt data"}},"dep-not_found":{"summary":"dep.not_found","value":{"code":"dep.not_found","message":"deployment: not found"}},"enc_key-encrypt_failed":{"summary":"enc_key.encrypt_failed","value":{"code":"enc_key.encrypt_failed","message":"failed to encrypt data"}},"enc_key-not_found":{"summary":"enc_key.not_found","value":{"code":"enc_key.not_found","message":"encryption key not found"}},"flow-auth_request_invalid":{"summary":"flow.auth_request_invalid","value":{"code":"flow.auth_request_invalid","message":"this sign-in request expired or was opened in another browser"}},"flow-consent_scopes_invalid":{"summary":"flow.consent_scopes_invalid","value":{"code":"flow.consent_scopes_invalid","message":"the granted scopes must be some of the requested ones, with at least one API scope"}},"flowdef-not_found":{"summary":"flowdef.not_found","value":{"code":"flowdef.not_found","message":"flow definition: not found"}},"flowdef-purpose_mismatch":{"summary":"flowdef.purpose_mismatch","value":{"code":"flowdef.purpose_mismatch","message":"flow definition: does not serve requested purpose"}},"flow-integrity":{"summary":"flow.integrity","value":{"code":"flow.integrity","message":"flow state integrity violation"}},"flow-invalid_purpose":{"summary":"flow.invalid_purpose","value":{"code":"flow.invalid_purpose","message":"unknown or unsupported flow purpose"}},"tkn-invalid":{"summary":"tkn.invalid","value":{"code":"tkn.invalid","message":"the token is not valid"}},"sess-not_found":{"summary":"sess.not_found","value":{"code":"sess.not_found","message":"The session was not found"}},"enc_key-unknown_alg":{"summary":"enc_key.unknown_alg","value":{"code":"enc_key.unknown_alg","message":"unsupported encryption algorithm"}},"att-not_completed":{"summary":"att.not_completed","value":{"code":"att.not_completed","message":"The auth attempt must be completed for any further action."}},"flow-completed":{"summary":"flow.completed","value":{"code":"flow.completed","message":"flow has already completed"}},"flow-cookie_expired":{"summary":"flow.cookie_expired","value":{"code":"flow.cookie_expired","message":"flow cookie has expired"}},"flow-cookie_invalid":{"summary":"flow.cookie_invalid","value":{"code":"flow.cookie_invalid","message":"flow cookie is missing or invalid"}},"flow-invalid_action":{"summary":"flow.invalid_action","value":{"code":"flow.invalid_action","message":"action is not allowed on the current step"}},"flow-not_found":{"summary":"flow.not_found","value":{"code":"flow.not_found","message":"flow not found"}},"flow-rate_limited":{"summary":"flow.rate_limited","value":{"code":"flow.rate_limited","message":"signup request limit reached; retry after one minute"}},"flow-restart_required":{"summary":"flow.restart_required","value":{"code":"flow.restart_required","message":"the flow must be restarted"}},"flow-sso_user_schema_mismatch":{"summary":"flow.sso_user_schema_mismatch","value":{"code":"flow.sso_user_schema_mismatch","message":"the linked account cannot sign in through this flow"}},"flow-unsupported":{"summary":"flow.unsupported","value":{"code":"flow.unsupported","message":"flow feature is not supported"}},"idp-not_found":{"summary":"idp.not_found","value":{"code":"idp.not_found","message":"identity provider connection: not found"}},"idp-endpoint_cleartext":{"summary":"idp.endpoint_cleartext","value":{"code":"idp.endpoint_cleartext","message":"identity provider connection: an endpoint is not https"}},"idp-endpoints_partial":{"summary":"idp.endpoints_partial","value":{"code":"idp.endpoints_partial","message":"identity provider connection: the endpoints are partially set"}},"idp-protocol_block_missing":{"summary":"idp.protocol_block_missing","value":{"code":"idp.protocol_block_missing","message":"identity provider connection: the protocol block is missing"}},"idp-scopes_missing_openid":{"summary":"idp.scopes_missing_openid","value":{"code":"idp.scopes_missing_openid","message":"identity provider connection: OIDC scopes must contain openid"}},"flow-proof_invalid":{"summary":"flow.proof_invalid","value":{"code":"flow.proof_invalid","message":"signup proof is missing, invalid, expired or already used; refresh the step"}},"proj-mismatch":{"summary":"proj.mismatch","value":{"code":"proj.mismatch","message":"the project named in the request is not the one the credential belongs to"}},"sch-invalid_request":{"summary":"sch.invalid_request","value":{"code":"sch.invalid_request","message":"invalid request"}},"origin-invalid":{"summary":"origin.invalid","value":{"code":"origin.invalid","message":"origin: must be scheme://host[:port], lowercase, with no path"}},"origin-kind_conflict":{"summary":"origin.kind_conflict","value":{"code":"origin.kind_conflict","message":"origin: the pattern is already stored with a different kind"}},"origin-primary_not_exact":{"summary":"origin.primary_not_exact","value":{"code":"origin.primary_not_exact","message":"a primary origin is an exact URL, no wildcard"}},"proj-name_invalid":{"summary":"proj.name_invalid","value":{"code":"proj.name_invalid","message":"The project name is invalid. Expected a non-empty string."}},"proj-permission_denied":{"summary":"proj.permission_denied","value":{"code":"proj.permission_denied","message":"the project management API requires the project secret"}},"proj-password_hash_invalid":{"summary":"proj.password_hash_invalid","value":{"code":"proj.password_hash_invalid","message":"the password hashing method is invalid"}},"claim_challenge-invalid":{"summary":"claim_challenge.invalid","value":{"code":"claim_challenge.invalid","message":"The claim challenge is invalid. Expected a non-empty id, project id, and initiating secret hash."}},"proj-already_claimed":{"summary":"proj.already_claimed","value":{"code":"proj.already_claimed","message":"the project is already claimed by a team"}},"proj-claim_window_expired":{"summary":"proj.claim_window_expired","value":{"code":"proj.claim_window_expired","message":"the project was not claimed within 14 days of creation and can no longer be claimed"}},"claim_challenge-not_found":{"summary":"claim_challenge.not_found","value":{"code":"claim_challenge.not_found","message":"claim challenge not found"}},"proj-claim_expired":{"summary":"proj.claim_expired","value":{"code":"proj.claim_expired","message":"the claim challenge has expired"}},"claim-no_personal_team":{"summary":"claim.no_personal_team","value":{"code":"claim.no_personal_team","message":"The user has no active personal team in the platform project."}},"claim-personal_team_not_active":{"summary":"claim.personal_team_not_active","value":{"code":"claim.personal_team_not_active","message":"The user's personal team in the platform project is not active."}},"origin-not_found":{"summary":"origin.not_found","value":{"code":"origin.not_found","message":"origin: not found"}},"origin-permission_denied":{"summary":"origin.permission_denied","value":{"code":"origin.permission_denied","message":"origin: permission denied"}},"dep-permission_denied":{"summary":"dep.permission_denied","value":{"code":"dep.permission_denied","message":"deployment: requires an operator-grade token bound to the project (project.write or a deployment.* scope)"}},"env-project_not_found":{"summary":"env.project_not_found","value":{"code":"env.project_not_found","message":"project not found"}},"sess-token_creation_failed":{"summary":"sess.token_creation_failed","value":{"code":"sess.token_creation_failed","message":"The session token could not be created"}},"sess-permission_denied":{"summary":"sess.permission_denied","value":{"code":"sess.permission_denied","message":"session: requires a session scope bound to the project"}},"sess-exchange_conflict":{"summary":"sess.exchange_conflict","value":{"code":"sess.exchange_conflict","message":"The exchange resulted in a conflict. Either the target session was revoked or verified factors could not be promoted consistently."}},"sess-invalid_handoff_token":{"summary":"sess.invalid_handoff_token","value":{"code":"sess.invalid_handoff_token","message":"The handoff token is invalid. Either the token does not exists, was already consumed or has expired"}},"sess-invalid_ttl":{"summary":"sess.invalid_ttl","value":{"code":"sess.invalid_ttl","message":"The session TTL is invalid. It must be positive and not exceed the configured maximum."}},"sch-not_found":{"summary":"sch.not_found","value":{"code":"sch.not_found","message":"schema not found"}},"sch-permission_denied":{"summary":"sch.permission_denied","value":{"code":"sch.permission_denied","message":"the schema management API requires the project secret"}},"sch-already_exists":{"summary":"sch.already_exists","value":{"code":"sch.already_exists","message":"a schema with the given id already exists"}},"sch-fetch_denied":{"summary":"sch.fetch_denied","value":{"code":"sch.fetch_denied","message":"the schema URL resolves to an address blocked by the egress policy"}},"sch-fetch_downgrade":{"summary":"sch.fetch_downgrade","value":{"code":"sch.fetch_downgrade","message":"fetching the schema URL was redirected from https to http, which is not allowed"}},"sch-fetch_timeout":{"summary":"sch.fetch_timeout","value":{"code":"sch.fetch_timeout","message":"fetching the schema URL timed out"}},"sch-fetch_too_large":{"summary":"sch.fetch_too_large","value":{"code":"sch.fetch_too_large","message":"the fetched schema document exceeds the configured size limit"}},"sch-fetch_too_many_redirects":{"summary":"sch.fetch_too_many_redirects","value":{"code":"sch.fetch_too_many_redirects","message":"fetching the schema URL exceeded the redirect limit"}},"sch-revision_conflict":{"summary":"sch.revision_conflict","value":{"code":"sch.revision_conflict","message":"another revision of the same object type was created at the same instant"}},"flowdef-invalid":{"summary":"flowdef.invalid","value":{"code":"flowdef.invalid","message":"flow definition: invalid"}},"flowdef-permission_denied":{"summary":"flowdef.permission_denied","value":{"code":"flowdef.permission_denied","message":"flow definition: the flow definition management API requires the project secret"}},"flowdef-missing_project_id":{"summary":"flowdef.missing_project_id","value":{"code":"flowdef.missing_project_id","message":"flow definition: missing project id"}},"flowdef-revision_conflict":{"summary":"flowdef.revision_conflict","value":{"code":"flowdef.revision_conflict","message":"flow definition: another revision of the same flow was created at the same instant"}},"flowdef-schema_fetch_failed":{"summary":"flowdef.schema_fetch_failed","value":{"code":"flowdef.schema_fetch_failed","message":"flow definition: failed to fetch schema"}},"flowdef-missing_id":{"summary":"flowdef.missing_id","value":{"code":"flowdef.missing_id","message":"flow definition: missing id"}},"team-already_exists":{"summary":"team.already_exists","value":{"code":"team.already_exists","message":"a team with this name already exists in the project"}},"team-name_invalid":{"summary":"team.name_invalid","value":{"code":"team.name_invalid","message":"The team name is invalid. Expected a non-empty string of at most 200 characters."}},"team-team_not_found":{"summary":"team.team_not_found","value":{"code":"team.team_not_found","message":"team not found"}},"team-permission_denied":{"summary":"team.permission_denied","value":{"code":"team.permission_denied","message":"the team management API requires the project secret"}},"team-project_not_found":{"summary":"team.project_not_found","value":{"code":"team.project_not_found","message":"project not found"}},"team-owns_project":{"summary":"team.owns_project","value":{"code":"team.owns_project","message":"the team still owns a project and cannot be deactivated while it does"}},"team-user_not_active":{"summary":"team.user_not_active","value":{"code":"team.user_not_active","message":"The user is not active, so they cannot be added to the team."}},"sess-token_invalid":{"summary":"sess.token_invalid","value":{"code":"sess.token_invalid","message":"The session token is invalid (either malformed or expired)."}},"brnd-not_found":{"summary":"brnd.not_found","value":{"code":"brnd.not_found","message":"branding: not found"}},"brnd-permission_denied":{"summary":"brnd.permission_denied","value":{"code":"brnd.permission_denied","message":"branding: requires an operator-grade token bound to the project (project.write or a branding.* scope)"}},"brnd-invalid":{"summary":"brnd.invalid","value":{"code":"brnd.invalid","message":"branding: invalid"}},"brnd-missing_project_id":{"summary":"brnd.missing_project_id","value":{"code":"brnd.missing_project_id","message":"branding: missing project id"}},"oauthset-not_found":{"summary":"oauthset.not_found","value":{"code":"oauthset.not_found","message":"oauth settings: not found"}},"oauthset-permission_denied":{"summary":"oauthset.permission_denied","value":{"code":"oauthset.permission_denied","message":"oauth settings: requires an operator-grade token bound to the project (project.write or an oauth_settings.* scope)"}},"idp-field_immutable":{"summary":"idp.field_immutable","value":{"code":"idp.field_immutable","message":"identity provider connection: the field is fixed for the life of the connection"}},"idp-permission_denied":{"summary":"idp.permission_denied","value":{"code":"idp.permission_denied","message":"identity provider connection: the caller's project role does not allow this operation"}},"idp-revision_conflict":{"summary":"idp.revision_conflict","value":{"code":"idp.revision_conflict","message":"identity provider connection: another revision of the same connection was created at the same instant"}},"app-client_id_taken":{"summary":"app.client_id_taken","value":{"code":"app.client_id_taken","message":"application: another client of the project holds this client_id"}},"app-declared":{"summary":"app.declared","value":{"code":"app.declared","message":"application: declared in a release, so only a deploy revises it"}},"app-field_immutable":{"summary":"app.field_immutable","value":{"code":"app.field_immutable","message":"application: a revision may not change a client's client_id or remove a client"}},"app-idempotency_key_reused":{"summary":"app.idempotency_key_reused","value":{"code":"app.idempotency_key_reused","message":"application: the Idempotency-Key was sent before with another body"}},"app-invalid":{"summary":"app.invalid","value":{"code":"app.invalid","message":"application: invalid"}},"app-not_found":{"summary":"app.not_found","value":{"code":"app.not_found","message":"application: not found"}},"app-permission_denied":{"summary":"app.permission_denied","value":{"code":"app.permission_denied","message":"application: the caller's project role does not allow this operation"}},"app-revision_conflict":{"summary":"app.revision_conflict","value":{"code":"app.revision_conflict","message":"application: another revision of the same application was created at the same instant"}},"pol-not_found":{"summary":"pol.not_found","value":{"code":"pol.not_found","message":"policy: not found"}},"pol-permission_denied":{"summary":"pol.permission_denied","value":{"code":"pol.permission_denied","message":"policy: the caller's project role does not allow this operation"}},"pol-invalid":{"summary":"pol.invalid","value":{"code":"pol.invalid","message":"policy: invalid"}},"pol-revision_conflict":{"summary":"pol.revision_conflict","value":{"code":"pol.revision_conflict","message":"policy: another revision of the same policy was published at the same instant; retry"}},"rel-permission_denied":{"summary":"rel.permission_denied","value":{"code":"rel.permission_denied","message":"release: requires an operator-grade token bound to the project (project.write or a release.* scope)"}},"app-registered":{"summary":"app.registered","value":{"code":"app.registered","message":"application: registered through the API, so a release may not declare it"}},"rel-invalid":{"summary":"rel.invalid","value":{"code":"rel.invalid","message":"release: invalid"}},"rel-project_not_found":{"summary":"rel.project_not_found","value":{"code":"rel.project_not_found","message":"release: project not found"}},"rel-revision_not_found":{"summary":"rel.revision_not_found","value":{"code":"rel.revision_not_found","message":"release: pinned revision does not exist"}},"rel-revision_unpinnable":{"summary":"rel.revision_unpinnable","value":{"code":"rel.revision_unpinnable","message":"release: pinned revision declares no handle"}},"rel-unresolved_reference":{"summary":"rel.unresolved_reference","value":{"code":"rel.unresolved_reference","message":"release: handle is not in the release"}},"rel-in_use":{"summary":"rel.in_use","value":{"code":"rel.in_use","message":"release: still served by an origin"}},"grant-already_exists":{"summary":"grant.already_exists","value":{"code":"grant.already_exists","message":"an unrevoked grant with this principal and relation already exists on the project"}},"grant-invalid":{"summary":"grant.invalid","value":{"code":"grant.invalid","message":"the grant request is invalid"}},"grant-not_found":{"summary":"grant.not_found","value":{"code":"grant.not_found","message":"grant not found"}},"grant-permission_denied":{"summary":"grant.permission_denied","value":{"code":"grant.permission_denied","message":"insufficient permissions to manage grants"}},"grant-principal_not_found":{"summary":"grant.principal_not_found","value":{"code":"grant.principal_not_found","message":"the principal could not be resolved"}},"grant-project_unclaimed":{"summary":"grant.project_unclaimed","value":{"code":"grant.project_unclaimed","message":"claim the project before granting access to it"}},"inv-not_found":{"summary":"inv.not_found","value":{"code":"inv.not_found","message":"invitation not found"}},"inv-permission_denied":{"summary":"inv.permission_denied","value":{"code":"inv.permission_denied","message":"insufficient permissions to manage invitations"}},"inv-invalid":{"summary":"inv.invalid","value":{"code":"inv.invalid","message":"the invitation request is invalid"}},"inv-pending_limit":{"summary":"inv.pending_limit","value":{"code":"inv.pending_limit","message":"the project has reached its pending invitation limit"}},"inv-platform_required":{"summary":"inv.platform_required","value":{"code":"inv.platform_required","message":"invitations require a platform project"}},"inv-project_unclaimed":{"summary":"inv.project_unclaimed","value":{"code":"inv.project_unclaimed","message":"claim the project before inviting into it"}},"inv-already_member":{"summary":"inv.already_member","value":{"code":"inv.already_member","message":"you already have access to this project"}},"inv-inviter_not_admin":{"summary":"inv.inviter_not_admin","value":{"code":"inv.inviter_not_admin","message":"the inviter no longer administers the project"}},"inv-self_accept":{"summary":"inv.self_accept","value":{"code":"inv.self_accept","message":"the inviter cannot accept their own invitation"}},"inv-self_reject":{"summary":"inv.self_reject","value":{"code":"inv.self_reject","message":"the inviter cannot decline their own invitation"}},"evt-not_found":{"summary":"evt.not_found","value":{"code":"evt.not_found","message":"event: not found"}},"evt-permission_denied":{"summary":"evt.permission_denied","value":{"code":"evt.permission_denied","message":"event: permission denied"}},"var-not_found":{"summary":"var.not_found","value":{"code":"var.not_found","message":"variable: not found"}},"var-permission_denied":{"summary":"var.permission_denied","value":{"code":"var.permission_denied","message":"variable: permission denied"}},"var-invalid_name":{"summary":"var.invalid_name","value":{"code":"var.invalid_name","message":"the name of the variable is invalid"}},"var-invalid_value":{"summary":"var.invalid_value","value":{"code":"var.invalid_value","message":"the value of the variable is invalid"}},"var-no_project_id":{"summary":"var.no_project_id","value":{"code":"var.no_project_id","message":"a variable must be owned by a project"}},"var-limit_exceeded":{"summary":"var.limit_exceeded","value":{"code":"var.limit_exceeded","message":"the variables of this kind would not fit in one deployment"}},"dep-conflict":{"summary":"dep.conflict","value":{"code":"dep.conflict","message":"deployment: the deployment it replaces does not match expected_deployment_id"}},"dep-invalid":{"summary":"dep.invalid","value":{"code":"dep.invalid","message":"deployment: invalid"}},"dep-variables_missing":{"summary":"dep.variables_missing","value":{"code":"dep.variables_missing","message":"deployment: the release references variables its kind has no value for"}},"dep-variables_not_secret":{"summary":"dep.variables_not_secret","value":{"code":"dep.variables_not_secret","message":"deployment: the release names variables as client secrets that are not secret, non-empty strings"}},"var-decryption_failed":{"summary":"var.decryption_failed","value":{"code":"var.decryption_failed","message":"failed to decrypt variable"}},"var-document_too_deep":{"summary":"var.document_too_deep","value":{"code":"var.document_too_deep","message":"variable: document nests too deeply"}}},"responses":{"getLive-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/req-invalid"}],"discriminator":{"propertyName":"code","mapping":{"internal":"#/components/schemas/internal","req.invalid":"#/components/schemas/req-invalid"}}},"examples":{"internal":{"$ref":"#/components/examples/internal"},"req.invalid":{"$ref":"#/components/examples/req-invalid"}}}}},"getReady-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/req-invalid"}],"discriminator":{"propertyName":"code","mapping":{"internal":"#/components/schemas/internal","req.invalid":"#/components/schemas/req-invalid"}}},"examples":{"internal":{"$ref":"#/components/examples/internal"},"req.invalid":{"$ref":"#/components/examples/req-invalid"}}}}},"createUser-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-already_exists"},{"$ref":"#/components/schemas/user-invalid"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.already_exists":"#/components/schemas/user-already_exists","user.invalid":"#/components/schemas/user-invalid","user.not_found":"#/components/schemas/user-not_found","user.permission_denied":"#/components/schemas/user-permission_denied"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.already_exists":{"$ref":"#/components/examples/user-already_exists"},"user.invalid":{"$ref":"#/components/examples/user-invalid"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.permission_denied":{"$ref":"#/components/examples/user-permission_denied"}}}}},"queryUsers-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found","user.permission_denied":"#/components/schemas/user-permission_denied"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.permission_denied":{"$ref":"#/components/examples/user-permission_denied"}}}}},"getUser-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found","user.permission_denied":"#/components/schemas/user-permission_denied"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.permission_denied":{"$ref":"#/components/examples/user-permission_denied"}}}}},"deleteUser-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-last_owner"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.last_owner":"#/components/schemas/proj-last_owner","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found","user.permission_denied":"#/components/schemas/user-permission_denied"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.last_owner":{"$ref":"#/components/examples/proj-last_owner"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.permission_denied":{"$ref":"#/components/examples/user-permission_denied"}}}}},"updateUser-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-already_exists"},{"$ref":"#/components/schemas/user-conflict"},{"$ref":"#/components/schemas/user-invalid"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.already_exists":"#/components/schemas/user-already_exists","user.conflict":"#/components/schemas/user-conflict","user.invalid":"#/components/schemas/user-invalid","user.not_found":"#/components/schemas/user-not_found","user.permission_denied":"#/components/schemas/user-permission_denied"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.already_exists":{"$ref":"#/components/examples/user-already_exists"},"user.conflict":{"$ref":"#/components/examples/user-conflict"},"user.invalid":{"$ref":"#/components/examples/user-invalid"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.permission_denied":{"$ref":"#/components/examples/user-permission_denied"}}}}},"listUserIdentityLinks-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found","user.permission_denied":"#/components/schemas/user-permission_denied"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.permission_denied":{"$ref":"#/components/examples/user-permission_denied"}}}}},"listUserPasskeys-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found","user.permission_denied":"#/components/schemas/user-permission_denied"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.permission_denied":{"$ref":"#/components/examples/user-permission_denied"}}}}},"createUserPasskeyRegistration-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/att-already_handed_off"},{"$ref":"#/components/schemas/att-invalid_request"},{"$ref":"#/components/schemas/att-invalid_state"},{"$ref":"#/components/schemas/att-not_found"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-invalid"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"att.already_handed_off":"#/components/schemas/att-already_handed_off","att.invalid_request":"#/components/schemas/att-invalid_request","att.invalid_state":"#/components/schemas/att-invalid_state","att.not_found":"#/components/schemas/att-not_found","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.invalid":"#/components/schemas/user-invalid","user.not_found":"#/components/schemas/user-not_found","user.permission_denied":"#/components/schemas/user-permission_denied"}}},"examples":{"att.already_handed_off":{"$ref":"#/components/examples/att-already_handed_off"},"att.invalid_request":{"$ref":"#/components/examples/att-invalid_request"},"att.invalid_state":{"$ref":"#/components/examples/att-invalid_state"},"att.not_found":{"$ref":"#/components/examples/att-not_found"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.invalid":{"$ref":"#/components/examples/user-invalid"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.permission_denied":{"$ref":"#/components/examples/user-permission_denied"}}}}},"completeUserPasskeyRegistration-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/att-already_handed_off"},{"$ref":"#/components/schemas/att-invalid_proof"},{"$ref":"#/components/schemas/att-invalid_request"},{"$ref":"#/components/schemas/att-invalid_state"},{"$ref":"#/components/schemas/att-not_found"},{"$ref":"#/components/schemas/att-proof_rejected"},{"$ref":"#/components/schemas/att-stale_challenge"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-invalid"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-password_empty"},{"$ref":"#/components/schemas/user-password_hashing_busy"},{"$ref":"#/components/schemas/user-password_policy_violation"},{"$ref":"#/components/schemas/user-password_too_long"},{"$ref":"#/components/schemas/user-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"att.already_handed_off":"#/components/schemas/att-already_handed_off","att.invalid_proof":"#/components/schemas/att-invalid_proof","att.invalid_request":"#/components/schemas/att-invalid_request","att.invalid_state":"#/components/schemas/att-invalid_state","att.not_found":"#/components/schemas/att-not_found","att.proof_rejected":"#/components/schemas/att-proof_rejected","att.stale_challenge":"#/components/schemas/att-stale_challenge","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.invalid":"#/components/schemas/user-invalid","user.not_found":"#/components/schemas/user-not_found","user.password_empty":"#/components/schemas/user-password_empty","user.password_hashing_busy":"#/components/schemas/user-password_hashing_busy","user.password_policy_violation":"#/components/schemas/user-password_policy_violation","user.password_too_long":"#/components/schemas/user-password_too_long","user.permission_denied":"#/components/schemas/user-permission_denied"}}},"examples":{"att.already_handed_off":{"$ref":"#/components/examples/att-already_handed_off"},"att.invalid_proof":{"$ref":"#/components/examples/att-invalid_proof"},"att.invalid_request":{"$ref":"#/components/examples/att-invalid_request"},"att.invalid_state":{"$ref":"#/components/examples/att-invalid_state"},"att.not_found":{"$ref":"#/components/examples/att-not_found"},"att.proof_rejected":{"$ref":"#/components/examples/att-proof_rejected"},"att.stale_challenge":{"$ref":"#/components/examples/att-stale_challenge"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.invalid":{"$ref":"#/components/examples/user-invalid"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.password_empty":{"$ref":"#/components/examples/user-password_empty"},"user.password_hashing_busy":{"$ref":"#/components/examples/user-password_hashing_busy"},"user.password_policy_violation":{"$ref":"#/components/examples/user-password_policy_violation"},"user.password_too_long":{"$ref":"#/components/examples/user-password_too_long"},"user.permission_denied":{"$ref":"#/components/examples/user-permission_denied"}}}}},"getUserPasswordState-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found","user.permission_denied":"#/components/schemas/user-permission_denied"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.permission_denied":{"$ref":"#/components/examples/user-permission_denied"}}}}},"setUserPassword-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/proj-origin_not_allowed"},{"$ref":"#/components/schemas/proj-preview_not_live"},{"$ref":"#/components/schemas/rel-no_default"},{"$ref":"#/components/schemas/rel-not_deployed"},{"$ref":"#/components/schemas/rel-not_found"},{"$ref":"#/components/schemas/rel-revoked"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-conflict"},{"$ref":"#/components/schemas/user-invalid"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-password_empty"},{"$ref":"#/components/schemas/user-password_hashing_busy"},{"$ref":"#/components/schemas/user-password_policy_violation"},{"$ref":"#/components/schemas/user-password_too_long"},{"$ref":"#/components/schemas/user-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.not_found":"#/components/schemas/proj-not_found","proj.origin_not_allowed":"#/components/schemas/proj-origin_not_allowed","proj.preview_not_live":"#/components/schemas/proj-preview_not_live","rel.no_default":"#/components/schemas/rel-no_default","rel.not_deployed":"#/components/schemas/rel-not_deployed","rel.not_found":"#/components/schemas/rel-not_found","rel.revoked":"#/components/schemas/rel-revoked","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.conflict":"#/components/schemas/user-conflict","user.invalid":"#/components/schemas/user-invalid","user.not_found":"#/components/schemas/user-not_found","user.password_empty":"#/components/schemas/user-password_empty","user.password_hashing_busy":"#/components/schemas/user-password_hashing_busy","user.password_policy_violation":"#/components/schemas/user-password_policy_violation","user.password_too_long":"#/components/schemas/user-password_too_long","user.permission_denied":"#/components/schemas/user-permission_denied"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"proj.origin_not_allowed":{"$ref":"#/components/examples/proj-origin_not_allowed"},"proj.preview_not_live":{"$ref":"#/components/examples/proj-preview_not_live"},"rel.no_default":{"$ref":"#/components/examples/rel-no_default"},"rel.not_deployed":{"$ref":"#/components/examples/rel-not_deployed"},"rel.not_found":{"$ref":"#/components/examples/rel-not_found"},"rel.revoked":{"$ref":"#/components/examples/rel-revoked"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.conflict":{"$ref":"#/components/examples/user-conflict"},"user.invalid":{"$ref":"#/components/examples/user-invalid"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.password_empty":{"$ref":"#/components/examples/user-password_empty"},"user.password_hashing_busy":{"$ref":"#/components/examples/user-password_hashing_busy"},"user.password_policy_violation":{"$ref":"#/components/examples/user-password_policy_violation"},"user.password_too_long":{"$ref":"#/components/examples/user-password_too_long"},"user.permission_denied":{"$ref":"#/components/examples/user-permission_denied"}}}}},"listUserTeams-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found","user.permission_denied":"#/components/schemas/user-permission_denied"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.permission_denied":{"$ref":"#/components/examples/user-permission_denied"}}}}},"getMyUser-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"}}}}},"updateMyUser-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-already_exists"},{"$ref":"#/components/schemas/user-conflict"},{"$ref":"#/components/schemas/user-invalid"},{"$ref":"#/components/schemas/user-not_found"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable","user.already_exists":"#/components/schemas/user-already_exists","user.conflict":"#/components/schemas/user-conflict","user.invalid":"#/components/schemas/user-invalid","user.not_found":"#/components/schemas/user-not_found"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.already_exists":{"$ref":"#/components/examples/user-already_exists"},"user.conflict":{"$ref":"#/components/examples/user-conflict"},"user.invalid":{"$ref":"#/components/examples/user-invalid"},"user.not_found":{"$ref":"#/components/examples/user-not_found"}}}}},"listMyConsents-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"revokeMyConsent-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/consent-not_found"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.unauthorized":"#/components/schemas/auth-unauthorized","consent.not_found":"#/components/schemas/consent-not_found","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"consent.not_found":{"$ref":"#/components/examples/consent-not_found"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listMyIdentityLinks-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"}}}}},"listMyPasskeys-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"}}}}},"getMyPasswordState-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"}}}}},"listMyPersonalAccessTokens-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/tkn-pat_owner_not_platform"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","tkn.pat_owner_not_platform":"#/components/schemas/tkn-pat_owner_not_platform","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"tkn.pat_owner_not_platform":{"$ref":"#/components/examples/tkn-pat_owner_not_platform"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"createMyPersonalAccessToken-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/tkn-invalid_tknid"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/tkn-pat_invalid"},{"$ref":"#/components/schemas/tkn-pat_owner_not_platform"},{"$ref":"#/components/schemas/tkn-pat_sign_in_required"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","tkn.invalid_tknid":"#/components/schemas/tkn-invalid_tknid","not_implemented":"#/components/schemas/not_implemented","tkn.pat_invalid":"#/components/schemas/tkn-pat_invalid","tkn.pat_owner_not_platform":"#/components/schemas/tkn-pat_owner_not_platform","tkn.pat_sign_in_required":"#/components/schemas/tkn-pat_sign_in_required","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"tkn.invalid_tknid":{"$ref":"#/components/examples/tkn-invalid_tknid"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"tkn.pat_invalid":{"$ref":"#/components/examples/tkn-pat_invalid"},"tkn.pat_owner_not_platform":{"$ref":"#/components/examples/tkn-pat_owner_not_platform"},"tkn.pat_sign_in_required":{"$ref":"#/components/examples/tkn-pat_sign_in_required"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"revokeMyPersonalAccessToken-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/tkn-pat_not_found"},{"$ref":"#/components/schemas/tkn-pat_owner_not_platform"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","tkn.pat_not_found":"#/components/schemas/tkn-pat_not_found","tkn.pat_owner_not_platform":"#/components/schemas/tkn-pat_owner_not_platform","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"tkn.pat_not_found":{"$ref":"#/components/examples/tkn-pat_not_found"},"tkn.pat_owner_not_platform":{"$ref":"#/components/examples/tkn-pat_owner_not_platform"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listMyProjects-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getMyUserSchema-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"}}}}},"listMySessions-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-missing_id"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.missing_id":"#/components/schemas/proj-missing_id","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.missing_id":{"$ref":"#/components/examples/proj-missing_id"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listMyTeams-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"}}}}},"createFlow-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/app-client_not_found"},{"$ref":"#/components/schemas/att-invalid_request"},{"$ref":"#/components/schemas/authreq-code_not_issued"},{"$ref":"#/components/schemas/clientdoc-invalid"},{"$ref":"#/components/schemas/clientdoc-not_admitted"},{"$ref":"#/components/schemas/clientdoc-unavailable"},{"$ref":"#/components/schemas/enc_key-decrypt_failed"},{"$ref":"#/components/schemas/dep-not_found"},{"$ref":"#/components/schemas/enc_key-encrypt_failed"},{"$ref":"#/components/schemas/enc_key-not_found"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/flow-auth_request_invalid"},{"$ref":"#/components/schemas/flow-consent_scopes_invalid"},{"$ref":"#/components/schemas/flowdef-not_found"},{"$ref":"#/components/schemas/flowdef-purpose_mismatch"},{"$ref":"#/components/schemas/flow-integrity"},{"$ref":"#/components/schemas/flow-invalid_purpose"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/tkn-invalid"},{"$ref":"#/components/schemas/tkn-invalid_tknid"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/proj-origin_not_allowed"},{"$ref":"#/components/schemas/proj-preview_not_live"},{"$ref":"#/components/schemas/rel-no_default"},{"$ref":"#/components/schemas/rel-not_deployed"},{"$ref":"#/components/schemas/rel-not_found"},{"$ref":"#/components/schemas/rel-revoked"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-not_found"},{"$ref":"#/components/schemas/enc_key-unknown_alg"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"app.client_not_found":"#/components/schemas/app-client_not_found","att.invalid_request":"#/components/schemas/att-invalid_request","authreq.code_not_issued":"#/components/schemas/authreq-code_not_issued","clientdoc.invalid":"#/components/schemas/clientdoc-invalid","clientdoc.not_admitted":"#/components/schemas/clientdoc-not_admitted","clientdoc.unavailable":"#/components/schemas/clientdoc-unavailable","enc_key.decrypt_failed":"#/components/schemas/enc_key-decrypt_failed","dep.not_found":"#/components/schemas/dep-not_found","enc_key.encrypt_failed":"#/components/schemas/enc_key-encrypt_failed","enc_key.not_found":"#/components/schemas/enc_key-not_found","evt.invalid":"#/components/schemas/evt-invalid","flow.auth_request_invalid":"#/components/schemas/flow-auth_request_invalid","flow.consent_scopes_invalid":"#/components/schemas/flow-consent_scopes_invalid","flowdef.not_found":"#/components/schemas/flowdef-not_found","flowdef.purpose_mismatch":"#/components/schemas/flowdef-purpose_mismatch","flow.integrity":"#/components/schemas/flow-integrity","flow.invalid_purpose":"#/components/schemas/flow-invalid_purpose","internal":"#/components/schemas/internal","tkn.invalid":"#/components/schemas/tkn-invalid","tkn.invalid_tknid":"#/components/schemas/tkn-invalid_tknid","not_implemented":"#/components/schemas/not_implemented","proj.not_found":"#/components/schemas/proj-not_found","proj.origin_not_allowed":"#/components/schemas/proj-origin_not_allowed","proj.preview_not_live":"#/components/schemas/proj-preview_not_live","rel.no_default":"#/components/schemas/rel-no_default","rel.not_deployed":"#/components/schemas/rel-not_deployed","rel.not_found":"#/components/schemas/rel-not_found","rel.revoked":"#/components/schemas/rel-revoked","req.invalid":"#/components/schemas/req-invalid","sess.not_found":"#/components/schemas/sess-not_found","enc_key.unknown_alg":"#/components/schemas/enc_key-unknown_alg","unavailable":"#/components/schemas/unavailable"}}},"examples":{"app.client_not_found":{"$ref":"#/components/examples/app-client_not_found"},"att.invalid_request":{"$ref":"#/components/examples/att-invalid_request"},"authreq.code_not_issued":{"$ref":"#/components/examples/authreq-code_not_issued"},"clientdoc.invalid":{"$ref":"#/components/examples/clientdoc-invalid"},"clientdoc.not_admitted":{"$ref":"#/components/examples/clientdoc-not_admitted"},"clientdoc.unavailable":{"$ref":"#/components/examples/clientdoc-unavailable"},"enc_key.decrypt_failed":{"$ref":"#/components/examples/enc_key-decrypt_failed"},"dep.not_found":{"$ref":"#/components/examples/dep-not_found"},"enc_key.encrypt_failed":{"$ref":"#/components/examples/enc_key-encrypt_failed"},"enc_key.not_found":{"$ref":"#/components/examples/enc_key-not_found"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"flow.auth_request_invalid":{"$ref":"#/components/examples/flow-auth_request_invalid"},"flow.consent_scopes_invalid":{"$ref":"#/components/examples/flow-consent_scopes_invalid"},"flowdef.not_found":{"$ref":"#/components/examples/flowdef-not_found"},"flowdef.purpose_mismatch":{"$ref":"#/components/examples/flowdef-purpose_mismatch"},"flow.integrity":{"$ref":"#/components/examples/flow-integrity"},"flow.invalid_purpose":{"$ref":"#/components/examples/flow-invalid_purpose"},"internal":{"$ref":"#/components/examples/internal"},"tkn.invalid":{"$ref":"#/components/examples/tkn-invalid"},"tkn.invalid_tknid":{"$ref":"#/components/examples/tkn-invalid_tknid"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"proj.origin_not_allowed":{"$ref":"#/components/examples/proj-origin_not_allowed"},"proj.preview_not_live":{"$ref":"#/components/examples/proj-preview_not_live"},"rel.no_default":{"$ref":"#/components/examples/rel-no_default"},"rel.not_deployed":{"$ref":"#/components/examples/rel-not_deployed"},"rel.not_found":{"$ref":"#/components/examples/rel-not_found"},"rel.revoked":{"$ref":"#/components/examples/rel-revoked"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.not_found":{"$ref":"#/components/examples/sess-not_found"},"enc_key.unknown_alg":{"$ref":"#/components/examples/enc_key-unknown_alg"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getFlowStep-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/app-client_not_found"},{"$ref":"#/components/schemas/att-already_handed_off"},{"$ref":"#/components/schemas/att-invalid_request"},{"$ref":"#/components/schemas/att-invalid_state"},{"$ref":"#/components/schemas/att-not_completed"},{"$ref":"#/components/schemas/att-not_found"},{"$ref":"#/components/schemas/authreq-code_not_issued"},{"$ref":"#/components/schemas/clientdoc-invalid"},{"$ref":"#/components/schemas/clientdoc-not_admitted"},{"$ref":"#/components/schemas/clientdoc-unavailable"},{"$ref":"#/components/schemas/enc_key-decrypt_failed"},{"$ref":"#/components/schemas/dep-not_found"},{"$ref":"#/components/schemas/enc_key-encrypt_failed"},{"$ref":"#/components/schemas/enc_key-not_found"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/flow-auth_request_invalid"},{"$ref":"#/components/schemas/flow-completed"},{"$ref":"#/components/schemas/flow-consent_scopes_invalid"},{"$ref":"#/components/schemas/flow-cookie_expired"},{"$ref":"#/components/schemas/flow-cookie_invalid"},{"$ref":"#/components/schemas/flow-integrity"},{"$ref":"#/components/schemas/flow-invalid_action"},{"$ref":"#/components/schemas/flow-not_found"},{"$ref":"#/components/schemas/flow-rate_limited"},{"$ref":"#/components/schemas/flow-restart_required"},{"$ref":"#/components/schemas/flow-sso_user_schema_mismatch"},{"$ref":"#/components/schemas/flow-unsupported"},{"$ref":"#/components/schemas/idp-not_found"},{"$ref":"#/components/schemas/idp-endpoint_cleartext"},{"$ref":"#/components/schemas/idp-endpoints_partial"},{"$ref":"#/components/schemas/idp-protocol_block_missing"},{"$ref":"#/components/schemas/idp-scopes_missing_openid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/tkn-invalid"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-last_owner"},{"$ref":"#/components/schemas/rel-not_deployed"},{"$ref":"#/components/schemas/rel-not_found"},{"$ref":"#/components/schemas/rel-revoked"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/enc_key-unknown_alg"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-already_exists"},{"$ref":"#/components/schemas/user-conflict"},{"$ref":"#/components/schemas/user-invalid"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-password_empty"},{"$ref":"#/components/schemas/user-password_hashing_busy"},{"$ref":"#/components/schemas/user-password_policy_violation"},{"$ref":"#/components/schemas/user-password_too_long"}],"discriminator":{"propertyName":"code","mapping":{"app.client_not_found":"#/components/schemas/app-client_not_found","att.already_handed_off":"#/components/schemas/att-already_handed_off","att.invalid_request":"#/components/schemas/att-invalid_request","att.invalid_state":"#/components/schemas/att-invalid_state","att.not_completed":"#/components/schemas/att-not_completed","att.not_found":"#/components/schemas/att-not_found","authreq.code_not_issued":"#/components/schemas/authreq-code_not_issued","clientdoc.invalid":"#/components/schemas/clientdoc-invalid","clientdoc.not_admitted":"#/components/schemas/clientdoc-not_admitted","clientdoc.unavailable":"#/components/schemas/clientdoc-unavailable","enc_key.decrypt_failed":"#/components/schemas/enc_key-decrypt_failed","dep.not_found":"#/components/schemas/dep-not_found","enc_key.encrypt_failed":"#/components/schemas/enc_key-encrypt_failed","enc_key.not_found":"#/components/schemas/enc_key-not_found","evt.invalid":"#/components/schemas/evt-invalid","flow.auth_request_invalid":"#/components/schemas/flow-auth_request_invalid","flow.completed":"#/components/schemas/flow-completed","flow.consent_scopes_invalid":"#/components/schemas/flow-consent_scopes_invalid","flow.cookie_expired":"#/components/schemas/flow-cookie_expired","flow.cookie_invalid":"#/components/schemas/flow-cookie_invalid","flow.integrity":"#/components/schemas/flow-integrity","flow.invalid_action":"#/components/schemas/flow-invalid_action","flow.not_found":"#/components/schemas/flow-not_found","flow.rate_limited":"#/components/schemas/flow-rate_limited","flow.restart_required":"#/components/schemas/flow-restart_required","flow.sso_user_schema_mismatch":"#/components/schemas/flow-sso_user_schema_mismatch","flow.unsupported":"#/components/schemas/flow-unsupported","idp.not_found":"#/components/schemas/idp-not_found","idp.endpoint_cleartext":"#/components/schemas/idp-endpoint_cleartext","idp.endpoints_partial":"#/components/schemas/idp-endpoints_partial","idp.protocol_block_missing":"#/components/schemas/idp-protocol_block_missing","idp.scopes_missing_openid":"#/components/schemas/idp-scopes_missing_openid","internal":"#/components/schemas/internal","tkn.invalid":"#/components/schemas/tkn-invalid","not_implemented":"#/components/schemas/not_implemented","proj.last_owner":"#/components/schemas/proj-last_owner","rel.not_deployed":"#/components/schemas/rel-not_deployed","rel.not_found":"#/components/schemas/rel-not_found","rel.revoked":"#/components/schemas/rel-revoked","req.invalid":"#/components/schemas/req-invalid","enc_key.unknown_alg":"#/components/schemas/enc_key-unknown_alg","unavailable":"#/components/schemas/unavailable","user.already_exists":"#/components/schemas/user-already_exists","user.conflict":"#/components/schemas/user-conflict","user.invalid":"#/components/schemas/user-invalid","user.not_found":"#/components/schemas/user-not_found","user.password_empty":"#/components/schemas/user-password_empty","user.password_hashing_busy":"#/components/schemas/user-password_hashing_busy","user.password_policy_violation":"#/components/schemas/user-password_policy_violation","user.password_too_long":"#/components/schemas/user-password_too_long"}}},"examples":{"app.client_not_found":{"$ref":"#/components/examples/app-client_not_found"},"att.already_handed_off":{"$ref":"#/components/examples/att-already_handed_off"},"att.invalid_request":{"$ref":"#/components/examples/att-invalid_request"},"att.invalid_state":{"$ref":"#/components/examples/att-invalid_state"},"att.not_completed":{"$ref":"#/components/examples/att-not_completed"},"att.not_found":{"$ref":"#/components/examples/att-not_found"},"authreq.code_not_issued":{"$ref":"#/components/examples/authreq-code_not_issued"},"clientdoc.invalid":{"$ref":"#/components/examples/clientdoc-invalid"},"clientdoc.not_admitted":{"$ref":"#/components/examples/clientdoc-not_admitted"},"clientdoc.unavailable":{"$ref":"#/components/examples/clientdoc-unavailable"},"enc_key.decrypt_failed":{"$ref":"#/components/examples/enc_key-decrypt_failed"},"dep.not_found":{"$ref":"#/components/examples/dep-not_found"},"enc_key.encrypt_failed":{"$ref":"#/components/examples/enc_key-encrypt_failed"},"enc_key.not_found":{"$ref":"#/components/examples/enc_key-not_found"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"flow.auth_request_invalid":{"$ref":"#/components/examples/flow-auth_request_invalid"},"flow.completed":{"$ref":"#/components/examples/flow-completed"},"flow.consent_scopes_invalid":{"$ref":"#/components/examples/flow-consent_scopes_invalid"},"flow.cookie_expired":{"$ref":"#/components/examples/flow-cookie_expired"},"flow.cookie_invalid":{"$ref":"#/components/examples/flow-cookie_invalid"},"flow.integrity":{"$ref":"#/components/examples/flow-integrity"},"flow.invalid_action":{"$ref":"#/components/examples/flow-invalid_action"},"flow.not_found":{"$ref":"#/components/examples/flow-not_found"},"flow.rate_limited":{"$ref":"#/components/examples/flow-rate_limited"},"flow.restart_required":{"$ref":"#/components/examples/flow-restart_required"},"flow.sso_user_schema_mismatch":{"$ref":"#/components/examples/flow-sso_user_schema_mismatch"},"flow.unsupported":{"$ref":"#/components/examples/flow-unsupported"},"idp.not_found":{"$ref":"#/components/examples/idp-not_found"},"idp.endpoint_cleartext":{"$ref":"#/components/examples/idp-endpoint_cleartext"},"idp.endpoints_partial":{"$ref":"#/components/examples/idp-endpoints_partial"},"idp.protocol_block_missing":{"$ref":"#/components/examples/idp-protocol_block_missing"},"idp.scopes_missing_openid":{"$ref":"#/components/examples/idp-scopes_missing_openid"},"internal":{"$ref":"#/components/examples/internal"},"tkn.invalid":{"$ref":"#/components/examples/tkn-invalid"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.last_owner":{"$ref":"#/components/examples/proj-last_owner"},"rel.not_deployed":{"$ref":"#/components/examples/rel-not_deployed"},"rel.not_found":{"$ref":"#/components/examples/rel-not_found"},"rel.revoked":{"$ref":"#/components/examples/rel-revoked"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"enc_key.unknown_alg":{"$ref":"#/components/examples/enc_key-unknown_alg"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.already_exists":{"$ref":"#/components/examples/user-already_exists"},"user.conflict":{"$ref":"#/components/examples/user-conflict"},"user.invalid":{"$ref":"#/components/examples/user-invalid"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.password_empty":{"$ref":"#/components/examples/user-password_empty"},"user.password_hashing_busy":{"$ref":"#/components/examples/user-password_hashing_busy"},"user.password_policy_violation":{"$ref":"#/components/examples/user-password_policy_violation"},"user.password_too_long":{"$ref":"#/components/examples/user-password_too_long"}}}}},"submitFlowStep-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/app-client_not_found"},{"$ref":"#/components/schemas/att-already_handed_off"},{"$ref":"#/components/schemas/att-invalid_request"},{"$ref":"#/components/schemas/att-invalid_state"},{"$ref":"#/components/schemas/att-not_completed"},{"$ref":"#/components/schemas/att-not_found"},{"$ref":"#/components/schemas/att-proof_rejected"},{"$ref":"#/components/schemas/att-stale_challenge"},{"$ref":"#/components/schemas/authreq-code_not_issued"},{"$ref":"#/components/schemas/clientdoc-invalid"},{"$ref":"#/components/schemas/clientdoc-not_admitted"},{"$ref":"#/components/schemas/clientdoc-unavailable"},{"$ref":"#/components/schemas/enc_key-decrypt_failed"},{"$ref":"#/components/schemas/dep-not_found"},{"$ref":"#/components/schemas/enc_key-encrypt_failed"},{"$ref":"#/components/schemas/enc_key-not_found"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/flow-auth_request_invalid"},{"$ref":"#/components/schemas/flow-consent_scopes_invalid"},{"$ref":"#/components/schemas/flow-cookie_expired"},{"$ref":"#/components/schemas/flow-cookie_invalid"},{"$ref":"#/components/schemas/flow-integrity"},{"$ref":"#/components/schemas/flow-invalid_action"},{"$ref":"#/components/schemas/flow-not_found"},{"$ref":"#/components/schemas/flow-proof_invalid"},{"$ref":"#/components/schemas/flow-rate_limited"},{"$ref":"#/components/schemas/flow-restart_required"},{"$ref":"#/components/schemas/flow-sso_user_schema_mismatch"},{"$ref":"#/components/schemas/flow-unsupported"},{"$ref":"#/components/schemas/idp-endpoint_cleartext"},{"$ref":"#/components/schemas/idp-endpoints_partial"},{"$ref":"#/components/schemas/idp-protocol_block_missing"},{"$ref":"#/components/schemas/idp-scopes_missing_openid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/tkn-invalid"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-last_owner"},{"$ref":"#/components/schemas/proj-origin_not_allowed"},{"$ref":"#/components/schemas/proj-preview_not_live"},{"$ref":"#/components/schemas/rel-not_deployed"},{"$ref":"#/components/schemas/rel-not_found"},{"$ref":"#/components/schemas/rel-revoked"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/enc_key-unknown_alg"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-already_exists"},{"$ref":"#/components/schemas/user-conflict"},{"$ref":"#/components/schemas/user-invalid"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-password_empty"},{"$ref":"#/components/schemas/user-password_hashing_busy"},{"$ref":"#/components/schemas/user-password_policy_violation"},{"$ref":"#/components/schemas/user-password_too_long"}],"discriminator":{"propertyName":"code","mapping":{"app.client_not_found":"#/components/schemas/app-client_not_found","att.already_handed_off":"#/components/schemas/att-already_handed_off","att.invalid_request":"#/components/schemas/att-invalid_request","att.invalid_state":"#/components/schemas/att-invalid_state","att.not_completed":"#/components/schemas/att-not_completed","att.not_found":"#/components/schemas/att-not_found","att.proof_rejected":"#/components/schemas/att-proof_rejected","att.stale_challenge":"#/components/schemas/att-stale_challenge","authreq.code_not_issued":"#/components/schemas/authreq-code_not_issued","clientdoc.invalid":"#/components/schemas/clientdoc-invalid","clientdoc.not_admitted":"#/components/schemas/clientdoc-not_admitted","clientdoc.unavailable":"#/components/schemas/clientdoc-unavailable","enc_key.decrypt_failed":"#/components/schemas/enc_key-decrypt_failed","dep.not_found":"#/components/schemas/dep-not_found","enc_key.encrypt_failed":"#/components/schemas/enc_key-encrypt_failed","enc_key.not_found":"#/components/schemas/enc_key-not_found","evt.invalid":"#/components/schemas/evt-invalid","flow.auth_request_invalid":"#/components/schemas/flow-auth_request_invalid","flow.consent_scopes_invalid":"#/components/schemas/flow-consent_scopes_invalid","flow.cookie_expired":"#/components/schemas/flow-cookie_expired","flow.cookie_invalid":"#/components/schemas/flow-cookie_invalid","flow.integrity":"#/components/schemas/flow-integrity","flow.invalid_action":"#/components/schemas/flow-invalid_action","flow.not_found":"#/components/schemas/flow-not_found","flow.proof_invalid":"#/components/schemas/flow-proof_invalid","flow.rate_limited":"#/components/schemas/flow-rate_limited","flow.restart_required":"#/components/schemas/flow-restart_required","flow.sso_user_schema_mismatch":"#/components/schemas/flow-sso_user_schema_mismatch","flow.unsupported":"#/components/schemas/flow-unsupported","idp.endpoint_cleartext":"#/components/schemas/idp-endpoint_cleartext","idp.endpoints_partial":"#/components/schemas/idp-endpoints_partial","idp.protocol_block_missing":"#/components/schemas/idp-protocol_block_missing","idp.scopes_missing_openid":"#/components/schemas/idp-scopes_missing_openid","internal":"#/components/schemas/internal","tkn.invalid":"#/components/schemas/tkn-invalid","not_implemented":"#/components/schemas/not_implemented","proj.last_owner":"#/components/schemas/proj-last_owner","proj.origin_not_allowed":"#/components/schemas/proj-origin_not_allowed","proj.preview_not_live":"#/components/schemas/proj-preview_not_live","rel.not_deployed":"#/components/schemas/rel-not_deployed","rel.not_found":"#/components/schemas/rel-not_found","rel.revoked":"#/components/schemas/rel-revoked","req.invalid":"#/components/schemas/req-invalid","enc_key.unknown_alg":"#/components/schemas/enc_key-unknown_alg","unavailable":"#/components/schemas/unavailable","user.already_exists":"#/components/schemas/user-already_exists","user.conflict":"#/components/schemas/user-conflict","user.invalid":"#/components/schemas/user-invalid","user.not_found":"#/components/schemas/user-not_found","user.password_empty":"#/components/schemas/user-password_empty","user.password_hashing_busy":"#/components/schemas/user-password_hashing_busy","user.password_policy_violation":"#/components/schemas/user-password_policy_violation","user.password_too_long":"#/components/schemas/user-password_too_long"}}},"examples":{"app.client_not_found":{"$ref":"#/components/examples/app-client_not_found"},"att.already_handed_off":{"$ref":"#/components/examples/att-already_handed_off"},"att.invalid_request":{"$ref":"#/components/examples/att-invalid_request"},"att.invalid_state":{"$ref":"#/components/examples/att-invalid_state"},"att.not_completed":{"$ref":"#/components/examples/att-not_completed"},"att.not_found":{"$ref":"#/components/examples/att-not_found"},"att.proof_rejected":{"$ref":"#/components/examples/att-proof_rejected"},"att.stale_challenge":{"$ref":"#/components/examples/att-stale_challenge"},"authreq.code_not_issued":{"$ref":"#/components/examples/authreq-code_not_issued"},"clientdoc.invalid":{"$ref":"#/components/examples/clientdoc-invalid"},"clientdoc.not_admitted":{"$ref":"#/components/examples/clientdoc-not_admitted"},"clientdoc.unavailable":{"$ref":"#/components/examples/clientdoc-unavailable"},"enc_key.decrypt_failed":{"$ref":"#/components/examples/enc_key-decrypt_failed"},"dep.not_found":{"$ref":"#/components/examples/dep-not_found"},"enc_key.encrypt_failed":{"$ref":"#/components/examples/enc_key-encrypt_failed"},"enc_key.not_found":{"$ref":"#/components/examples/enc_key-not_found"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"flow.auth_request_invalid":{"$ref":"#/components/examples/flow-auth_request_invalid"},"flow.consent_scopes_invalid":{"$ref":"#/components/examples/flow-consent_scopes_invalid"},"flow.cookie_expired":{"$ref":"#/components/examples/flow-cookie_expired"},"flow.cookie_invalid":{"$ref":"#/components/examples/flow-cookie_invalid"},"flow.integrity":{"$ref":"#/components/examples/flow-integrity"},"flow.invalid_action":{"$ref":"#/components/examples/flow-invalid_action"},"flow.not_found":{"$ref":"#/components/examples/flow-not_found"},"flow.proof_invalid":{"$ref":"#/components/examples/flow-proof_invalid"},"flow.rate_limited":{"$ref":"#/components/examples/flow-rate_limited"},"flow.restart_required":{"$ref":"#/components/examples/flow-restart_required"},"flow.sso_user_schema_mismatch":{"$ref":"#/components/examples/flow-sso_user_schema_mismatch"},"flow.unsupported":{"$ref":"#/components/examples/flow-unsupported"},"idp.endpoint_cleartext":{"$ref":"#/components/examples/idp-endpoint_cleartext"},"idp.endpoints_partial":{"$ref":"#/components/examples/idp-endpoints_partial"},"idp.protocol_block_missing":{"$ref":"#/components/examples/idp-protocol_block_missing"},"idp.scopes_missing_openid":{"$ref":"#/components/examples/idp-scopes_missing_openid"},"internal":{"$ref":"#/components/examples/internal"},"tkn.invalid":{"$ref":"#/components/examples/tkn-invalid"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.last_owner":{"$ref":"#/components/examples/proj-last_owner"},"proj.origin_not_allowed":{"$ref":"#/components/examples/proj-origin_not_allowed"},"proj.preview_not_live":{"$ref":"#/components/examples/proj-preview_not_live"},"rel.not_deployed":{"$ref":"#/components/examples/rel-not_deployed"},"rel.not_found":{"$ref":"#/components/examples/rel-not_found"},"rel.revoked":{"$ref":"#/components/examples/rel-revoked"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"enc_key.unknown_alg":{"$ref":"#/components/examples/enc_key-unknown_alg"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.already_exists":{"$ref":"#/components/examples/user-already_exists"},"user.conflict":{"$ref":"#/components/examples/user-conflict"},"user.invalid":{"$ref":"#/components/examples/user-invalid"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.password_empty":{"$ref":"#/components/examples/user-password_empty"},"user.password_hashing_busy":{"$ref":"#/components/examples/user-password_hashing_busy"},"user.password_policy_violation":{"$ref":"#/components/examples/user-password_policy_violation"},"user.password_too_long":{"$ref":"#/components/examples/user-password_too_long"}}}}},"createAuthAttempt-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/att-invalid_request"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/enc_key-decrypt_failed"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-mismatch"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/proj-origin_not_allowed"},{"$ref":"#/components/schemas/proj-preview_not_live"},{"$ref":"#/components/schemas/rel-no_default"},{"$ref":"#/components/schemas/rel-not_deployed"},{"$ref":"#/components/schemas/rel-not_found"},{"$ref":"#/components/schemas/rel-revoked"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/enc_key-unknown_alg"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"att.invalid_request":"#/components/schemas/att-invalid_request","auth.unauthorized":"#/components/schemas/auth-unauthorized","enc_key.decrypt_failed":"#/components/schemas/enc_key-decrypt_failed","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.mismatch":"#/components/schemas/proj-mismatch","proj.not_found":"#/components/schemas/proj-not_found","proj.origin_not_allowed":"#/components/schemas/proj-origin_not_allowed","proj.preview_not_live":"#/components/schemas/proj-preview_not_live","rel.no_default":"#/components/schemas/rel-no_default","rel.not_deployed":"#/components/schemas/rel-not_deployed","rel.not_found":"#/components/schemas/rel-not_found","rel.revoked":"#/components/schemas/rel-revoked","req.invalid":"#/components/schemas/req-invalid","enc_key.unknown_alg":"#/components/schemas/enc_key-unknown_alg","unavailable":"#/components/schemas/unavailable"}}},"examples":{"att.invalid_request":{"$ref":"#/components/examples/att-invalid_request"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"enc_key.decrypt_failed":{"$ref":"#/components/examples/enc_key-decrypt_failed"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.mismatch":{"$ref":"#/components/examples/proj-mismatch"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"proj.origin_not_allowed":{"$ref":"#/components/examples/proj-origin_not_allowed"},"proj.preview_not_live":{"$ref":"#/components/examples/proj-preview_not_live"},"rel.no_default":{"$ref":"#/components/examples/rel-no_default"},"rel.not_deployed":{"$ref":"#/components/examples/rel-not_deployed"},"rel.not_found":{"$ref":"#/components/examples/rel-not_found"},"rel.revoked":{"$ref":"#/components/examples/rel-revoked"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"enc_key.unknown_alg":{"$ref":"#/components/examples/enc_key-unknown_alg"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getAuthAttempt-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/att-not_found"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"att.not_found":"#/components/schemas/att-not_found","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"att.not_found":{"$ref":"#/components/examples/att-not_found"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"createAuthAttemptChallenge-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/att-already_handed_off"},{"$ref":"#/components/schemas/att-invalid_request"},{"$ref":"#/components/schemas/att-invalid_state"},{"$ref":"#/components/schemas/att-not_found"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"att.already_handed_off":"#/components/schemas/att-already_handed_off","att.invalid_request":"#/components/schemas/att-invalid_request","att.invalid_state":"#/components/schemas/att-invalid_state","att.not_found":"#/components/schemas/att-not_found","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"att.already_handed_off":{"$ref":"#/components/examples/att-already_handed_off"},"att.invalid_request":{"$ref":"#/components/examples/att-invalid_request"},"att.invalid_state":{"$ref":"#/components/examples/att-invalid_state"},"att.not_found":{"$ref":"#/components/examples/att-not_found"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"verifyAuthAttemptChallenge-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/att-already_handed_off"},{"$ref":"#/components/schemas/att-invalid_proof"},{"$ref":"#/components/schemas/att-invalid_request"},{"$ref":"#/components/schemas/att-invalid_state"},{"$ref":"#/components/schemas/att-not_found"},{"$ref":"#/components/schemas/att-proof_rejected"},{"$ref":"#/components/schemas/att-stale_challenge"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-already_exists"},{"$ref":"#/components/schemas/user-invalid"},{"$ref":"#/components/schemas/user-not_found"},{"$ref":"#/components/schemas/user-password_empty"},{"$ref":"#/components/schemas/user-password_hashing_busy"},{"$ref":"#/components/schemas/user-password_policy_violation"},{"$ref":"#/components/schemas/user-password_too_long"}],"discriminator":{"propertyName":"code","mapping":{"att.already_handed_off":"#/components/schemas/att-already_handed_off","att.invalid_proof":"#/components/schemas/att-invalid_proof","att.invalid_request":"#/components/schemas/att-invalid_request","att.invalid_state":"#/components/schemas/att-invalid_state","att.not_found":"#/components/schemas/att-not_found","att.proof_rejected":"#/components/schemas/att-proof_rejected","att.stale_challenge":"#/components/schemas/att-stale_challenge","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.already_exists":"#/components/schemas/user-already_exists","user.invalid":"#/components/schemas/user-invalid","user.not_found":"#/components/schemas/user-not_found","user.password_empty":"#/components/schemas/user-password_empty","user.password_hashing_busy":"#/components/schemas/user-password_hashing_busy","user.password_policy_violation":"#/components/schemas/user-password_policy_violation","user.password_too_long":"#/components/schemas/user-password_too_long"}}},"examples":{"att.already_handed_off":{"$ref":"#/components/examples/att-already_handed_off"},"att.invalid_proof":{"$ref":"#/components/examples/att-invalid_proof"},"att.invalid_request":{"$ref":"#/components/examples/att-invalid_request"},"att.invalid_state":{"$ref":"#/components/examples/att-invalid_state"},"att.not_found":{"$ref":"#/components/examples/att-not_found"},"att.proof_rejected":{"$ref":"#/components/examples/att-proof_rejected"},"att.stale_challenge":{"$ref":"#/components/examples/att-stale_challenge"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.already_exists":{"$ref":"#/components/examples/user-already_exists"},"user.invalid":{"$ref":"#/components/examples/user-invalid"},"user.not_found":{"$ref":"#/components/examples/user-not_found"},"user.password_empty":{"$ref":"#/components/examples/user-password_empty"},"user.password_hashing_busy":{"$ref":"#/components/examples/user-password_hashing_busy"},"user.password_policy_violation":{"$ref":"#/components/examples/user-password_policy_violation"},"user.password_too_long":{"$ref":"#/components/examples/user-password_too_long"}}}}},"createAuthAttemptHandoff-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/att-already_handed_off"},{"$ref":"#/components/schemas/att-invalid_state"},{"$ref":"#/components/schemas/att-not_completed"},{"$ref":"#/components/schemas/att-not_found"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"att.already_handed_off":"#/components/schemas/att-already_handed_off","att.invalid_state":"#/components/schemas/att-invalid_state","att.not_completed":"#/components/schemas/att-not_completed","att.not_found":"#/components/schemas/att-not_found","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"att.already_handed_off":{"$ref":"#/components/examples/att-already_handed_off"},"att.invalid_state":{"$ref":"#/components/examples/att-invalid_state"},"att.not_completed":{"$ref":"#/components/examples/att-not_completed"},"att.not_found":{"$ref":"#/components/examples/att-not_found"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"createProject-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/enc_key-decrypt_failed"},{"$ref":"#/components/schemas/enc_key-not_found"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/tkn-invalid"},{"$ref":"#/components/schemas/tkn-invalid_tknid"},{"$ref":"#/components/schemas/sch-invalid_request"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/origin-invalid"},{"$ref":"#/components/schemas/origin-kind_conflict"},{"$ref":"#/components/schemas/origin-primary_not_exact"},{"$ref":"#/components/schemas/proj-name_invalid"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/enc_key-unknown_alg"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"enc_key.decrypt_failed":"#/components/schemas/enc_key-decrypt_failed","enc_key.not_found":"#/components/schemas/enc_key-not_found","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","tkn.invalid":"#/components/schemas/tkn-invalid","tkn.invalid_tknid":"#/components/schemas/tkn-invalid_tknid","sch.invalid_request":"#/components/schemas/sch-invalid_request","not_implemented":"#/components/schemas/not_implemented","origin.invalid":"#/components/schemas/origin-invalid","origin.kind_conflict":"#/components/schemas/origin-kind_conflict","origin.primary_not_exact":"#/components/schemas/origin-primary_not_exact","proj.name_invalid":"#/components/schemas/proj-name_invalid","req.invalid":"#/components/schemas/req-invalid","enc_key.unknown_alg":"#/components/schemas/enc_key-unknown_alg","unavailable":"#/components/schemas/unavailable"}}},"examples":{"enc_key.decrypt_failed":{"$ref":"#/components/examples/enc_key-decrypt_failed"},"enc_key.not_found":{"$ref":"#/components/examples/enc_key-not_found"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"tkn.invalid":{"$ref":"#/components/examples/tkn-invalid"},"tkn.invalid_tknid":{"$ref":"#/components/examples/tkn-invalid_tknid"},"sch.invalid_request":{"$ref":"#/components/examples/sch-invalid_request"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"origin.invalid":{"$ref":"#/components/examples/origin-invalid"},"origin.kind_conflict":{"$ref":"#/components/examples/origin-kind_conflict"},"origin.primary_not_exact":{"$ref":"#/components/examples/origin-primary_not_exact"},"proj.name_invalid":{"$ref":"#/components/examples/proj-name_invalid"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"enc_key.unknown_alg":{"$ref":"#/components/examples/enc_key-unknown_alg"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"queryProjects-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-missing_id"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/proj-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.missing_id":"#/components/schemas/proj-missing_id","proj.not_found":"#/components/schemas/proj-not_found","proj.permission_denied":"#/components/schemas/proj-permission_denied","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.missing_id":{"$ref":"#/components/examples/proj-missing_id"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"proj.permission_denied":{"$ref":"#/components/examples/proj-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getProject-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/proj-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.not_found":"#/components/schemas/proj-not_found","proj.permission_denied":"#/components/schemas/proj-permission_denied","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"proj.permission_denied":{"$ref":"#/components/examples/proj-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"updateProject-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-missing_id"},{"$ref":"#/components/schemas/proj-name_invalid"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/proj-password_hash_invalid"},{"$ref":"#/components/schemas/proj-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.missing_id":"#/components/schemas/proj-missing_id","proj.name_invalid":"#/components/schemas/proj-name_invalid","proj.not_found":"#/components/schemas/proj-not_found","proj.password_hash_invalid":"#/components/schemas/proj-password_hash_invalid","proj.permission_denied":"#/components/schemas/proj-permission_denied","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.missing_id":{"$ref":"#/components/examples/proj-missing_id"},"proj.name_invalid":{"$ref":"#/components/examples/proj-name_invalid"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"proj.password_hash_invalid":{"$ref":"#/components/examples/proj-password_hash_invalid"},"proj.permission_denied":{"$ref":"#/components/examples/proj-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listProjectMembers-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-missing_id"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/proj-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.missing_id":"#/components/schemas/proj-missing_id","proj.not_found":"#/components/schemas/proj-not_found","proj.permission_denied":"#/components/schemas/proj-permission_denied","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.missing_id":{"$ref":"#/components/examples/proj-missing_id"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"proj.permission_denied":{"$ref":"#/components/examples/proj-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"createProjectClaim-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/claim_challenge-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-already_claimed"},{"$ref":"#/components/schemas/proj-claim_window_expired"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/proj-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","claim_challenge.invalid":"#/components/schemas/claim_challenge-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.already_claimed":"#/components/schemas/proj-already_claimed","proj.claim_window_expired":"#/components/schemas/proj-claim_window_expired","proj.not_found":"#/components/schemas/proj-not_found","proj.permission_denied":"#/components/schemas/proj-permission_denied","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"claim_challenge.invalid":{"$ref":"#/components/examples/claim_challenge-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.already_claimed":{"$ref":"#/components/examples/proj-already_claimed"},"proj.claim_window_expired":{"$ref":"#/components/examples/proj-claim_window_expired"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"proj.permission_denied":{"$ref":"#/components/examples/proj-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getProjectClaimStatus-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/claim_challenge-not_found"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-claim_expired"},{"$ref":"#/components/schemas/proj-claim_window_expired"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/proj-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","claim_challenge.not_found":"#/components/schemas/claim_challenge-not_found","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.claim_expired":"#/components/schemas/proj-claim_expired","proj.claim_window_expired":"#/components/schemas/proj-claim_window_expired","proj.not_found":"#/components/schemas/proj-not_found","proj.permission_denied":"#/components/schemas/proj-permission_denied","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"claim_challenge.not_found":{"$ref":"#/components/examples/claim_challenge-not_found"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.claim_expired":{"$ref":"#/components/examples/proj-claim_expired"},"proj.claim_window_expired":{"$ref":"#/components/examples/proj-claim_window_expired"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"proj.permission_denied":{"$ref":"#/components/examples/proj-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"completeProjectClaim-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/claim_challenge-not_found"},{"$ref":"#/components/schemas/claim-no_personal_team"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/claim-personal_team_not_active"},{"$ref":"#/components/schemas/proj-already_claimed"},{"$ref":"#/components/schemas/proj-claim_expired"},{"$ref":"#/components/schemas/proj-claim_window_expired"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-not_found"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.unauthorized":"#/components/schemas/auth-unauthorized","claim_challenge.not_found":"#/components/schemas/claim_challenge-not_found","claim.no_personal_team":"#/components/schemas/claim-no_personal_team","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","claim.personal_team_not_active":"#/components/schemas/claim-personal_team_not_active","proj.already_claimed":"#/components/schemas/proj-already_claimed","proj.claim_expired":"#/components/schemas/proj-claim_expired","proj.claim_window_expired":"#/components/schemas/proj-claim_window_expired","proj.not_found":"#/components/schemas/proj-not_found","req.invalid":"#/components/schemas/req-invalid","sess.not_found":"#/components/schemas/sess-not_found","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"claim_challenge.not_found":{"$ref":"#/components/examples/claim_challenge-not_found"},"claim.no_personal_team":{"$ref":"#/components/examples/claim-no_personal_team"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"claim.personal_team_not_active":{"$ref":"#/components/examples/claim-personal_team_not_active"},"proj.already_claimed":{"$ref":"#/components/examples/proj-already_claimed"},"proj.claim_expired":{"$ref":"#/components/examples/proj-claim_expired"},"proj.claim_window_expired":{"$ref":"#/components/examples/proj-claim_window_expired"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.not_found":{"$ref":"#/components/examples/sess-not_found"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getProjectClaimWindow-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/claim_challenge-not_found"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/req-invalid"}],"discriminator":{"propertyName":"code","mapping":{"claim_challenge.not_found":"#/components/schemas/claim_challenge-not_found","internal":"#/components/schemas/internal","req.invalid":"#/components/schemas/req-invalid"}}},"examples":{"claim_challenge.not_found":{"$ref":"#/components/examples/claim_challenge-not_found"},"internal":{"$ref":"#/components/examples/internal"},"req.invalid":{"$ref":"#/components/examples/req-invalid"}}}}},"addProjectOrigin-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/origin-invalid"},{"$ref":"#/components/schemas/origin-kind_conflict"},{"$ref":"#/components/schemas/origin-not_found"},{"$ref":"#/components/schemas/origin-permission_denied"},{"$ref":"#/components/schemas/origin-primary_not_exact"},{"$ref":"#/components/schemas/proj-missing_id"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","origin.invalid":"#/components/schemas/origin-invalid","origin.kind_conflict":"#/components/schemas/origin-kind_conflict","origin.not_found":"#/components/schemas/origin-not_found","origin.permission_denied":"#/components/schemas/origin-permission_denied","origin.primary_not_exact":"#/components/schemas/origin-primary_not_exact","proj.missing_id":"#/components/schemas/proj-missing_id","proj.not_found":"#/components/schemas/proj-not_found","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"origin.invalid":{"$ref":"#/components/examples/origin-invalid"},"origin.kind_conflict":{"$ref":"#/components/examples/origin-kind_conflict"},"origin.not_found":{"$ref":"#/components/examples/origin-not_found"},"origin.permission_denied":{"$ref":"#/components/examples/origin-permission_denied"},"origin.primary_not_exact":{"$ref":"#/components/examples/origin-primary_not_exact"},"proj.missing_id":{"$ref":"#/components/examples/proj-missing_id"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"removeProjectOrigin-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/origin-invalid"},{"$ref":"#/components/schemas/origin-not_found"},{"$ref":"#/components/schemas/origin-permission_denied"},{"$ref":"#/components/schemas/proj-missing_id"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","origin.invalid":"#/components/schemas/origin-invalid","origin.not_found":"#/components/schemas/origin-not_found","origin.permission_denied":"#/components/schemas/origin-permission_denied","proj.missing_id":"#/components/schemas/proj-missing_id","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"origin.invalid":{"$ref":"#/components/examples/origin-invalid"},"origin.not_found":{"$ref":"#/components/examples/origin-not_found"},"origin.permission_denied":{"$ref":"#/components/examples/origin-permission_denied"},"proj.missing_id":{"$ref":"#/components/examples/proj-missing_id"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listProjectPreviews-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/dep-not_found"},{"$ref":"#/components/schemas/dep-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","dep.not_found":"#/components/schemas/dep-not_found","dep.permission_denied":"#/components/schemas/dep-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"dep.not_found":{"$ref":"#/components/examples/dep-not_found"},"dep.permission_denied":{"$ref":"#/components/examples/dep-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"removeProjectPreview-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/dep-not_found"},{"$ref":"#/components/schemas/dep-permission_denied"},{"$ref":"#/components/schemas/env-project_not_found"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","dep.not_found":"#/components/schemas/dep-not_found","dep.permission_denied":"#/components/schemas/dep-permission_denied","env.project_not_found":"#/components/schemas/env-project_not_found","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"dep.not_found":{"$ref":"#/components/examples/dep-not_found"},"dep.permission_denied":{"$ref":"#/components/examples/dep-permission_denied"},"env.project_not_found":{"$ref":"#/components/examples/env-project_not_found"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"createSession-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/enc_key-decrypt_failed"},{"$ref":"#/components/schemas/enc_key-not_found"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/tkn-invalid"},{"$ref":"#/components/schemas/tkn-invalid_tknid"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-mismatch"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-token_creation_failed"},{"$ref":"#/components/schemas/enc_key-unknown_alg"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","enc_key.decrypt_failed":"#/components/schemas/enc_key-decrypt_failed","enc_key.not_found":"#/components/schemas/enc_key-not_found","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","tkn.invalid":"#/components/schemas/tkn-invalid","tkn.invalid_tknid":"#/components/schemas/tkn-invalid_tknid","not_implemented":"#/components/schemas/not_implemented","proj.mismatch":"#/components/schemas/proj-mismatch","req.invalid":"#/components/schemas/req-invalid","sess.token_creation_failed":"#/components/schemas/sess-token_creation_failed","enc_key.unknown_alg":"#/components/schemas/enc_key-unknown_alg","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"enc_key.decrypt_failed":{"$ref":"#/components/examples/enc_key-decrypt_failed"},"enc_key.not_found":{"$ref":"#/components/examples/enc_key-not_found"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"tkn.invalid":{"$ref":"#/components/examples/tkn-invalid"},"tkn.invalid_tknid":{"$ref":"#/components/examples/tkn-invalid_tknid"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.mismatch":{"$ref":"#/components/examples/proj-mismatch"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.token_creation_failed":{"$ref":"#/components/examples/sess-token_creation_failed"},"enc_key.unknown_alg":{"$ref":"#/components/examples/enc_key-unknown_alg"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"querySessions-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-missing_id"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-not_found"},{"$ref":"#/components/schemas/sess-permission_denied"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.missing_id":"#/components/schemas/proj-missing_id","req.invalid":"#/components/schemas/req-invalid","sess.not_found":"#/components/schemas/sess-not_found","sess.permission_denied":"#/components/schemas/sess-permission_denied","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.missing_id":{"$ref":"#/components/examples/proj-missing_id"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.not_found":{"$ref":"#/components/examples/sess-not_found"},"sess.permission_denied":{"$ref":"#/components/examples/sess-permission_denied"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"exchangeHandoff-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/att-not_found"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/enc_key-decrypt_failed"},{"$ref":"#/components/schemas/enc_key-not_found"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/tkn-invalid"},{"$ref":"#/components/schemas/tkn-invalid_tknid"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-mismatch"},{"$ref":"#/components/schemas/rel-revoked"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-exchange_conflict"},{"$ref":"#/components/schemas/sess-invalid_handoff_token"},{"$ref":"#/components/schemas/sess-invalid_ttl"},{"$ref":"#/components/schemas/sess-not_found"},{"$ref":"#/components/schemas/sess-token_creation_failed"},{"$ref":"#/components/schemas/enc_key-unknown_alg"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"att.not_found":"#/components/schemas/att-not_found","auth.unauthorized":"#/components/schemas/auth-unauthorized","enc_key.decrypt_failed":"#/components/schemas/enc_key-decrypt_failed","enc_key.not_found":"#/components/schemas/enc_key-not_found","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","tkn.invalid":"#/components/schemas/tkn-invalid","tkn.invalid_tknid":"#/components/schemas/tkn-invalid_tknid","not_implemented":"#/components/schemas/not_implemented","proj.mismatch":"#/components/schemas/proj-mismatch","rel.revoked":"#/components/schemas/rel-revoked","req.invalid":"#/components/schemas/req-invalid","sess.exchange_conflict":"#/components/schemas/sess-exchange_conflict","sess.invalid_handoff_token":"#/components/schemas/sess-invalid_handoff_token","sess.invalid_ttl":"#/components/schemas/sess-invalid_ttl","sess.not_found":"#/components/schemas/sess-not_found","sess.token_creation_failed":"#/components/schemas/sess-token_creation_failed","enc_key.unknown_alg":"#/components/schemas/enc_key-unknown_alg","unavailable":"#/components/schemas/unavailable"}}},"examples":{"att.not_found":{"$ref":"#/components/examples/att-not_found"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"enc_key.decrypt_failed":{"$ref":"#/components/examples/enc_key-decrypt_failed"},"enc_key.not_found":{"$ref":"#/components/examples/enc_key-not_found"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"tkn.invalid":{"$ref":"#/components/examples/tkn-invalid"},"tkn.invalid_tknid":{"$ref":"#/components/examples/tkn-invalid_tknid"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.mismatch":{"$ref":"#/components/examples/proj-mismatch"},"rel.revoked":{"$ref":"#/components/examples/rel-revoked"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.exchange_conflict":{"$ref":"#/components/examples/sess-exchange_conflict"},"sess.invalid_handoff_token":{"$ref":"#/components/examples/sess-invalid_handoff_token"},"sess.invalid_ttl":{"$ref":"#/components/examples/sess-invalid_ttl"},"sess.not_found":{"$ref":"#/components/examples/sess-not_found"},"sess.token_creation_failed":{"$ref":"#/components/examples/sess-token_creation_failed"},"enc_key.unknown_alg":{"$ref":"#/components/examples/enc_key-unknown_alg"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getSession-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-not_found"},{"$ref":"#/components/schemas/sess-permission_denied"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.not_found":"#/components/schemas/sess-not_found","sess.permission_denied":"#/components/schemas/sess-permission_denied","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.not_found":{"$ref":"#/components/examples/sess-not_found"},"sess.permission_denied":{"$ref":"#/components/examples/sess-permission_denied"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"revokeSession-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-not_found"},{"$ref":"#/components/schemas/sess-permission_denied"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.not_found":"#/components/schemas/sess-not_found","sess.permission_denied":"#/components/schemas/sess-permission_denied","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.not_found":{"$ref":"#/components/examples/sess-not_found"},"sess.permission_denied":{"$ref":"#/components/examples/sess-permission_denied"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getMySession-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-not_found"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.not_found":"#/components/schemas/sess-not_found","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.not_found":{"$ref":"#/components/examples/sess-not_found"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"revokeMySession-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-not_found"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.not_found":"#/components/schemas/sess-not_found","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.not_found":{"$ref":"#/components/examples/sess-not_found"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getMySessionCsrfToken-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-not_found"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","sess.not_found":"#/components/schemas/sess-not_found","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.not_found":{"$ref":"#/components/examples/sess-not_found"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listSchemas-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/sch-not_found"},{"$ref":"#/components/schemas/sch-permission_denied"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","sch.not_found":"#/components/schemas/sch-not_found","sch.permission_denied":"#/components/schemas/sch-permission_denied","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"sch.not_found":{"$ref":"#/components/examples/sch-not_found"},"sch.permission_denied":{"$ref":"#/components/examples/sch-permission_denied"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"publishSchema-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/sch-already_exists"},{"$ref":"#/components/schemas/sch-fetch_denied"},{"$ref":"#/components/schemas/sch-fetch_downgrade"},{"$ref":"#/components/schemas/sch-fetch_timeout"},{"$ref":"#/components/schemas/sch-fetch_too_large"},{"$ref":"#/components/schemas/sch-fetch_too_many_redirects"},{"$ref":"#/components/schemas/sch-invalid_request"},{"$ref":"#/components/schemas/sch-not_found"},{"$ref":"#/components/schemas/sch-permission_denied"},{"$ref":"#/components/schemas/sch-revision_conflict"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","sch.already_exists":"#/components/schemas/sch-already_exists","sch.fetch_denied":"#/components/schemas/sch-fetch_denied","sch.fetch_downgrade":"#/components/schemas/sch-fetch_downgrade","sch.fetch_timeout":"#/components/schemas/sch-fetch_timeout","sch.fetch_too_large":"#/components/schemas/sch-fetch_too_large","sch.fetch_too_many_redirects":"#/components/schemas/sch-fetch_too_many_redirects","sch.invalid_request":"#/components/schemas/sch-invalid_request","sch.not_found":"#/components/schemas/sch-not_found","sch.permission_denied":"#/components/schemas/sch-permission_denied","sch.revision_conflict":"#/components/schemas/sch-revision_conflict","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"sch.already_exists":{"$ref":"#/components/examples/sch-already_exists"},"sch.fetch_denied":{"$ref":"#/components/examples/sch-fetch_denied"},"sch.fetch_downgrade":{"$ref":"#/components/examples/sch-fetch_downgrade"},"sch.fetch_timeout":{"$ref":"#/components/examples/sch-fetch_timeout"},"sch.fetch_too_large":{"$ref":"#/components/examples/sch-fetch_too_large"},"sch.fetch_too_many_redirects":{"$ref":"#/components/examples/sch-fetch_too_many_redirects"},"sch.invalid_request":{"$ref":"#/components/examples/sch-invalid_request"},"sch.not_found":{"$ref":"#/components/examples/sch-not_found"},"sch.permission_denied":{"$ref":"#/components/examples/sch-permission_denied"},"sch.revision_conflict":{"$ref":"#/components/examples/sch-revision_conflict"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getSchema-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/sch-not_found"},{"$ref":"#/components/schemas/sch-permission_denied"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","sch.not_found":"#/components/schemas/sch-not_found","sch.permission_denied":"#/components/schemas/sch-permission_denied","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"sch.not_found":{"$ref":"#/components/examples/sch-not_found"},"sch.permission_denied":{"$ref":"#/components/examples/sch-permission_denied"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listFlowDefinitions-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/flowdef-invalid"},{"$ref":"#/components/schemas/flowdef-not_found"},{"$ref":"#/components/schemas/flowdef-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/sch-not_found"},{"$ref":"#/components/schemas/sch-permission_denied"},{"$ref":"#/components/schemas/flowdef-missing_project_id"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","flowdef.invalid":"#/components/schemas/flowdef-invalid","flowdef.not_found":"#/components/schemas/flowdef-not_found","flowdef.permission_denied":"#/components/schemas/flowdef-permission_denied","internal":"#/components/schemas/internal","sch.not_found":"#/components/schemas/sch-not_found","sch.permission_denied":"#/components/schemas/sch-permission_denied","flowdef.missing_project_id":"#/components/schemas/flowdef-missing_project_id","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"flowdef.invalid":{"$ref":"#/components/examples/flowdef-invalid"},"flowdef.not_found":{"$ref":"#/components/examples/flowdef-not_found"},"flowdef.permission_denied":{"$ref":"#/components/examples/flowdef-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"sch.not_found":{"$ref":"#/components/examples/sch-not_found"},"sch.permission_denied":{"$ref":"#/components/examples/sch-permission_denied"},"flowdef.missing_project_id":{"$ref":"#/components/examples/flowdef-missing_project_id"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"publishFlowDefinition-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/flowdef-invalid"},{"$ref":"#/components/schemas/flowdef-not_found"},{"$ref":"#/components/schemas/flowdef-permission_denied"},{"$ref":"#/components/schemas/flowdef-revision_conflict"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/sch-not_found"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/flowdef-schema_fetch_failed"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","flowdef.invalid":"#/components/schemas/flowdef-invalid","flowdef.not_found":"#/components/schemas/flowdef-not_found","flowdef.permission_denied":"#/components/schemas/flowdef-permission_denied","flowdef.revision_conflict":"#/components/schemas/flowdef-revision_conflict","internal":"#/components/schemas/internal","sch.not_found":"#/components/schemas/sch-not_found","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","flowdef.schema_fetch_failed":"#/components/schemas/flowdef-schema_fetch_failed","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"flowdef.invalid":{"$ref":"#/components/examples/flowdef-invalid"},"flowdef.not_found":{"$ref":"#/components/examples/flowdef-not_found"},"flowdef.permission_denied":{"$ref":"#/components/examples/flowdef-permission_denied"},"flowdef.revision_conflict":{"$ref":"#/components/examples/flowdef-revision_conflict"},"internal":{"$ref":"#/components/examples/internal"},"sch.not_found":{"$ref":"#/components/examples/sch-not_found"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"flowdef.schema_fetch_failed":{"$ref":"#/components/examples/flowdef-schema_fetch_failed"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getFlowDefinition-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/flowdef-not_found"},{"$ref":"#/components/schemas/flowdef-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/flowdef-missing_id"},{"$ref":"#/components/schemas/flowdef-missing_project_id"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","flowdef.not_found":"#/components/schemas/flowdef-not_found","flowdef.permission_denied":"#/components/schemas/flowdef-permission_denied","internal":"#/components/schemas/internal","flowdef.missing_id":"#/components/schemas/flowdef-missing_id","flowdef.missing_project_id":"#/components/schemas/flowdef-missing_project_id","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"flowdef.not_found":{"$ref":"#/components/examples/flowdef-not_found"},"flowdef.permission_denied":{"$ref":"#/components/examples/flowdef-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"flowdef.missing_id":{"$ref":"#/components/examples/flowdef-missing_id"},"flowdef.missing_project_id":{"$ref":"#/components/examples/flowdef-missing_project_id"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"createTeam-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/team-already_exists"},{"$ref":"#/components/schemas/team-name_invalid"},{"$ref":"#/components/schemas/team-team_not_found"},{"$ref":"#/components/schemas/team-permission_denied"},{"$ref":"#/components/schemas/team-project_not_found"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","team.already_exists":"#/components/schemas/team-already_exists","team.name_invalid":"#/components/schemas/team-name_invalid","team.team_not_found":"#/components/schemas/team-team_not_found","team.permission_denied":"#/components/schemas/team-permission_denied","team.project_not_found":"#/components/schemas/team-project_not_found","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"team.already_exists":{"$ref":"#/components/examples/team-already_exists"},"team.name_invalid":{"$ref":"#/components/examples/team-name_invalid"},"team.team_not_found":{"$ref":"#/components/examples/team-team_not_found"},"team.permission_denied":{"$ref":"#/components/examples/team-permission_denied"},"team.project_not_found":{"$ref":"#/components/examples/team-project_not_found"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"queryTeams-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/team-team_not_found"},{"$ref":"#/components/schemas/team-permission_denied"},{"$ref":"#/components/schemas/team-project_not_found"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","team.team_not_found":"#/components/schemas/team-team_not_found","team.permission_denied":"#/components/schemas/team-permission_denied","team.project_not_found":"#/components/schemas/team-project_not_found","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"team.team_not_found":{"$ref":"#/components/examples/team-team_not_found"},"team.permission_denied":{"$ref":"#/components/examples/team-permission_denied"},"team.project_not_found":{"$ref":"#/components/examples/team-project_not_found"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getTeam-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/team-team_not_found"},{"$ref":"#/components/schemas/team-permission_denied"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","team.team_not_found":"#/components/schemas/team-team_not_found","team.permission_denied":"#/components/schemas/team-permission_denied","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"team.team_not_found":{"$ref":"#/components/examples/team-team_not_found"},"team.permission_denied":{"$ref":"#/components/examples/team-permission_denied"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"deactivateTeam-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-last_owner"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/team-team_not_found"},{"$ref":"#/components/schemas/team-owns_project"},{"$ref":"#/components/schemas/team-permission_denied"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.last_owner":"#/components/schemas/proj-last_owner","req.invalid":"#/components/schemas/req-invalid","team.team_not_found":"#/components/schemas/team-team_not_found","team.owns_project":"#/components/schemas/team-owns_project","team.permission_denied":"#/components/schemas/team-permission_denied","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.last_owner":{"$ref":"#/components/examples/proj-last_owner"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"team.team_not_found":{"$ref":"#/components/examples/team-team_not_found"},"team.owns_project":{"$ref":"#/components/examples/team-owns_project"},"team.permission_denied":{"$ref":"#/components/examples/team-permission_denied"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"updateTeam-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/team-already_exists"},{"$ref":"#/components/schemas/team-name_invalid"},{"$ref":"#/components/schemas/team-team_not_found"},{"$ref":"#/components/schemas/team-permission_denied"},{"$ref":"#/components/schemas/team-project_not_found"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","team.already_exists":"#/components/schemas/team-already_exists","team.name_invalid":"#/components/schemas/team-name_invalid","team.team_not_found":"#/components/schemas/team-team_not_found","team.permission_denied":"#/components/schemas/team-permission_denied","team.project_not_found":"#/components/schemas/team-project_not_found","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"team.already_exists":{"$ref":"#/components/examples/team-already_exists"},"team.name_invalid":{"$ref":"#/components/examples/team-name_invalid"},"team.team_not_found":{"$ref":"#/components/examples/team-team_not_found"},"team.permission_denied":{"$ref":"#/components/examples/team-permission_denied"},"team.project_not_found":{"$ref":"#/components/examples/team-project_not_found"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"createTeamMembership-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/team-team_not_found"},{"$ref":"#/components/schemas/team-permission_denied"},{"$ref":"#/components/schemas/team-user_not_active"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","team.team_not_found":"#/components/schemas/team-team_not_found","team.permission_denied":"#/components/schemas/team-permission_denied","team.user_not_active":"#/components/schemas/team-user_not_active","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"team.team_not_found":{"$ref":"#/components/examples/team-team_not_found"},"team.permission_denied":{"$ref":"#/components/examples/team-permission_denied"},"team.user_not_active":{"$ref":"#/components/examples/team-user_not_active"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"}}}}},"deleteTeamMembership-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-last_owner"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/team-team_not_found"},{"$ref":"#/components/schemas/team-permission_denied"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-not_found"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.last_owner":"#/components/schemas/proj-last_owner","req.invalid":"#/components/schemas/req-invalid","team.team_not_found":"#/components/schemas/team-team_not_found","team.permission_denied":"#/components/schemas/team-permission_denied","unavailable":"#/components/schemas/unavailable","user.not_found":"#/components/schemas/user-not_found"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.last_owner":{"$ref":"#/components/examples/proj-last_owner"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"team.team_not_found":{"$ref":"#/components/examples/team-team_not_found"},"team.permission_denied":{"$ref":"#/components/examples/team-permission_denied"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.not_found":{"$ref":"#/components/examples/user-not_found"}}}}},"search-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/flowdef-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/flowdef-missing_project_id"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/proj-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/sess-project_mismatch"},{"$ref":"#/components/schemas/sess-token_invalid"},{"$ref":"#/components/schemas/team-project_not_found"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","flowdef.invalid":"#/components/schemas/flowdef-invalid","internal":"#/components/schemas/internal","flowdef.missing_project_id":"#/components/schemas/flowdef-missing_project_id","not_implemented":"#/components/schemas/not_implemented","proj.not_found":"#/components/schemas/proj-not_found","proj.permission_denied":"#/components/schemas/proj-permission_denied","req.invalid":"#/components/schemas/req-invalid","sess.project_mismatch":"#/components/schemas/sess-project_mismatch","sess.token_invalid":"#/components/schemas/sess-token_invalid","team.project_not_found":"#/components/schemas/team-project_not_found","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"flowdef.invalid":{"$ref":"#/components/examples/flowdef-invalid"},"internal":{"$ref":"#/components/examples/internal"},"flowdef.missing_project_id":{"$ref":"#/components/examples/flowdef-missing_project_id"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"proj.permission_denied":{"$ref":"#/components/examples/proj-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"sess.project_mismatch":{"$ref":"#/components/examples/sess-project_mismatch"},"sess.token_invalid":{"$ref":"#/components/examples/sess-token_invalid"},"team.project_not_found":{"$ref":"#/components/examples/team-project_not_found"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listBranding-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/brnd-not_found"},{"$ref":"#/components/schemas/brnd-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","brnd.not_found":"#/components/schemas/brnd-not_found","brnd.permission_denied":"#/components/schemas/brnd-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"brnd.not_found":{"$ref":"#/components/examples/brnd-not_found"},"brnd.permission_denied":{"$ref":"#/components/examples/brnd-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"publishBranding-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/brnd-invalid"},{"$ref":"#/components/schemas/brnd-missing_project_id"},{"$ref":"#/components/schemas/brnd-not_found"},{"$ref":"#/components/schemas/brnd-permission_denied"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","brnd.invalid":"#/components/schemas/brnd-invalid","brnd.missing_project_id":"#/components/schemas/brnd-missing_project_id","brnd.not_found":"#/components/schemas/brnd-not_found","brnd.permission_denied":"#/components/schemas/brnd-permission_denied","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"brnd.invalid":{"$ref":"#/components/examples/brnd-invalid"},"brnd.missing_project_id":{"$ref":"#/components/examples/brnd-missing_project_id"},"brnd.not_found":{"$ref":"#/components/examples/brnd-not_found"},"brnd.permission_denied":{"$ref":"#/components/examples/brnd-permission_denied"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getBranding-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/brnd-not_found"},{"$ref":"#/components/schemas/brnd-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","brnd.not_found":"#/components/schemas/brnd-not_found","brnd.permission_denied":"#/components/schemas/brnd-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"brnd.not_found":{"$ref":"#/components/examples/brnd-not_found"},"brnd.permission_denied":{"$ref":"#/components/examples/brnd-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getOAuthSettings-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/oauthset-not_found"},{"$ref":"#/components/schemas/oauthset-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","oauthset.not_found":"#/components/schemas/oauthset-not_found","oauthset.permission_denied":"#/components/schemas/oauthset-permission_denied","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"oauthset.not_found":{"$ref":"#/components/examples/oauthset-not_found"},"oauthset.permission_denied":{"$ref":"#/components/examples/oauthset-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"publishIdp-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/idp-field_immutable"},{"$ref":"#/components/schemas/idp-not_found"},{"$ref":"#/components/schemas/idp-permission_denied"},{"$ref":"#/components/schemas/idp-revision_conflict"},{"$ref":"#/components/schemas/idp-endpoints_partial"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","idp.field_immutable":"#/components/schemas/idp-field_immutable","idp.not_found":"#/components/schemas/idp-not_found","idp.permission_denied":"#/components/schemas/idp-permission_denied","idp.revision_conflict":"#/components/schemas/idp-revision_conflict","idp.endpoints_partial":"#/components/schemas/idp-endpoints_partial","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"idp.field_immutable":{"$ref":"#/components/examples/idp-field_immutable"},"idp.not_found":{"$ref":"#/components/examples/idp-not_found"},"idp.permission_denied":{"$ref":"#/components/examples/idp-permission_denied"},"idp.revision_conflict":{"$ref":"#/components/examples/idp-revision_conflict"},"idp.endpoints_partial":{"$ref":"#/components/examples/idp-endpoints_partial"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"queryIdps-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/idp-not_found"},{"$ref":"#/components/schemas/idp-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","idp.not_found":"#/components/schemas/idp-not_found","idp.permission_denied":"#/components/schemas/idp-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"idp.not_found":{"$ref":"#/components/examples/idp-not_found"},"idp.permission_denied":{"$ref":"#/components/examples/idp-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getIdp-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/idp-not_found"},{"$ref":"#/components/schemas/idp-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","idp.not_found":"#/components/schemas/idp-not_found","idp.permission_denied":"#/components/schemas/idp-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"idp.not_found":{"$ref":"#/components/examples/idp-not_found"},"idp.permission_denied":{"$ref":"#/components/examples/idp-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listIdpRevisions-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/idp-not_found"},{"$ref":"#/components/schemas/idp-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","idp.not_found":"#/components/schemas/idp-not_found","idp.permission_denied":"#/components/schemas/idp-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"idp.not_found":{"$ref":"#/components/examples/idp-not_found"},"idp.permission_denied":{"$ref":"#/components/examples/idp-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getIdpRevision-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/idp-not_found"},{"$ref":"#/components/schemas/idp-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","idp.not_found":"#/components/schemas/idp-not_found","idp.permission_denied":"#/components/schemas/idp-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"idp.not_found":{"$ref":"#/components/examples/idp-not_found"},"idp.permission_denied":{"$ref":"#/components/examples/idp-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"publishApplication-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/app-client_id_taken"},{"$ref":"#/components/schemas/app-declared"},{"$ref":"#/components/schemas/app-field_immutable"},{"$ref":"#/components/schemas/app-idempotency_key_reused"},{"$ref":"#/components/schemas/app-invalid"},{"$ref":"#/components/schemas/app-not_found"},{"$ref":"#/components/schemas/app-permission_denied"},{"$ref":"#/components/schemas/app-revision_conflict"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"app.client_id_taken":"#/components/schemas/app-client_id_taken","app.declared":"#/components/schemas/app-declared","app.field_immutable":"#/components/schemas/app-field_immutable","app.idempotency_key_reused":"#/components/schemas/app-idempotency_key_reused","app.invalid":"#/components/schemas/app-invalid","app.not_found":"#/components/schemas/app-not_found","app.permission_denied":"#/components/schemas/app-permission_denied","app.revision_conflict":"#/components/schemas/app-revision_conflict","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"app.client_id_taken":{"$ref":"#/components/examples/app-client_id_taken"},"app.declared":{"$ref":"#/components/examples/app-declared"},"app.field_immutable":{"$ref":"#/components/examples/app-field_immutable"},"app.idempotency_key_reused":{"$ref":"#/components/examples/app-idempotency_key_reused"},"app.invalid":{"$ref":"#/components/examples/app-invalid"},"app.not_found":{"$ref":"#/components/examples/app-not_found"},"app.permission_denied":{"$ref":"#/components/examples/app-permission_denied"},"app.revision_conflict":{"$ref":"#/components/examples/app-revision_conflict"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"queryApplications-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/app-not_found"},{"$ref":"#/components/schemas/app-permission_denied"},{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"app.not_found":"#/components/schemas/app-not_found","app.permission_denied":"#/components/schemas/app-permission_denied","auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"app.not_found":{"$ref":"#/components/examples/app-not_found"},"app.permission_denied":{"$ref":"#/components/examples/app-permission_denied"},"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getApplication-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/app-not_found"},{"$ref":"#/components/schemas/app-permission_denied"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"app.not_found":"#/components/schemas/app-not_found","app.permission_denied":"#/components/schemas/app-permission_denied","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"app.not_found":{"$ref":"#/components/examples/app-not_found"},"app.permission_denied":{"$ref":"#/components/examples/app-permission_denied"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"rotateApplicationClientSecret-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/app-client_not_found"},{"$ref":"#/components/schemas/app-declared"},{"$ref":"#/components/schemas/app-invalid"},{"$ref":"#/components/schemas/app-not_found"},{"$ref":"#/components/schemas/app-permission_denied"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"app.client_not_found":"#/components/schemas/app-client_not_found","app.declared":"#/components/schemas/app-declared","app.invalid":"#/components/schemas/app-invalid","app.not_found":"#/components/schemas/app-not_found","app.permission_denied":"#/components/schemas/app-permission_denied","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"app.client_not_found":{"$ref":"#/components/examples/app-client_not_found"},"app.declared":{"$ref":"#/components/examples/app-declared"},"app.invalid":{"$ref":"#/components/examples/app-invalid"},"app.not_found":{"$ref":"#/components/examples/app-not_found"},"app.permission_denied":{"$ref":"#/components/examples/app-permission_denied"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getApplicationRevision-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/app-not_found"},{"$ref":"#/components/schemas/app-permission_denied"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"app.not_found":"#/components/schemas/app-not_found","app.permission_denied":"#/components/schemas/app-permission_denied","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"app.not_found":{"$ref":"#/components/examples/app-not_found"},"app.permission_denied":{"$ref":"#/components/examples/app-permission_denied"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listPolicies-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/pol-not_found"},{"$ref":"#/components/schemas/pol-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","pol.not_found":"#/components/schemas/pol-not_found","pol.permission_denied":"#/components/schemas/pol-permission_denied","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"pol.not_found":{"$ref":"#/components/examples/pol-not_found"},"pol.permission_denied":{"$ref":"#/components/examples/pol-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"publishPolicy-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/pol-invalid"},{"$ref":"#/components/schemas/pol-not_found"},{"$ref":"#/components/schemas/pol-permission_denied"},{"$ref":"#/components/schemas/pol-revision_conflict"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","pol.invalid":"#/components/schemas/pol-invalid","pol.not_found":"#/components/schemas/pol-not_found","pol.permission_denied":"#/components/schemas/pol-permission_denied","pol.revision_conflict":"#/components/schemas/pol-revision_conflict","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"pol.invalid":{"$ref":"#/components/examples/pol-invalid"},"pol.not_found":{"$ref":"#/components/examples/pol-not_found"},"pol.permission_denied":{"$ref":"#/components/examples/pol-permission_denied"},"pol.revision_conflict":{"$ref":"#/components/examples/pol-revision_conflict"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"evaluatePolicy-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/pol-invalid"},{"$ref":"#/components/schemas/pol-not_found"},{"$ref":"#/components/schemas/pol-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","pol.invalid":"#/components/schemas/pol-invalid","pol.not_found":"#/components/schemas/pol-not_found","pol.permission_denied":"#/components/schemas/pol-permission_denied","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"pol.invalid":{"$ref":"#/components/examples/pol-invalid"},"pol.not_found":{"$ref":"#/components/examples/pol-not_found"},"pol.permission_denied":{"$ref":"#/components/examples/pol-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getPolicy-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/pol-not_found"},{"$ref":"#/components/schemas/pol-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","pol.not_found":"#/components/schemas/pol-not_found","pol.permission_denied":"#/components/schemas/pol-permission_denied","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"pol.not_found":{"$ref":"#/components/examples/pol-not_found"},"pol.permission_denied":{"$ref":"#/components/examples/pol-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listPolicyRevisions-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/pol-not_found"},{"$ref":"#/components/schemas/pol-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","pol.not_found":"#/components/schemas/pol-not_found","pol.permission_denied":"#/components/schemas/pol-permission_denied","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"pol.not_found":{"$ref":"#/components/examples/pol-not_found"},"pol.permission_denied":{"$ref":"#/components/examples/pol-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getPolicyRevision-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/pol-not_found"},{"$ref":"#/components/schemas/pol-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","pol.not_found":"#/components/schemas/pol-not_found","pol.permission_denied":"#/components/schemas/pol-permission_denied","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"pol.not_found":{"$ref":"#/components/examples/pol-not_found"},"pol.permission_denied":{"$ref":"#/components/examples/pol-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listReleases-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/rel-not_found"},{"$ref":"#/components/schemas/rel-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","rel.not_found":"#/components/schemas/rel-not_found","rel.permission_denied":"#/components/schemas/rel-permission_denied","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"rel.not_found":{"$ref":"#/components/examples/rel-not_found"},"rel.permission_denied":{"$ref":"#/components/examples/rel-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"createRelease-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/app-registered"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/rel-invalid"},{"$ref":"#/components/schemas/rel-not_found"},{"$ref":"#/components/schemas/rel-permission_denied"},{"$ref":"#/components/schemas/rel-project_not_found"},{"$ref":"#/components/schemas/rel-revision_not_found"},{"$ref":"#/components/schemas/rel-revision_unpinnable"},{"$ref":"#/components/schemas/rel-unresolved_reference"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"app.registered":"#/components/schemas/app-registered","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","rel.invalid":"#/components/schemas/rel-invalid","rel.not_found":"#/components/schemas/rel-not_found","rel.permission_denied":"#/components/schemas/rel-permission_denied","rel.project_not_found":"#/components/schemas/rel-project_not_found","rel.revision_not_found":"#/components/schemas/rel-revision_not_found","rel.revision_unpinnable":"#/components/schemas/rel-revision_unpinnable","rel.unresolved_reference":"#/components/schemas/rel-unresolved_reference","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"app.registered":{"$ref":"#/components/examples/app-registered"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"rel.invalid":{"$ref":"#/components/examples/rel-invalid"},"rel.not_found":{"$ref":"#/components/examples/rel-not_found"},"rel.permission_denied":{"$ref":"#/components/examples/rel-permission_denied"},"rel.project_not_found":{"$ref":"#/components/examples/rel-project_not_found"},"rel.revision_not_found":{"$ref":"#/components/examples/rel-revision_not_found"},"rel.revision_unpinnable":{"$ref":"#/components/examples/rel-revision_unpinnable"},"rel.unresolved_reference":{"$ref":"#/components/examples/rel-unresolved_reference"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"buildRelease-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/app-field_immutable"},{"$ref":"#/components/schemas/app-invalid"},{"$ref":"#/components/schemas/app-registered"},{"$ref":"#/components/schemas/app-revision_conflict"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/flowdef-invalid"},{"$ref":"#/components/schemas/idp-field_immutable"},{"$ref":"#/components/schemas/idp-not_found"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/sch-fetch_denied"},{"$ref":"#/components/schemas/sch-fetch_downgrade"},{"$ref":"#/components/schemas/sch-fetch_timeout"},{"$ref":"#/components/schemas/sch-fetch_too_large"},{"$ref":"#/components/schemas/sch-fetch_too_many_redirects"},{"$ref":"#/components/schemas/sch-not_found"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/pol-invalid"},{"$ref":"#/components/schemas/pol-revision_conflict"},{"$ref":"#/components/schemas/rel-invalid"},{"$ref":"#/components/schemas/rel-not_found"},{"$ref":"#/components/schemas/rel-permission_denied"},{"$ref":"#/components/schemas/rel-project_not_found"},{"$ref":"#/components/schemas/rel-revision_unpinnable"},{"$ref":"#/components/schemas/rel-unresolved_reference"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/flowdef-schema_fetch_failed"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"app.field_immutable":"#/components/schemas/app-field_immutable","app.invalid":"#/components/schemas/app-invalid","app.registered":"#/components/schemas/app-registered","app.revision_conflict":"#/components/schemas/app-revision_conflict","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","flowdef.invalid":"#/components/schemas/flowdef-invalid","idp.field_immutable":"#/components/schemas/idp-field_immutable","idp.not_found":"#/components/schemas/idp-not_found","internal":"#/components/schemas/internal","sch.fetch_denied":"#/components/schemas/sch-fetch_denied","sch.fetch_downgrade":"#/components/schemas/sch-fetch_downgrade","sch.fetch_timeout":"#/components/schemas/sch-fetch_timeout","sch.fetch_too_large":"#/components/schemas/sch-fetch_too_large","sch.fetch_too_many_redirects":"#/components/schemas/sch-fetch_too_many_redirects","sch.not_found":"#/components/schemas/sch-not_found","not_implemented":"#/components/schemas/not_implemented","pol.invalid":"#/components/schemas/pol-invalid","pol.revision_conflict":"#/components/schemas/pol-revision_conflict","rel.invalid":"#/components/schemas/rel-invalid","rel.not_found":"#/components/schemas/rel-not_found","rel.permission_denied":"#/components/schemas/rel-permission_denied","rel.project_not_found":"#/components/schemas/rel-project_not_found","rel.revision_unpinnable":"#/components/schemas/rel-revision_unpinnable","rel.unresolved_reference":"#/components/schemas/rel-unresolved_reference","req.invalid":"#/components/schemas/req-invalid","flowdef.schema_fetch_failed":"#/components/schemas/flowdef-schema_fetch_failed","unavailable":"#/components/schemas/unavailable"}}},"examples":{"app.field_immutable":{"$ref":"#/components/examples/app-field_immutable"},"app.invalid":{"$ref":"#/components/examples/app-invalid"},"app.registered":{"$ref":"#/components/examples/app-registered"},"app.revision_conflict":{"$ref":"#/components/examples/app-revision_conflict"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"flowdef.invalid":{"$ref":"#/components/examples/flowdef-invalid"},"idp.field_immutable":{"$ref":"#/components/examples/idp-field_immutable"},"idp.not_found":{"$ref":"#/components/examples/idp-not_found"},"internal":{"$ref":"#/components/examples/internal"},"sch.fetch_denied":{"$ref":"#/components/examples/sch-fetch_denied"},"sch.fetch_downgrade":{"$ref":"#/components/examples/sch-fetch_downgrade"},"sch.fetch_timeout":{"$ref":"#/components/examples/sch-fetch_timeout"},"sch.fetch_too_large":{"$ref":"#/components/examples/sch-fetch_too_large"},"sch.fetch_too_many_redirects":{"$ref":"#/components/examples/sch-fetch_too_many_redirects"},"sch.not_found":{"$ref":"#/components/examples/sch-not_found"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"pol.invalid":{"$ref":"#/components/examples/pol-invalid"},"pol.revision_conflict":{"$ref":"#/components/examples/pol-revision_conflict"},"rel.invalid":{"$ref":"#/components/examples/rel-invalid"},"rel.not_found":{"$ref":"#/components/examples/rel-not_found"},"rel.permission_denied":{"$ref":"#/components/examples/rel-permission_denied"},"rel.project_not_found":{"$ref":"#/components/examples/rel-project_not_found"},"rel.revision_unpinnable":{"$ref":"#/components/examples/rel-revision_unpinnable"},"rel.unresolved_reference":{"$ref":"#/components/examples/rel-unresolved_reference"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"flowdef.schema_fetch_failed":{"$ref":"#/components/examples/flowdef-schema_fetch_failed"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getRelease-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/rel-not_found"},{"$ref":"#/components/schemas/rel-permission_denied"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","rel.not_found":"#/components/schemas/rel-not_found","rel.permission_denied":"#/components/schemas/rel-permission_denied","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"rel.not_found":{"$ref":"#/components/examples/rel-not_found"},"rel.permission_denied":{"$ref":"#/components/examples/rel-permission_denied"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"revokeRelease-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/rel-in_use"},{"$ref":"#/components/schemas/rel-not_found"},{"$ref":"#/components/schemas/rel-permission_denied"},{"$ref":"#/components/schemas/rel-project_not_found"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","rel.in_use":"#/components/schemas/rel-in_use","rel.not_found":"#/components/schemas/rel-not_found","rel.permission_denied":"#/components/schemas/rel-permission_denied","rel.project_not_found":"#/components/schemas/rel-project_not_found","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"rel.in_use":{"$ref":"#/components/examples/rel-in_use"},"rel.not_found":{"$ref":"#/components/examples/rel-not_found"},"rel.permission_denied":{"$ref":"#/components/examples/rel-permission_denied"},"rel.project_not_found":{"$ref":"#/components/examples/rel-project_not_found"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"createGrant-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/grant-already_exists"},{"$ref":"#/components/schemas/grant-invalid"},{"$ref":"#/components/schemas/grant-not_found"},{"$ref":"#/components/schemas/grant-permission_denied"},{"$ref":"#/components/schemas/grant-principal_not_found"},{"$ref":"#/components/schemas/grant-project_unclaimed"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","grant.already_exists":"#/components/schemas/grant-already_exists","grant.invalid":"#/components/schemas/grant-invalid","grant.not_found":"#/components/schemas/grant-not_found","grant.permission_denied":"#/components/schemas/grant-permission_denied","grant.principal_not_found":"#/components/schemas/grant-principal_not_found","grant.project_unclaimed":"#/components/schemas/grant-project_unclaimed","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"grant.already_exists":{"$ref":"#/components/examples/grant-already_exists"},"grant.invalid":{"$ref":"#/components/examples/grant-invalid"},"grant.not_found":{"$ref":"#/components/examples/grant-not_found"},"grant.permission_denied":{"$ref":"#/components/examples/grant-permission_denied"},"grant.principal_not_found":{"$ref":"#/components/examples/grant-principal_not_found"},"grant.project_unclaimed":{"$ref":"#/components/examples/grant-project_unclaimed"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"queryGrants-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/grant-invalid"},{"$ref":"#/components/schemas/grant-not_found"},{"$ref":"#/components/schemas/grant-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","grant.invalid":"#/components/schemas/grant-invalid","grant.not_found":"#/components/schemas/grant-not_found","grant.permission_denied":"#/components/schemas/grant-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.permission_denied":"#/components/schemas/user-permission_denied"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"grant.invalid":{"$ref":"#/components/examples/grant-invalid"},"grant.not_found":{"$ref":"#/components/examples/grant-not_found"},"grant.permission_denied":{"$ref":"#/components/examples/grant-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.permission_denied":{"$ref":"#/components/examples/user-permission_denied"}}}}},"getGrant-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/grant-not_found"},{"$ref":"#/components/schemas/grant-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/user-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","grant.not_found":"#/components/schemas/grant-not_found","grant.permission_denied":"#/components/schemas/grant-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","user.permission_denied":"#/components/schemas/user-permission_denied"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"grant.not_found":{"$ref":"#/components/examples/grant-not_found"},"grant.permission_denied":{"$ref":"#/components/examples/grant-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"user.permission_denied":{"$ref":"#/components/examples/user-permission_denied"}}}}},"deleteGrant-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/grant-not_found"},{"$ref":"#/components/schemas/grant-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","grant.not_found":"#/components/schemas/grant-not_found","grant.permission_denied":"#/components/schemas/grant-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"grant.not_found":{"$ref":"#/components/examples/grant-not_found"},"grant.permission_denied":{"$ref":"#/components/examples/grant-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listInvitations-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/inv-not_found"},{"$ref":"#/components/schemas/inv-permission_denied"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","inv.not_found":"#/components/schemas/inv-not_found","inv.permission_denied":"#/components/schemas/inv-permission_denied","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"inv.not_found":{"$ref":"#/components/examples/inv-not_found"},"inv.permission_denied":{"$ref":"#/components/examples/inv-permission_denied"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"createInvitation-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/enc_key-decrypt_failed"},{"$ref":"#/components/schemas/enc_key-encrypt_failed"},{"$ref":"#/components/schemas/enc_key-not_found"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/tkn-invalid"},{"$ref":"#/components/schemas/inv-invalid"},{"$ref":"#/components/schemas/inv-not_found"},{"$ref":"#/components/schemas/inv-pending_limit"},{"$ref":"#/components/schemas/inv-permission_denied"},{"$ref":"#/components/schemas/inv-platform_required"},{"$ref":"#/components/schemas/inv-project_unclaimed"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/enc_key-unknown_alg"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","enc_key.decrypt_failed":"#/components/schemas/enc_key-decrypt_failed","enc_key.encrypt_failed":"#/components/schemas/enc_key-encrypt_failed","enc_key.not_found":"#/components/schemas/enc_key-not_found","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","tkn.invalid":"#/components/schemas/tkn-invalid","inv.invalid":"#/components/schemas/inv-invalid","inv.not_found":"#/components/schemas/inv-not_found","inv.pending_limit":"#/components/schemas/inv-pending_limit","inv.permission_denied":"#/components/schemas/inv-permission_denied","inv.platform_required":"#/components/schemas/inv-platform_required","inv.project_unclaimed":"#/components/schemas/inv-project_unclaimed","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","enc_key.unknown_alg":"#/components/schemas/enc_key-unknown_alg","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"enc_key.decrypt_failed":{"$ref":"#/components/examples/enc_key-decrypt_failed"},"enc_key.encrypt_failed":{"$ref":"#/components/examples/enc_key-encrypt_failed"},"enc_key.not_found":{"$ref":"#/components/examples/enc_key-not_found"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"tkn.invalid":{"$ref":"#/components/examples/tkn-invalid"},"inv.invalid":{"$ref":"#/components/examples/inv-invalid"},"inv.not_found":{"$ref":"#/components/examples/inv-not_found"},"inv.pending_limit":{"$ref":"#/components/examples/inv-pending_limit"},"inv.permission_denied":{"$ref":"#/components/examples/inv-permission_denied"},"inv.platform_required":{"$ref":"#/components/examples/inv-platform_required"},"inv.project_unclaimed":{"$ref":"#/components/examples/inv-project_unclaimed"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"enc_key.unknown_alg":{"$ref":"#/components/examples/enc_key-unknown_alg"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"lookupInvitation-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/inv-not_found"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","inv.not_found":"#/components/schemas/inv-not_found","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"inv.not_found":{"$ref":"#/components/examples/inv-not_found"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"acceptInvitation-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/inv-already_member"},{"$ref":"#/components/schemas/inv-inviter_not_admin"},{"$ref":"#/components/schemas/inv-not_found"},{"$ref":"#/components/schemas/inv-platform_required"},{"$ref":"#/components/schemas/inv-project_unclaimed"},{"$ref":"#/components/schemas/inv-self_accept"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","inv.already_member":"#/components/schemas/inv-already_member","inv.inviter_not_admin":"#/components/schemas/inv-inviter_not_admin","inv.not_found":"#/components/schemas/inv-not_found","inv.platform_required":"#/components/schemas/inv-platform_required","inv.project_unclaimed":"#/components/schemas/inv-project_unclaimed","inv.self_accept":"#/components/schemas/inv-self_accept","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"inv.already_member":{"$ref":"#/components/examples/inv-already_member"},"inv.inviter_not_admin":{"$ref":"#/components/examples/inv-inviter_not_admin"},"inv.not_found":{"$ref":"#/components/examples/inv-not_found"},"inv.platform_required":{"$ref":"#/components/examples/inv-platform_required"},"inv.project_unclaimed":{"$ref":"#/components/examples/inv-project_unclaimed"},"inv.self_accept":{"$ref":"#/components/examples/inv-self_accept"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"rejectInvitation-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/inv-already_member"},{"$ref":"#/components/schemas/inv-not_found"},{"$ref":"#/components/schemas/inv-self_reject"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","inv.already_member":"#/components/schemas/inv-already_member","inv.not_found":"#/components/schemas/inv-not_found","inv.self_reject":"#/components/schemas/inv-self_reject","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"inv.already_member":{"$ref":"#/components/examples/inv-already_member"},"inv.not_found":{"$ref":"#/components/examples/inv-not_found"},"inv.self_reject":{"$ref":"#/components/examples/inv-self_reject"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getInvitation-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/inv-not_found"},{"$ref":"#/components/schemas/inv-permission_denied"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","inv.not_found":"#/components/schemas/inv-not_found","inv.permission_denied":"#/components/schemas/inv-permission_denied","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"inv.not_found":{"$ref":"#/components/examples/inv-not_found"},"inv.permission_denied":{"$ref":"#/components/examples/inv-permission_denied"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"cancelInvitation-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/inv-not_found"},{"$ref":"#/components/schemas/inv-permission_denied"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","inv.not_found":"#/components/schemas/inv-not_found","inv.permission_denied":"#/components/schemas/inv-permission_denied","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"inv.not_found":{"$ref":"#/components/examples/inv-not_found"},"inv.permission_denied":{"$ref":"#/components/examples/inv-permission_denied"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listEvents-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/evt-not_found"},{"$ref":"#/components/schemas/evt-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","evt.not_found":"#/components/schemas/evt-not_found","evt.permission_denied":"#/components/schemas/evt-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"evt.not_found":{"$ref":"#/components/examples/evt-not_found"},"evt.permission_denied":{"$ref":"#/components/examples/evt-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"getEvent-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/evt-not_found"},{"$ref":"#/components/schemas/evt-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","evt.not_found":"#/components/schemas/evt-not_found","evt.permission_denied":"#/components/schemas/evt-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"evt.not_found":{"$ref":"#/components/examples/evt-not_found"},"evt.permission_denied":{"$ref":"#/components/examples/evt-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"listVariables-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/var-not_found"},{"$ref":"#/components/schemas/var-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","var.not_found":"#/components/schemas/var-not_found","var.permission_denied":"#/components/schemas/var-permission_denied"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"var.not_found":{"$ref":"#/components/examples/var-not_found"},"var.permission_denied":{"$ref":"#/components/examples/var-permission_denied"}}}}},"setVariables-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/enc_key-decrypt_failed"},{"$ref":"#/components/schemas/enc_key-not_found"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/tkn-invalid"},{"$ref":"#/components/schemas/var-invalid_name"},{"$ref":"#/components/schemas/var-invalid_value"},{"$ref":"#/components/schemas/var-no_project_id"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/enc_key-unknown_alg"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/var-limit_exceeded"},{"$ref":"#/components/schemas/var-not_found"},{"$ref":"#/components/schemas/var-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","enc_key.decrypt_failed":"#/components/schemas/enc_key-decrypt_failed","enc_key.not_found":"#/components/schemas/enc_key-not_found","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","tkn.invalid":"#/components/schemas/tkn-invalid","var.invalid_name":"#/components/schemas/var-invalid_name","var.invalid_value":"#/components/schemas/var-invalid_value","var.no_project_id":"#/components/schemas/var-no_project_id","not_implemented":"#/components/schemas/not_implemented","proj.not_found":"#/components/schemas/proj-not_found","req.invalid":"#/components/schemas/req-invalid","enc_key.unknown_alg":"#/components/schemas/enc_key-unknown_alg","unavailable":"#/components/schemas/unavailable","var.limit_exceeded":"#/components/schemas/var-limit_exceeded","var.not_found":"#/components/schemas/var-not_found","var.permission_denied":"#/components/schemas/var-permission_denied"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"enc_key.decrypt_failed":{"$ref":"#/components/examples/enc_key-decrypt_failed"},"enc_key.not_found":{"$ref":"#/components/examples/enc_key-not_found"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"tkn.invalid":{"$ref":"#/components/examples/tkn-invalid"},"var.invalid_name":{"$ref":"#/components/examples/var-invalid_name"},"var.invalid_value":{"$ref":"#/components/examples/var-invalid_value"},"var.no_project_id":{"$ref":"#/components/examples/var-no_project_id"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"enc_key.unknown_alg":{"$ref":"#/components/examples/enc_key-unknown_alg"},"unavailable":{"$ref":"#/components/examples/unavailable"},"var.limit_exceeded":{"$ref":"#/components/examples/var-limit_exceeded"},"var.not_found":{"$ref":"#/components/examples/var-not_found"},"var.permission_denied":{"$ref":"#/components/examples/var-permission_denied"}}}}},"getVariable-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/var-not_found"},{"$ref":"#/components/schemas/var-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","var.not_found":"#/components/schemas/var-not_found","var.permission_denied":"#/components/schemas/var-permission_denied"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"var.not_found":{"$ref":"#/components/examples/var-not_found"},"var.permission_denied":{"$ref":"#/components/examples/var-permission_denied"}}}}},"deleteVariable-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/var-not_found"},{"$ref":"#/components/schemas/var-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","evt.invalid":"#/components/schemas/evt-invalid","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","var.not_found":"#/components/schemas/var-not_found","var.permission_denied":"#/components/schemas/var-permission_denied"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"var.not_found":{"$ref":"#/components/examples/var-not_found"},"var.permission_denied":{"$ref":"#/components/examples/var-permission_denied"}}}}},"listDeployments-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/dep-not_found"},{"$ref":"#/components/schemas/dep-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","dep.not_found":"#/components/schemas/dep-not_found","dep.permission_denied":"#/components/schemas/dep-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"dep.not_found":{"$ref":"#/components/examples/dep-not_found"},"dep.permission_denied":{"$ref":"#/components/examples/dep-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"createDeployment-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/dep-conflict"},{"$ref":"#/components/schemas/dep-invalid"},{"$ref":"#/components/schemas/dep-not_found"},{"$ref":"#/components/schemas/dep-permission_denied"},{"$ref":"#/components/schemas/dep-variables_missing"},{"$ref":"#/components/schemas/dep-variables_not_secret"},{"$ref":"#/components/schemas/env-project_not_found"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/var-decryption_failed"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/proj-origin_not_allowed"},{"$ref":"#/components/schemas/rel-not_found"},{"$ref":"#/components/schemas/rel-revoked"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/var-document_too_deep"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","dep.conflict":"#/components/schemas/dep-conflict","dep.invalid":"#/components/schemas/dep-invalid","dep.not_found":"#/components/schemas/dep-not_found","dep.permission_denied":"#/components/schemas/dep-permission_denied","dep.variables_missing":"#/components/schemas/dep-variables_missing","dep.variables_not_secret":"#/components/schemas/dep-variables_not_secret","env.project_not_found":"#/components/schemas/env-project_not_found","evt.invalid":"#/components/schemas/evt-invalid","var.decryption_failed":"#/components/schemas/var-decryption_failed","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.not_found":"#/components/schemas/proj-not_found","proj.origin_not_allowed":"#/components/schemas/proj-origin_not_allowed","rel.not_found":"#/components/schemas/rel-not_found","rel.revoked":"#/components/schemas/rel-revoked","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","var.document_too_deep":"#/components/schemas/var-document_too_deep"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"dep.conflict":{"$ref":"#/components/examples/dep-conflict"},"dep.invalid":{"$ref":"#/components/examples/dep-invalid"},"dep.not_found":{"$ref":"#/components/examples/dep-not_found"},"dep.permission_denied":{"$ref":"#/components/examples/dep-permission_denied"},"dep.variables_missing":{"$ref":"#/components/examples/dep-variables_missing"},"dep.variables_not_secret":{"$ref":"#/components/examples/dep-variables_not_secret"},"env.project_not_found":{"$ref":"#/components/examples/env-project_not_found"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"var.decryption_failed":{"$ref":"#/components/examples/var-decryption_failed"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"proj.origin_not_allowed":{"$ref":"#/components/examples/proj-origin_not_allowed"},"rel.not_found":{"$ref":"#/components/examples/rel-not_found"},"rel.revoked":{"$ref":"#/components/examples/rel-revoked"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"var.document_too_deep":{"$ref":"#/components/examples/var-document_too_deep"}}}}},"getDeployment-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/dep-not_found"},{"$ref":"#/components/schemas/dep-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"}],"discriminator":{"propertyName":"code","mapping":{"auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","dep.not_found":"#/components/schemas/dep-not_found","dep.permission_denied":"#/components/schemas/dep-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable"}}},"examples":{"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"dep.not_found":{"$ref":"#/components/examples/dep-not_found"},"dep.permission_denied":{"$ref":"#/components/examples/dep-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"}}}}},"rollbackDeployment-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-csrf_invalid"},{"$ref":"#/components/schemas/auth-scope_insufficient"},{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/dep-conflict"},{"$ref":"#/components/schemas/dep-invalid"},{"$ref":"#/components/schemas/dep-not_found"},{"$ref":"#/components/schemas/dep-permission_denied"},{"$ref":"#/components/schemas/dep-variables_missing"},{"$ref":"#/components/schemas/dep-variables_not_secret"},{"$ref":"#/components/schemas/env-project_not_found"},{"$ref":"#/components/schemas/evt-invalid"},{"$ref":"#/components/schemas/var-decryption_failed"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/proj-not_found"},{"$ref":"#/components/schemas/rel-not_found"},{"$ref":"#/components/schemas/rel-revoked"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/var-document_too_deep"}],"discriminator":{"propertyName":"code","mapping":{"auth.csrf_invalid":"#/components/schemas/auth-csrf_invalid","auth.scope_insufficient":"#/components/schemas/auth-scope_insufficient","auth.unauthorized":"#/components/schemas/auth-unauthorized","dep.conflict":"#/components/schemas/dep-conflict","dep.invalid":"#/components/schemas/dep-invalid","dep.not_found":"#/components/schemas/dep-not_found","dep.permission_denied":"#/components/schemas/dep-permission_denied","dep.variables_missing":"#/components/schemas/dep-variables_missing","dep.variables_not_secret":"#/components/schemas/dep-variables_not_secret","env.project_not_found":"#/components/schemas/env-project_not_found","evt.invalid":"#/components/schemas/evt-invalid","var.decryption_failed":"#/components/schemas/var-decryption_failed","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","proj.not_found":"#/components/schemas/proj-not_found","rel.not_found":"#/components/schemas/rel-not_found","rel.revoked":"#/components/schemas/rel-revoked","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","var.document_too_deep":"#/components/schemas/var-document_too_deep"}}},"examples":{"auth.csrf_invalid":{"$ref":"#/components/examples/auth-csrf_invalid"},"auth.scope_insufficient":{"$ref":"#/components/examples/auth-scope_insufficient"},"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"dep.conflict":{"$ref":"#/components/examples/dep-conflict"},"dep.invalid":{"$ref":"#/components/examples/dep-invalid"},"dep.not_found":{"$ref":"#/components/examples/dep-not_found"},"dep.permission_denied":{"$ref":"#/components/examples/dep-permission_denied"},"dep.variables_missing":{"$ref":"#/components/examples/dep-variables_missing"},"dep.variables_not_secret":{"$ref":"#/components/examples/dep-variables_not_secret"},"env.project_not_found":{"$ref":"#/components/examples/env-project_not_found"},"evt.invalid":{"$ref":"#/components/examples/evt-invalid"},"var.decryption_failed":{"$ref":"#/components/examples/var-decryption_failed"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"proj.not_found":{"$ref":"#/components/examples/proj-not_found"},"rel.not_found":{"$ref":"#/components/examples/rel-not_found"},"rel.revoked":{"$ref":"#/components/examples/rel-revoked"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"var.document_too_deep":{"$ref":"#/components/examples/var-document_too_deep"}}}}},"listDeploymentVariables-error-response":{"description":"Error response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/auth-unauthorized"},{"$ref":"#/components/schemas/dep-not_found"},{"$ref":"#/components/schemas/dep-permission_denied"},{"$ref":"#/components/schemas/internal"},{"$ref":"#/components/schemas/not_implemented"},{"$ref":"#/components/schemas/req-invalid"},{"$ref":"#/components/schemas/unavailable"},{"$ref":"#/components/schemas/var-not_found"},{"$ref":"#/components/schemas/var-permission_denied"}],"discriminator":{"propertyName":"code","mapping":{"auth.unauthorized":"#/components/schemas/auth-unauthorized","dep.not_found":"#/components/schemas/dep-not_found","dep.permission_denied":"#/components/schemas/dep-permission_denied","internal":"#/components/schemas/internal","not_implemented":"#/components/schemas/not_implemented","req.invalid":"#/components/schemas/req-invalid","unavailable":"#/components/schemas/unavailable","var.not_found":"#/components/schemas/var-not_found","var.permission_denied":"#/components/schemas/var-permission_denied"}}},"examples":{"auth.unauthorized":{"$ref":"#/components/examples/auth-unauthorized"},"dep.not_found":{"$ref":"#/components/examples/dep-not_found"},"dep.permission_denied":{"$ref":"#/components/examples/dep-permission_denied"},"internal":{"$ref":"#/components/examples/internal"},"not_implemented":{"$ref":"#/components/examples/not_implemented"},"req.invalid":{"$ref":"#/components/examples/req-invalid"},"unavailable":{"$ref":"#/components/examples/unavailable"},"var.not_found":{"$ref":"#/components/examples/var-not_found"},"var.permission_denied":{"$ref":"#/components/examples/var-permission_denied"}}}}},"webhook-not-delivered":{"description":"Not delivered: any other status, a failed connection, or a timeout.\nThe server sends the event again on its next pass, and holds back the\nproject's later events until this one is delivered.\n"},"webhook-delivered":{"description":"Delivered. Any 2xx status acknowledges the event; the response body is ignored."}},"parameters":{"project-id":{"name":"project_id","in":"query","description":"The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints\nit as \"Project id\" in its summary and as `project_id` with `--json`, and\nwrites it to `.env.local` as `ZITADEL_PROJECT_ID`.\n","required":true,"schema":{"$ref":"#/components/schemas/project-id"},"example":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5"},"project-id-query":{"name":"project_id","in":"query","required":false,"description":"The project the request addresses, by the `id` that `createProject` (`POST /projects`)\nreturns. Omit it to address the credential's own project.\n","schema":{"$ref":"#/components/schemas/project-id"}},"user-id":{"name":"user_id","in":"path","required":true,"description":"The user ID: the `id` that `createUser` (`POST /users`) or `queryUsers` (`POST /users/query`) returns.\n","schema":{"$ref":"#/components/schemas/user-id"},"example":"user_01KWH3B72K7M7F0N9WD3P2E4YM"},"limit":{"name":"limit","description":"Maximum number of items to return.","in":"query","required":false,"schema":{"$ref":"#/components/schemas/limit"}},"page-token":{"name":"page_token","in":"query","required":false,"description":"Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n","schema":{"$ref":"#/components/schemas/page-token"}},"passkey-registration-id":{"name":"registration_id","in":"path","required":true,"description":"The `registration_id` that `createUserPasskeyRegistration` (`POST /users/{user_id}/passkeys/registrations`) returns.\n","schema":{"type":"string"},"example":"att_01J0Z9KX7Y0Q2Y7JX5M9K2YF3C"},"session-project-id":{"name":"project_id","in":"query","required":false,"description":"The project the caller signs its users in to. The cookie's session is used\nonly when it belongs to this project; a session of any other project answers\n`403` with `sess.project_mismatch`.\n\nA session belongs to one project, while a browser sends its cookie to every\napp on the same host. An app passes its own project, so that a session of\nanother project never reads or acts as one of its users, and signing out of\nthe app never ends it. The SDKs pass it when they read the session or sign\nout.\n\n`sess.project_mismatch` does not mean the session is invalid: it is live in\nits own project, so keep its cookie.\n","schema":{"$ref":"#/components/schemas/project-id"}},"consent-id":{"name":"consent_id","in":"path","required":true,"description":"The consent ID (`consent_<opaque>`): the `id` that `listMyConsents`\n(`GET /users/me/consents`) lists.\n","schema":{"$ref":"#/components/schemas/consent-id"},"example":"consent_01JD3B7K2M9P4R6T8V0X2Z4C6E"},"personal-access-token-id":{"name":"personal_access_token_id","in":"path","required":true,"description":"The personal access token's ID (`tkn_<opaque>`): the `id` that\n`createMyPersonalAccessToken` (`POST /users/me/personal_access_tokens`)\nreturns or `listMyPersonalAccessTokens` lists.\n","schema":{"$ref":"#/components/schemas/personal-access-token-id"},"example":"tkn_01JD3B7K2M9P4R6T8V0X2Z4C6E"},"flow-id":{"name":"flow_id","in":"path","required":true,"description":"Flow ID returned by POST /flows or the latest POST /flows/{flow_id}/submit.\nNames the flow's encrypted cookie, `_zflow_{flow_id}`, which holds its\nstate; each flow in a browser has its own. May change between responses\nwhen a flow pivot or pop occurs — always use the `id` from the latest response.\n","schema":{"type":"string"},"example":"flow_01KWH8Q5NZT7F0N9WD3P2E4YM7"},"attempt-id":{"name":"attempt_id","in":"path","required":true,"description":"The `attempt_id` that `createAuthAttempt` (`POST /auth_attempts`) returns.","schema":{"$ref":"#/components/schemas/attempt-id"},"example":"att_01J0Z9KX7Y0Q2Y7JX5M9K2YF3C"},"challenge-id":{"name":"challenge_id","in":"path","required":true,"description":"The `challenge_id` that `createAuthAttemptChallenge` (`POST /auth_attempts/{attempt_id}/challenges`) returns.","schema":{"$ref":"#/components/schemas/challenge-id"},"example":"ch_01J0Z9KX7Y0Q2Y7JX5M9K2YF3C"},"idempotency-key":{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional retry key for safe retries of the call.\nRetries carrying the same key within the call window return the cached\npayload without creating a new resource. See details in the endpoint description.\n","schema":{"type":"string","example":"01HXYZ123ABC"}},"project-id-path":{"name":"project_id","in":"path","required":true,"description":"The project ID: the `id` that `createProject` (`POST /projects`) returns, which `zitadel setup`\nalso prints as `project_id`.\n","schema":{"$ref":"#/components/schemas/project-id"},"example":"proj_01KWH1P4MYS7F0N9WD3P2E4YM5"},"challenge-id-query":{"name":"challenge_id","in":"query","required":true,"description":"The `challenge_id` that `createProjectClaim` (`POST /projects/{project_id}/claim/init`) returns for this claim. The claim URL\ncarries it.\n","schema":{"$ref":"#/components/schemas/challenge-id"},"example":"ch_01J0Z9KX7Y0Q2Y7JX5M9K2YF3C"},"session-id":{"name":"session_id","in":"path","required":true,"description":"The `session_id` that `createSession` (`POST /sessions`) or `exchangeHandoff` (`POST /sessions/exchange`) returns, or that\n`querySessions` (`POST /sessions/query`) lists.\n","schema":{"$ref":"#/components/schemas/session-id"},"example":"sess_01J0Z9KX7Y0Q2Y7JX5M9K2YF3C"},"team-id":{"name":"team_id","in":"query","description":"The team ID: the `id` that `createTeam` (`POST /teams`) or `queryTeams` (`POST /teams/query`) returns.\n","schema":{"$ref":"#/components/schemas/team-id"},"example":"team_01KZZY8PX8K8ATNVDSMRCZY4N1"},"schema-id":{"name":"schema_id","in":"path","required":true,"description":"The schema ID: the `id` that `publishSchema` (`POST /schemas`) returns or `listSchemas` (`GET /schemas`) lists.\n","schema":{"type":"string"},"example":"sch_01KWHF2XY6RN7F0N9WD3P2E4YM"},"flow-definition-id":{"name":"flow_definition_id","in":"path","required":true,"description":"The `id` that `publishFlowDefinition` (`POST /flow_definitions`) returns.\n","schema":{"type":"string"},"example":"flowdef_01KWH8Q5NZT7F0N9WD3P2E4YM6"},"team-id-path":{"name":"team_id","in":"path","required":true,"description":"The team ID: the `id` that `createTeam` (`POST /teams`) or `queryTeams` (`POST /teams/query`) returns.\n","schema":{"$ref":"#/components/schemas/team-id"},"example":"team_01KZZY8PX8K8ATNVDSMRCZY4N1"},"branding-id":{"name":"branding_id","in":"path","required":true,"description":"The branding revision ID: the `id` that `publishBranding` (`POST /branding`) returns or\n`listBranding` (`GET /branding`) lists.\n","schema":{"type":"string"},"example":"brnd_01KWH1P4MYS7F0N9WD3P2E4YM5"},"oauth-settings-id":{"name":"oauth_settings_id","in":"path","required":true,"description":"The OAuth settings revision ID: the `revision_id` of the `kind: oauth`\npointer on the release that `buildRelease` (`POST /releases/build`) or\n`getRelease` (`GET /releases/{release_id}`) returns.\n","schema":{"type":"string"},"example":"oauthset_01KWHG3M5QZ27F0N9WD3P2E4YM"},"idp-id":{"name":"idp_id","in":"path","required":true,"description":"The connection ID: the `id` that `publishIdp` (`POST /idps`) returns or `queryIdps` (`POST /idps/query`) lists.\n","schema":{"type":"string"},"example":"idp_01KWH3B72K7M7F0N9WD3P2E4YM"},"idp-revision-id":{"name":"revision_id","in":"path","required":true,"description":"The revision ID: the `revision_id` that `publishIdp` (`POST /idps`) returns, or that\n`listIdpRevisions` (`GET /idps/{idp_id}/revisions`) lists.\n","schema":{"type":"string"},"example":"idprev_01KWH3B72K7M7F0N9WD3P2E4YN"},"application-id":{"name":"application_id","in":"path","required":true,"description":"The application ID: the `id` that `publishApplication` (`POST /applications`) returns.\n","schema":{"type":"string"},"example":"app_01KWH3B72K7M7F0N9WD3P2E4YM"},"application-revision-id":{"name":"revision_id","in":"path","required":true,"description":"The revision ID: the `revision_id` that `publishApplication` (`POST /applications`)\nor `getApplication` returns, or that a release pins.\n","schema":{"$ref":"#/components/schemas/application-revision-id"}},"policy-id":{"name":"policy_id","in":"path","required":true,"description":"The identifier of the policy, shared by all of its revisions.","schema":{"$ref":"#/components/schemas/policy-id"}},"policy-revision-id":{"name":"revision_id","in":"path","required":true,"description":"The identifier of the policy revision.","schema":{"$ref":"#/components/schemas/policy-revision-id"}},"release-content-hash-filter":{"name":"content_hash","in":"query","required":false,"description":"Narrows the list to the release with this content digest, given in full\nwith its `sha256:` prefix. A project holds at most one release per digest,\nso the result has one entry or none.\n\nA digest no release of the project carries answers an empty list, not an\nerror: the filter asks which release has this content, and \"none\" is a\nvalid answer. Paths never take a digest; read the matched entry's `id`\nand use that.\n","schema":{"$ref":"#/components/schemas/release-content-hash"}},"release-id":{"name":"release_id","in":"path","required":true,"description":"The release ID: the `id` that `createRelease` (`POST /releases`) returns or `listReleases` (`GET /releases`) lists.\n","schema":{"$ref":"#/components/schemas/release-id"},"example":"rel_01KX3RG8A7F0N9WD3P2E4YM5C1"},"grant-id":{"name":"grant_id","in":"path","required":true,"description":"The grant ID (`asgn_<opaque>`): the `id` that `createGrant` (`POST /grants`) returns or `queryGrants` (`POST /grants/query`) lists.\n","schema":{"type":"string"},"example":"asgn_01KWH9D4R2V7F0N9WD3P2E4YM8"},"invitation-id":{"name":"invitation_id","in":"path","required":true,"description":"The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n","schema":{"$ref":"#/components/schemas/invitation-id"},"example":"inv_01JD3B7K2M9P4R6T8V0X2Z4C6E"},"event-id":{"name":"event_id","in":"path","required":true,"description":"The event ID (`evt_<opaque>`): the `id` that `listEvents` (`GET /events`) returns.\n","schema":{"type":"string"},"example":"evt_01HZYABCDEFGHJKMNPQRSTVWXY"},"variable-kind":{"name":"kind","in":"query","required":false,"description":"The kind of value to address. Omit it for both kinds.\n","schema":{"$ref":"#/components/schemas/variable-kind"}},"variable-name":{"name":"variable_name","in":"path","required":true,"description":"The name of the variable.","schema":{"$ref":"#/components/schemas/variable-name"},"example":"GITHUB_CLIENT_ID"},"origin-filter":{"name":"origin","in":"query","required":false,"description":"Narrows the list to the deployments that targeted this origin, given\nexactly as the deployment records it. An origin no deployment targeted\nanswers an empty list, not an error.\n","schema":{"$ref":"#/components/schemas/origin"}},"release-id-filter":{"name":"release_id","in":"query","required":false,"description":"Narrows the list to the deployments of this release: the `id` that\n`createRelease` (`POST /releases`) returns or `listReleases`\n(`GET /releases`) lists. A release with nothing to list, one never\ndeployed, one no longer served with `live=true`, or one of another\nproject, answers an empty list, not an error.\n","schema":{"$ref":"#/components/schemas/release-id"}},"deployment-id":{"name":"deployment_id","in":"path","required":true,"description":"The deployment ID: the `id` that `createDeployment` (`POST /deployments`) returns or\n`listDeployments` (`GET /deployments`) lists.\n","schema":{"$ref":"#/components/schemas/deployment-id"},"example":"dep_01KX4SB9C8E1F0N9WD3P2E4YM5"}},"headers":{"retry-after":{"description":"Whole seconds to wait before retrying the request; at least 1. The server\nsends it with every 429 it answers itself; a 429 from a proxy or edge in\nfront of it may come without one.\n","required":false,"schema":{"type":"integer","minimum":1},"example":1},"cache-control-private-no-store":{"description":"Prevents browsers and shared caches from storing session-specific responses.","schema":{"type":"string","const":"private, no-store"},"example":"private, no-store"},"set-cookie-flow":{"description":"The cookies this response sets, one `Set-Cookie` line per element; the\ngenerated server emits the lines separately, since the comma-joined form\nOpenAPI prescribes for array headers is invalid for `Set-Cookie`\n(RFC 6265). Browsers never expose the header to script, so this shape\nconcerns server-side and generated non-browser clients only.\n\nThe first element is always the flow's cookie, `_zflow_{id}` for the\nresponse's `id`, holding the encrypted flow state: HttpOnly, Secure,\nSameSite=Strict, Path=/. Starting a flow and every submit response that\nreturns a step rotate it, including validation failures; a submission\nrefused with an error sets no cookie. `GET /flows/{flow_id}` sets it only\nwhen the render resolved a parked SSO identity. A response whose `id`\ndiffers from the request's deletes the cookie under the old one. Starting\na flow deletes the oldest flow cookies the request carried, so a browser\nholds at most three. The `sso-redirect` response appends the\nbrowser-binding cookie the callback checks.\n","schema":{"type":"array","items":{"type":"string"}},"examples":{"step":{"summary":"Any step response","value":["_zflow_flow_01H8Z=<encrypted-payload>; HttpOnly; Secure; SameSite=Strict; Path=/; Max-Age=600"]},"sso-redirect":{"summary":"The sso-redirect step adds the binding cookie","value":["_zflow_flow_01H8Z=<encrypted-payload>; HttpOnly; Secure; SameSite=Strict; Path=/; Max-Age=600","__Host-_zsso=<nonce>; HttpOnly; Secure; SameSite=Lax; Path=/; Max-Age=900"]}}},"set-cookie-session-token":{"description":"The session cookie holding the token of the latest session:\n`__Host-zitadel_session` with `Secure`, or `zitadel_session` without it over\nplain http to a loopback host.\nThe server rotates it on every session exchange, and clients use it to authenticate API requests.\nThe server clears it when the session is revoked (sign-out).\n","schema":{"type":"string","example":"__Host-zitadel_session=<session-token>; HttpOnly; Secure; SameSite=Lax; Path=/; Max-Age=<ttl-seconds>"},"required":true}}}}