---
updatedAt: 2026-11-04T16:58:08.000Z
agentTools:
  projectIndex: https://docs.apollo.io/llms.txt
---

# Run an Assistant Task

<table>
  <thead>
    <tr style="background-color :#FEFFD9; color:#000000">
      <th colspan="2" align="left">Endpoint essentials</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><strong>API key access</strong></td>
      <td><code>api/v1/agents/task</code> or <code>Master API key</code></td>
    </tr>
    <tr>
      <td><strong>OAuth scopes</strong></td>
      <td><code>agent_task</code></td>
    </tr>
    <tr>
      <td><strong>Credit usage</strong></td>
      <td>Variable, based on the actions the Assistant performs. Polling consumes <code>0 credits</code>.</td>
    </tr>
    <tr>
      <td colspan="2">Submitting a message doesn't itself charge credits. Actions such as enrichment can consume credits according to your plan, the action, and the data returned. There is no fixed per-task price. See <a href="https://docs.apollo.io/docs/api-pricing">API pricing and credits</a>.</td>
    </tr>
  </tbody>
</table>

An <a href="https://knowledge.apollo.io/hc/en-us/articles/39359204112397-AI-Assistant-Overview" target="_blank">Apollo AI assistant</a> task is a conversation in which you give instructions, receive results, and answer follow-up questions. It is separate from a CRM task created with the <a href="https://docs.apollo.io/reference/create-a-task">create a task</a> endpoint.<br><br>Use `POST /api/v1/agents/task` to create, poll, and continue an assistant task. All three operations return HTTP `200` on success. A successful submission means the instruction was accepted, not that the assistant has completed it.<br><br>Use the same acting user for the task's lifetime. See <a href="https://docs.apollo.io/reference/authentication#which-user-do-your-requests-act-as">which user API requests act as</a>. The assistant can perform actions using that user's permissions. Restricting the API key to specific endpoints does not restrict which actions the assistant can perform.

## Create a task

Send an `instruction` without a `task_id`:

```json
{
  "instruction": "Find companies matching my ideal customer profile."
}
```

Save the returned `task_id`. The response also includes `status: "running"`, a `next_action` polling hint, and `poll_after_ms`, the number of milliseconds to wait before you poll (`10000`, or 10 seconds). The hint names the `apollo_agent_poll_task` MCP tool; API clients poll with the <a href="https://docs.apollo.io/reference/poll-an-assistant-task">poll an assistant task</a> endpoint instead, or with this endpoint as described below.

## Poll for results

We recommend polling with the <a href="https://docs.apollo.io/reference/poll-an-assistant-task">poll an assistant task</a> endpoint. You can also poll with this endpoint. Wait `poll_after_ms` (10 seconds) between polls. Send the `task_id` and omit `instruction`:

```json
{
  "task_id": "507f1f77bcf86cd799439011"
}
```

The response includes `status`, `messages`, and `latest_seq_num`. While the task is `running`, the response also includes `next_action` and `poll_after_ms`. Messages contain `seq_num`, `role`, and flattened `text`. Hidden messages and non-text content are excluded.

| Status | What to do |
| --- | --- |
| <code style="white-space: nowrap">running</code> | Continue polling. |
| <code style="white-space: nowrap">awaiting_input</code> | Read `question` and the conversation, then submit your answer with the same `task_id`. The response also includes `error_type: "elicitation_required"`; this is a request for input, not an HTTP error. |
| <code style="white-space: nowrap">complete</code> | Read the result. You can submit another instruction with the same `task_id`. |
| <code style="white-space: nowrap">failed</code> | Stop polling and inspect any returned messages. |

An empty `messages` array does not mean the task has finished; check `status`.

Set a polling deadline in your client and handle a task that remains `running`. This endpoint does not promise a fixed completion time or accept a webhook URL. Repeating a create request without a `task_id` creates another task.

## Continue a task

When the status is `awaiting_input` or `complete`, send another instruction with the existing ID:

```json
{
  "task_id": "507f1f77bcf86cd799439011",
  "instruction": "Yes, continue."
}
```

