A customer message on any channel, as if it had just arrived (test keys only)
Use a test key (ib_test_…). Add comment: true on Instagram to simulate a comment instead of a DM. The message lands in a sandbox conversation — the same from continues it — and produces the same webhooks a real one would, marked livemode: false, for endpoints with test events on. Reply to it with POST /messages and the same test key.
Request
curl -X POST "https://api.iotabot.com/v1/test/inbound" \
-H "Authorization: Bearer $IOTABOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"channel": "whatsapp",
"from": "+15550000001",
"name": "Priya Sharma",
"text": "Hi, where is my order #1042?"
}'Response · 201
{
"data": {
"livemode": false,
"conversation": {
"id": "6a4bc1…",
"object": "conversation",
"channel": "whatsapp",
"status": "open",
"mode": "ai"
},
"message": {
"id": "6a4bc2…",
"object": "message",
"direction": "inbound",
"text": "Hi, where is my order #1042?",
"status": "received"
}
}
}Errors
test_key_requiredchannel_not_allowedwebsite_not_allowed
