Ver .md

members.profile_service

Atendimento de uma pessoa (detalhe do membro). Conversas atribuídas à pessoa: as 100 mais recentes (items, com status, não lidas, última mensagem e canal), o total e as contagens do período (inPeriod: com mensagem desde from; assigned: em atendimento agora; resolved: resolvidas desde from).

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

Entrada

CampoTipoObrigatórioNota
userIdstring (uuid)sim
fromstring (date-time)sim
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "userId": {
      "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)$"
    },
    "from": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    }
  },
  "required": [
    "userId",
    "from"
  ]
}

Exemplo

curl -X POST https://app.atomiks.com.br/api/v1/members.profile_service \
  -H "Authorization: Bearer $ATOMIKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"userId":"00000000-0000-0000-0000-000000000000","from":"2026-09-26T00:00:00Z"}'

CLI:

node cli/atomiks.mjs members.profile_service --json '{"userId":"00000000-0000-0000-0000-000000000000","from":"2026-09-26T00:00:00Z"}'

MCP: ferramenta members_profile_service com a mesma entrada.

Saída

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

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "total": {
      "type": "number"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "contactName": {
            "type": [
              "string",
              "null"
            ]
          },
          "contactPhone": {
            "type": [
              "string",
              "null"
            ]
          },
          "channel": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "assigned",
              "resolved",
              "closed"
            ]
          },
          "unreadCount": {
            "type": "number"
          },
          "lastMessageAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastMessagePreview": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastInboundAt": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "contactName",
          "contactPhone",
          "channel",
          "status",
          "unreadCount",
          "lastMessageAt",
          "lastMessagePreview",
          "lastInboundAt"
        ],
        "additionalProperties": false
      }
    },
    "counts": {
      "type": "object",
      "properties": {
        "inPeriod": {
          "type": "number"
        },
        "assigned": {
          "type": "number"
        },
        "resolved": {
          "type": "number"
        }
      },
      "required": [
        "inPeriod",
        "assigned",
        "resolved"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "total",
    "items",
    "counts"
  ],
  "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).