Query Insights reports
List generated query patterns reports
Authorization
A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
Service Token Accesses read_branch
OAuth Scopes
| Resource | Scopes |
|---|---|
| Organization | read_branches |
| Database | read_branches |
| Branch | read_branch |
get/organizations/{organization}/databases/{database}/branches/{branch}/query-patterns
Path parameters
organizationstring required
The name of the organization the branch belongs to
databasestring required
The name of the database the branch belongs to
branchstring required
The name of the branch
Query parameters
starting_afterstring
If provided, returns results after the specified cursor
ending_beforestring
If provided, returns results before the specified cursor
limitinteger
If provided, specifies the number of returned results (max 100)
Response
Returns the generated query patterns reports