---
title: "Adicionando tarefas"
method: POST
path: "/api/v4/tasks"
---

# Adicionando tarefas

`POST /api/v4/tasks`

## Request

- Base URL: `https://subdomain.kommo.com`
- URL: `https://subdomain.kommo.com/api/v4/tasks`
- Auth: OAuth 2

This method allows adding multiple tasks.

## Request body

- object
  - `RAW_BODY` object[]
    - `responsible_user_id` integer: ID do usuário responsável pela tarefa, ID do usuário atual por padrão
    - `entity_id` integer: ID da entidade à qual a tarefa está vinculada
    - `entity_type` 'leads' | 'contacts' | 'companies': Tipo da entidade à qual a tarefa está vinculada
    - `is_completed` boolean: Define se a tarefa foi concluída
    - `task_type_id` integer: Tipo da tarefa
    - `text` string, required: Descrição da tarefa
    - `duration` integer: Duração da tarefa em segundos
    - `complete_till` integer, required: Data de vencimento da tarefa no formato de Unix Timestamp
    - `result` object: Resultado da tarefa
      - `text` string: Texto do resultado da tarefa
    - `created_by` integer: ID do usuário que criou a tarefa
    - `updated_by` integer: ID do usuário que editou a tarefa por último
    - `created_at` integer: Data de criação da tarefa no formato de Unix Timestamp
    - `updated_at` integer: Data de edição da tarefa no formato de Unix Timestamp
    - `request_id` string: O campo será retornado inalterado na resposta e não será salvo

## Response `200`

Requisição bem-sucedida

- object
  - `_links` object
    - `self` object
      - `href` string
  - `_embedded` object
    - `tasks` object[]
      - `id` integer
      - `request_id` string
      - `_links` object
        - `self` object
          - `href` string

## Other responses

- `400`: Pedido ruim
- `401`: Não autorizado
- `403`: Proibido

---

[API](https://skmtc.dev/kommo/apis/referencias-de-api-da-kommo.md) - [All operations](https://skmtc.dev/kommo/apis/referencias-de-api-da-kommo/llms.txt) - [OpenAPI document](https://skmtc.dev/kommo/apis/referencias-de-api-da-kommo/revisions/55101699dddb?raw)