The response retains the same `task_id`. If you submit an instruction while the task is `running`, it is ignored: the endpoint returns the current polling result and a `note` explaining that you should wait. It does not queue that instruction for later.

<table>
  <thead>
    <tr style="background-color :#FEFFD9; color:#000000">
      <th colspan="2" align="left">Endpoint essentials</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><strong>API key access</strong></td>
      <td><code>api/v1/agents/task</code> or <code>Master API key</code></td>
    </tr>
    <tr>
      <td><strong>OAuth scopes</strong></td>
      <td><code>agent_task</code></td>
    </tr>
    <tr>
      <td><strong>Credit usage</strong></td>
      <td>Variable, based on the actions the Assistant performs. Polling consumes <code>0 credits</code>.</td>
    </tr>
    <tr>
      <td colspan="2">Submitting a message doesn't itself charge credits. Actions such as enrichment can consume credits according to your plan, the action, and the data returned. There is no fixed per-task price. See <a href="https://docs.apollo.io/docs/api-pricing">API pricing and credits</a>.</td>
    </tr>
  </tbody>
</table>

An <a href="https://knowledge.apollo.io/hc/en-us/articles/39359204112397-AI-Assistant-Overview" target="_blank">Apollo AI assistant</a> task is a conversation in which you give instructions, receive results, and answer follow-up questions. It is separate from a CRM task created with the <a href="https://docs.apollo.io/reference/create-a-task">create a task</a> endpoint.<br><br>Use `POST /api/v1/agents/task` to create, poll, and continue an assistant task. All three operations return HTTP `200` on success. A successful submission means the instruction was accepted, not that the assistant has completed it.<br><br>Use the same acting user for the task's lifetime. See <a href="https://docs.apollo.io/reference/authentication#which-user-do-your-requests-act-as">which user API requests act as</a>. The assistant can perform actions using that user's permissions. Restricting the API key to specific endpoints does not restrict which actions the assistant can perform.

## Create a task

Send an `instruction` without a `task_id`:

```json
{
  "instruction": "Find companies matching my ideal customer profile."
}
```

Save the returned `task_id`. The response also includes `status: "running"`, a `next_action` polling hint, and `poll_after_ms`, the number of milliseconds to wait before you poll (`10000`, or 10 seconds). The hint names the `apollo_agent_poll_task` MCP tool; API clients poll with the <a href="https://docs.apollo.io/reference/poll-an-assistant-task">poll an assistant task</a> endpoint instead, or with this endpoint as described below.

## Poll for results

We recommend polling with the <a href="https://docs.apollo.io/reference/poll-an-assistant-task">poll an assistant task</a> endpoint. You can also poll with this endpoint. Wait `poll_after_ms` (10 seconds) between polls. Send the `task_id` and omit `instruction`:

```json
{
  "task_id": "507f1f77bcf86cd799439011"
}
```

The response includes `status`, `messages`, and `latest_seq_num`. While the task is `running`, the response also includes `next_action` and `poll_after_ms`. Messages contain `seq_num`, `role`, and flattened `text`. Hidden messages and non-text content are excluded.

| Status                                                   | What to do                                                                                                                                                                                              |
| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <code style="white-space: nowrap">running</code>         | Continue polling.                                                                                                                                                                                       |
| <code style="white-space: nowrap">awaiting\_input</code> | Read `question` and the conversation, then submit your answer with the same `task_id`. The response also includes `error_type: "elicitation_required"`; this is a request for input, not an HTTP error. |
| <code style="white-space: nowrap">complete</code>        | Read the result. You can submit another instruction with the same `task_id`.                                                                                                                            |
| <code style="white-space: nowrap">failed</code>          | Stop polling and inspect any returned messages.                                                                                                                                                         |

An empty `messages` array does not mean the task has finished; check `status`.

Set a polling deadline in your client and handle a task that remains `running`. This endpoint does not promise a fixed completion time or accept a webhook URL. Repeating a create request without a `task_id` creates another task.

## Continue a task

When the status is `awaiting_input` or `complete`, send another instruction with the existing ID:

