cadences.runs_resume
Retomar cadência pausada. Cria a tarefa do passo em que a execução parou e a deixa em andamento. Vale para a pausada e para a ativa cujo passo atual não tem mais tarefa aberta; ativa com tarefa aberta dá invalid_input.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/cadences.runs_resume(corpo JSON) - Quem pode chamar: membro da conta
- Escopo da chave:
crm:write - Grava dados: sim
- Pela chave de API: sim
- Ferramenta MCP:
cadences_runs_resume - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdcadences.runs_resume)
Entrada
| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
id | string (uuid) | sim |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"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)$"
}
},
"required": [
"id"
]
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/cadences.runs_resume \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"00000000-0000-0000-0000-000000000000"}'CLI:
node cli/atomiks.mjs cadences.runs_resume --json '{"id":"00000000-0000-0000-0000-000000000000"}'MCP: ferramenta cadences_runs_resume com a mesma entrada.
Saída
Sucesso: {"data": ...} com o formato abaixo.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"cadenceId": {
"type": "string"
},
"cadenceName": {
"type": "string"
},
"opportunityId": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"active",
"paused",
"completed",
"exhausted",
"stopped"
]
},
"statusReason": {
"type": [
"string",
"null"
]
},
"phase": {
"type": [
"number",
"null"
]
},
"phaseName": {
"type": [
"string",
"null"
]
},
"totalPhases": {
"type": "number"
},
"phaseStep": {
"type": "number"
},
"phaseSteps": {
"type": "number"
},
"currentPosition": {
"type": "number"
},
"totalSteps": {
"type": "number"
},
"currentTaskId": {
"type": [
"string",
"null"
]
},
"currentTaskTitle": {
"type": [
"string",
"null"
]
},
"currentTaskStatus": {
"anyOf": [
{
"type": "string",
"enum": [
"open",
"done"
]
},
{
"type": "null"
}
]
},
"nextAt": {
"type": [
"string",
"null"
]
},
"automatic": {
"type": "boolean"
},
"startedAt": {
"type": "string"
},
"finishedAt": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"cadenceId",
"cadenceName",
"opportunityId",
"status",
"statusReason",
"phase",
"phaseName",
"totalPhases",
"phaseStep",
"phaseSteps",
"currentPosition",
"totalSteps",
"currentTaskId",
"currentTaskTitle",
"currentTaskStatus",
"nextAt",
"automatic",
"startedAt",
"finishedAt"
],
"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).