---
title: "Create a task"
method: POST
path: "/v2/tasks"
tags: ["Tasks"]
---

# Create a task

`POST /v2/tasks`

Creates a new task.

At present, tasks can only be created from plaintext without record reference formatting.

Required scopes: `task:read-write`, `object_configuration:read`, `record_permission:read`, `user_management:read`.

## Request body

- object
  - `data` object, required
    - `content` string, required — The text content of the task, in the format specified by the `format` property. A max length of 2000 characters is enforced.
    - `format` 'plaintext', required — The format of the task content to be created. Rich text formatting, links and @references are not supported.
    - `deadline_at` string, nullable, required — The deadline of the task, in ISO 8601 format.
    - `is_completed` boolean, required — Whether the task has been completed.
    - `assignees` union[], required — Workspace members assigned to this task.
      - union
        - object
          - `referenced_actor_type` 'workspace-member', required — The actor type of the task assignee. Only `workspace-member` actors can be assigned to tasks. [Read more information on actor types here](/docs/actors).
          - `referenced_actor_id` string, uuid, required — The ID of the actor assigned to this task.
        - object
          - `workspace_member_email_address` string, required — Workspace member actors can be referenced by email address as well as actor ID.

## Response `200`

Success

- object — Success
  - `data` Task, required
    - `id` object, required
      - `workspace_id` string, uuid, required — The ID of the workspace the task belongs to.
      - `task_id` string, uuid, required — The ID of the task.
    - `content_plaintext` string, required — The plaintext representation of the task content. Inline linked records will appear as "@record name" and are returned in the `linked_records` property.
    - `deadline_at` string, nullable, required — The deadline date of the task. Returned as an ISO 8601 timestamp.
    - `is_completed` boolean, required — Whether the task has been completed.
    - `completed_at` string, nullable, required — When the task was completed, or null if it has not been completed.
    - `linked_records` object[], required — Records linked to the task. Creating record links within task content text is not possible via the API at present.
      - `target_object_id` string, required — The ID of the parent object the task refers to. At present, only `people` and `companies` are supported.
      - `target_record_id` string, uuid, required — The ID of the parent record the task refers to.
    - `assignees` object[], required — Workspace members assigned to this task.
      - `referenced_actor_type` 'api-token' | 'workspace-member' | 'system' | 'app', required — The type of actor. [Read more information on actor types here](/docs/actors).
      - `referenced_actor_id` string, uuid, required — The ID of the workspace member actor assigned to this task.
    - `created_by_actor` object, required — The actor that created this task.
      - `id` string, nullable — An ID to identify the actor.
      - `type` 'api-token' | 'workspace-member' | 'system' | 'app', nullable — The type of actor. [Read more information on actor types here](/docs/actors).
    - `created_at` string, required — When the task was created.

## Other responses

- `400` — Bad Request
- `404` — Not Found

## Changes

- **2026-08-11** `1a3c214e1a13` — 1 breaking, 2 info
  - the `code` response's property type/format changed from `string`/`` to ``/`` for status `400`
  - added `subschema #1, subschema #2` to the `code` response property `anyOf` list for the response status `400`
  - removed the `validation_type` enum value from the `code` response property for the response status `400`

[Change history](https://skmtc.dev/attio/apis/attio-api/changes/v2/tasks/post.md)

---

[API](https://skmtc.dev/attio/apis/attio-api.md) · [All operations](https://skmtc.dev/attio/apis/attio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/attio/attio-api/revisions/191597d35978/schema)
