crm.tasks_list
Listar tarefas. Tarefas dos contatos que o chamador vê. Filtros: contactId, assigneeId (id ou "me"), bucket (overdue, today, upcoming, no_date, done; dia no fuso da conta), q (título). Até 500.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/crm.tasks_list(corpo JSON) - Quem pode chamar: membro da conta
- Escopo da chave:
crm:read - Grava dados: não
- Pela chave de API: sim
- Ferramenta MCP:
crm_tasks_list - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdcrm.tasks_list)
Entrada
| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
contactId | string (uuid) | não | |
assigneeId | string (uuid) | "me" | não | |
bucket | "overdue" | "today" | "upcoming" | "no_date" | "done" | não | |
q | string | não |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"contactId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"assigneeId": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "string",
"const": "me"
}
]
},
"bucket": {
"type": "string",
"enum": [
"overdue",
"today",
"upcoming",
"no_date",
"done"
]
},
"q": {
"type": "string",
"maxLength": 80
}
}
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/crm.tasks_list \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assigneeId":"me","bucket":"today"}'CLI:
node cli/atomiks.mjs crm.tasks_list --json '{"assigneeId":"me","bucket":"today"}'MCP: ferramenta crm_tasks_list com a mesma entrada.
Saída
Sucesso: {"data": ...} com o formato abaixo.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"todo",
"call",
"message",
"meeting"
]
},
"dueAt": {
"type": [
"string",
"null"
]
},
"done": {
"type": "boolean"
},
"doneAt": {
"type": [
"string",
"null"
]
},
"contact": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
"conversationId": {
"type": [
"string",
"null"
]
},
"opportunityId": {
"type": [
"string",
"null"
]
},
"assignee": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"bucket": {
"type": "string",
"enum": [
"overdue",
"today",
"upcoming",
"no_date",
"done"
]
},
"durationMinutes": {
"type": [
"number",
"null"
]
},
"allDay": {
"type": "boolean"
},
"notes": {
"type": [
"string",
"null"
]
},
"meetingUrl": {
"type": [
"string",
"null"
]
},
"guests": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"id",
"title",
"kind",
"dueAt",
"done",
"doneAt",
"contact",
"conversationId",
"opportunityId",
"assignee",
"bucket",
"durationMinutes",
"allDay",
"notes",
"meetingUrl",
"guests"
],
"additionalProperties": false
}
}
},
"required": [
"items"
],
"additionalProperties": false
}Erros
{"error": {"code", "message", "requestId"}}. Códigos: invalid_input (400), unauthorized (401), forbidden / account_pending / scope_missing (403), not_found (404), limit_reached (409), internal (500).