agent-tasks
Start a task
[!NOTE] This endpoint is in public preview and is subject to change.
Starts a new Copilot cloud agent task for a repository.
This endpoint is only available to users with a Copilot Business or Copilot Enterprise subscription.
Fine-grained access tokens for "Start a task"
This endpoint works with the following fine-grained token types:
The fine-grained token must have the following permission set:
- "Agent tasks" repository permissions (read and write)
GitHub App installation access tokens are not supported for this endpoint.
post/agents/repos/{owner}/{repo}/tasks
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/agents/repos/{owner}/{repo}/tasks
- Auth: none declared
Path parameters
ownerstring required
The account owner of the repository. The name is not case sensitive.
repostring required
The name of the repository. The name is not case sensitive.
Request body
Response
Task created successfully
Changes
No recorded changes to this operation across all 23 revisions of this API.