/agents/repos/{owner}/{repo}/automations/{automation_id}Get an automation for a repository
Returns an automation by ID in a repository.
User-owned automations are visible only to their creator. Repository-owned
automations are visible to anyone with read access to the repository. The
created_by field identifies the creator and is distinct from the automation's
owner_type.
Fine-grained access tokens for "Get an automation for a repository"
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.