Get an automation by ID
Changed onReturns an automation by ID without requiring repository context when its created_by user is the authenticated caller and the caller can read its repository. This includes both user-owned and repository-owned automations created by the caller but excludes repository-owned automations created by someone else even if the caller has write access to the repository.
Use the repository-scoped get operation for those automations. The response includes repository identity so clients can link back to the repository.
Fine-grained access tokens for "Get an automation by ID"
This endpoint works with the following fine-grained token types:
The fine-grained token must have one of the following permission sets for each repository accessed by this request:
- "Agent tasks" repository permissions (read)
- "Contents" repository permissions (read)
The required permission set depends on each repository's Automation permission configuration.
GitHub App installation access tokens are not supported for this endpoint.
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/agents/automations/{automation_id}
- Auth: none declared
Path parameters
The unique identifier of the automation.
Response
Automation retrieved successfully
Changes
- info
endpoint added
- info