Skip to main content
POST
/
router
/
test
/
{instance}
Test all routing rules (dry-run)
curl --request POST \
  --url https://api.zapthinker.com/router/test/{instance} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "content": "<string>",
  "remoteJid": "<string>",
  "fromMe": true,
  "timestamp": 123
}
'
{
  "matched": true,
  "decision": {},
  "evaluatedRules": [
    {
      "ruleId": "<string>",
      "ruleName": "<string>",
      "priority": 123,
      "matched": true,
      "failedConditions": [
        "<string>"
      ]
    }
  ]
}

Authorizations

apikey
string
header
required

Your authorization key header

Path Parameters

instance
string
required

Nome da instância

Body

application/json
content
string
required
remoteJid
string
required
fromMe
boolean
timestamp
integer

Response

200 - application/json

Resultado do teste com todas as regras avaliadas

matched
boolean
decision
object
evaluatedRules
object[]