---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/agents"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/agents"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/agents

`GET /v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/agents`

## Request

- Base URL: `https://ces.googleapis.com`
- URL: `https://ces.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/apps/{appsId}/agents`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/ces`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/ces`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Lists agents in the given app.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `appsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `filter` string
- `orderBy` string
- `pageSize` integer
- `pageToken` string

## Response `200`

Successful response

- ListAgentsResponse: Response message for AgentService.ListAgents.
  - `agents` Agent[]: The list of agents.
    - `afterAgentCallbacks` Callback[]: Optional. The callbacks to execute after the agent is called. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
      - `description` string: Optional. Human-readable description of the callback.
      - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
      - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
      - `pythonCode` string: Required. The python code to execute for the callback.
    - `afterModelCallbacks` Callback[]: Optional. The callbacks to execute after the model is called. If there are multiple calls to the model, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
      - `description` string: Optional. Human-readable description of the callback.
      - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
      - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
      - `pythonCode` string: Required. The python code to execute for the callback.
    - `afterToolCallbacks` Callback[]: Optional. The callbacks to execute after the tool is invoked. If there are multiple tool invocations, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
      - `description` string: Optional. Human-readable description of the callback.
      - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
      - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
      - `pythonCode` string: Required. The python code to execute for the callback.
    - `beforeAgentCallbacks` Callback[]: Optional. The callbacks to execute before the agent is called. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
      - `description` string: Optional. Human-readable description of the callback.
      - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
      - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
      - `pythonCode` string: Required. The python code to execute for the callback.
    - `beforeModelCallbacks` Callback[]: Optional. The callbacks to execute before the model is called. If there are multiple calls to the model, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
      - `description` string: Optional. Human-readable description of the callback.
      - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
      - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
      - `pythonCode` string: Required. The python code to execute for the callback.
    - `beforeToolCallbacks` Callback[]: Optional. The callbacks to execute before the tool is invoked. If there are multiple tool invocations, the callback will be executed multiple times. The provided callbacks are executed sequentially in the exact order they are given in the list. If a callback returns an overridden response, execution stops and any remaining callbacks are skipped.
      - `description` string: Optional. Human-readable description of the callback.
      - `disabled` boolean: Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent.
      - `proactiveExecutionEnabled` boolean: Optional. If enabled, the callback will also be executed on intermediate model outputs. This setting only affects after model callback. **ENABLE WITH CAUTION**. Typically after model callback only needs to be executed after receiving all model responses. Enabling proactive execution may have negative implication on the execution cost and latency, and should only be enabled in rare situations.
      - `pythonCode` string: Required. The python code to execute for the callback.
    - `childAgents` string[]: Optional. List of child agents in the agent tree. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
    - `createTime` string, google-datetime: Output only. Timestamp when the agent was created.
    - `description` string: Optional. Human-readable description of the agent.
    - `displayName` string: Required. Display name of the agent.
    - `etag` string: Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
    - `generatedSummary` string: Output only. If the agent is generated by the LLM assistant, this field contains a descriptive summary of the generation.
    - `guardrails` string[]: Optional. List of guardrails for the agent. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
    - `instruction` string: Optional. Instructions for the LLM model to guide the agent's behavior.
    - `llmAgent` AgentLlmAgent: Default agent type. The agent uses instructions and callbacks specified in the agent to perform the task using a large language model.
    - `modelSettings` ModelSettings: Model settings contains various configurations for the LLM model.
      - `model` string: Optional. The LLM model that the agent should use. If not set, the agent will inherit the model from its parent agent.
      - `temperature` number, double: Optional. If set, this temperature will be used for the LLM model. Temperature controls the randomness of the model's responses. Lower temperatures produce responses that are more predictable. Higher temperatures produce responses that are more creative.
      - `thinkingLevel` 'THINKING_LEVEL_UNSPECIFIED' | 'DEFAULT' | 'LOW' | 'MEDIUM' | 'HIGH': Optional. The thinking level of the model.
    - `name` string: Identifier. The unique identifier of the agent. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
    - `remoteA2aAgent` AgentRemoteA2aAgent: The agent which will transfer execution to a remote [A2A](https://github.com/a2aproject/A2A) agent.
      - `a2aConfig` RemoteA2aConfig: Shared configuration for connecting to a remote [A2A](https://github.com/a2aproject/A2A) agent.
        - `agentCard` AgentCard: AgentCard conveys key information about a remote agent. It is a trimmed version of the AgentCard defined in the A2A protocol https://a2a-protocol.org/dev/specification/#441-agentcard
          - `description` string: Required. A description of the agent's domain of action/solution space.
          - `name` string: Required. A human-readable name for the agent.
          - `skills` AgentSkill[]: Required. Skills represent a unit of ability an agent can perform. This may somewhat abstract but represents a more focused set of actions that the agent is highly likely to succeed at.
            - `description` string: Required. A detailed description of the skill.
            - `examples` string[]: Example prompts or scenarios that this skill can handle.
            - `id` string: Required. A unique identifier for the agent's skill.
            - `inputModes` string[]: The set of supported input media types for this skill, overriding the agent's defaults.
            - `name` string: Required. A human-readable name for the skill.
            - `outputModes` string[]: The set of supported output media types for this skill, overriding the agent's defaults.
            - `tags` string[]: Required. A set of keywords describing the skill's capabilities.
          - `supportedInterfaces` AgentInterface[]: Required. Ordered list of supported interfaces. The first entry is preferred.
            - `protocolBinding` string: Required. The protocol binding supported at this URL. This is an open form string, to be easily extended for other protocol bindings. The core ones officially supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.
            - `protocolVersion` string: Required. The version of the A2A protocol this interface exposes. Use the latest supported minor version per major version. Examples: "0.3", "1.0"
            - `tenant` string: Tenant ID to be used in the request when calling the agent.
            - `url` string: Required. The URL where this interface is available. Must be a valid absolute HTTPS URL in production. Example: "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a"
          - `version` string: Required. The version of the agent.
        - `agentRegistry` string: Optional. Reference to the agent in the Agent Registry. Format: `projects/{project}/locations/{location}/agents/{agent}`
        - `apiAuthentication` ApiAuthentication: Authentication information required for API calls.
          - `apiKeyConfig` ApiKeyConfig: Configurations for authentication with API key.
            - `apiKeySecretVersion` string: Required. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`.
            - `keyName` string: Required. The parameter name or the header name of the API key. E.g., If the API request is "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the parameter name.
            - `requestLocation` 'REQUEST_LOCATION_UNSPECIFIED' | 'HEADER' | 'QUERY_STRING': Required. Key location in the request.
          - `bearerTokenConfig` BearerTokenConfig: Configurations for authentication with a bearer token.
            - `token` string: Required. The bearer token. Must be in the format `$context.variables.`.
          - `oauthConfig` OAuthConfig: Configurations for authentication with OAuth.
            - `clientId` string: Required. The client ID from the OAuth provider.
            - `clientSecretVersion` string: Required. The name of the SecretManager secret version resource storing the client secret. Format: `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`.
            - `oauthGrantType` 'OAUTH_GRANT_TYPE_UNSPECIFIED' | 'CLIENT_CREDENTIAL': Required. OAuth grant types.
            - `scopes` string[]: Optional. The OAuth scopes to grant.
            - `tokenEndpoint` string: Required. The token endpoint in the OAuth provider to exchange for an access token.
          - `serviceAccountAuthConfig` ServiceAccountAuthConfig: Configurations for authentication using a custom service account.
            - `scopes` string[]: Optional. The OAuth scopes to grant. If not specified, the default scope `https://www.googleapis.com/auth/cloud-platform` is used.
            - `serviceAccount` string: Required. The email address of the service account used for authentication. CES uses this service account to exchange an access token and the access token is then sent in the `Authorization` header of the request. The service account must have the `roles/iam.serviceAccountTokenCreator` role granted to the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`.
          - `serviceAgentIdTokenAuthConfig` ServiceAgentIdTokenAuthConfig: Configurations for authentication with [ID token](https://cloud.google.com/docs/authentication/token-types#id) generated from service agent.
        - `contextId` string: Optional. If not empty, interactions with the remote A2A agent will use this context ID. This context_id field can refer to a session variable like `$context.variables.order_agent_session_id`.
        - `inputVariableMapping` object: Optional. Mapping of input variable names of remote agent to GECX variable names.
        - `outputVariableMapping` object: Optional. Mapping of output variable names of remote agent to GECX variable names.
        - `streamingEnabled` boolean: Optional. Whether streaming is enabled for the remote agent.
    - `remoteDialogflowAgent` AgentRemoteDialogflowAgent: The agent which will transfer execution to a remote [Dialogflow CX](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent. The Dialogflow agent will process subsequent user queries until the session ends or flow ends, and the control is transferred back to the parent CES agent.
      - `agent` string: Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}`
      - `environmentId` string: Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not specified, the draft environment will be used.
      - `flowId` string: Optional. The flow ID of the flow in the Dialogflow agent.
      - `inputVariableMapping` object: Optional. The mapping of the app variables names to the Dialogflow session parameters names to be sent to the Dialogflow agent as input.
      - `languageCodeVariable` string: Optional. The name of the variable that contains the language code to be used for the Dialogflow session. If unspecified, the default language code of the Dialogflow agent will be used.
      - `outputVariableMapping` object: Optional. The mapping of the Dialogflow session parameters names to the app variables names to be sent back to the CES agent after the Dialogflow agent execution ends.
      - `respectResponseInterruptionSettings` boolean: Optional. Indicates whether to respect the message-level interruption settings configured in the Dialogflow agent. * If false: all response messages from the Dialogflow agent follow the app-level barge-in settings. * If true: response messages with [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text) set to false will not be interruptable regardless of the app-level barge-in settings, all other messages follow the app-level barge-in settings.
    - `tools` string[]: Optional. List of available tools for the agent. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
    - `toolsets` AgentAgentToolset[]: Optional. List of toolsets for the agent.
      - `toolIds` string[]: Optional. The tools IDs to filter the toolset.
      - `toolset` string: Required. The resource name of the toolset. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
    - `transferRules` TransferRule[]: Optional. Agent transfer rules. If multiple rules match, the first one in the list will be used.
      - `childAgent` string: Required. The resource name of the child agent the rule applies to. Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
      - `deterministicTransfer` TransferRuleDeterministicTransfer: Deterministic transfer rule. When the condition evaluates to true, the transfer occurs.
        - `expressionCondition` ExpressionCondition: Expression condition based on session state.
          - `expression` string: Required. The string representation of cloud.api.Expression condition.
        - `pythonCodeCondition` PythonCodeCondition: Python code block to evaluate the condition.
          - `pythonCode` string: Required. The python code to execute.
      - `direction` 'DIRECTION_UNSPECIFIED' | 'PARENT_TO_CHILD' | 'CHILD_TO_PARENT': Required. The direction of the transfer.
      - `disablePlannerTransfer` TransferRuleDisablePlannerTransfer: A rule that prevents the planner from transferring to the target agent.
        - `expressionCondition` ExpressionCondition: Expression condition based on session state.
          - `expression` string: Required. The string representation of cloud.api.Expression condition.
    - `updateTime` string, google-datetime: Output only. Timestamp when the agent was last updated.
    - `validationErrors` string[]: Output only. Misconfigurations or errors in the agent that may affect agent quality.
  - `nextPageToken` string: A token that can be sent as ListAgentsRequest.page_token to retrieve the next page. Absence of this field indicates there are no subsequent pages.

## Changes

- **2026-11-17** `455f2f484021`: 4 info
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`
- **2026-11-11** `d1599b011b2e`: 4 info
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/ces` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/ces/changes/v1/projects/:projectsId/locations/:locationsId/apps/:appsId/agents/get.md)

---

[API](https://skmtc.dev/google/apis/ces.md) - [All operations](https://skmtc.dev/google/apis/ces/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/ces/revisions/455f2f484021?raw)