```json
{
  "task_id": "507f1f77bcf86cd799439011",
  "instruction": "Yes, continue."
}
```

The response retains the same `task_id`. If you submit an instruction while the task is `running`, it is ignored: the endpoint returns the current polling result and a `note` explaining that you should wait. It does not queue that instruction for later.

# OpenAPI definition

````json
{
  "openapi": "3.1.0",
  "info": {
    "title": "apollo-rest-api",
    "summary": "Programmatic access to Apollo's sales intelligence and engagement platform — data enrichment, prospect and company search, and go-to-market workflow management.",
    "description": "The Apollo API provides programmatic access to [Apollo](https://www.apollo.io/), the all-in-one sales intelligence and engagement platform. Use it to enrich people and company data (individually or in bulk), search Apollo's database of over 240 million contacts and 30 million companies, and manage accounts, contacts, deals, sequences, tasks, calls, and conversations in your go-to-market workflows.\n\n## Base URL\n\nAll API requests are made to `https://api.apollo.io/api/v1`.\n\n## Authentication\n\n- **Apollo users** authenticate with an API key passed in the `x-api-key` request header. See [Create API Keys](https://docs.apollo.io/docs/create-api-key).\n- **Apollo partners** building integrations on behalf of mutual users authenticate with the [OAuth 2.0 authorization flow](https://docs.apollo.io/docs/use-oauth-20-authorization-flow-to-access-apollo-user-information-partners).\n\n## Rate limits & credits\n\nRate limits and credit consumption depend on your [Apollo pricing plan](https://docs.apollo.io/docs/api-pricing). Check your current limits and usage with the [view API usage stats and rate limits](https://docs.apollo.io/reference/view-api-usage-stats) endpoint. For more details, see [Rate Limits](https://docs.apollo.io/reference/rate-limits) and the [API FAQs](https://docs.apollo.io/docs/apollo-api-faqs).\n\nNew to the API? Start with the [Apollo API overview](https://docs.apollo.io/reference/apollo-api).",
    "termsOfService": "https://www.apollo.io/terms/api",
    "contact": {
      "name": "Apollo API Support",
      "url": "https://docs.apollo.io/"
    },
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.apollo.io/api/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "[Recommended] API key, passed in the `x-api-key` request header.\nSee [Create API Keys](https://docs.apollo.io/docs/create-api-key)."
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "OAuth 2.0 access token, used by Apollo partners building integrations.\nSee the [OAuth 2.0 authorization flow](https://docs.apollo.io/docs/use-oauth-20-authorization-flow-to-access-apollo-user-information-partners)."
      }
    },
    "schemas": {
      "ErrorDetails": {
        "type": "object",
        "description": "Machine-readable detail for an error that uses the new format, returned alongside the endpoint's existing error fields. The legacy error fields at the root level (`error`, `error_code`, `message`, etc) are removed on 2027-02-16, after which `error_details` is the only error payload. Some errors already return `error_details` on its own.",
        "properties": {
          "code": {
            "type": "string",
            "description": "Stable identifier in the form `DOMAIN.CATEGORY.REASON`. Branch on this value; the human-readable `message` can change.",
            "example": "AUTH.AUTHENTICATION.CREDENTIALS_MISSING"
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of what went wrong.",
            "example": "This request carried no credential Apollo could authenticate."
          },
          "suggestions": {
            "type": "array",
            "description": "Ordered, actionable next steps. Each entry carries a `label`, and where relevant the `parameter`, `header`, or `url` it refers to.",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string",
                  "example": "Send your API key in the X-Api-Key header"
                },
                "url": {
                  "type": "string",
                  "example": "https://docs.apollo.io/reference/authentication"
                },
                "parameter": {
                  "type": "string",
                  "example": "webhook_url"
                },
                "parameters": {
                  "type": "array",
                  "description": "Several parameters, any one of which satisfies the requirement.",
                  "items": {
                    "type": "string"
                  },
                  "example": [
                    "name",
                    "domain",
                    "website_url",
                    "linkedin_url"
                  ]
                },
                "header": {
                  "type": "string",
                  "example": "X-Api-Key"
                },
                "example": {
                  "type": "string",
                  "description": "A valid sample value for the parameter named above."
                },
                "retry_after_seconds": {
                  "type": "integer",
                  "description": "On a rate-limit refusal, how long to wait before retrying.",
                  "example": 60
                }
              }
            }
          },
          "context": {
            "type": "object",
            "description": "Values from your request that explain the refusal. Each entry is an object rather than a bare value, so read `context.<key>.value`. Absent when the error needs no context.",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "value": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                },
                "description": {
                  "type": "string"
                }
              }
            },
            "example": {
              "window": {
                "value": "hourly",
                "description": "The rate-limit window your request exceeded"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "apiKey": []
    },
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/agents/task": {
      "post": {
        "summary": "Run an Assistant task",
        "description": "<table>\n  <thead>\n    <tr style=\"background-color :#FEFFD9; color:#000000\">\n      <th colspan=\"2\" align=\"left\">Endpoint essentials</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td><strong>API key access</strong></td>\n      <td><code>api/v1/agents/task</code> or <code>Master API key</code></td>\n    </tr>\n    <tr>\n      <td><strong>OAuth scopes</strong></td>\n      <td><code>agent_task</code></td>\n    </tr>\n    <tr>\n      <td><strong>Credit usage</strong></td>\n      <td>Variable, based on the actions the Assistant performs. Polling consumes <code>0 credits</code>.</td>\n    </tr>\n    <tr>\n      <td colspan=\"2\">Submitting a message doesn't itself charge credits. Actions such as enrichment can consume credits according to your plan, the action, and the data returned. There is no fixed per-task price. See <a href=\"https://docs.apollo.io/docs/api-pricing\">API pricing and credits</a>.</td>\n    </tr>\n  </tbody>\n</table>\n\nAn <a href=\"https://knowledge.apollo.io/hc/en-us/articles/39359204112397-AI-Assistant-Overview\" target=\"_blank\">Apollo AI assistant</a> task is a conversation in which you give instructions, receive results, and answer follow-up questions. It is separate from a CRM task created with the <a href=\"https://docs.apollo.io/reference/create-a-task\">create a task</a> endpoint.<br><br>Use `POST /api/v1/agents/task` to create, poll, and continue an assistant task. All three operations return HTTP `200` on success. A successful submission means the instruction was accepted, not that the assistant has completed it.<br><br>Use the same acting user for the task's lifetime. See <a href=\"https://docs.apollo.io/reference/authentication#which-user-do-your-requests-act-as\">which user API requests act as</a>. The assistant can perform actions using that user's permissions. Restricting the API key to specific endpoints does not restrict which actions the assistant can perform.\n\n## Create a task\n\nSend an `instruction` without a `task_id`:\n\n```json\n{\n  \"instruction\": \"Find companies matching my ideal customer profile.\"\n}\n```\n\nSave the returned `task_id`. The response also includes `status: \"running\"`, a `next_action` polling hint, and `poll_after_ms`, the number of milliseconds to wait before you poll (`10000`, or 10 seconds). The hint names the `apollo_agent_poll_task` MCP tool; API clients poll with the <a href=\"https://docs.apollo.io/reference/poll-an-assistant-task\">poll an assistant task</a> endpoint instead, or with this endpoint as described below.\n\n## Poll for results\n\nWe recommend polling with the <a href=\"https://docs.apollo.io/reference/poll-an-assistant-task\">poll an assistant task</a> endpoint. You can also poll with this endpoint. Wait `poll_after_ms` (10 seconds) between polls. Send the `task_id` and omit `instruction`:\n\n```json\n{\n  \"task_id\": \"507f1f77bcf86cd799439011\"\n}\n```\n\nThe response includes `status`, `messages`, and `latest_seq_num`. While the task is `running`, the response also includes `next_action` and `poll_after_ms`. Messages contain `seq_num`, `role`, and flattened `text`. Hidden messages and non-text content are excluded.\n\n| Status | What to do |\n| --- | --- |\n| <code style=\"white-space: nowrap\">running</code> | Continue polling. |\n| <code style=\"white-space: nowrap\">awaiting_input</code> | Read `question` and the conversation, then submit your answer with the same `task_id`. The response also includes `error_type: \"elicitation_required\"`; this is a request for input, not an HTTP error. |\n| <code style=\"white-space: nowrap\">complete</code> | Read the result. You can submit another instruction with the same `task_id`. |\n| <code style=\"white-space: nowrap\">failed</code> | Stop polling and inspect any returned messages. |\n\nAn empty `messages` array does not mean the task has finished; check `status`.\n\nSet a polling deadline in your client and handle a task that remains `running`. This endpoint does not promise a fixed completion time or accept a webhook URL. Repeating a create request without a `task_id` creates another task.\n\n## Continue a task\n\nWhen the status is `awaiting_input` or `complete`, send another instruction with the existing ID:\n\n```json\n{\n  \"task_id\": \"507f1f77bcf86cd799439011\",\n  \"instruction\": \"Yes, continue.\"\n}\n```\n\nThe response retains the same `task_id`. If you submit an instruction while the task is `running`, it is ignored: the endpoint returns the current polling result and a `note` explaining that you should wait. It does not queue that instruction for later.",
        "tags": [
          "AI Assistant"
        ],
        "operationId": "run-an-assistant-task",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "anyOf": [
                  {
                    "title": "Create a task",
                    "required": [
                      "instruction"
                    ]
                  },
                  {
                    "title": "Poll or continue a task",
                    "required": [
                      "task_id"
                    ]
                  }
                ],
                "properties": {
                  "instruction": {
                    "type": "string",
                    "description": "Instruction to create a task or continue an existing one. Required and nonblank for creation. Omit when polling. Ignored if the existing task is running."
                  },
                  "task_id": {
                    "type": "string",
                    "description": "ID returned by creation. Omit to create a new task; supply it to poll or continue the same conversation."
                  }
                }
              },
              "examples": {
                "create": {
                  "value": {
                    "instruction": "Find companies matching my ideal customer profile."
                  }
                },
                "poll": {
                  "value": {
                    "task_id": "507f1f77bcf86cd799439011"
                  }
                },
                "continue": {
                  "value": {
                    "task_id": "507f1f77bcf86cd799439011",
                    "instruction": "Focus on North America."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Task accepted or current task state returned. An accepted task is not necessarily complete.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "task_id",
                    "status"
                  ],
                  "properties": {
                    "task_id": {
                      "type": "string",
                      "description": "Task identifier, reused for polls and subsequent instructions."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "running",
                        "awaiting_input",
                        "complete",
                        "failed"
                      ]
                    },
                    "next_action": {
                      "type": "string",
                      "description": "Polling hint returned after creation or continuation, and when polling a running task."
                    },
                    "poll_after_ms": {
                      "type": "integer",
                      "description": "Milliseconds to wait before polling again. Returned after creation or continuation, and when polling a running task."
                    },
                    "messages": {
                      "type": "array",
                      "description": "Visible text messages in sequence order, returned when polling.",
                      "items": {
                        "type": "object",
                        "required": [
                          "seq_num",
                          "role",
                          "text"
                        ],
                        "properties": {
                          "seq_num": {
                            "type": "integer"
                          },
                          "role": {
                            "type": "string"
                          },
                          "text": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "latest_seq_num": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Latest stored message sequence number, returned when polling."
                    },
                    "error_type": {
                      "type": "string",
                      "enum": [
                        "elicitation_required"
                      ],
                      "description": "Returned when the Assistant is awaiting input."
                    },
                    "question": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Latest assistant text when awaiting input."
                    },
                    "note": {
                      "type": "string",
                      "description": "Explanation returned when an instruction was ignored because the task was still running."
                    }
                  }
                },
                "examples": {
                  "accepted": {
                    "value": {
                      "task_id": "507f1f77bcf86cd799439011",
                      "status": "running",
                      "next_action": "Wait poll_after_ms, then call apollo_agent_poll_task with this task_id and cursor=0.",
                      "poll_after_ms": 10000
                    }
                  },
                  "running": {
                    "value": {
                      "task_id": "507f1f77bcf86cd799439011",
                      "status": "running",
                      "messages": [
                        {
                          "seq_num": 0,
                          "role": "user",
                          "text": "Find companies matching my ideal customer profile."
                        }
                      ],
                      "latest_seq_num": 0,
                      "next_action": "Wait poll_after_ms, then call apollo_agent_poll_task with this task_id and cursor=0.",
                      "poll_after_ms": 10000
                    }
                  },
                  "awaiting_input": {
                    "value": {
                      "task_id": "507f1f77bcf86cd799439011",
                      "status": "awaiting_input",
                      "messages": [
                        {
                          "seq_num": 0,
                          "role": "user",
                          "text": "Find companies matching my ideal customer profile."
                        },
                        {
                          "seq_num": 1,
                          "role": "assistant",
                          "text": "Which region should I focus on?"
                        }
                      ],
                      "latest_seq_num": 1,
                      "error_type": "elicitation_required",
                      "question": "Which region should I focus on?"
                    }
                  },
                  "complete": {
                    "value": {
                      "task_id": "507f1f77bcf86cd799439011",
                      "status": "complete",
                      "messages": [
                        {
                          "seq_num": 3,
                          "role": "assistant",
                          "text": "Here is the summary you requested."
                        }
                      ],
                      "latest_seq_num": 3
                    }
                  },
                  "failed": {
                    "value": {
                      "task_id": "507f1f77bcf86cd799439011",
                      "status": "failed",
                      "messages": [],
                      "latest_seq_num": 4
                    }
                  },
                  "instruction_ignored": {
                    "value": {
                      "task_id": "507f1f77bcf86cd799439011",
                      "status": "running",
                      "messages": [
                        {
                          "seq_num": 0,
                          "role": "user",
                          "text": "Find companies matching my ideal customer profile."
                        }
                      ],
                      "latest_seq_num": 0,
                      "next_action": "Wait poll_after_ms, then call apollo_agent_poll_task with this task_id and cursor=0.",
                      "poll_after_ms": 10000,
                      "note": "Task is still running; the instruction was ignored. Poll with apollo_agent_poll_task until the task is complete, failed, or awaiting_input, then send a follow-up instruction."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "error_code": {
                      "type": [
                        "integer",
                        "string"
                      ]
                    },
                    "error_details": {
                      "$ref": "#/components/schemas/ErrorDetails"
                    }
                  }
                },
                "examples": {
                  "error": {
                    "value": {
                      "error": "Invalid access credentials."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Insufficient endpoint access, or the task belongs to another acting user.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "error_code": {
                      "type": [
                        "integer",
                        "string"
                      ]
                    },
                    "error_details": {
                      "$ref": "#/components/schemas/ErrorDetails"
                    }
                  }
                },
                "examples": {
                  "error": {
                    "value": {
                      "success": false,
                      "error": "Task is not accessible",
                      "error_code": 403
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Missing instruction for creation, or task not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "error_code": {
                      "type": [
                        "integer",
                        "string"
                      ]
                    },
                    "error_details": {
                      "$ref": "#/components/schemas/ErrorDetails"
                    }
                  }
                },
                "examples": {
                  "error": {
                    "value": {
                      "success": false,
                      "error": "instruction is required to create a task",
                      "error_code": 422
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "API rate limit exceeded. Reduce request frequency and follow your workspace rate limits.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "error_code": {
                      "type": [
                        "integer",
                        "string"
                      ]
                    },
                    "error_details": {
                      "$ref": "#/components/schemas/ErrorDetails"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The task request could not be processed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "error_code": {
                      "type": [
                        "integer",
                        "string"
                      ]
                    },
                    "error_details": {
                      "$ref": "#/components/schemas/ErrorDetails"
                    }
                  }
                },
                "examples": {
                  "error": {
                    "value": {
                      "success": false,
                      "error": "Internal error",
                      "error_code": 500
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Cache-Control",
        "value": "no-cache"
      },
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
````