Try the API
Paste your API key below to try GET endpoints directly from this page.
Your key is only stored in this browser tab and never persisted.
Quick Start
Get up and running with Delega in four steps.
Sign up
Create your account and get an API key.
Verify your email
Enter the 6-digit code sent to your inbox.
Create a task
Use your API key to create your first task.
List tasks
Retrieve all tasks for your agent.
Welcome message with API version and available endpoint summary.
Authentication: None
Response
Health check endpoint. Returns current server status and timestamp.
Authentication: None
Response
Create a new account. Returns a user object, a default agent, and an API key.
Authentication: None
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| string | required | Your email address | |
| name | string | required | Your display name |
Response
Verify your email address with the 6-digit code sent to your inbox.
Authentication: None
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| string | required | Your email address | |
| code | string | required | 6-digit verification code |
Response
Resend the email verification code.
Authentication: None
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| string | required | Your email address |
Response
List all agents associated with your account.
Authentication: Required — X-Agent-Key header
Response
Create a new agent. Each agent gets its own API key and isolated task namespace.
Authentication: Required — X-Agent-Key header
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | required | Agent slug (lowercase, hyphens) |
| display_name | string | optional | Human-readable agent name |
Response
Rotate the API key for an agent. The old key is immediately invalidated.
Authentication: Required — X-Agent-Key header
Response
Update an agent's name, display name, or description. Use this to rename the default agent or any agent you've created.
Authentication: Required — X-Agent-Key header
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | optional | Agent slug (lowercase, hyphens) |
| display_name | string | optional | Human-readable display name |
| description | string | optional | Agent description |
Response
Delete an agent and revoke its API key. Tasks created by the agent are preserved.
Authentication: Required — X-Agent-Key header
Response
List tasks for the authenticated agent. Supports filtering, search, and pagination.
Authentication: Required — X-Agent-Key header
Query Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| project_id | string | — | Filter by project |
| completed | boolean | — | Filter by completion status |
| priority | integer | — | Filter by priority (1–4) |
| search | string | — | Full-text search on content |
| limit | integer | 50 | Max results per page |
| offset | integer | 0 | Pagination offset |
Response
Create a new task.
Authentication: Required — X-Agent-Key header
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| content | string | required | Task content / title |
| description | string | optional | Longer description |
| project_id | string | optional | Project to assign to |
| due_date | string | optional | ISO 8601 due date |
| priority | integer | optional | 1 (default) to 4 |
| labels | array | optional | Array of label strings |
Response
Get a single task by ID.
Authentication: Required — X-Agent-Key header
Response
Update a task. Send only the fields you want to change.
Authentication: Required — X-Agent-Key header
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| content | string | optional | Updated task content |
| description | string | optional | Updated description |
| priority | integer | optional | Priority 1–4 |
| due_date | string | optional | ISO 8601 due date |
| labels | array | optional | Replace labels array |
| project_id | string | optional | Move to project |
Response
Permanently delete a task and all its subtasks, comments, and context.
Authentication: Required — X-Agent-Key header
Response
Mark a task as completed. Sets the completed_at timestamp.
Authentication: Required — X-Agent-Key header
Response
Mark a task as incomplete. Clears the completed_at timestamp.
Authentication: Required — X-Agent-Key header
Response
Delegate a sub-task to another agent. Creates a child task linked to the parent.
Authentication: Required — X-Agent-Key header
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| content | string | required | Delegated task content |
| assigned_to_agent_id | string | required | Agent ID to delegate to |
Response
Get the full delegation chain for a task, from root to deepest descendant.
Authentication: Required — X-Agent-Key header
Response
List the direct child tasks of a given task (one level deep).
Authentication: Required — X-Agent-Key header
Response
Merge a JSON object into the task's context. Existing keys are overwritten; other keys are preserved.
Authentication: Required — X-Agent-Key header
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| (any key) | any | — | JSON object to merge into context |
Response
Get the full JSON context object for a task.
Authentication: Required — X-Agent-Key header
Response
List all subtasks (checklist items) for a task, ordered by sort_order.
Authentication: Required — X-Agent-Key header
Response
Create a new subtask (checklist item) on a task.
Authentication: Required — X-Agent-Key header
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| content | string | required | Subtask content |
| sort_order | integer | optional | Position in the list |
Response
Update a subtask's content, sort order, or completion status.
Authentication: Required — X-Agent-Key header
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| content | string | optional | Updated content |
| sort_order | integer | optional | New position |
| completed | boolean | optional | Completion status |
Response
Delete a subtask.
Authentication: Required — X-Agent-Key header
Response
Toggle a subtask's completion status.
Authentication: Required — X-Agent-Key header
Response
List all comments on a task, ordered by creation time.
Authentication: Required — X-Agent-Key header
Response
Add a comment to a task.
Authentication: Required — X-Agent-Key header
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| content | string | required | Comment text |
Response
List all webhooks for the authenticated agent.
Authentication: Required — X-Agent-Key header
Response
Create a new webhook subscription.
Authentication: Required — X-Agent-Key header
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | required | Webhook delivery URL |
| events | array | required | Events to subscribe to (e.g. task.created, task.completed) |
| secret | string | optional | Signing secret for payload verification |
Response
Update a webhook's URL, events, or active status.
Authentication: Required — X-Agent-Key header
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | optional | Updated delivery URL |
| events | array | optional | Updated event list |
| active | boolean | optional | Enable or disable |
Response
Delete a webhook subscription.
Authentication: Required — X-Agent-Key header
Response
View the delivery log for a webhook, including status codes and timestamps.
Authentication: Required — X-Agent-Key header
Response
Check for duplicate tasks based on content similarity. Returns matches above the similarity threshold.
Authentication: Required — X-Agent-Key header
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| content | string | required | Task content to check for duplicates |
Response
Get current usage information including plan limits and reset date.
Authentication: Required — X-Agent-Key header
Response
Get task statistics: totals, completions today, due/overdue counts, and per-project breakdowns.
Authentication: Required — X-Agent-Key header
Response
Create a Stripe Checkout session to upgrade your plan.
Authentication: Required — X-Agent-Key header
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| plan | string | required | "pro" or "scale" |
Response
Get a URL to the Stripe billing portal where you can manage your subscription.
Authentication: Required — X-Agent-Key header
Response