push
POST
https://hermeticor.com /v1/push/live Start a live notification for one contact (order tracking, a match score...). Push consent applies to marketing ones; suppression always applies. Needs an idempotencyKey (body) or Idempotency-Key header
Request body
application/json
profileIdstringrequiredkindstringrequiredactivityTypestringrequiredattributesobjectcontentStateobjectalertobjectShow child parameters
titlestringrequiredbodystringrequiredstaleAtstringpurposestringconnectionIdstringidempotencyKeystring{
"profileId": "string",
"kind": "ios_live_activity",
"activityType": "string",
"attributes": {},
"contentState": {},
"alert": {
"title": "string",
"body": "string"
},
"staleAt": "2024-01-01T00:00:00Z",
"purpose": "transactional",
"connectionId": "string",
"idempotencyKey": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/push/live" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"profileId":"string","kind":"ios_live_activity","activityType":"string","attributes":{},"contentState":{},"alert":{"title":"string","body":"string"},"staleAt":"2024-01-01T00:00:00Z","purpose":"transactional","connectionId":"string","idempotencyKey":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"profileId": "string",
"kind": "ios_live_activity",
"activityType": "string",
"attributes": {},
"contentState": {},
"status": "active",
"purpose": "string",
"updates": 0,
"hasUpdateToken": true,
"lastError": "string",
"staleAt": "string",
"endedAt": "string",
"createdAt": "string",
"updatedAt": "string"
}Schema
idstringrequiredprofileIdstringrequiredkindstringrequiredactivityTypestringrequiredattributesobjectrequiredcontentStateobjectrequiredstatusstringrequiredpurposestringrequiredupdatesintegerrequiredhasUpdateTokenbooleanrequiredlastErrorstringrequiredstaleAtstringrequiredendedAtstringrequiredcreatedAtstringrequiredupdatedAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/push/live/{id} One live notification and its status
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/push/live/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
PATCH
https://hermeticor.com /v1/push/live/{id} Update what the live notification shows
Parameters
idstringpathrequiredRequest body
application/json
contentStateobjectrequiredalertobjectShow child parameters
titlestringrequiredbodystringrequiredstaleAtstringprioritystring{
"contentState": {},
"alert": {
"title": "string",
"body": "string"
},
"staleAt": "2024-01-01T00:00:00Z",
"priority": "normal"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/push/live/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contentState":{},"alert":{"title":"string","body":"string"},"staleAt":"2024-01-01T00:00:00Z","priority":"normal"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/push/live/{id}/end End the live notification (optionally with a final state and when to dismiss it)
Parameters
idstringpathrequiredRequest body
application/json
contentStateobjectalertobjectShow child parameters
titlestringrequiredbodystringrequireddismissAtstring{
"contentState": {},
"alert": {
"title": "string",
"body": "string"
},
"dismissAt": "2024-01-01T00:00:00Z"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/push/live/{id}/end" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contentState":{},"alert":{"title":"string","body":"string"},"dismissAt":"2024-01-01T00:00:00Z"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /client/push-live-tokens The app reports an ActivityKit push-to-start token or a running activity's update token
Parameters
company_idstringqueryRequest body
application/json
kindstringrequiredtokenstringrequiredactivityTypestringactivityIdstringenvironmentstringappIdstringprofileobjectrequiredShow child parameters
externalIdstringemailstringphoneNumberstringanonymousIdstring{
"kind": "push_to_start",
"token": "string",
"activityType": "string",
"activityId": "string",
"environment": "production",
"appId": "string",
"profile": {
"externalId": "string",
"email": "string",
"phoneNumber": "string",
"anonymousId": "string"
}
}Code samples
cURL
curl -X POST "https://hermeticor.com/client/push-live-tokens" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"push_to_start","token":"string","activityType":"string","activityId":"string","environment":"production","appId":"string","profile":{"externalId":"string","email":"string","phoneNumber":"string","anonymousId":"string"}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredUpdated