openapi: 3.0.3 info: title: Agent Management API version: "1.0" description: Manage agent identities, OAuth profiles, and the agent type schema. Direct agent creation uses the management service and does not run the Console onboarding flow. license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html servers: - url: https://{host}:{port} variables: host: default: "localhost" port: default: "8090" tags: - name: Agents description: CRUD operations for agent instances. - name: Agent Types description: Read agent type schemas to understand available configuration options. security: - OAuth2: [system] paths: /agents: get: tags: - Agents summary: List agents description: | Retrieve a paginated list of agents. An `ouId` filter lists the agents the organization unit owns, followed by the agents shared into it. A caller that may list agents in one organization unit only gets the same list without a filter. A filter on other attributes narrows that caller's list to the agents the organization unit owns. A `projectId` lists the project's agents, narrowed to the organization unit in the `ouId` filter when one is given. parameters: - $ref: '#/components/parameters/limitQueryParam' - $ref: '#/components/parameters/offsetQueryParam' - $ref: '#/components/parameters/agentFilterParam' - $ref: '#/components/parameters/includeQueryParam' - $ref: '#/components/parameters/projectIdQueryParam' responses: "200": description: List of agents content: application/json: schema: $ref: '#/components/schemas/AgentListResponse' example: totalResults: 3 startIndex: 1 count: 2 agents: - id: "9a475e1e-b0cb-4b29-8df5-2e5b24fb0ed3" ouId: "456e8400-e29b-41d4-a716-446655440001" ouHandle: "platform/automations" type: "default" description: "Runs nightly data sync jobs" owner: id: "e1b6ba6c-deb2-4d24-87b0-bbf79fa4487c" idType: uuid isLocal: true attributes: name: "Nightly Sync Worker" modelProvider: "anthropic" isOwnedByOU: true - id: "039bda67-a80d-4b7b-ac0f-36db85332089" ouId: "456e8400-e29b-41d4-a716-446655440001" ouHandle: "platform/automations" type: "default" description: "Agent exposing calendar tools" clientId: "calendar_agent_client" owner: id: "e1b6ba6c-deb2-4d24-87b0-bbf79fa4487c" idType: uuid isLocal: true attributes: name: "Calendar Agent" modelProvider: "anthropic" isOwnedByOU: true links: - href: "agents?offset=2&limit=2" rel: "next" "400": description: Bad request content: application/json: schema: $ref: '#/components/schemas/Error' examples: invalid-limit: summary: Invalid limit parameter value: code: "AGT-1011" message: key: "error.agentservice.invalid_limit" defaultValue: "Invalid pagination parameter" description: key: "error.agentservice.invalid_limit_description" defaultValue: "The limit parameter must be between 1 and 100" invalid-offset: summary: Invalid offset parameter value: code: "AGT-1012" message: key: "error.agentservice.invalid_offset" defaultValue: "Invalid pagination parameter" description: key: "error.agentservice.invalid_offset_description" defaultValue: "The offset parameter must be a non-negative integer" invalid-filter: summary: Invalid filter parameter value: code: "AGT-1020" message: key: "error.agentservice.invalid_filter" defaultValue: "Invalid filter parameter" description: key: "error.agentservice.invalid_filter_description" defaultValue: "The filter format is invalid" "401": $ref: '#/components/responses/Unauthorized' "500": description: Internal server error post: tags: - Agents summary: Create a new agent description: | Creates a new agent. At minimum, an entity is created with the provided identity fields. An inbound auth profile is created when any inbound auth config fields are supplied. An OAuth profile is created when `inboundAuthConfig` is supplied. Send the name inside `attributes.name`. The default agent schema defines it as a required, unique string. Missing required attributes fail schema validation (`AGT-1015`); duplicate unique attributes produce an attribute conflict (`AGT-1014`). This endpoint does not execute the Console's configured agent onboarding flow. The agent's organization unit must be the organization unit of its agent type (`type`) or one of its descendants; otherwise the request is rejected with `AGT-1053`. The check reads the agent type, so the caller also needs permission to view it (`system:agenttype:view`). An agent type that does not exist, or that the caller cannot read, is rejected with `AGT-1054`. When an OAuth client secret is generated, `clientSecret` is returned in this response only. Store it securely. requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateAgentRequest' examples: entity-only: summary: Entity only (minimal) value: ouId: "456e8400-e29b-41d4-a716-446655440001" projectId: "7c9e6679-7425-40de-944b-e07fc1f90ae7" type: "default" description: "Runs nightly data sync jobs" owner: id: "e1b6ba6c-deb2-4d24-87b0-bbf79fa4487c" idType: uuid isLocal: true attributes: name: "Nightly Sync Worker" modelProvider: "anthropic" entity-and-inbound: summary: Entity + inbound auth profile (no OAuth) value: ouId: "456e8400-e29b-41d4-a716-446655440001" projectId: "7c9e6679-7425-40de-944b-e07fc1f90ae7" type: "default" description: "Agent exposing calendar tools" owner: id: "e1b6ba6c-deb2-4d24-87b0-bbf79fa4487c" idType: uuid isLocal: true attributes: name: "Calendar Agent" modelProvider: "anthropic" authFlowId: "edc013d0-e893-4dc0-990c-3e1d203e005b" registrationFlowId: "f1c2d3e4-f5a6-7b8c-9d0e-1f2a3b4c5d6e" isRegistrationFlowEnabled: false themeId: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" layoutId: "b2c3d4e5-f6a7-8901-bcde-f01234567891" allowedUserTypes: ["employee", "contractor"] assertion: validityPeriod: 3600 userAttributes: ["email", "username"] loginConsent: validityPeriod: 86400 agent-cc-oauth: summary: Agent with client_credentials OAuth (M2M) value: ouId: "456e8400-e29b-41d4-a716-446655440001" projectId: "7c9e6679-7425-40de-944b-e07fc1f90ae7" type: "default" description: "Processes ETL jobs" owner: id: "e1b6ba6c-deb2-4d24-87b0-bbf79fa4487c" idType: uuid isLocal: true attributes: name: "Data Pipeline Worker" modelProvider: "custom" authFlowId: "edc013d0-e893-4dc0-990c-3e1d203e005b" inboundAuthConfig: - type: "oauth2" config: clientId: "etl_worker_client" grantTypes: - "client_credentials" tokenEndpointAuthMethod: "client_secret_basic" scopes: - "data:read" - "data:write" agent-authcode-oauth-full: summary: Agent with authorization_code OAuth (all fields) value: ouId: "456e8400-e29b-41d4-a716-446655440001" projectId: "7c9e6679-7425-40de-944b-e07fc1f90ae7" type: "default" description: "Agent exposing calendar tools" owner: id: "e1b6ba6c-deb2-4d24-87b0-bbf79fa4487c" idType: uuid isLocal: true attributes: name: "Calendar Agent" modelProvider: "anthropic" authFlowId: "edc013d0-e893-4dc0-990c-3e1d203e005b" registrationFlowId: "f1c2d3e4-f5a6-7b8c-9d0e-1f2a3b4c5d6e" isRegistrationFlowEnabled: false themeId: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" layoutId: "b2c3d4e5-f6a7-8901-bcde-f01234567891" allowedUserTypes: ["employee", "contractor"] assertion: validityPeriod: 3600 userAttributes: ["email", "username"] loginConsent: validityPeriod: 86400 inboundAuthConfig: - type: "oauth2" config: clientId: "calendar_agent_client" redirectUris: - "https://calendar-agent.example.com/callback" grantTypes: - "authorization_code" - "refresh_token" responseTypes: - "code" tokenEndpointAuthMethod: "client_secret_basic" pkceRequired: true publicClient: false requirePushedAuthorizationRequests: false scopes: - "openid" - "profile" - "calendar:read" certificate: type: "JWKS_URI" value: "https://calendar-agent.example.com/.well-known/jwks" token: accessToken: userConfig: validityPeriod: 3600 attributes: ["email", "username"] idToken: validityPeriod: 1800 userAttributes: ["email", "name"] refreshToken: validityPeriod: 86400 userInfo: responseType: "JWS" signingAlg: "RS256" userAttributes: ["email", "name", "given_name", "family_name"] scopeClaims: profile: ["name", "family_name", "given_name"] responses: "201": description: Agent created content: application/json: schema: $ref: '#/components/schemas/AgentCompleteResponse' example: id: "9a475e1e-b0cb-4b29-8df5-2e5b24fb0ed3" ouId: "456e8400-e29b-41d4-a716-446655440001" ouHandle: "platform/automations" type: "default" description: "Agent exposing calendar tools" owner: id: "e1b6ba6c-deb2-4d24-87b0-bbf79fa4487c" idType: uuid isLocal: true attributes: name: "Calendar Agent" modelProvider: "anthropic" authFlowId: "edc013d0-e893-4dc0-990c-3e1d203e005b" registrationFlowId: "f1c2d3e4-f5a6-7b8c-9d0e-1f2a3b4c5d6e" isRegistrationFlowEnabled: false themeId: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" layoutId: "b2c3d4e5-f6a7-8901-bcde-f01234567891" allowedUserTypes: ["employee", "contractor"] assertion: validityPeriod: 3600 userAttributes: ["email", "username"] loginConsent: validityPeriod: 86400 inboundAuthConfig: - type: "oauth2" config: clientId: "calendar_agent_client" clientSecret: "s3cr3t_only_shown_once" redirectUris: - "https://calendar-agent.example.com/callback" grantTypes: - "authorization_code" - "refresh_token" responseTypes: - "code" tokenEndpointAuthMethod: "client_secret_basic" pkceRequired: true publicClient: false requirePushedAuthorizationRequests: false scopes: - "openid" - "profile" - "calendar:read" certificate: type: "JWKS_URI" value: "https://calendar-agent.example.com/.well-known/jwks" token: accessToken: userConfig: validityPeriod: 3600 attributes: ["email", "username"] idToken: validityPeriod: 1800 userAttributes: ["email", "name"] refreshToken: validityPeriod: 86400 userInfo: responseType: "JWS" signingAlg: "RS256" userAttributes: ["email", "name", "given_name", "family_name"] scopeClaims: profile: ["name", "family_name", "given_name"] "400": description: Bad request content: application/json: schema: $ref: '#/components/schemas/Error' examples: invalid-lifespan: summary: validUntil is not an RFC 3339 date and time value: code: "AGT-1045" message: key: "error.agentservice.invalid_lifespan" defaultValue: "Invalid lifespan" description: key: "error.agentservice.invalid_lifespan_description" defaultValue: "validUntil must be an RFC 3339 date and time, or null for an agent that does not expire" lifespan-not-in-future: summary: validUntil is not later than the current time value: code: "AGT-1046" message: key: "error.agentservice.lifespan_not_in_future" defaultValue: "Lifespan must end in the future" description: key: "error.agentservice.lifespan_not_in_future_description" defaultValue: "validUntil must be later than the current time" invalid-request-format: summary: Malformed request body value: code: "AGT-1001" message: key: "error.agentservice.invalid_request_format" defaultValue: "Invalid request format" description: key: "error.agentservice.invalid_request_format_description" defaultValue: "The request body is malformed or contains invalid data" invalid-redirect-uri: summary: Invalid redirect URI value: code: "AGT-1002" message: key: "error.agentservice.invalid_redirect_uri" defaultValue: "Invalid redirect URI" description: key: "error.agentservice.invalid_redirect_uri_description" defaultValue: "One or more redirect URIs are not valid" invalid-grant-type: summary: Invalid grant type value: code: "AGT-1003" message: key: "error.agentservice.invalid_grant_type" defaultValue: "Invalid grant type" description: key: "error.agentservice.invalid_grant_type_description" defaultValue: "One or more grant types are not supported" missing-delegation-grant-type: summary: A delegated agent has no grant type that lets it act for a user value: code: "AGT-1044" message: key: "error.agentservice.missing_delegation_grant_type" defaultValue: "Missing required grant types for a delegated agent" description: key: "error.agentservice.missing_delegation_grant_type_description" defaultValue: "A delegated agent needs at least one of these grant types: {{param(grantTypes)}}" device-grant-flow-required: summary: Device Code is enabled without a Device Grant flow value: code: "AGT-1065" message: key: "error.agentservice.device_grant_flow_required" defaultValue: "Device Grant flow is required" description: key: "error.agentservice.device_grant_flow_required_description" defaultValue: "Assign a Device Grant flow before enabling the Device Code grant type" invalid-device-grant-flow: summary: The assigned flow is invalid value: code: "AGT-1066" message: key: "error.agentservice.invalid_device_grant_flow_id" defaultValue: "Invalid Device Grant flow ID" description: key: "error.agentservice.invalid_device_grant_flow_id_description" defaultValue: "The assigned flow must be a valid Device Grant flow" conflicting-flow-references: summary: A configured flow invokes a different flow than the agent assignment value: code: "AGT-1067" message: key: "error.agentservice.agent_flow_mismatch" defaultValue: "Conflicting flow references" description: key: "error.agentservice.agent_flow_mismatch_description" defaultValue: "The {{param(sourceFlowType)}} flow references a different {{param(flowType)}} flow than the one configured on the agent. Both must point to the same {{param(flowType)}} flow." project-required: summary: No project was given on a deployment that requires one, such as the Control Plane value: code: "AGT-1050" message: key: "error.agentservice.project_required" defaultValue: "Project required" description: key: "error.agentservice.project_required_description" defaultValue: "Set projectId to the project the agent belongs to" invalid-project: summary: The project does not exist value: code: "AGT-1047" message: key: "error.agentservice.invalid_project" defaultValue: "Invalid project" description: key: "error.agentservice.invalid_project_description" defaultValue: "No project exists with the given project ID" ou-not-in-project: summary: The organization unit is outside the project value: code: "AGT-1048" message: key: "error.agentservice.ou_not_in_project" defaultValue: "Organization unit not in project" description: key: "error.agentservice.ou_not_in_project_description" defaultValue: "The organization unit must belong to the project" ou-mismatch: summary: The organization unit is outside the agent type's organization unit tree value: code: "AGT-1053" message: key: "error.agentservice.organization_unit_mismatch" defaultValue: "Organization unit mismatch" description: key: "error.agentservice.organization_unit_mismatch_description" defaultValue: "The organization unit does not match the agent type configuration: it must be the agent type's organization unit or one of its descendants" agent-type-not-found: summary: The agent type does not exist, or the caller cannot read it value: code: "AGT-1054" message: key: "error.agentservice.agent_type_not_found" defaultValue: "Agent type not found" description: key: "error.agentservice.agent_type_not_found_description" defaultValue: "No agent type with that handle exists, or the caller cannot view it" ou-not-found: summary: Organization unit not found value: code: "AGT-1005" message: key: "error.agentservice.organization_unit_not_found" defaultValue: "Organization unit not found" description: key: "error.agentservice.organization_unit_not_found_description" defaultValue: "The specified organization unit does not exist" invalid-agent-type: summary: Missing agent type value: code: "AGT-1010" message: key: "error.agentservice.invalid_agent_type" defaultValue: "Invalid agent type" description: key: "error.agentservice.invalid_agent_type_description" defaultValue: "The agent type must be provided" invalid-auth-flow-id: summary: Referenced auth flow does not exist value: code: "AGT-1028" message: key: "error.agentservice.invalid_auth_flow_id" defaultValue: "Invalid auth flow ID" description: key: "error.agentservice.invalid_auth_flow_id_description" defaultValue: "The provided authentication flow ID is invalid" invalid-oauth-configuration: summary: OAuth config constraint violation value: code: "AGT-1021" message: key: "error.agentservice.invalid_oauth_configuration" defaultValue: "Invalid OAuth configuration" description: key: "error.agentservice.invalid_oauth_configuration_description" defaultValue: "The provided OAuth configuration is invalid" invalid-token-endpoint-auth-method: summary: Unsupported token endpoint auth method value: code: "AGT-1022" message: key: "error.agentservice.invalid_token_endpoint_auth_method" defaultValue: "Invalid token endpoint authentication method" description: key: "error.agentservice.invalid_token_endpoint_auth_method_description" defaultValue: "The provided token endpoint authentication method is not supported" invalid-public-client: summary: Public client misconfiguration value: code: "AGT-1023" message: key: "error.agentservice.invalid_public_client_configuration" defaultValue: "Invalid public client configuration" description: key: "error.agentservice.invalid_public_client_configuration_description" defaultValue: "The public client configuration is invalid" invalid-certificate-type: summary: Unsupported certificate type value: code: "AGT-1024" message: key: "error.agentservice.invalid_certificate_type" defaultValue: "Invalid certificate type" description: key: "error.agentservice.invalid_certificate_type_description" defaultValue: "The provided certificate type is not supported" invalid-certificate-value: summary: Missing or malformed certificate value value: code: "AGT-1025" message: key: "error.agentservice.invalid_certificate_value" defaultValue: "Invalid certificate value" description: key: "error.agentservice.invalid_certificate_value_description" defaultValue: "The provided certificate value is invalid or missing" invalid-jwks-uri: summary: JWKS URI is not SSRF-safe value: code: "AGT-1026" message: key: "error.agentservice.invalid_jwks_uri" defaultValue: "Invalid JWKS URI" description: key: "error.agentservice.invalid_jwks_uri_description" defaultValue: "The JWKS URI must be a publicly reachable HTTPS URL" schema-validation-failed: summary: Attribute schema validation failed value: code: "AGT-1015" message: key: "error.agentservice.schema_validation_failed" defaultValue: "Schema validation failed" description: key: "error.agentservice.schema_validation_failed_description" defaultValue: "The provided attributes failed schema validation" invalid-credential: summary: Invalid credential value value: code: "AGT-1016" message: key: "error.agentservice.invalid_credential" defaultValue: "Invalid credential" description: key: "error.agentservice.invalid_credential_description" defaultValue: "The provided credential is invalid" invalid-registration-flow-id: summary: Referenced registration flow does not exist value: code: "AGT-1029" message: key: "error.agentservice.invalid_registration_flow_id" defaultValue: "Invalid registration flow ID" description: key: "error.agentservice.invalid_registration_flow_id_description" defaultValue: "The provided registration flow ID is invalid" error-retrieving-flow-definition: summary: Flow definition could not be fetched value: code: "AGT-1030" message: key: "error.agentservice.error_retrieving_flow_definition" defaultValue: "Error retrieving flow definition" description: key: "error.agentservice.error_retrieving_flow_definition_description" defaultValue: "An error occurred while retrieving the flow definition" invalid-user-type: summary: Allowed user type does not exist value: code: "AGT-1031" message: key: "error.agentservice.invalid_user_type" defaultValue: "Invalid user type" description: key: "error.agentservice.invalid_user_type_description" defaultValue: "One or more specified allowed user types are invalid" theme-not-found: summary: Referenced theme does not exist value: code: "AGT-1032" message: key: "error.agentservice.theme_not_found" defaultValue: "Theme not found" description: key: "error.agentservice.theme_not_found_description" defaultValue: "The specified theme does not exist" layout-not-found: summary: Referenced layout does not exist value: code: "AGT-1033" message: key: "error.agentservice.layout_not_found" defaultValue: "Layout not found" description: key: "error.agentservice.layout_not_found_description" defaultValue: "The specified layout does not exist" invalid-response-type: summary: Unsupported response type value: code: "AGT-1034" message: key: "error.agentservice.invalid_response_type" defaultValue: "Invalid response type" description: key: "error.agentservice.invalid_response_type_description" defaultValue: "One or more provided response types are invalid" certificate-client-error: summary: Certificate operation failed due to invalid input value: code: "AGT-1036" message: key: "error.agentservice.certificate_operation_failed" defaultValue: "Certificate operation failed" description: key: "error.agentservice.certificate_operation_failed_description" defaultValue: "A certificate operation failed due to invalid input" multiple-oauth-configs: summary: More than one OAuth inbound auth config supplied value: code: "AGT-1038" message: key: "error.agentservice.multiple_oauth_configs" defaultValue: "Multiple OAuth inbound auth configs are not allowed" description: key: "error.agentservice.multiple_oauth_configs_description" defaultValue: "An entity may have at most one inbound auth config per protocol" owner-not-found: summary: Owner does not resolve to an existing entity value: code: "AGT-1039" message: key: "error.agentservice.owner_not_found" defaultValue: "Owner not found" description: key: "error.agentservice.owner_not_found_description" defaultValue: "The specified owner does not match any known user, application, or agent" invalid-owner: summary: Owner is not an object, has a field of the wrong type, has no id, an id too long or not matching its id type, an unknown id type, or is local but not a uuid value: code: "AGT-1049" message: key: "error.agentservice.invalid_owner" defaultValue: "Invalid owner" description: key: "error.agentservice.invalid_owner_description" defaultValue: "The owner must be an object whose id is at most 256 characters and matches its idType, with a uuid for a local owner" owner-suspended: summary: The personal agent's owner is suspended value: code: "AGT-1062" message: key: "error.agentservice.owner_suspended" defaultValue: "Owner suspended" description: key: "error.agentservice.owner_suspended_description" defaultValue: "A personal agent cannot be created for a user whose account is suspended" grant-type-not-allowed-for-personal-agent: summary: A personal agent is given a grant type it cannot use value: code: "AGT-1056" message: key: "error.agentservice.grant_type_not_allowed_for_personal_agent" defaultValue: "Grant type not allowed" description: key: "error.agentservice.grant_type_not_allowed_for_personal_agent_description" defaultValue: "A personal agent can only use the authorization code, CIBA, and refresh token grants" invalid-kind: summary: The kind is not a known agent kind value: code: "AGT-1057" message: key: "error.agentservice.invalid_kind" defaultValue: "Invalid kind" description: key: "error.agentservice.invalid_kind_description" defaultValue: "The agent kind is not a known kind" invalid-public-key: summary: A personal agent's public key is not a JWKS document with a key value: code: "AGT-1058" message: key: "error.agentservice.invalid_public_key" defaultValue: "Invalid public key" description: key: "error.agentservice.invalid_public_key_description" defaultValue: "The public key must be a JWKS document with at least one key" invalid-user-attribute: summary: User attribute not valid for any allowed user type value: code: "AGT-1040" message: key: "error.agentservice.invalid_user_attribute" defaultValue: "Invalid user attribute" description: key: "error.agentservice.invalid_user_attribute_description" defaultValue: "One or more user attributes are not valid for the configured allowed user types" "403": description: Forbidden content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "AGT-1027" message: key: "error.agentservice.cannot_modify_declarative_resource" defaultValue: "Cannot modify declarative resource" description: key: "error.agentservice.cannot_modify_declarative_resource_description" defaultValue: "Declaratively managed agents cannot be modified via the API" "409": description: Conflict content: application/json: schema: $ref: '#/components/schemas/Error' examples: attribute-conflict: summary: Unique attribute value already in use value: code: "AGT-1014" message: key: "error.agentservice.attribute_conflict" defaultValue: "Attribute conflict" description: key: "error.agentservice.attribute_conflict_description" defaultValue: "An agent with the same unique attribute value already exists" client-id-conflict: summary: Client ID already in use by another entity value: code: "AGT-1037" message: key: "error.agentservice.agent_already_exists_with_client_id" defaultValue: "Client ID already in use" description: key: "error.agentservice.agent_already_exists_with_client_id_description" defaultValue: "An entity with the same client ID already exists" "401": $ref: '#/components/responses/Unauthorized' "500": description: Internal server error /agents/{id}: get: tags: - Agents summary: Get an agent by id description: | Retrieve an agent. A caller confined to an organization unit other than the one that owns the agent reads it when the agent is shared into the caller's organization unit. The agent is then returned under that organization unit, with `isOwnedByOU` set to `false` and `isReadOnly` set to `true`. parameters: - in: path name: id required: true schema: type: string format: uuid example: "9a475e1e-b0cb-4b29-8df5-2e5b24fb0ed3" - $ref: '#/components/parameters/includeQueryParam' responses: "200": description: Agent details content: application/json: schema: $ref: '#/components/schemas/AgentGetResponse' example: id: "9a475e1e-b0cb-4b29-8df5-2e5b24fb0ed3" ouId: "456e8400-e29b-41d4-a716-446655440001" ouHandle: "platform/automations" type: "default" description: "Agent exposing calendar tools" clientId: "calendar_agent_client" owner: id: "e1b6ba6c-deb2-4d24-87b0-bbf79fa4487c" idType: uuid isLocal: true attributes: name: "Calendar Agent" modelProvider: "anthropic" isReadOnly: false isOwnedByOU: true authFlowId: "edc013d0-e893-4dc0-990c-3e1d203e005b" registrationFlowId: "f1c2d3e4-f5a6-7b8c-9d0e-1f2a3b4c5d6e" isRegistrationFlowEnabled: false themeId: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" layoutId: "b2c3d4e5-f6a7-8901-bcde-f01234567891" allowedUserTypes: ["employee", "contractor"] assertion: validityPeriod: 3600 userAttributes: ["email", "username"] loginConsent: validityPeriod: 86400 inboundAuthConfig: - type: "oauth2" config: clientId: "calendar_agent_client" redirectUris: - "https://calendar-agent.example.com/callback" grantTypes: - "authorization_code" - "refresh_token" responseTypes: - "code" tokenEndpointAuthMethod: "client_secret_basic" pkceRequired: true publicClient: false requirePushedAuthorizationRequests: false scopes: - "openid" - "profile" - "calendar:read" certificate: type: "JWKS_URI" value: "https://calendar-agent.example.com/.well-known/jwks" token: accessToken: userConfig: validityPeriod: 3600 attributes: ["email", "username"] idToken: validityPeriod: 1800 userAttributes: ["email", "name"] refreshToken: validityPeriod: 86400 userInfo: responseType: "JWS" signingAlg: "RS256" userAttributes: ["email", "name", "given_name", "family_name"] scopeClaims: profile: ["name", "family_name", "given_name"] "404": description: Agent not found content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "AGT-1004" message: key: "error.agentservice.agent_not_found" defaultValue: "Agent not found" description: key: "error.agentservice.agent_not_found_description" defaultValue: "The agent with the specified id does not exist" "401": $ref: '#/components/responses/Unauthorized' "403": $ref: '#/components/responses/Forbidden' "500": description: Internal server error put: tags: - Agents summary: Update an agent by id description: | Full replacement update. `type` is required. All inbound auth profile and OAuth profile fields are applied according to the same rules as CreateAgentRequest. Omitting an inbound auth or OAuth field clears it. Send the complete `attributes` object to preserve its values. The default agent schema requires a unique string `attributes.name`. Missing required attributes fail schema validation (`AGT-1015`); duplicate unique attributes produce an attribute conflict (`AGT-1014`). If `ouId` is provided and differs from the current value, the agent is moved to the new organization unit (which must exist). When the update changes the organization unit or the `type`, the organization unit must be the agent type's organization unit or one of its descendants; otherwise the request is rejected with `AGT-1053`. As on create, the caller also needs permission to view the agent type (`system:agenttype:view`), and an agent type that does not exist, or that the caller cannot read, is rejected with `AGT-1054`. A personal agent keeps the owner it was registered for. Leave `owner` out, or send the current owner; a different owner is rejected with `AGT-1064`. An update that sends a client secret other than the stored one replaces it, as a regeneration does. When token revocation is on (`oauth.token_revocation.enabled`, the default), the tokens issued through the agent's client ID up to the change are revoked, including tokens issued to users through it: before the update is written, and again once it is. Sending the stored secret again revokes nothing. With token revocation off, or on a control plane, nothing is revoked. If the revocation before the write fails, the agent is not changed. If the one after the write fails, the update is stored but the request returns an error, and a token issued while it was being written may stay valid until it expires; regenerating the secret revokes it. An attribute the agent type marks as a credential is rejected with `AGT-1068`: credentials are set when the agent is created, and changed with `POST /agents/{id}/update-credentials`, or by the owner of a personal agent with `POST /users/me/agents/{id}/update-credentials`. parameters: - in: path name: id required: true schema: type: string format: uuid example: "9a475e1e-b0cb-4b29-8df5-2e5b24fb0ed3" requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAgentRequest' examples: update-name-description: summary: Replace agent attributes and clear omitted profile settings value: type: "default" description: "Updated agent with v2 APIs" attributes: name: "Calendar Agent v2" update-full: summary: Full update (all fields) value: ouId: "456e8400-e29b-41d4-a716-446655440001" type: "default" description: "Agent exposing calendar tools" owner: id: "e1b6ba6c-deb2-4d24-87b0-bbf79fa4487c" idType: uuid isLocal: true attributes: name: "Calendar Agent" modelProvider: "anthropic" authFlowId: "edc013d0-e893-4dc0-990c-3e1d203e005b" registrationFlowId: "f1c2d3e4-f5a6-7b8c-9d0e-1f2a3b4c5d6e" isRegistrationFlowEnabled: false themeId: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" layoutId: "b2c3d4e5-f6a7-8901-bcde-f01234567891" allowedUserTypes: ["employee", "contractor"] assertion: validityPeriod: 3600 userAttributes: ["email", "username"] loginConsent: validityPeriod: 86400 inboundAuthConfig: - type: "oauth2" config: clientId: "calendar_agent_client" redirectUris: - "https://calendar-agent.example.com/callback" - "https://calendar-agent.example.com/callback-v2" grantTypes: - "authorization_code" - "refresh_token" responseTypes: - "code" tokenEndpointAuthMethod: "client_secret_basic" pkceRequired: true publicClient: false requirePushedAuthorizationRequests: false scopes: - "openid" - "profile" - "calendar:read" - "calendar:write" certificate: type: "JWKS_URI" value: "https://calendar-agent.example.com/.well-known/jwks" token: accessToken: userConfig: validityPeriod: 3600 attributes: ["email", "username"] idToken: validityPeriod: 1800 userAttributes: ["email", "name"] refreshToken: validityPeriod: 86400 userInfo: responseType: "JWS" signingAlg: "RS256" userAttributes: ["email", "name", "given_name", "family_name"] scopeClaims: profile: ["name", "family_name", "given_name"] responses: "200": description: Agent updated, with its `status` content: application/json: schema: $ref: '#/components/schemas/AgentCompleteResponse' example: id: "9a475e1e-b0cb-4b29-8df5-2e5b24fb0ed3" ouId: "456e8400-e29b-41d4-a716-446655440001" ouHandle: "platform/automations" type: "default" description: "Agent exposing calendar tools" owner: id: "e1b6ba6c-deb2-4d24-87b0-bbf79fa4487c" idType: uuid isLocal: true attributes: name: "Calendar Agent" modelProvider: "anthropic" authFlowId: "edc013d0-e893-4dc0-990c-3e1d203e005b" registrationFlowId: "f1c2d3e4-f5a6-7b8c-9d0e-1f2a3b4c5d6e" isRegistrationFlowEnabled: false themeId: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" layoutId: "b2c3d4e5-f6a7-8901-bcde-f01234567891" allowedUserTypes: ["employee", "contractor"] assertion: validityPeriod: 3600 userAttributes: ["email", "username"] loginConsent: validityPeriod: 86400 inboundAuthConfig: - type: "oauth2" config: clientId: "calendar_agent_client" redirectUris: - "https://calendar-agent.example.com/callback" - "https://calendar-agent.example.com/callback-v2" grantTypes: - "authorization_code" - "refresh_token" responseTypes: - "code" tokenEndpointAuthMethod: "client_secret_basic" pkceRequired: true publicClient: false requirePushedAuthorizationRequests: false scopes: - "openid" - "profile" - "calendar:read" - "calendar:write" certificate: type: "JWKS_URI" value: "https://calendar-agent.example.com/.well-known/jwks" token: accessToken: userConfig: validityPeriod: 3600 attributes: ["email", "username"] idToken: validityPeriod: 1800 userAttributes: ["email", "name"] refreshToken: validityPeriod: 86400 userInfo: responseType: "JWS" signingAlg: "RS256" userAttributes: ["email", "name", "given_name", "family_name"] scopeClaims: profile: ["name", "family_name", "given_name"] "400": description: Bad request content: application/json: schema: $ref: '#/components/schemas/Error' examples: invalid-lifespan: summary: validUntil is not an RFC 3339 date and time value: code: "AGT-1045" message: key: "error.agentservice.invalid_lifespan" defaultValue: "Invalid lifespan" description: key: "error.agentservice.invalid_lifespan_description" defaultValue: "validUntil must be an RFC 3339 date and time, or null for an agent that does not expire" lifespan-not-in-future: summary: validUntil is not later than the current time value: code: "AGT-1046" message: key: "error.agentservice.lifespan_not_in_future" defaultValue: "Lifespan must end in the future" description: key: "error.agentservice.lifespan_not_in_future_description" defaultValue: "validUntil must be later than the current time" invalid-redirect-uri: summary: Invalid redirect URI value: code: "AGT-1002" message: key: "error.agentservice.invalid_redirect_uri" defaultValue: "Invalid redirect URI" description: key: "error.agentservice.invalid_redirect_uri_description" defaultValue: "One or more redirect URIs are not valid" device-grant-flow-required: summary: Device Code is enabled without a Device Grant flow value: code: "AGT-1065" message: key: "error.agentservice.device_grant_flow_required" defaultValue: "Device Grant flow is required" description: key: "error.agentservice.device_grant_flow_required_description" defaultValue: "Assign a Device Grant flow before enabling the Device Code grant type" invalid-device-grant-flow: summary: The assigned flow is invalid value: code: "AGT-1066" message: key: "error.agentservice.invalid_device_grant_flow_id" defaultValue: "Invalid Device Grant flow ID" description: key: "error.agentservice.invalid_device_grant_flow_id_description" defaultValue: "The assigned flow must be a valid Device Grant flow" conflicting-flow-references: summary: A configured flow invokes a different flow than the agent assignment value: code: "AGT-1067" message: key: "error.agentservice.agent_flow_mismatch" defaultValue: "Conflicting flow references" description: key: "error.agentservice.agent_flow_mismatch_description" defaultValue: "The {{param(sourceFlowType)}} flow references a different {{param(flowType)}} flow than the one configured on the agent. Both must point to the same {{param(flowType)}} flow." invalid-project: summary: The project does not exist value: code: "AGT-1047" message: key: "error.agentservice.invalid_project" defaultValue: "Invalid project" description: key: "error.agentservice.invalid_project_description" defaultValue: "No project exists with the given project ID" ou-not-in-project: summary: The organization unit is outside the project value: code: "AGT-1048" message: key: "error.agentservice.ou_not_in_project" defaultValue: "Organization unit not in project" description: key: "error.agentservice.ou_not_in_project_description" defaultValue: "The organization unit must belong to the project" ou-mismatch: summary: The organization unit is outside the agent type's organization unit tree value: code: "AGT-1053" message: key: "error.agentservice.organization_unit_mismatch" defaultValue: "Organization unit mismatch" description: key: "error.agentservice.organization_unit_mismatch_description" defaultValue: "The organization unit does not match the agent type configuration: it must be the agent type's organization unit or one of its descendants" agent-type-not-found: summary: The agent type does not exist, or the caller cannot read it value: code: "AGT-1054" message: key: "error.agentservice.agent_type_not_found" defaultValue: "Agent type not found" description: key: "error.agentservice.agent_type_not_found_description" defaultValue: "No agent type with that handle exists, or the caller cannot view it" ou-not-found: summary: New organization unit not found value: code: "AGT-1005" message: key: "error.agentservice.organization_unit_not_found" defaultValue: "Organization unit not found" description: key: "error.agentservice.organization_unit_not_found_description" defaultValue: "The specified organization unit does not exist" invalid-oauth-configuration: summary: OAuth config constraint violation value: code: "AGT-1021" message: key: "error.agentservice.invalid_oauth_configuration" defaultValue: "Invalid OAuth configuration" description: key: "error.agentservice.invalid_oauth_configuration_description" defaultValue: "The provided OAuth configuration is invalid" invalid-token-endpoint-auth-method: summary: Unsupported token endpoint auth method value: code: "AGT-1022" message: key: "error.agentservice.invalid_token_endpoint_auth_method" defaultValue: "Invalid token endpoint authentication method" description: key: "error.agentservice.invalid_token_endpoint_auth_method_description" defaultValue: "The provided token endpoint authentication method is not supported" invalid-public-client: summary: Public client misconfiguration value: code: "AGT-1023" message: key: "error.agentservice.invalid_public_client_configuration" defaultValue: "Invalid public client configuration" description: key: "error.agentservice.invalid_public_client_configuration_description" defaultValue: "The public client configuration is invalid" invalid-certificate-type: summary: Unsupported certificate type value: code: "AGT-1024" message: key: "error.agentservice.invalid_certificate_type" defaultValue: "Invalid certificate type" description: key: "error.agentservice.invalid_certificate_type_description" defaultValue: "The provided certificate type is not supported" invalid-certificate-value: summary: Missing or malformed certificate value value: code: "AGT-1025" message: key: "error.agentservice.invalid_certificate_value" defaultValue: "Invalid certificate value" description: key: "error.agentservice.invalid_certificate_value_description" defaultValue: "The provided certificate value is invalid or missing" invalid-jwks-uri: summary: JWKS URI is not SSRF-safe value: code: "AGT-1026" message: key: "error.agentservice.invalid_jwks_uri" defaultValue: "Invalid JWKS URI" description: key: "error.agentservice.invalid_jwks_uri_description" defaultValue: "The JWKS URI must be a publicly reachable HTTPS URL" invalid-auth-flow-id: summary: Referenced auth flow does not exist value: code: "AGT-1028" message: key: "error.agentservice.invalid_auth_flow_id" defaultValue: "Invalid auth flow ID" description: key: "error.agentservice.invalid_auth_flow_id_description" defaultValue: "The provided authentication flow ID is invalid" invalid-registration-flow-id: summary: Referenced registration flow does not exist value: code: "AGT-1029" message: key: "error.agentservice.invalid_registration_flow_id" defaultValue: "Invalid registration flow ID" description: key: "error.agentservice.invalid_registration_flow_id_description" defaultValue: "The provided registration flow ID is invalid" error-retrieving-flow-definition: summary: Flow definition could not be fetched value: code: "AGT-1030" message: key: "error.agentservice.error_retrieving_flow_definition" defaultValue: "Error retrieving flow definition" description: key: "error.agentservice.error_retrieving_flow_definition_description" defaultValue: "An error occurred while retrieving the flow definition" invalid-user-type: summary: Allowed user type does not exist value: code: "AGT-1031" message: key: "error.agentservice.invalid_user_type" defaultValue: "Invalid user type" description: key: "error.agentservice.invalid_user_type_description" defaultValue: "One or more specified allowed user types are invalid" theme-not-found: summary: Referenced theme does not exist value: code: "AGT-1032" message: key: "error.agentservice.theme_not_found" defaultValue: "Theme not found" description: key: "error.agentservice.theme_not_found_description" defaultValue: "The specified theme does not exist" layout-not-found: summary: Referenced layout does not exist value: code: "AGT-1033" message: key: "error.agentservice.layout_not_found" defaultValue: "Layout not found" description: key: "error.agentservice.layout_not_found_description" defaultValue: "The specified layout does not exist" invalid-response-type: summary: Unsupported response type value: code: "AGT-1034" message: key: "error.agentservice.invalid_response_type" defaultValue: "Invalid response type" description: key: "error.agentservice.invalid_response_type_description" defaultValue: "One or more provided response types are invalid" certificate-client-error: summary: Certificate operation failed due to invalid input value: code: "AGT-1036" message: key: "error.agentservice.certificate_operation_failed" defaultValue: "Certificate operation failed" description: key: "error.agentservice.certificate_operation_failed_description" defaultValue: "A certificate operation failed due to invalid input" schema-validation-failed: summary: Attribute schema validation failed value: code: "AGT-1015" message: key: "error.agentservice.schema_validation_failed" defaultValue: "Schema validation failed" description: key: "error.agentservice.schema_validation_failed_description" defaultValue: "The provided attributes failed schema validation" invalid-credential: summary: Invalid credential value value: code: "AGT-1016" message: key: "error.agentservice.invalid_credential" defaultValue: "Invalid credential" description: key: "error.agentservice.invalid_credential_description" defaultValue: "The provided credential is invalid" multiple-oauth-configs: summary: More than one OAuth inbound auth config supplied value: code: "AGT-1038" message: key: "error.agentservice.multiple_oauth_configs" defaultValue: "Multiple OAuth inbound auth configs are not allowed" description: key: "error.agentservice.multiple_oauth_configs_description" defaultValue: "An entity may have at most one inbound auth config per protocol" owner-not-found: summary: Owner does not resolve to an existing entity value: code: "AGT-1039" message: key: "error.agentservice.owner_not_found" defaultValue: "Owner not found" description: key: "error.agentservice.owner_not_found_description" defaultValue: "The specified owner does not match any known user, application, or agent" invalid-owner: summary: Owner is not an object, has a field of the wrong type, has no id, an id too long or not matching its id type, an unknown id type, or is local but not a uuid value: code: "AGT-1049" message: key: "error.agentservice.invalid_owner" defaultValue: "Invalid owner" description: key: "error.agentservice.invalid_owner_description" defaultValue: "The owner must be an object whose id is at most 256 characters and matches its idType, with a uuid for a local owner" invalid-user-attribute: summary: User attribute not valid for any allowed user type value: code: "AGT-1040" message: key: "error.agentservice.invalid_user_attribute" defaultValue: "Invalid user attribute" description: key: "error.agentservice.invalid_user_attribute_description" defaultValue: "One or more user attributes are not valid for the configured allowed user types" personal-agent-owner-immutable: summary: The update names a different owner for a personal agent value: code: "AGT-1064" message: key: "error.agentservice.personal_agent_owner_immutable" defaultValue: "Owner cannot be changed" description: key: "error.agentservice.personal_agent_owner_immutable_description" defaultValue: "A personal agent keeps the owner it was registered for" "403": description: > Forbidden. The agent is declared in a file (`AGT-1027`), or was deployed by a control plane, which only a later deploy from the control plane changes (`AGT-1063`). content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "AGT-1027" message: key: "error.agentservice.cannot_modify_declarative_resource" defaultValue: "Cannot modify declarative resource" description: key: "error.agentservice.cannot_modify_declarative_resource_description" defaultValue: "Declaratively managed agents cannot be modified via the API" "404": description: Agent not found content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "AGT-1004" message: key: "error.agentservice.agent_not_found" defaultValue: "Agent not found" description: key: "error.agentservice.agent_not_found_description" defaultValue: "The agent with the specified id does not exist" "409": description: Conflict content: application/json: schema: $ref: '#/components/schemas/Error' examples: client-id-conflict: summary: Client ID already in use by another entity value: code: "AGT-1037" message: key: "error.agentservice.agent_already_exists_with_client_id" defaultValue: "Client ID already in use" description: key: "error.agentservice.agent_already_exists_with_client_id_description" defaultValue: "An entity with the same client ID already exists" attribute-conflict: summary: Unique attribute value already in use value: code: "AGT-1014" message: key: "error.agentservice.attribute_conflict" defaultValue: "Attribute conflict" description: key: "error.agentservice.attribute_conflict_description" defaultValue: "An agent with the same unique attribute value already exists" "401": $ref: '#/components/responses/Unauthorized' "500": description: Internal server error delete: tags: - Agents summary: Delete an agent by id description: | Deletes the agent, its inbound auth profile, and its OAuth client profile. Group memberships and role assignments are automatically removed by cascade. The delete is fail-closed and retriable: if dependency cleanup fails, the agent is left intact and the operation can be retried. When token revocation is on (`oauth.token_revocation.enabled`, the default), the tokens issued to the agent and those issued through its client ID, including tokens issued to users through it, are revoked, and its sessions end. parameters: - in: path name: id required: true schema: type: string format: uuid example: "9a475e1e-b0cb-4b29-8df5-2e5b24fb0ed3" responses: "204": description: Agent deleted "403": description: > Forbidden. The agent is declared in a file (`AGT-1027`), or was deployed by a control plane, which only a later deploy from the control plane changes (`AGT-1063`). content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "AGT-1027" message: key: "error.agentservice.cannot_modify_declarative_resource" defaultValue: "Cannot modify declarative resource" description: key: "error.agentservice.cannot_modify_declarative_resource_description" defaultValue: "Declaratively managed agents cannot be modified via the API" "404": description: Agent not found content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "AGT-1004" message: key: "error.agentservice.agent_not_found" defaultValue: "Agent not found" description: key: "error.agentservice.agent_not_found_description" defaultValue: "The agent with the specified id does not exist" "401": $ref: '#/components/responses/Unauthorized' "500": description: Internal server error /agents/{id}/client-secret/regenerate: post: tags: - Agents summary: Regenerate an agent's client secret description: | Replaces the client secret of an agent that authenticates with one with a newly generated secret, and returns it. The response is the only time the new secret can be read: it is stored hashed and no read returns it. The old secret stops working at once. When token revocation is on (`oauth.token_revocation.enabled`, the default), the tokens issued through the agent's client ID up to the change are revoked, including tokens issued to users through it, as for an update that replaces the secret: before the new secret is written, and again once it is, so a token issued while it was being written is revoked too. With token revocation off, or on a control plane, which issues no tokens, nothing is revoked. If the revocation before the write fails, the secret is not changed. If the one after the write fails, the new secret is stored and still returned, with `revocationIncomplete: true`: a token issued while it was being written may stay valid until it expires, and regenerating again revokes it. The attempt is recorded as failed in the audit log. An agent that authenticates without a client secret (a public client, `none` or `private_key_jwt`), a personal agent, one declared in a file, and one a control plane deployed are refused. The caller needs the same permissions as for updating the agent, and every permission the agent holds, since the new secret lets the caller act as the agent. parameters: - in: path name: id required: true schema: type: string format: uuid example: "9a475e1e-b0cb-4b29-8df5-2e5b24fb0ed3" responses: "200": description: Client secret regenerated headers: Cache-Control: description: Always `no-store`, since the body carries a secret. schema: type: string example: no-store content: application/json: schema: $ref: '#/components/schemas/ClientSecretResponse' example: clientSecret: "pD3fXq9sT7wLk2vB8nR4mZ6cY1hJ5gA0" "400": description: The agent's client secret cannot be regenerated content: application/json: schema: $ref: '#/components/schemas/Error' examples: no-client-secret: summary: The agent authenticates without a client secret value: code: "AGT-1052" message: key: "error.agentservice.client_secret_not_used" defaultValue: "Agent has no client secret" description: key: "error.agentservice.client_secret_not_used_description" defaultValue: "Only an agent that authenticates with a client secret can have its secret regenerated" personal-agent: summary: The agent is a personal agent value: code: "AGT-1059" message: key: "error.agentservice.personal_agent_secret_not_regenerable" defaultValue: "Secret cannot be regenerated" description: key: "error.agentservice.personal_agent_secret_not_regenerable_description" defaultValue: "A personal agent's client secret cannot be regenerated" "403": description: > Forbidden. The caller may not update the agent, lacks a permission the agent holds (`SAZ-4030`), the agent is declared in a file (`AGT-1027`), or it was deployed by a control plane, which only a later deploy from the control plane changes (`AGT-1063`). content: application/json: schema: $ref: '#/components/schemas/Error' examples: managed-agent: summary: The agent was deployed by a control plane value: code: "AGT-1063" message: key: "error.agentservice.managed_agent" defaultValue: "Cannot modify an agent deployed by the control plane" description: key: "error.agentservice.managed_agent_description" defaultValue: "The agent was deployed by the control plane and can only be changed there" grant-not-permitted: summary: The caller lacks a permission the agent holds value: code: "SAZ-4030" message: key: "error.sysauthz.grant_not_permitted" defaultValue: "Insufficient privileges to grant these permissions" description: key: "error.sysauthz.grant_not_permitted_description" defaultValue: "The operation would grant permissions that the caller does not hold" "404": description: Agent not found content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "AGT-1004" message: key: "error.agentservice.agent_not_found" defaultValue: "Agent not found" description: key: "error.agentservice.agent_not_found_description" defaultValue: "The agent with the specified id does not exist" "401": $ref: '#/components/responses/Unauthorized' "500": description: Internal server error /agents/{id}/update-credentials: post: tags: - Agents summary: Update an agent's credentials description: | Sets new values for credentials the agent type's schema declares, such as a password. Only the credentials present in the request body are updated, and the others keep their value. The values are stored hashed and no read returns them. Replacing a credential the agent already holds revokes the tokens issued with the agent as their subject and ends its sessions, as a user's credential update does, up to the change and again once it is written. Setting one the agent does not hold yet revokes nothing. Sending the value the agent already holds still revokes, so a reset ends a session that was taken without the credential. If the revocation before the write fails, the credential is not changed. If the one after the write fails, the credential is stored but the request returns an error, and a token issued while it was being written may stay valid until it expires; setting the credential again revokes it. The client secret is not a credential attribute, and this request cannot change it. A personal agent's credentials are its owner's to set with `POST /users/me/agents/{id}/update-credentials`, so a request for one is refused (`AGT-1069`). An agent declared in a file, and one a control plane deployed, are refused too. The caller needs the same permissions as for updating the agent, and must hold every permission the agent holds. parameters: - in: path name: id required: true schema: type: string format: uuid example: "9a475e1e-b0cb-4b29-8df5-2e5b24fb0ed3" requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAgentCredentialsRequest' example: credentials: password: "n3wP@ssword!" responses: "204": description: Credentials updated "400": description: > Bad request. The body has no credentials (`AGT-1001`), names one the agent type does not declare or gives it an empty value (`AGT-1016`), gives one a value its schema refuses (`AGT-1015`), or is for a personal agent (`AGT-1069`). content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "AGT-1069" message: key: "error.agentservice.personal_agent_credentials_not_updatable" defaultValue: "Credentials cannot be updated" description: key: "error.agentservice.personal_agent_credentials_not_updatable_description" defaultValue: "A personal agent's credentials can only be set by its owner" "401": $ref: '#/components/responses/Unauthorized' "403": description: > Forbidden. The caller may not update the agent or does not hold every permission it holds, the agent is declared in a file (`AGT-1027`), or it was deployed by a control plane, which only a later deploy from the control plane changes (`AGT-1063`). content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "AGT-1063" message: key: "error.agentservice.managed_agent" defaultValue: "Cannot modify an agent deployed by the control plane" description: key: "error.agentservice.managed_agent_description" defaultValue: "The agent was deployed by the control plane and can only be changed there" "404": description: Agent not found content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "AGT-1004" message: key: "error.agentservice.agent_not_found" defaultValue: "Agent not found" description: key: "error.agentservice.agent_not_found_description" defaultValue: "The agent with the specified id does not exist" "500": description: Internal server error /agents/{id}/groups: get: tags: - Agents summary: List groups that the agent belongs to description: | Returns a paginated list of groups the agent is a member of. Use the group and role APIs to add the agent to groups or assign roles directly. parameters: - in: path name: id required: true schema: type: string format: uuid description: "The unique identifier of the agent" example: "9a475e1e-b0cb-4b29-8df5-2e5b24fb0ed3" - $ref: '#/components/parameters/limitQueryParam' - $ref: '#/components/parameters/offsetQueryParam' responses: "200": description: List of groups that the agent belongs to content: application/json: schema: $ref: '#/components/schemas/AgentGroupListResponse' example: totalResults: 2 startIndex: 1 count: 2 groups: - id: "550e8400-e29b-41d4-a716-446655440000" name: "Service Agents" ouId: "456e8400-e29b-41d4-a716-446655440001" - id: "660e8400-e29b-41d4-a716-446655440001" name: "Production Agents" ouId: "456e8400-e29b-41d4-a716-446655440001" links: [] "400": description: Bad request content: application/json: schema: $ref: '#/components/schemas/Error' examples: missing-id: summary: Missing agent ID value: code: "AGT-1008" message: key: "error.agentservice.missing_agent_id" defaultValue: "Missing agent ID" description: key: "error.agentservice.missing_agent_id_description" defaultValue: "The agent ID is required" "404": description: Agent not found content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "AGT-1004" message: key: "error.agentservice.agent_not_found" defaultValue: "Agent not found" description: key: "error.agentservice.agent_not_found_description" defaultValue: "The agent with the specified id does not exist" "401": $ref: '#/components/responses/Unauthorized' "500": description: Internal server error /agents/{id}/roles: get: tags: - Agents summary: List roles assigned to the agent description: | Returns a paginated list of role names assigned to the agent, both directly and through group membership. Use the group and role APIs to manage the underlying assignments. parameters: - in: path name: id required: true schema: type: string format: uuid description: "The unique identifier of the agent" example: "9a475e1e-b0cb-4b29-8df5-2e5b24fb0ed3" - $ref: '#/components/parameters/limitQueryParam' - $ref: '#/components/parameters/offsetQueryParam' responses: "200": description: List of roles assigned to the agent content: application/json: schema: $ref: '#/components/schemas/AgentRoleListResponse' example: totalResults: 2 startIndex: 1 count: 2 roles: - "agent-operator" - "billing-viewer" links: [] "400": description: Bad request content: application/json: schema: $ref: '#/components/schemas/Error' examples: missing-id: summary: Missing agent ID value: code: "AGT-1008" message: key: "error.agentservice.missing_agent_id" defaultValue: "Missing agent ID" description: key: "error.agentservice.missing_agent_id_description" defaultValue: "The agent ID is required" "404": description: Agent not found content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "AGT-1004" message: key: "error.agentservice.agent_not_found" defaultValue: "Agent not found" description: key: "error.agentservice.agent_not_found_description" defaultValue: "The agent with the specified id does not exist" "401": $ref: '#/components/responses/Unauthorized' "500": description: Internal server error /agent-types: get: tags: - Agent Types summary: List agent type schemas description: | Retrieves the list of agent type schemas. Each organization unit can have at most one agent type. parameters: - $ref: '#/components/parameters/limitQueryParam' - $ref: '#/components/parameters/offsetQueryParam' - $ref: '#/components/parameters/includeQueryParam' responses: "200": description: List of agent type schemas content: application/json: schema: $ref: '#/components/schemas/AgentTypeListResponse' example: totalResults: 1 startIndex: 1 count: 1 types: - id: "550e8400-e29b-41d4-a716-446655440000" handle: "default" displayName: "Default" ouId: "26eec421-f1bb-4deb-a5d3-9ab6554c2ae6" allowSelfRegistration: false systemAttributes: display: "name" "400": description: Bad request content: application/json: schema: $ref: '#/components/schemas/Error' examples: invalid-limit: summary: Invalid limit parameter value: code: "USRS-1005" message: key: "error.entitytypeservice.invalid_limit_parameter" defaultValue: "Invalid pagination parameter" description: key: "error.entitytypeservice.invalid_limit_parameter_description" defaultValue: "The limit parameter must be a positive integer" invalid-offset: summary: Invalid offset parameter value: code: "USRS-1006" message: key: "error.entitytypeservice.invalid_offset_parameter" defaultValue: "Invalid pagination parameter" description: key: "error.entitytypeservice.invalid_offset_parameter_description" defaultValue: "The offset parameter must be a non-negative integer" "401": $ref: '#/components/responses/Unauthorized' "403": $ref: '#/components/responses/Forbidden' "500": description: Internal server error post: tags: - Agent Types summary: Create an agent type schema description: | Creates an agent type schema in an organization unit. The `handle` must be unique among agent types. An organization unit can have only one agent type, so creating an agent type in an organization unit that already has one is rejected with `409` and `USRS-1021`. requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateAgentTypeRequest' example: handle: "support-agents" displayName: "Support Agents" ouId: "7b2c1f3e-4a5d-4e6f-8a9b-0c1d2e3f4a5b" allowSelfRegistration: false systemAttributes: display: "name" schema: name: type: "string" displayName: "Name" required: true unique: true modelProvider: type: "string" required: false enum: ["openai", "anthropic", "gemini", "mistral", "custom"] responses: "201": description: Agent type created content: application/json: schema: $ref: '#/components/schemas/AgentType' example: id: "880e8400-e29b-41d4-a716-446655440003" handle: "support-agents" displayName: "Support Agents" ouId: "7b2c1f3e-4a5d-4e6f-8a9b-0c1d2e3f4a5b" allowSelfRegistration: false systemAttributes: display: "name" schema: name: type: "string" displayName: "Name" required: true unique: true modelProvider: type: "string" required: false enum: ["openai", "anthropic", "gemini", "mistral", "custom"] "400": description: Bad request content: application/json: schema: $ref: '#/components/schemas/Error' examples: invalid-request-format: summary: Invalid request format value: code: "USRS-1001" message: key: "error.entitytypeservice.invalid_request_format" defaultValue: "Invalid request format" description: key: "error.entitytypeservice.invalid_request_format_description" defaultValue: "The request body is malformed or contains invalid data" invalid-attribute-definition: summary: Invalid attribute definition value: code: "USRS-1004" message: key: "error.entitytypeservice.invalid_agent_type_request" defaultValue: "Invalid agent type request" description: key: "error.entitytypeservice.invalid_agent_type_request_description" defaultValue: "The agent type request contains invalid or missing required fields" "409": description: Conflict content: application/json: schema: $ref: '#/components/schemas/Error' examples: handle-conflict: summary: Handle already taken value: code: "USRS-1003" message: key: "error.entitytypeservice.agent_type_handle_conflict" defaultValue: "Agent type handle conflict" description: key: "error.entitytypeservice.agent_type_handle_conflict_description" defaultValue: "An agent type with the same handle already exists" agent-type-exists-in-ou: summary: Organization unit already has an agent type value: code: "USRS-1021" message: key: "error.entitytypeservice.agent_type_already_exists_in_ou" defaultValue: "Organization unit already has an agent type" description: key: "error.entitytypeservice.agent_type_already_exists_in_ou_description" defaultValue: "An organization unit can have only one agent type. Choose an organization unit that has no agent type" "401": $ref: '#/components/responses/Unauthorized' "403": $ref: '#/components/responses/Forbidden' "500": description: Internal server error /agent-types/{id}: get: tags: - Agent Types summary: Get an agent type schema by ID description: | Retrieves the details of a specific agent type schema by its ID. parameters: - in: path name: id required: true schema: type: string format: uuid example: "550e8400-e29b-41d4-a716-446655440000" - $ref: '#/components/parameters/includeQueryParam' responses: "200": description: Agent type details content: application/json: schema: $ref: '#/components/schemas/AgentType' example: id: "660e8400-e29b-41d4-a716-446655440001" handle: "default" displayName: "Default" ouId: "a839f4bd-39dc-4eaa-b5cc-210d8ecaee87" allowSelfRegistration: false systemAttributes: display: "name" schema: name: type: "string" displayName: "Name" required: true unique: true modelProvider: type: "string" required: false enum: ["openai", "anthropic", "gemini", "mistral", "custom"] "404": description: Agent type not found content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "USRS-1002" message: key: "error.entitytypeservice.agent_type_not_found" defaultValue: "Agent type not found" description: key: "error.entitytypeservice.agent_type_not_found_description" defaultValue: "The agent type with the specified id does not exist" "401": $ref: '#/components/responses/Unauthorized' "403": $ref: '#/components/responses/Forbidden' "500": description: Internal server error put: tags: - Agent Types summary: Update an agent type schema by ID description: | Updates the agent type schema with new attribute definitions. The `handle` is optional and cannot be changed: sending a different handle is rejected with `USRS-1017`. Moving the agent type to an organization unit that already has another agent type is rejected with `409` and `USRS-1021`. Moving the agent type does not move its agents or check their placement again; the placement rule applies when an agent is created, or when an update changes its organization unit or type. The `displayName` can be changed at any time. This operation replaces the entire schema definition. parameters: - in: path name: id required: true schema: type: string format: uuid example: "550e8400-e29b-41d4-a716-446655440000" requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAgentTypeRequest' example: handle: "default" displayName: "Default" ouId: "26eec421-f1bb-4deb-a5d3-9ab6554c2ae6" allowSelfRegistration: false systemAttributes: display: "name" schema: name: type: "string" displayName: "Name" required: true unique: true modelProvider: type: "string" required: false enum: ["openai", "anthropic", "gemini", "mistral", "custom"] responses: "200": description: Agent type updated content: application/json: schema: $ref: '#/components/schemas/AgentType' "400": description: Bad request content: application/json: schema: $ref: '#/components/schemas/Error' examples: invalid-request-format: summary: Invalid request format value: code: "USRS-1001" message: key: "error.entitytypeservice.invalid_request_format" defaultValue: "Invalid request format" description: key: "error.entitytypeservice.invalid_request_format_description" defaultValue: "The request body is malformed or contains invalid data" invalid-attribute-definition: summary: Invalid attribute definition value: code: "USRS-1004" message: key: "error.entitytypeservice.invalid_agent_type_request" defaultValue: "Invalid agent type request" description: key: "error.entitytypeservice.invalid_agent_type_request_description" defaultValue: "The agent type request contains invalid or missing required fields" handle-change-not-allowed: summary: Handle change value: code: "USRS-1017" message: key: "error.entitytypeservice.entity_type_handle_update_not_allowed" defaultValue: "Entity type handle cannot be changed" description: key: "error.entitytypeservice.entity_type_handle_update_not_allowed_description" defaultValue: "The handle of an entity type cannot be changed once it is created" "409": description: Conflict content: application/json: schema: $ref: '#/components/schemas/Error' examples: agent-type-exists-in-ou: summary: Organization unit already has an agent type value: code: "USRS-1021" message: key: "error.entitytypeservice.agent_type_already_exists_in_ou" defaultValue: "Organization unit already has an agent type" description: key: "error.entitytypeservice.agent_type_already_exists_in_ou_description" defaultValue: "An organization unit can have only one agent type. Choose an organization unit that has no agent type" "404": description: Agent type not found content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "USRS-1002" message: key: "error.entitytypeservice.agent_type_not_found" defaultValue: "Agent type not found" description: key: "error.entitytypeservice.agent_type_not_found_description" defaultValue: "The agent type with the specified id does not exist" "401": $ref: '#/components/responses/Unauthorized' "403": $ref: '#/components/responses/Forbidden' "500": description: Internal server error delete: tags: - Agent Types summary: Delete an agent type schema by ID description: | Deletes an agent type schema. The deletion is rejected with `409` and `USRS-1022` while any agent is of this agent type, or while any application, MCP server, agent or `AgentTypeResolver` flow node lists it in its allowed agent types (an `allowedAgentTypes` of `["*"]` names no type and does not block). Delete or change those agents and remove the type from those lists first. An agent type defined in declarative resources cannot be deleted and is rejected with `403` and `USRS-1008`. Deleting an agent type that does not exist succeeds. parameters: - in: path name: id required: true schema: type: string format: uuid example: "550e8400-e29b-41d4-a716-446655440000" responses: "204": description: Agent type deleted "409": description: Agent type in use content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "USRS-1022" message: key: "error.entitytypeservice.agent_type_in_use" defaultValue: "Agent type is in use" description: key: "error.entitytypeservice.agent_type_in_use_description" defaultValue: "Delete or change the agents of this type, and remove the type from applications', agents' and flows' allowed agent types, first" "401": $ref: '#/components/responses/Unauthorized' "403": $ref: '#/components/responses/Forbidden' "500": description: Internal server error components: securitySchemes: OAuth2: type: oauth2 flows: authorizationCode: authorizationUrl: https://localhost:8090/oauth2/authorize tokenUrl: https://localhost:8090/oauth2/token scopes: system: Access to system management APIs clientCredentials: tokenUrl: https://localhost:8090/oauth2/token scopes: system: Access to system management APIs responses: Unauthorized: description: Unauthorized - missing or invalid authentication token content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "AUTH-4010" message: key: "error.unauthorized" defaultValue: "Unauthorized" description: key: "error.unauthorized_description" defaultValue: "Authentication is required to access this resource" Forbidden: description: Forbidden - insufficient permissions to perform this operation content: application/json: schema: $ref: '#/components/schemas/Error' example: code: "AUTH-4030" message: key: "error.forbidden" defaultValue: "Forbidden" description: key: "error.forbidden_description" defaultValue: "You do not have sufficient permissions to access this resource" parameters: limitQueryParam: in: query name: limit required: false description: Maximum number of records to return. Must be between 1 and 100 inclusive. schema: type: integer minimum: 1 maximum: 100 default: 30 offsetQueryParam: in: query name: offset required: false description: Number of records to skip for pagination. Must be a non-negative integer. schema: type: integer minimum: 0 default: 0 includeQueryParam: in: query name: include required: false schema: type: string enum: - display description: | Pass `display` to populate the `display` and `ouHandle` fields in the response. projectIdQueryParam: in: query name: projectId required: false description: | Lists the agents of the project. With an `ouId` filter, lists only the project's agents that organization unit owns. No other filter expression can be combined with it. A project that does not exist has no agents. schema: type: string agentFilterParam: in: query name: filter required: false description: | Filter agents by a custom attribute value, by `kind`, by `owner`, or by organization unit. Keys inside the `attributes` JSON object are filterable, including `name`; `kind` matches the agent's kind and `owner` the ID of its owner. Of the other system fields, only `ouId` is supported: `ouId eq ""` lists the agents the organization unit owns, followed by the agents shared into it, and cannot be combined with another expression. The other system fields (`description`, `type`, `clientId`) are not supported. Supported operators: `eq`. Format: `attribute operator "value"`. The value must be wrapped in double quotes. Terms on `kind`, `owner`, and `name` can be joined with `and`, each at most once. schema: type: string examples: attribute: summary: Agents with a custom attribute value value: 'name eq "Calendar Agent"' organization-unit: summary: Agents owned by or shared into an organization unit value: 'ouId eq "456e8400-e29b-41d4-a716-446655440001"' personal-agents-of-an-owner: summary: The personal agents of an owner value: 'kind eq "personal-assistant" and owner eq "e1b6ba6c-deb2-4d24-87b0-bbf79fa4487c"' schemas: Agent: type: object required: [id] description: Summary representation used in list responses. properties: id: type: string format: uuid example: "9a475e1e-b0cb-4b29-8df5-2e5b24fb0ed3" ouId: type: string format: uuid example: "456e8400-e29b-41d4-a716-446655440001" projectId: type: string readOnly: true description: The ID of the project this agent belongs to, if any. example: "7c9e6679-7425-40de-944b-e07fc1f90ae7" ouHandle: type: string readOnly: true description: "Human-readable handle path of the organization unit. Populated only when `include=display` is used." example: "platform/automations" type: type: string description: The handle of the agent type. example: "default" display: type: string readOnly: true description: | Human-readable label for the agent: the value of the display attribute declared by the agent type's schema, or the agent ID when the schema declares none or the agent has no value for it. Populated only when `include=display` is used. example: "Calendar Agent" description: type: string description: Brief description of the agent. Stored as a system attribute. example: "Agent exposing calendar tools" logoUrl: type: string description: Logo URL or avatar spec for the agent, shown in the console and login flows. example: "avatar:shape=circle,variant=anonymous_entity,content=bot_head,colors=0" clientId: type: string description: OAuth client ID. Present only when the agent has an OAuth profile. example: "calendar_agent_client" owner: $ref: '#/components/schemas/AgentOwner' validUntil: type: string format: date-time readOnly: true description: RFC 3339 instant at which the agent's lifespan ends. Omitted when the agent does not expire. example: "2027-03-31T00:00:00Z" lifespan: $ref: '#/components/schemas/Lifespan' kind: type: string readOnly: true description: | The agent kind, set when the agent is created and never changed. `personal-assistant` marks a personal agent, which acts only for its owner, a user. example: "personal-assistant" attributes: type: object additionalProperties: true description: | Key-value attributes stored on the entity. Validated against the schema registered for the agent's `type`: required fields, regex patterns, types, and uniqueness constraints are enforced. Fields marked as credentials in the schema are extracted and stored as hashed credentials, not returned in read responses. example: name: "Calendar Agent" modelProvider: "anthropic" isReadOnly: type: boolean readOnly: true description: | Indicates whether the agent is immutable. When `true`, update and delete operations are rejected. Set by the system for declaratively provisioned agents, and for agents listed in an organization unit they are shared into, and for agents a control plane deployed to a data plane. example: false status: $ref: '#/components/schemas/AgentAccessStatus' lastLoginAt: type: string format: date-time readOnly: true description: | When the agent last authenticated, including session reuse and `client_credentials` tokens. Set by the server and never accepted on a write. Absent until recorded. Recording is off for agents unless `accountAccess.agent.recordLastLogin` is enabled, and the value can lag the latest sign-in by up to `accountAccess.agent.lastLoginResolutionSeconds` (one hour by default). example: "2026-09-09T18:22:04Z" isOwnedByOU: type: boolean readOnly: true description: | Whether the listed organization unit owns the agent rather than being shared it. Agents shared into an organization unit are listed under an `ouId` filter, and in the unfiltered list of a caller that may list agents in one organization unit only. In any other list, every listed agent is owned. AgentListResponse: type: object properties: totalResults: type: integer description: Total number of agents matching the query. example: 25 startIndex: type: integer description: Index of the first element in this page (offset + 1). example: 1 count: type: integer description: Number of agents in this page. example: 10 agents: type: array items: $ref: '#/components/schemas/Agent' links: type: array items: $ref: '#/components/schemas/Link' CreateAgentRequest: type: object required: [type] description: | Request to create an agent. What gets persisted depends on which fields are provided: - Always: entity row (`id`, `ouId`, `type`, `description`, `attributes`, `owner`, `kind`). - When any inbound auth field is set: inbound client row (`authFlowId` defaults to the system default when omitted). - When `inboundAuthConfig` is set: OAuth profile row. properties: ouId: type: string format: uuid description: | The organization unit ID where the agent will be created. When omitted, the agent is created in the system organization unit that the `server.system_ou_id` deployment configuration names. example: "456e8400-e29b-41d4-a716-446655440001" projectId: type: string description: | The ID of the project the agent belongs to. On a deployment that serves projects, such as the Control Plane, creating an agent without one is refused (`AGT-1050`). The agent's organization unit, the given `ouId` or the default one, must belong to the project. example: "7c9e6679-7425-40de-944b-e07fc1f90ae7" type: type: string description: The handle of the agent type. example: "default" description: type: string description: Optional description of the agent. example: "Agent exposing calendar tools" logoUrl: type: string description: | Optional logo URL or avatar spec for the agent. Persisted with the agent's inbound client so the console and login flows can display it. Defaults to no logo when omitted. example: "avatar:shape=circle,variant=anonymous_entity,content=bot_head,colors=0" owner: allOf: - $ref: '#/components/schemas/AgentOwner' description: | Optional owner of the agent. Defaults to the authenticated principal creating the agent: a local owner when its subject is an entity of this deployment, otherwise an external one, such as a principal holding a token from the trusted issuer. An agent created with the management API key and no owner has no owner. delegated: type: boolean default: false description: Whether the agent acts on behalf of a user. It decides the OAuth grant types the agent is given and allowed, and is not stored. See `inboundAuthConfig`. example: false validUntil: type: string format: date-time nullable: true description: | RFC 3339 instant at which the agent's lifespan ends. It must be later than the current time. Omit it, or send `null`, to register an agent that does not expire. From this instant the agent obtains no new tokens, and no token issued to or for it outlives it. example: "2027-03-31T00:00:00Z" kind: type: string enum: ["", personal-assistant] description: | Optional agent kind, fixed once the agent is created. Omit it, or send an empty string, for an ordinary agent; any other value than the listed ones is refused. `personal-assistant` registers a personal agent for the user named in `owner`, which is then required and must be a local user; the agent may use only the authorization code (the default), CIBA and refresh token grants. Its OAuth client gets response type `code` and PKCE with the authorization code grant, `private_key_jwt` when a key is given and a client secret otherwise, and the personal agent login flow when no `authFlowId` is given. `delegated` does not apply to a personal agent. attributes: type: object additionalProperties: true description: | Key-value attributes for the agent. Validated against the schema registered for the given `type`: required fields, regex patterns, and uniqueness constraints are enforced. The agent's name is the `name` attribute; the default agent type requires it and keeps it unique across agents. Fields marked as credentials in the schema are extracted and stored as hashed credentials, not returned in read responses. example: name: "Calendar Agent" modelProvider: "anthropic" authFlowId: type: string description: | Auth flow to use when users authenticate against this agent. When omitted and other inbound auth fields are present, the system default auth flow is used. example: "edc013d0-e893-4dc0-990c-3e1d203e005b" deviceGrantFlowId: type: string description: Flow used to authorize this agent through the Device Code grant. Required when `inboundAuthConfig` enables `urn:ietf:params:oauth:grant-type:device_code`. example: "4ca080dc-8bd7-44bd-92f1-0b6509026d22" registrationFlowId: type: string description: Registration flow for this agent. example: "f1c2d3e4-f5a6-7b8c-9d0e-1f2a3b4c5d6e" isRegistrationFlowEnabled: type: boolean default: false description: Whether self-service registration is enabled for this agent. example: false themeId: type: string format: uuid description: Theme configuration for this agent's sign-in pages. example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" layoutId: type: string format: uuid description: Layout configuration for this agent's sign-in pages. example: "b2c3d4e5-f6a7-8901-bcde-f01234567891" assertion: $ref: '#/components/schemas/AssertionConfig' loginConsent: $ref: '#/components/schemas/LoginConsentConfig' allowedUserTypes: type: array items: type: string description: Handles of the user types that can sign up through this agent. example: ["employee", "contractor"] allowedAgentTypes: $ref: '#/components/schemas/AgentAllowedAgentTypes' inboundAuthConfig: type: array items: $ref: '#/components/schemas/InboundAuthConfigComplete' description: | OAuth/OIDC configuration for the agent. Providing this also creates an inbound client row (inbound auth profile fields are not required to be explicitly set). The `client_credentials` grant type is always granted: it is added when missing, and is the default when no grant types are given. A public client, which has no secret, is not given it. All other requested grant types are accepted as given. When `delegated` is `true`, an OAuth configuration is created if none is given, and the grant types are checked: - When any grant type beyond `client_credentials` is given, at least one of `authorization_code`, `urn:openid:params:grant-type:ciba`, `urn:ietf:params:oauth:grant-type:device_code`, `urn:ietf:params:oauth:grant-type:token-exchange` and `urn:ietf:params:oauth:grant-type:jwt-bearer` must be among them. - When none beyond `client_credentials` is given, `authorization_code` and `refresh_token` are added, with the `code` response type and PKCE required. UpdateAgentRequest: type: object required: [type] description: | Full replacement update for an agent. `type` is required. Other fields follow the same creation rules as `CreateAgentRequest`. Omitting an inbound auth or OAuth field removes the corresponding profile. If `ouId` is provided and different from the current value, the agent is moved to the new organization unit (must exist). properties: ouId: type: string format: uuid description: New organization unit ID. Validated against existing OUs when changed. example: "456e8400-e29b-41d4-a716-446655440001" projectId: type: string description: | The ID of the project the agent belongs to. Leaving it out keeps the agent in its project, and an agent can't be taken out of a project. The agent's organization unit, the new one when `ouId` is given or the current one otherwise, must belong to the project. A project never moves the agent on its own. example: "7c9e6679-7425-40de-944b-e07fc1f90ae7" type: type: string example: "default" description: type: string example: "Agent exposing calendar tools" logoUrl: type: string description: | Optional logo URL or avatar spec for the agent. Omitting it leaves the stored logo unchanged only when the same value is sent back; a full replacement update that omits it clears the logo. example: "avatar:shape=circle,variant=anonymous_entity,content=bot_head,colors=0" owner: allOf: - $ref: '#/components/schemas/AgentOwner' description: Admins can transfer ownership by setting a different owner, except for a personal agent, which keeps the owner it was registered for. Omit it to keep the current owner. delegated: type: boolean default: false description: Whether the agent acts on behalf of a user. It is not stored, so send it on every update that should be held to the delegated grant rules described on `inboundAuthConfig` in `CreateAgentRequest`. example: false validUntil: type: string format: date-time nullable: true description: | RFC 3339 instant at which the agent's lifespan ends. Unlike the other fields, omitting it leaves the stored lifespan unchanged; send `null` to remove the expiry. A value that differs from the stored one must be later than the current time. example: "2027-03-31T00:00:00Z" attributes: type: object additionalProperties: true example: name: "Calendar Agent" modelProvider: "anthropic" authFlowId: type: string example: "edc013d0-e893-4dc0-990c-3e1d203e005b" deviceGrantFlowId: type: string description: Flow used to authorize this agent through the Device Code grant. Required when `inboundAuthConfig` enables `urn:ietf:params:oauth:grant-type:device_code`. example: "4ca080dc-8bd7-44bd-92f1-0b6509026d22" registrationFlowId: type: string example: "f1c2d3e4-f5a6-7b8c-9d0e-1f2a3b4c5d6e" isRegistrationFlowEnabled: type: boolean example: false themeId: type: string format: uuid example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" layoutId: type: string format: uuid example: "b2c3d4e5-f6a7-8901-bcde-f01234567891" assertion: $ref: '#/components/schemas/AssertionConfig' loginConsent: $ref: '#/components/schemas/LoginConsentConfig' allowedUserTypes: type: array items: type: string example: ["employee", "contractor"] allowedAgentTypes: $ref: '#/components/schemas/AgentAllowedAgentTypes' inboundAuthConfig: type: array items: $ref: '#/components/schemas/InboundAuthConfigComplete' AgentCompleteResponse: type: object description: | Returned on create (`POST`) and update (`PUT`) operations. Includes `clientSecret` inside `inboundAuthConfig[].config` when an OAuth profile was created or updated — visible only at that moment. Not returned on `GET`. properties: id: type: string format: uuid example: "9a475e1e-b0cb-4b29-8df5-2e5b24fb0ed3" ouId: type: string format: uuid example: "456e8400-e29b-41d4-a716-446655440001" projectId: type: string readOnly: true description: The ID of the project this agent belongs to, if any. example: "7c9e6679-7425-40de-944b-e07fc1f90ae7" ouHandle: type: string readOnly: true description: Human-readable handle path of the organization unit. example: "platform/automations" type: type: string example: "default" description: type: string example: "Agent exposing calendar tools" logoUrl: type: string description: Logo URL or avatar spec for the agent, shown in the console and login flows. example: "avatar:shape=circle,variant=anonymous_entity,content=bot_head,colors=0" owner: $ref: '#/components/schemas/AgentOwner' validUntil: type: string format: date-time readOnly: true description: RFC 3339 instant at which the agent's lifespan ends. Omitted when the agent does not expire. example: "2027-03-31T00:00:00Z" lifespan: $ref: '#/components/schemas/Lifespan' kind: type: string readOnly: true description: | The agent kind, set when the agent is created and never changed. `personal-assistant` marks a personal agent, which acts only for its owner, a user. example: "personal-assistant" attributes: type: object additionalProperties: true example: name: "Calendar Agent" modelProvider: "anthropic" status: allOf: - $ref: '#/components/schemas/AgentAccessStatus' description: The agent's status after the update. Present on update responses only. lastLoginAt: type: string format: date-time readOnly: true description: | When the agent last authenticated, as a read reports it. Present on update responses only, and absent until recorded. example: "2026-09-09T18:22:04Z" authFlowId: type: string example: "edc013d0-e893-4dc0-990c-3e1d203e005b" deviceGrantFlowId: type: string readOnly: true description: Device Grant flow assigned to this agent. example: "4ca080dc-8bd7-44bd-92f1-0b6509026d22" registrationFlowId: type: string example: "f1c2d3e4-f5a6-7b8c-9d0e-1f2a3b4c5d6e" isRegistrationFlowEnabled: type: boolean example: false themeId: type: string format: uuid example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" layoutId: type: string format: uuid example: "b2c3d4e5-f6a7-8901-bcde-f01234567891" assertion: $ref: '#/components/schemas/AssertionConfig' loginConsent: $ref: '#/components/schemas/LoginConsentConfig' allowedUserTypes: type: array items: type: string example: ["employee", "contractor"] allowedAgentTypes: $ref: '#/components/schemas/AgentAllowedAgentTypes' inboundAuthConfig: type: array items: $ref: '#/components/schemas/InboundAuthConfigComplete' AgentGetResponse: type: object description: | Returned on read (`GET /agents/{id}`). Never includes `clientSecret`. `ouHandle` is populated when the request includes `?include=display`. properties: id: type: string format: uuid example: "9a475e1e-b0cb-4b29-8df5-2e5b24fb0ed3" ouId: type: string format: uuid example: "456e8400-e29b-41d4-a716-446655440001" projectId: type: string readOnly: true description: The ID of the project this agent belongs to, if any. example: "7c9e6679-7425-40de-944b-e07fc1f90ae7" ouHandle: type: string readOnly: true description: Human-readable handle path. Populated only when `include=display` is used. example: "platform/automations" type: type: string example: "default" display: type: string readOnly: true description: | Human-readable label for the agent: the value of the display attribute declared by the agent type's schema, or the agent ID when the schema declares none or the agent has no value for it. Populated only when `include=display` is used. example: "Calendar Agent" description: type: string example: "Agent exposing calendar tools" logoUrl: type: string description: Logo URL or avatar spec for the agent, shown in the console and login flows. example: "avatar:shape=circle,variant=anonymous_entity,content=bot_head,colors=0" clientId: type: string description: OAuth client ID. Present only when the agent has an OAuth profile. example: "calendar_agent_client" owner: $ref: '#/components/schemas/AgentOwner' validUntil: type: string format: date-time readOnly: true description: RFC 3339 instant at which the agent's lifespan ends. Omitted when the agent does not expire. example: "2027-03-31T00:00:00Z" lifespan: $ref: '#/components/schemas/Lifespan' kind: type: string readOnly: true description: | The agent kind, set when the agent is created and never changed. `personal-assistant` marks a personal agent, which acts only for its owner, a user. example: "personal-assistant" attributes: type: object additionalProperties: true example: name: "Calendar Agent" modelProvider: "anthropic" authFlowId: type: string example: "edc013d0-e893-4dc0-990c-3e1d203e005b" deviceGrantFlowId: type: string readOnly: true description: Device Grant flow assigned to this agent. example: "4ca080dc-8bd7-44bd-92f1-0b6509026d22" registrationFlowId: type: string example: "f1c2d3e4-f5a6-7b8c-9d0e-1f2a3b4c5d6e" isRegistrationFlowEnabled: type: boolean example: false themeId: type: string format: uuid example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" layoutId: type: string format: uuid example: "b2c3d4e5-f6a7-8901-bcde-f01234567891" assertion: $ref: '#/components/schemas/AssertionConfig' loginConsent: $ref: '#/components/schemas/LoginConsentConfig' allowedUserTypes: type: array items: type: string example: ["employee", "contractor"] allowedAgentTypes: $ref: '#/components/schemas/AgentAllowedAgentTypes' inboundAuthConfig: type: array items: $ref: '#/components/schemas/InboundAuthConfig' description: OAuth config without secrets. status: $ref: '#/components/schemas/AgentAccessStatus' lastLoginAt: type: string format: date-time readOnly: true description: | When the agent last authenticated, including session reuse and `client_credentials` tokens. Set by the server and never accepted on a write. Absent until recorded. Recording is off for agents unless `accountAccess.agent.recordLastLogin` is enabled, and the value can lag the latest sign-in by up to `accountAccess.agent.lastLoginResolutionSeconds` (one hour by default). example: "2026-09-09T18:22:04Z" isReadOnly: type: boolean readOnly: true description: | Indicates whether the agent is immutable. When `true`, update and delete operations are rejected. Set by the system for declaratively provisioned agents, and for agents read in an organization unit they are shared into. example: false isOwnedByOU: type: boolean readOnly: true description: | Whether the organization unit the agent is read in owns it rather than being shared it. `false` when the agent is read in an organization unit it is shared into, where `ouId` names that organization unit. example: true UpdateAgentCredentialsRequest: type: object required: [credentials] properties: credentials: type: object description: "Credential key-value pairs to update. Keys must match credential attributes defined in the agent type schema." additionalProperties: type: string ClientSecretResponse: type: object description: A newly generated client secret, returned only when it is generated. required: - clientSecret properties: clientSecret: type: string description: The new client secret. revocationIncomplete: type: boolean description: | Present and `true` when the secret is stored but revoking the tokens issued while it was being written failed. Those tokens may stay valid until they expire; regenerate again to revoke them. AgentGroup: type: object required: [id, name, ouId] description: Summary of a group that an agent belongs to. properties: id: type: string format: uuid example: "550e8400-e29b-41d4-a716-446655440000" name: type: string example: "Service Agents" ouId: type: string format: uuid example: "456e8400-e29b-41d4-a716-446655440001" AgentGroupListResponse: type: object properties: totalResults: type: integer example: 2 startIndex: type: integer example: 1 count: type: integer example: 2 groups: type: array items: $ref: '#/components/schemas/AgentGroup' links: type: array items: $ref: '#/components/schemas/Link' AgentRoleListResponse: type: object properties: totalResults: type: integer example: 2 startIndex: type: integer example: 1 count: type: integer example: 2 roles: type: array items: type: string example: ["agent-operator", "billing-viewer"] links: type: array items: $ref: '#/components/schemas/Link' AssertionConfig: type: object description: | Entity-level assertion configuration for user-facing auth flows. Controls the intermediate auth assertion issued during flow execution. Not relevant for M2M (`client_credentials`) flows. properties: validityPeriod: type: integer description: Validity period of the assertion token in seconds. example: 3600 userAttributes: type: array items: type: string description: User attributes to include in the assertion. example: ["email", "username"] LoginConsentConfig: type: object description: | Consent validity configuration. A `validityPeriod` of `0` means the consent never expires and is re-used for all sessions. properties: validityPeriod: type: integer description: Consent validity period in seconds. `0` means no expiration. example: 86400 alwaysPrompt: type: boolean description: | Ask for consent on every authorization, even when an earlier consent covers it. Defaults to false, and to true for a personal agent created without a value. example: true AccessTokenConfig: type: object description: Access token configuration, split by token subject. properties: userConfig: allOf: - $ref: '#/components/schemas/AccessTokenSubConfig' description: Configuration applied when the access token's subject is an end user. For the urn:ietf:params:oauth:grant-type:jwt-bearer grant, whose subject is a user of an external identity provider, only validityPeriod applies. clientConfig: allOf: - $ref: '#/components/schemas/AccessTokenSubConfig' description: > Configuration applied when the access token's subject is the agent itself, issued only via the client_credentials grant. defaultAudience: type: string maxLength: 2048 description: > The aud claim for access tokens that are not bound to a resource server, that is, OIDC-only or scopeless requests. Falls back to the client_id when empty. A request that targets a resource server (via the resource parameter or API scopes) uses that resource server as the audience instead. example: https://api.example.com AccessTokenSubConfig: type: object properties: validityPeriod: type: integer description: Access token validity period in seconds. example: 3600 attributes: type: array items: type: string description: Attributes to embed in the access token payload. example: ["email", "username"] IDTokenConfig: type: object properties: validityPeriod: type: integer description: ID token validity period in seconds. example: 1800 userAttributes: type: array items: type: string description: User attributes to embed in the ID token payload. Identity assertions (ID-JAG) the agent requests also carry the ones the ID token holds, except roles and groups. example: ["email", "name", "given_name", "family_name"] responseType: type: string enum: ["JWT", "JWE", "NESTED_JWT"] description: | ID token response type. Defaults to `JWT`. - `JWT` — standard signed JWT (default) - `JWE` — encrypted JWT (requires `encryptionAlg` and `encryptionEnc`) - `NESTED_JWT` — signed-then-encrypted (requires `encryptionAlg` and `encryptionEnc`) example: "JWT" encryptionAlg: type: string enum: ["RSA-OAEP", "RSA-OAEP-256"] description: JWE key-management algorithm. Required when `responseType` is `JWE` or `NESTED_JWT`. example: "RSA-OAEP-256" encryptionEnc: type: string enum: ["A128CBC-HS256", "A256GCM"] description: JWE content-encryption algorithm. Required when `encryptionAlg` is set. example: "A256GCM" RefreshTokenConfig: type: object properties: validityPeriod: type: integer description: Refresh token validity period in seconds. example: 86400 AgentIDJAGConfig: type: object description: Identity Assertion Authorization Grant (ID-JAG) configuration for the agent (draft-ietf-oauth-identity-assertion-authz-grant). Governs whether this agent may exchange a self-issued ID token for an ID-JAG targeted at an external resource authorization server, via the token endpoint's token-exchange grant with requested_token_type=urn:ietf:params:oauth:token-type:id-jag. properties: enabled: type: boolean description: >- Enable ID-JAG issuance for this agent. Requires a confidential client (tokenEndpointAuthMethod other than "none") and at least one entry in allowedAudiences. Enabling it also requires the urn:ietf:params:oauth:grant-type:token-exchange grant type in grantTypes. example: true default: false allowedAudiences: type: array items: type: string description: Resource authorization server identifiers this agent may request ID-JAGs for. The audience parameter on the token-exchange request must exactly match one of these values. Values must not be blank. example: ["https://api.partner.example.com"] validityPeriod: type: integer description: The validity period of an issued ID-JAG in seconds. Defaults to 300 if not specified. example: 300 default: 300 UserInfoConfig: type: object description: | UserInfo endpoint configuration. Controls the response format and signing/encryption of the userinfo endpoint response. properties: responseType: type: string enum: ["JSON", "JWS", "JWE", "NESTED_JWT"] description: | Format of the userinfo response. Derived from `signingAlg`/`encryptionAlg` when not explicitly set. - `JSON` — plain JSON (default) - `JWS` — signed JWT (requires `signingAlg`) - `JWE` — encrypted JWT (requires `encryptionAlg` and `encryptionEnc`) - `NESTED_JWT` — signed-then-encrypted (requires all three algorithm fields) example: "JWS" userAttributes: type: array items: type: string description: | User attributes to include in the userinfo response. Defaults to the ID token user attributes when omitted. example: ["email", "name", "given_name", "family_name"] signingAlg: type: string enum: ["RS256", "RS512", "PS256", "ES256", "ES384", "ES512", "EdDSA"] description: JWS algorithm for signed userinfo responses. Required when `responseType` is `JWS` or `NESTED_JWT`. example: "RS256" encryptionAlg: type: string enum: ["RSA-OAEP", "RSA-OAEP-256"] description: JWE key-management algorithm. Required when `responseType` is `JWE` or `NESTED_JWT`. example: "RSA-OAEP-256" encryptionEnc: type: string enum: ["A128CBC-HS256", "A256GCM"] description: JWE content-encryption algorithm. Required when `encryptionAlg` is set. example: "A256GCM" Certificate: type: object description: | Certificate for the agent's OAuth client. Used for `private_key_jwt` token endpoint authentication and signed/encrypted userinfo responses. Two formats are supported: - `JWKS` — inline JSON Web Key Set value. - `JWKS_URI` — URL to a publicly reachable JWKS endpoint (must be HTTPS). properties: type: type: string enum: - "JWKS" - "JWKS_URI" description: Certificate format. example: "JWKS_URI" value: type: string description: | The certificate value in the format specified by `type`. For `JWKS_URI`, a publicly reachable HTTPS URL. For `JWKS`, the serialized JSON Web Key Set. example: "https://calendar-agent.example.com/.well-known/jwks" InboundAuthConfig: type: object description: OAuth config returned on read operations. Never includes `clientSecret`. properties: type: type: string enum: - "oauth2" example: "oauth2" config: $ref: '#/components/schemas/OAuthAgentConfig' InboundAuthConfigComplete: type: object description: | OAuth config used in create/update requests and create/update responses. Includes `clientSecret` when present. properties: type: type: string enum: - "oauth2" example: "oauth2" config: $ref: '#/components/schemas/OAuthAgentConfigComplete' OAuthAgentConfig: type: object description: | OAuth client configuration for an agent. Returned on read; never includes `clientSecret`. properties: clientId: type: string description: | OAuth client ID. Auto-generated when omitted on create. On update, the existing value is preserved when omitted. example: "calendar_agent_client" redirectUris: type: array items: type: string format: uri description: Redirect URIs. Required for redirect-based grant types (`authorization_code`). example: ["https://calendar-agent.example.com/callback"] postLogoutRedirectUris: type: array items: type: string format: uri description: Allowed post-logout redirect URIs. A post_logout_redirect_uri sent to the logout endpoint must match one of these. example: ["https://calendar-agent.example.com/logged-out"] backchannelLogoutUri: type: string format: uri description: OIDC Back-Channel Logout endpoint of the agent. ThunderID POSTs a logout token here when a session the agent shares ends. Must be an absolute http or https URL without userinfo, a fragment or a wildcard; public clients must use https. example: "https://calendar-agent.example.com/backchannel-logout" grantTypes: type: array items: type: string enum: - "authorization_code" - "client_credentials" - "refresh_token" - "urn:openid:params:grant-type:ciba" - "urn:ietf:params:oauth:grant-type:device_code" - "urn:ietf:params:oauth:grant-type:token-exchange" - "urn:ietf:params:oauth:grant-type:jwt-bearer" description: >- OAuth grant types of the agent. The urn:ietf:params:oauth:grant-type:jwt-bearer grant, used to present an ID-JAG assertion issued by a trusted external IdP (draft-ietf-oauth-identity-assertion-authz-grant), requires a confidential client (tokenEndpointAuthMethod other than "none"). example: ["authorization_code", "refresh_token"] responseTypes: type: array items: type: string enum: ["code"] description: OAuth response types. Required when using `authorization_code`. example: ["code"] tokenEndpointAuthMethod: type: string enum: ["client_secret_basic", "client_secret_post", "private_key_jwt", "none"] description: | Token endpoint authentication method. Defaults to `client_secret_basic` when omitted. - `client_secret_basic` / `client_secret_post` — authenticate with `clientId` + `clientSecret`. - `private_key_jwt` — authenticate with a signed JWT; requires `certificate`. - `none` — public client; requires `publicClient: true` and `pkceRequired: true`. example: "client_secret_basic" pkceRequired: type: boolean default: false description: Whether PKCE is required. Mandatory for public clients. example: true publicClient: type: boolean default: false description: >- Whether this is a public client (no client secret). Requires `tokenEndpointAuthMethod: none` and `pkceRequired: true`. example: false requirePushedAuthorizationRequests: type: boolean default: false description: Whether all authorization requests must use PAR (RFC 9126). example: false certificate: $ref: '#/components/schemas/Certificate' scopes: type: array items: type: string description: OAuth scopes this client is allowed to request. example: ["openid", "profile", "calendar:read"] token: type: object description: Token validity and payload configuration. properties: accessToken: $ref: '#/components/schemas/AccessTokenConfig' idToken: $ref: '#/components/schemas/IDTokenConfig' refreshToken: $ref: '#/components/schemas/RefreshTokenConfig' idJag: $ref: '#/components/schemas/AgentIDJAGConfig' userInfo: $ref: '#/components/schemas/UserInfoConfig' scopeClaims: type: object additionalProperties: type: array items: type: string description: Custom scope-to-claims mapping. Allows embedding claims into tokens when a scope is granted. example: profile: ["name", "family_name", "given_name"] email: ["email", "email_verified"] acrValues: type: array items: type: string description: Default ACR values applied when the authorization request does not specify `acr_values`. example: ["urn:mace:incommon:iap:silver"] OAuthAgentConfigComplete: allOf: - $ref: '#/components/schemas/OAuthAgentConfig' - type: object properties: clientSecret: type: string description: | OAuth client secret. Returned only in create and update responses. Never returned by GET endpoints. Absent for public clients (`tokenEndpointAuthMethod: none`) and `private_key_jwt` clients. example: "s3cr3t_only_shown_once" AgentAllowedAgentTypes: type: array items: type: string description: Handles of the agent types allowed to sign in to this agent. An agent can authenticate only when its agent type handle is listed here; when the list is empty no agent can sign in. `["*"]` allows an agent of any agent type; `*` cannot be combined with other entries (`AGT-1055`). example: ["default"] AgentType: type: object required: [id, handle, displayName, ouId, schema] properties: isReadOnly: type: boolean readOnly: true description: | Whether the agent type is read only: declared in a resource file, or deployed by a control plane, which only a later deploy from the control plane changes. example: false id: type: string format: uuid description: "The unique identifier of the agent type" handle: type: string description: | Unique handle of the agent type (lowercase letters, numbers, hyphens, and underscores only). Agents and applications refer to the agent type by this handle. Once set, the handle cannot be changed. pattern: '^[a-z0-9][a-z0-9_-]*[a-z0-9]$|^[a-z0-9]$' maxLength: 100 displayName: type: string description: "Human-readable name of the agent type. It does not need to be unique and can be changed at any time." minLength: 1 maxLength: 100 example: "Default" ouId: type: string format: uuid description: "The root organization unit ID associated with this agent type schema" ouHandle: type: string readOnly: true description: "Human-readable handle of the organization unit (only included when include=display query parameter is used)." allowSelfRegistration: type: boolean description: "Indicates whether agents of this type can perform self-registration flows" default: false systemAttributes: type: object description: "System-level metadata for the agent type" example: display: "name" properties: display: type: string description: "The schema attribute to use as the human-readable display name for agents of this type" additionalProperties: false schema: type: object description: "JSON Schema definition for the agent type" additionalProperties: oneOf: - type: object description: "Leaf property - string, email, mobile, or number" required: [type] properties: type: type: string enum: ["string", "email", "mobile", "number"] description: "Data type of the property" required: type: boolean default: false description: "Whether this attribute must be provided for the agent type" display: $ref: "#/components/schemas/AgentTypeAttributeDisplay" unique: type: boolean default: false description: "Whether this property must be unique across all agents" credential: type: boolean default: false description: "Whether this property should be treated as a credential attribute. Not supported for email or mobile types." displayName: type: string description: "Human-readable label shown in the UI for this property" enum: type: array items: type: string description: "List of allowed values for this property. Not supported for email or mobile types." regex: type: string description: "Regular expression pattern for validating the property value" additionalProperties: false - type: object description: "Leaf property - boolean" required: [type] properties: type: type: string enum: ["boolean"] description: "Data type of the property" required: type: boolean default: false description: "Whether this attribute must be provided for the agent type" display: $ref: "#/components/schemas/AgentTypeAttributeDisplay" displayName: type: string description: "Human-readable label shown in the UI for this property" additionalProperties: false - type: object description: "Object property definition" required: [type, properties] properties: type: type: string enum: ["object"] description: "Data type (object)" required: type: boolean default: false description: "Whether this attribute must be provided for the agent type" display: $ref: "#/components/schemas/AgentTypeAttributeDisplay" displayName: type: string description: "Human-readable label shown in the UI for this property" properties: type: object description: "Nested properties of the object" additionalProperties: $ref: "#/components/schemas/AgentTypeNestedProperty" additionalProperties: false - type: object description: "Array property definition" required: [type, items] properties: type: type: string enum: ["array"] description: "Data type (array)" required: type: boolean default: false description: "Whether this attribute must be provided for the agent type" display: $ref: "#/components/schemas/AgentTypeAttributeDisplay" displayName: type: string description: "Human-readable label shown in the UI for this property" items: oneOf: - type: object description: "Array of strings, emails, mobiles, or numbers" required: [type] properties: type: type: string enum: ["string", "email", "mobile", "number"] enum: type: array items: type: string description: "List of allowed values. Not supported for email or mobile types." regex: type: string description: "Custom validation pattern. Contact types use their default when omitted or empty." additionalProperties: false - type: object description: "Array of booleans" required: [type] properties: type: type: string enum: ["boolean"] additionalProperties: false - type: object description: "Array of objects" required: [type, properties] properties: type: type: string enum: ["object"] properties: type: object additionalProperties: $ref: "#/components/schemas/AgentTypeNestedProperty" additionalProperties: false additionalProperties: false example: name: type: "string" displayName: "Name" required: true unique: true modelProvider: type: "string" required: false enum: ["openai", "anthropic", "gemini", "mistral", "custom"] AgentTypeNestedProperty: description: "A property nested in an object or an array of objects. Same as a top-level agent type property, without display settings." oneOf: - type: object description: "Leaf property - string, email, mobile, or number" required: [type] properties: type: type: string enum: ["string", "email", "mobile", "number"] description: "Data type of the property" required: type: boolean default: false description: "Whether this attribute must be provided for the agent type" unique: type: boolean default: false description: "Whether this property must be unique across all agents" credential: type: boolean default: false description: "Whether this property should be treated as a credential attribute. Not supported for email or mobile types." displayName: type: string description: "Human-readable label shown in the UI for this property" enum: type: array items: type: string description: "List of allowed values for this property. Not supported for email or mobile types." regex: type: string description: "Regular expression pattern for validating the property value" additionalProperties: false - type: object description: "Leaf property - boolean" required: [type] properties: type: type: string enum: ["boolean"] description: "Data type of the property" required: type: boolean default: false description: "Whether this attribute must be provided for the agent type" displayName: type: string description: "Human-readable label shown in the UI for this property" additionalProperties: false - type: object description: "Object property definition" required: [type, properties] properties: type: type: string enum: ["object"] description: "Data type (object)" required: type: boolean default: false description: "Whether this attribute must be provided for the agent type" displayName: type: string description: "Human-readable label shown in the UI for this property" properties: type: object description: "Nested properties of the object" additionalProperties: $ref: "#/components/schemas/AgentTypeNestedProperty" additionalProperties: false - type: object description: "Array property definition" required: [type, items] properties: type: type: string enum: ["array"] description: "Data type (array)" required: type: boolean default: false description: "Whether this attribute must be provided for the agent type" displayName: type: string description: "Human-readable label shown in the UI for this property" items: oneOf: - type: object description: "Array of strings, emails, mobiles, or numbers" required: [type] properties: type: type: string enum: ["string", "email", "mobile", "number"] enum: type: array items: type: string description: "List of allowed values. Not supported for email or mobile types." regex: type: string description: "Custom validation pattern. Contact types use their default when omitted or empty." additionalProperties: false - type: object description: "Array of booleans" required: [type] properties: type: type: string enum: ["boolean"] additionalProperties: false - type: object description: "Array of objects" required: [type, properties] properties: type: type: string enum: ["object"] properties: type: object additionalProperties: $ref: "#/components/schemas/AgentTypeNestedProperty" additionalProperties: false additionalProperties: false AgentTypeAttributeDisplay: type: object description: "How a top-level attribute is presented when attributes are listed or collected. Nested properties don't accept it." properties: order: type: integer minimum: 0 description: "Position of the attribute when agent attributes are listed or collected, lowest first, and by attribute name for the same order. Attributes without one follow the ordered ones." onCreate: type: object description: "Settings for when an agent is created." properties: hidden: type: boolean default: false description: "Whether an optional attribute is left out when an agent is created. A flow asks for optional attributes only when its Provisioning step enables includeOptional, or includeOptionalCredentials for optional credentials, and asks for an attribute the step declares in its own inputs even when it's hidden. Required attributes are always asked for." additionalProperties: false additionalProperties: false AgentTypeListResponse: type: object properties: totalResults: type: integer description: "Number of results that match the listing operation." example: 5 startIndex: type: integer description: "Index of the first element of the page, which will be equal to offset + 1." example: 1 count: type: integer description: "Number of elements in the returned page." example: 3 types: type: array items: type: object required: [id, handle, displayName, ouId] properties: id: type: string format: uuid description: "The unique identifier of the agent type" handle: $ref: "#/components/schemas/AgentType/properties/handle" displayName: $ref: "#/components/schemas/AgentType/properties/displayName" ouId: type: string format: uuid description: "The root organization unit ID associated with this agent type schema" ouHandle: type: string readOnly: true description: "Human-readable handle of the organization unit (only included when include=display query parameter is used)." allowSelfRegistration: type: boolean description: "Indicates whether agents of this type can perform self-registration flows" default: false systemAttributes: type: object description: "System-level metadata for the agent type" properties: display: type: string description: "The schema attribute to use as the human-readable display name for agents of this type" additionalProperties: false links: type: array items: $ref: '#/components/schemas/Link' CreateAgentTypeRequest: type: object required: [handle, displayName, ouId, schema] properties: handle: type: string description: | Unique handle for the agent type (lowercase letters, numbers, hyphens, and underscores only). Once set, the handle cannot be changed. pattern: '^[a-z0-9][a-z0-9_-]*[a-z0-9]$|^[a-z0-9]$' maxLength: 100 displayName: type: string description: "Human-readable name of the agent type. It does not need to be unique." minLength: 1 maxLength: 100 example: "Default" ouId: type: string format: uuid description: | The organization unit ID where this agent type schema is applicable. An organization unit can have only one agent type. allowSelfRegistration: type: boolean description: "Whether the agent type supports self-initiated registration" default: false systemAttributes: $ref: "#/components/schemas/AgentType/properties/systemAttributes" schema: type: object description: "JSON Schema definition for the agent type" additionalProperties: $ref: "#/components/schemas/AgentType/properties/schema/additionalProperties" UpdateAgentTypeRequest: type: object required: [displayName, ouId, schema] properties: handle: type: string description: | Optional. The handle cannot be changed, so when provided it must be the current handle. When omitted, the existing handle is kept. pattern: '^[a-z0-9][a-z0-9_-]*[a-z0-9]$|^[a-z0-9]$' maxLength: 100 displayName: type: string description: "Human-readable name of the agent type. It does not need to be unique." minLength: 1 maxLength: 100 example: "Default" ouId: type: string format: uuid description: | The root organization unit ID where this agent type schema is applicable. Moving the agent type to an organization unit that already has another agent type is rejected. allowSelfRegistration: type: boolean description: "Whether the agent type supports self-initiated registration" default: false systemAttributes: $ref: "#/components/schemas/AgentType/properties/systemAttributes" schema: type: object description: "JSON Schema definition for the agent type" additionalProperties: $ref: "#/components/schemas/AgentType/properties/schema/additionalProperties" I18nMessage: type: object description: Internationalized message with translation key and default value. required: - key - defaultValue properties: key: type: string description: Translation key for fetching localized message. defaultValue: type: string description: Default message in English (fallback). AgentAccessStatus: type: object readOnly: true description: | The agent's effective access status and the reason for it. Computed when the agent is read or updated, and never accepted on a write. properties: value: type: string readOnly: true enum: [ACTIVE, LOCKED, SUSPENDED, EXPIRED] description: | `ACTIVE`, `LOCKED`, `SUSPENDED` or `EXPIRED`. When more than one applies, the first of `SUSPENDED`, `EXPIRED` and `LOCKED` is reported. `SUSPENDED` is an administrative hold. The suspend flow places it and the unsuspend flow removes it. Any automatic lock still in force remains, so the agent returns to `LOCKED` or `ACTIVE` according to its current lock state. `LOCKED` is an automatic hold after repeated failed sign-ins with the `credential` or `otp` authentication method. Automatic locking is enabled for agents by default. The agent's OAuth client secret is never locked. A lock does not expire when its duration is `0` or it forms at `maxConsecutiveFailures`; other locks expire on their own. `EXPIRED` means the agent's `validUntil` has passed. Moving `validUntil` into the future returns the agent to `ACTIVE`. example: "ACTIVE" details: type: object readOnly: true description: | Why the status applies and how it is cleared. Absent for `ACTIVE`. An authentication refusal states only that the account is locked, suspended, or expired. The locked methods, expiry times, and operator note are returned only here, to callers allowed to read the agent. properties: reason: type: string readOnly: true enum: [FAILED_ATTEMPTS, ADMINISTRATIVE_SUSPENSION, LIFESPAN_ENDED, OWNER_SUSPENSION, CASCADED_SUSPENSION] description: | What caused the status. `FAILED_ATTEMPTS` is an automatic lock after repeated failed sign-ins. `ADMINISTRATIVE_SUSPENSION` is a suspension placed by an operator. `LIFESPAN_ENDED` is an agent whose `validUntil` has passed. `OWNER_SUSPENSION` is a suspension placed by the agent's owner. `CASCADED_SUSPENSION` is the suspension an agent carries while its owner's account is suspended. One reason covers every entry in `lockedMethods`. example: "FAILED_ATTEMPTS" appliedBy: type: array readOnly: true items: type: string enum: [organization, owner, cascade] description: | Every party holding the agent suspended: `organization` for an operator's suspension, `owner` for the agent owner's, `cascade` while the owner's account is suspended. Present only when the status is `SUSPENDED`. Each is independent and lifted on its own: `cascade` lifts when the owner's account is unsuspended, and the agent stays suspended while any remains. `reason`, `since` and `operatorNote` describe the organization's suspension when there is one, otherwise the owner's, otherwise the cascade. example: ["organization"] since: type: string format: date-time readOnly: true description: | When the hold was placed, or for `LIFESPAN_ENDED` the agent's `validUntil`. Absent for an automatic lock. operatorNote: type: string readOnly: true maxLength: 100 description: | The note the operator entered when placing the hold. Absent when none was entered. Never included in an authentication refusal. example: "Credential exposure reported by the security team" lockedMethods: type: array readOnly: true description: | The automatic locks currently in force, in a stable order. Absent unless the status is `LOCKED`. With `lockGranularity` set to `authentication_method`, each method locks separately, so several entries can be present, each with its own expiry. An account-wide lock is reported as a single entry with the method `account`. items: type: object properties: method: type: string readOnly: true description: | The locked authentication method, such as `credential`, or `account` when every method is locked. example: "credential" expiresAt: type: string format: date-time readOnly: true description: | When the lock expires. **Absent when it does not expire**: only the unlock flow clears it. example: "2026-09-08T10:15:00Z" AgentOwner: type: object description: | Who is accountable for the agent. A local owner is an entity of this deployment and must exist. Any other owner is managed in another identity system and is stored as given, without a lookup. On a control plane, which keeps configuration as references, any of the three values may be a variable reference such as `var:AGENT____IS_LOCAL`, kept as given for each gateway to resolve when a version is applied to it. Such an owner is never looked up. No value may be a secret reference (`sec:`). required: - id properties: id: type: string maxLength: 256 description: | The owner's ID, of the kind `idType` names: a bare email address for `email`, and an E.164 number such as `+94771234567` for `mobile`. On a control plane, a variable reference. example: "e1b6ba6c-deb2-4d24-87b0-bbf79fa4487c" idType: anyOf: - type: string enum: [uuid, email, mobile] - $ref: '#/components/schemas/OwnerValueReference' default: uuid description: | What the ID holds. A local owner is always identified by `uuid`. On a control plane, a variable reference. example: "uuid" isLocal: anyOf: - type: boolean - $ref: '#/components/schemas/OwnerValueReference' default: true description: | Whether the owner is an entity of this deployment. A boolean, or on a control plane, a variable reference; it is text only when it is itself a reference. example: true OwnerValueReference: type: string pattern: '^var:[A-Z_][A-Z0-9_]*$' description: | A reference to a variable each gateway holds, kept by a control plane in place of an owner's value and resolved by the gateway a version is applied to. example: "var:AGENT__0198F3A17C2E7B109A445D3E8F21C6B7__IS_LOCAL" Lifespan: type: object readOnly: true description: Where the agent stands in its lifespan, derived from `validUntil` on every read. properties: phase: type: string enum: [UNBOUNDED, ACTIVE, EXPIRED] description: | `UNBOUNDED` when the agent does not expire, `ACTIVE` while `validUntil` is ahead, and `EXPIRED` from `validUntil` onward. example: "ACTIVE" Link: type: object description: Pagination link. properties: href: type: string example: "agents?offset=20&limit=10" rel: type: string enum: ["next", "prev", "first", "last"] example: "next" Error: type: object required: [code, message] description: | Standard error response. Agent management errors follow the AGT-XXXX convention. properties: code: type: string description: Machine-readable error code. example: "AGT-1001" message: $ref: '#/components/schemas/I18nMessage' description: $ref: '#/components/schemas/I18nMessage'