POST
https://hermeticor.com /v1/whatsapp/flows/{id}/run Send a published Flow to one contact. WhatsApp consent (marketing) and suppression apply; outside the 24-hour window the flow template is used. Needs an idempotency key
Parameters
idstringpathrequiredRequest body
application/json
profileIdstringrequiredpurposestringidempotencyKeystring{
"profileId": "string",
"purpose": "marketing",
"idempotencyKey": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/whatsapp/flows/{id}/run" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"profileId":"string","purpose":"marketing","idempotencyKey":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"id": "string",
"flowId": "string",
"profileId": "string",
"enrollmentId": "string",
"mode": "interactive",
"status": "sent",
"reason": "string",
"response": {},
"completedAt": "string",
"createdAt": "string"
}Schema
idstringrequiredflowIdstringrequiredprofileIdstringrequiredenrollmentIdstringrequiredmodestringrequiredstatusstringrequiredreasonstringrequiredresponseobjectrequiredcompletedAtstringrequiredcreatedAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/whatsapp/flows/{id}/runs Who was sent the Flow and what they answered
Parameters
profileIdstringquerylimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/whatsapp/flows/{id}/runs" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"flowId": "string",
"profileId": "string",
"enrollmentId": "string",
"mode": "interactive",
"status": "sent",
"reason": "string",
"response": {},
"completedAt": "string",
"createdAt": "string"
}
],
"nextCursor": "string"
}Schema
itemsPostV1WhatsappFlowsByIdRunResponse[]requiredShow child parameters
idstringrequiredflowIdstringrequiredprofileIdstringrequiredenrollmentIdstringrequiredmodestringrequiredstatusstringrequiredreasonstringrequiredresponseobjectrequiredcompletedAtstringrequiredcreatedAtstringrequirednextCursorstringrequiredUpdated