Some products and features are in the process of being renamed. Generative playbook and flow features are also being migrated to a single consolidated console. See the details.
Required. The agent to list all pages for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.
Authorization requires the following IAM permission on the specified resource parent:
dialogflow.testcases.list
Query parameters
Parameters
pageSize
integer
The maximum number of items to return in a single page. By default 20. Note that when TestCaseView = FULL, the maximum page size allowed is 20. When TestCaseView = BASIC, the maximum page size allowed is 500.
pageToken
string
The nextPageToken value returned from a previous list request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThis webpage details how to fetch a list of test cases for a specific agent using a \u003ccode\u003eGET\u003c/code\u003e request to the provided endpoint, adhering to gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eparent\u003c/code\u003e path parameter specifying the agent, along with optional query parameters like \u003ccode\u003epageSize\u003c/code\u003e, \u003ccode\u003epageToken\u003c/code\u003e, and \u003ccode\u003eview\u003c/code\u003e to customize the results.\u003c/p\u003e\n"],["\u003cp\u003eThe response will return a JSON structure containing an array of \u003ccode\u003etestCases\u003c/code\u003e and a \u003ccode\u003enextPageToken\u003c/code\u003e if there are more results, with the option to include either basic metadata or full details of test cases via the \u003ccode\u003eview\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this request necessitates either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/dialogflow\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epageSize\u003c/code\u003e parameter allows you to specify the maximum number of items returned, with a maximum limit of 20 when \u003ccode\u003eTestCaseView\u003c/code\u003e is set to \u003ccode\u003eFULL\u003c/code\u003e or 500 when set to \u003ccode\u003eBASIC\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.agents.testCases.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListTestCasesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [TestCaseView](#TestCaseView)\n- [Try it!](#try-it)\n\nFetches a list of test cases for a given agent.\n\n### HTTP request\n\n`GET https://{endpoint}/v3/{parent=projects/*/locations/*/agents/*}/testCases`\n\nWhere `{endpoint}` is one of the [supported service endpoints](/dialogflow/cx/docs/reference/rest#rest_endpoints).\n\nThe URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nThe response message for [TestCases.ListTestCases](/dialogflow/cx/docs/reference/rest/v3/projects.locations.agents.testCases/list#google.cloud.dialogflow.cx.v3.TestCases.ListTestCases).\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/dialogflow`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\nTestCaseView\n------------\n\nSpecifies how much test case information to include in the response."]]