apicheats.dev Cheat sheet Raw .md
POST

Try POST /agents/repos/{owner}/{repo}/tasks — GitHub API

GitHub playground

Start a task

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

6 body fields
  • prompt · required · string — The user's prompt for the agent
  • model · optional · string — The model to use for this task. The allowed models may change over time and depend on the user's GitHub Copilot plan and organization policies. Currently supported values: `claude-sonnet-4.6`, `claude-opus-4.6`, `gpt-5.2-codex`, `gpt-5.3-codex`, `gpt-5.4`, `claude-sonnet-4.5`, `claude-opus-4.5`
  • custom_agent · optional · string — Optional identifier for a custom agent to use for this task. Use the custom agent's filename without the extension - for example, for a `.github/agents/performance-optimizer.agent.md` custom agent, use `performance-optimizer`.
  • create_pull_request · optional · boolean — Whether to create a PR.
  • base_ref · optional · string — Base ref for new branch/PR
  • head_ref · optional · string — Head ref for existing branch/PR. If provided with `base_ref`, the agent looks up open PR context for `head_ref` targeting `base_ref` and commits to `head_ref` instead of creating a new branch.