automations.test
Testar o texto de uma automação. Diz se um texto (e uma publicação, se a automação limita) dispararia a automação. Não envia nada.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/automations.test(corpo JSON) - Quem pode chamar: membro da conta
- Escopo da chave:
automations:read - Grava dados: não
- Pela chave de API: sim
- Ferramenta MCP:
automations_test - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdautomations.test)
Entrada
| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
automationId | string (uuid) | sim | |
text | string | sim | |
mediaId | string | não |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"automationId": {
"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)$"
},
"text": {
"type": "string",
"maxLength": 2200
},
"mediaId": {
"type": "string"
}
},
"required": [
"automationId",
"text"
]
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/automations.test \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"automationId":"00000000-0000-0000-0000-000000000000","text":"Eu quero!"}'CLI:
node cli/atomiks.mjs automations.test --json '{"automationId":"00000000-0000-0000-0000-000000000000","text":"Eu quero!"}'MCP: ferramenta automations_test com a mesma entrada.
Saída
Sucesso: {"data": ...} com o formato abaixo.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"matches": {
"type": "boolean"
}
},
"required": [
"matches"
],
"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).