Documentation Index
Fetch the complete documentation index at: https://mintlify.com/21st-dev/1code/llms.txt
Use this file to discover all available pages before exploring further.
Create Task
Create a new agent task to run in a cloud sandbox.Request Body
GitHub repository URL (HTTPS or SSH format)
Task description for the agent
Base branch to work from
AI model to use. Options:
claude-sonnet-4, claude-opus-4, codexURL to receive webhook notifications when the task completes
Automatically merge the PR if all checks pass
Response
Unique task identifier
Current task status:
queued, running, completed, failedRepository URL
Task prompt
Base branch
AI model used
ISO 8601 timestamp
Live browser preview URL (available when sandbox is ready)
Get Task
Retrieve the status and details of a specific task.Response
Task identifier
Current status:
queued, running, completed, failedGitHub pull request URL (available when PR is created)
GitHub pull request number
Live browser preview URL
Array of commit objects with
sha, message, and timestampError message if task failed
ISO 8601 timestamp when task completed
Send Follow-up Message
Send additional instructions to a running task.Request Body
Follow-up instruction for the agent
Response
Unique message identifier
Parent task identifier
Message processing status
List Tasks
Retrieve all tasks for your account.Query Parameters
Filter by status:
queued, running, completed, failedFilter by repository URL
Number of tasks to return (max 100)
Pagination offset
Response
Array of task objects
Total number of tasks matching the filters
Number of tasks returned
Pagination offset
Cancel Task
Cancel a running task.Response
Task identifier
Updated status:
cancelledISO 8601 timestamp
Error Codes
| Code | Description |
|---|---|
| 400 | Invalid request parameters |
| 401 | Missing or invalid API key |
| 404 | Task not found |
| 429 | Rate limit exceeded |
| 500 | Internal server error |