companies.audit_list
Auditoria de uma empresa. Só administradores. Alterações registradas na atividade da conta que citam a empresa, da mais recente para a mais antiga. Paginação: before = nextBefore (id da linha).
- Endpoint:
POST https://app.atomiks.com.br/api/v1/companies.audit_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:
companies_audit_list - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdcompanies.audit_list)
Entrada
| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
id | string (uuid) | sim | |
before | integer | não | |
limit | integer | não |
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)$"
},
"before": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"required": [
"id"
]
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/companies.audit_list \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"00000000-0000-0000-0000-000000000000"}'CLI:
node cli/atomiks.mjs companies.audit_list --json '{"id":"00000000-0000-0000-0000-000000000000"}'MCP: ferramenta companies_audit_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"
},
"at": {
"type": "string"
},
"actor": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"action": {
"type": "string"
},
"summary": {
"type": "string"
}
},
"required": [
"id",
"at",
"actor",
"action",
"summary"
],
"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).