provider agent-tasks POST /agents/repos/{owner}/{repo}/tasks
@utdk/github /agents/repos/{owner}/{repo}/tasks
Create a task
> [!NOTE] > This endpoint is in public preview and is subject to change. Creates a new task for a repository
owner path required
The account owner of the repository. The name is not case sensitive.
string
repo path required
The name of the repository. The name is not case sensitive.
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

agentTasks.createTask
POST/agents/repos/{owner}/{repo}/tasks
> [!NOTE] > This endpoint is in public preview and is subject to change. Creates a new task for a repository

Parameters

required

The account owner of the repository. The name is not case sensitive.

required

The name of the repository. The name is not case sensitive.

Input

Agent ID (optional, defaults to coding agent)

Additional prompting for the agent

required

User's written prompt

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 identifier

Whether to create a PR

Base ref for new branch/PR

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.agentTasks.createTask()