List available automation triggers for a repository
Changed on[!NOTE] This endpoint is in public preview and is subject to change.
Lists available triggers for automations in a repository.
Each available trigger includes a title and description that can be presented in user interfaces, plus a machine-readable schema of filters supported by the trigger.
GitHub App installation access tokens can list available automation triggers. The installation must belong to the repository owner and the token must have "Agent tasks" repository permissions (read).
To call this endpoint, OAuth app tokens and personal access tokens (classic) need:
- the repo scope for private or internal repositories
- the repo scope or public_repo scope for public repositories
Fine-grained access tokens for "List available automation triggers for a repository"
This endpoint works with the following fine-grained token types:
- GitHub App user access tokens
- GitHub App installation access tokens
- Fine-grained personal access tokens
The fine-grained token must have the following permission set:
- "Agent tasks" repository permissions (read)
Request
- Base URLhttps://api.github.com
- URLhttps://api.github.com/agents/repos/{owner}/{repo}/automations/available-triggers
- Authnone declared
Path parameters
The account owner of the repository. The name is not case sensitive.
The name of the repository. The name is not case sensitive.
Response
Available automation triggers retrieved successfully
Changes
- info
endpoint added
- info