Ver .md

activities.message_detail

Detalhe da mensagem de uma atividade. Detalhe da mensagem de uma atividade de conversa (activityId = id da atividade): channel, deliveryStatus (queued, sent, delivered, visualized ou failed; só em mensagem enviada), deliveryError, subject, contents ([{format, content, fileName, caption}]) e, quando a mensagem saiu de uma automação ou disparo, flow/broadcast (o Atomiks não guarda essa origem: sempre null).

  • Endpoint: POST https://app.atomiks.com.br/api/v1/activities.message_detail (corpo JSON)
  • Quem pode chamar: membro da conta
  • Escopo da chave: crm:read
  • Grava dados: não
  • Pela chave de API: sim
  • Ferramenta MCP: activities_message_detail
  • Ficha em JSON: https://app.atomiks.com.br/api/v1/openapi.json (operationId activities.message_detail)

Entrada

CampoTipoObrigatórioNota
activityIdstring (uuid)sim
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "activityId": {
      "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": [
    "activityId"
  ]
}

Exemplo

curl -X POST https://app.atomiks.com.br/api/v1/activities.message_detail \
  -H "Authorization: Bearer $ATOMIKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"activityId":"00000000-0000-0000-0000-000000000000"}'

CLI:

node cli/atomiks.mjs activities.message_detail --json '{"activityId":"00000000-0000-0000-0000-000000000000"}'

MCP: ferramenta activities_message_detail com a mesma entrada.

Saída

Sucesso: {"data": ...} com o formato abaixo.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "channel": {
      "type": [
        "string",
        "null"
      ]
    },
    "deliveryStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "deliveryError": {
      "type": [
        "string",
        "null"
      ]
    },
    "subject": {
      "type": [
        "string",
        "null"
      ]
    },
    "contents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "format": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "fileName": {
            "type": [
              "string",
              "null"
            ]
          },
          "caption": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "format",
          "content",
          "fileName",
          "caption"
        ],
        "additionalProperties": false
      }
    },
    "flow": {
      "type": "null"
    },
    "broadcast": {
      "type": "null"
    }
  },
  "required": [
    "channel",
    "deliveryStatus",
    "deliveryError",
    "subject",
    "contents",
    "flow",
    "broadcast"
  ],
  "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).