curl --request POST \
--url https://api.zapthinker.com/router/create/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"name": "<string>",
"conditions": {
"textMatch": {
"type": "contains",
"value": "<string>",
"caseInsensitive": true
},
"timeRange": {
"start": "<string>",
"end": "<string>",
"timezone": "<string>"
},
"daysOfWeek": {
"days": [
3
]
},
"jidType": "contact",
"fromMe": true,
"triggerOverride": true,
"specificJids": [
"<string>"
],
"excludeJids": [
"<string>"
]
},
"description": "<string>",
"enabled": true,
"priority": 500,
"targetBotId": "<string>",
"fallbackChain": [
"<string>"
]
}
'{}Cria uma nova regra de roteamento para direcionar mensagens a bots específicos com base em condições.
curl --request POST \
--url https://api.zapthinker.com/router/create/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"name": "<string>",
"conditions": {
"textMatch": {
"type": "contains",
"value": "<string>",
"caseInsensitive": true
},
"timeRange": {
"start": "<string>",
"end": "<string>",
"timezone": "<string>"
},
"daysOfWeek": {
"days": [
3
]
},
"jidType": "contact",
"fromMe": true,
"triggerOverride": true,
"specificJids": [
"<string>"
],
"excludeJids": [
"<string>"
]
},
"description": "<string>",
"enabled": true,
"priority": 500,
"targetBotId": "<string>",
"fallbackChain": [
"<string>"
]
}
'{}Documentation Index
Fetch the complete documentation index at: https://docs.zapthinker.com/llms.txt
Use this file to discover all available pages before exploring further.
Your authorization key header
Nome da instância
Nome da regra
Condições de roteamento
Show child attributes
Prioridade (maior = avaliada primeiro)
0 <= x <= 1000ID do bot alvo
Chain de fallback de integrações
Regra criada com sucesso
The response is of type object.