activity.list
Listar atividade da conta. Registro de atividade da conta atual, do mais recente para o mais antigo. Use before (id do último item) para a página seguinte.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/activity.list(corpo JSON) - Quem pode chamar: administrador da conta
- Escopo da chave:
activity:read - Grava dados: não
- Pela chave de API: sim
- Ferramenta MCP:
activity_list - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdactivity.list)
Entrada
| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
limit | integer | não | padrão 50 |
before | integer | não |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"limit": {
"default": 50,
"type": "integer",
"minimum": 1,
"maximum": 200
},
"before": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
}
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/activity.list \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":50}'CLI:
node cli/atomiks.mjs activity.list --json '{"limit":50}'MCP: ferramenta activity_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": "number"
},
"createdAt": {
"type": "string"
},
"action": {
"type": "string"
},
"targetType": {
"type": "string"
},
"targetId": {
"type": "string"
},
"actor": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"user",
"api_key",
"system"
]
},
"name": {
"type": "string"
}
},
"required": [
"kind",
"name"
],
"additionalProperties": false
}
},
"required": [
"id",
"createdAt",
"action",
"targetType",
"targetId",
"actor"
],
"additionalProperties": false
}
},
"nextBefore": {
"type": [
"number",
"null"
]
}
},
"required": [
"items",
"nextBefore"
],
"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).