/agents/automations/{automation_id}Get an automation by ID
Returns 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.
A 400 is returned: Bad request. A 401 is returned: Authentication required. A 404 is returned: Resource not found.