GET
https://hermeticor.com /v1/whatsapp/window/{id} Is the 24-hour session window open for this contact (can free text be sent)?
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/whatsapp/window/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"open": true,
"closesAt": "2024-01-01T00:00:00Z"
}Schema
openbooleanrequiredclosesAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/whatsapp/send Send one WhatsApp message: an approved template, or free text inside the 24-hour window. Consent, suppression and the window are enforced; needs an idempotencyKey (body) or Idempotency-Key header
Request body
application/json
profileIdstringrequiredconnectionIdstringtemplateIdstringtextstringidempotencyKeystring{
"profileId": "string",
"connectionId": "string",
"templateId": "string",
"text": "string",
"idempotencyKey": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/whatsapp/send" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"profileId":"string","connectionId":"string","templateId":"string","text":"string","idempotencyKey":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"jobId": "string",
"status": "queued",
"reason": "string"
}Schema
jobIdstringrequiredstatusstringrequiredreasonstringGET
https://hermeticor.com /v1/whatsapp/connections/{connectionId}/account Business and phone-number status, messaging-limit tier and the raw quality rating, read live from Meta
Parameters
connectionIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/whatsapp/connections/{connectionId}/account" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"displayPhoneNumber": "string",
"verifiedName": "string",
"qualityRating": "string",
"messagingLimitTier": "string",
"phoneStatus": "string",
"nameStatus": "string",
"accountReviewStatus": "string",
"businessVerificationStatus": "string"
}Schema
displayPhoneNumberstringrequiredverifiedNamestringrequiredqualityRatingstringrequiredmessagingLimitTierstringrequiredphoneStatusstringrequirednameStatusstringrequiredaccountReviewStatusstringrequiredbusinessVerificationStatusstringrequiredGET
https://hermeticor.com /v1/whatsapp/flows WhatsApp Flows
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/whatsapp/flows" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"connectionId": "string",
"name": "string",
"categories": [
"OTHER"
],
"flowJson": {},
"firstScreen": "string",
"cta": "string",
"body": "string",
"header": "string",
"templateName": "string",
"templateLanguage": "string",
"id": "string",
"externalId": "string",
"status": "draft",
"validationErrors": [
"string"
],
"lastError": "string",
"createdAt": "string"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem136[]requiredShow child parameters
connectionIdstringrequirednamestringrequiredcategoriesstring[]requiredflowJsonobjectrequiredfirstScreenstringrequiredctastringrequiredbodystringrequiredheaderstringrequiredtemplateNamestringrequiredtemplateLanguagestringrequiredidstringrequiredexternalIdstringrequiredstatusstringrequiredvalidationErrorsstring[]requiredlastErrorstringrequiredcreatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/whatsapp/flows Create a Flow (draft) from its Flow JSON
Request body
application/json
connectionIdstringrequirednamestringrequiredcategoriesstring[]flowJsonobjectrequiredfirstScreenstringrequiredctastringrequiredbodystringrequiredheaderstringtemplateNamestringtemplateLanguagestring{
"connectionId": "string",
"name": "string",
"categories": [
"OTHER"
],
"flowJson": {},
"firstScreen": "string",
"cta": "string",
"body": "string",
"header": "string",
"templateName": "string",
"templateLanguage": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/whatsapp/flows" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"connectionId":"string","name":"string","categories":["OTHER"],"flowJson":{},"firstScreen":"string","cta":"string","body":"string","header":"string","templateName":"string","templateLanguage":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"connectionId": "string",
"name": "string",
"categories": [
"OTHER"
],
"flowJson": {},
"firstScreen": "string",
"cta": "string",
"body": "string",
"header": "string",
"templateName": "string",
"templateLanguage": "string",
"id": "string",
"externalId": "string",
"status": "draft",
"validationErrors": [
"string"
],
"lastError": "string",
"createdAt": "string"
}Schema
connectionIdstringrequirednamestringrequiredcategoriesstring[]requiredflowJsonobjectrequiredfirstScreenstringrequiredctastringrequiredbodystringrequiredheaderstringrequiredtemplateNamestringrequiredtemplateLanguagestringrequiredidstringrequiredexternalIdstringrequiredstatusstringrequiredvalidationErrorsstring[]requiredlastErrorstringrequiredcreatedAtstringrequiredGET
https://hermeticor.com /v1/whatsapp/flows/{id} One Flow
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/whatsapp/flows/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
PATCH
https://hermeticor.com /v1/whatsapp/flows/{id} Edit a Flow (its JSON only before publishing)
Parameters
idstringpathrequiredRequest body
application/json
connectionIdstringnamestringcategoriesstring[]flowJsonobjectfirstScreenstringctastringbodystringheaderstringtemplateNamestringtemplateLanguagestring{
"connectionId": "string",
"name": "string",
"categories": [
"SIGN_UP"
],
"flowJson": {},
"firstScreen": "string",
"cta": "string",
"body": "string",
"header": "string",
"templateName": "string",
"templateLanguage": "string"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/whatsapp/flows/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"connectionId":"string","name":"string","categories":["SIGN_UP"],"flowJson":{},"firstScreen":"string","cta":"string","body":"string","header":"string","templateName":"string","templateLanguage":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/whatsapp/flows/{id}/publish Upload the Flow JSON to Meta and publish it (validation errors are returned on the flow)
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/whatsapp/flows/{id}/publish" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/whatsapp/flows/{id}/deprecate Deprecate a published Flow at Meta (it can no longer be sent)
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/whatsapp/flows/{id}/deprecate" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated