destinations
GET
https://hermeticor.com /v1/destinations Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/destinations" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"kind": "webhook",
"name": "string",
"config": {},
"mapping": {
"identify": true,
"track": true,
"events": [
"string"
],
"rename": {},
"denyProperties": [
"string"
],
"traits": [
"string"
]
},
"enabled": true,
"sentCount": 0,
"failedCount": 0,
"droppedCount": 0,
"lastSentAt": "2024-01-01T00:00:00Z",
"lastError": "string",
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem243[]requiredShow child parameters
idstringrequiredkindstringrequirednamestringrequiredconfigobjectrequiredmappingobjectrequiredShow child parameters
identifybooleanrequiredtrackbooleanrequiredeventsstring[]requiredrenameobjectrequireddenyPropertiesstring[]requiredtraitsstring[]requiredenabledbooleanrequiredsentCountintegerrequiredfailedCountintegerrequireddroppedCountintegerrequiredlastSentAtstringrequiredlastErrorstringrequiredcreatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/destinations Add a destination; profiles that opted out of tracking are never forwarded
Request body
application/json
kindstringrequirednamestringrequiredconfigobjectcredentialsobjectrequiredmappingobjectShow child parameters
identifybooleantrackbooleaneventsstring[]renameobjectdenyPropertiesstring[]traitsstring[]{
"kind": "webhook",
"name": "string",
"config": {},
"credentials": {},
"mapping": {
"identify": true,
"track": true,
"events": [
"string"
],
"rename": {},
"denyProperties": [
"string"
],
"traits": [
"string"
]
}
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/destinations" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"webhook","name":"string","config":{},"credentials":{},"mapping":{"identify":true,"track":true,"events":["string"],"rename":{},"denyProperties":["string"],"traits":["string"]}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"kind": "webhook",
"name": "string",
"config": {},
"mapping": {
"identify": true,
"track": true,
"events": [
"string"
],
"rename": {},
"denyProperties": [
"string"
],
"traits": [
"string"
]
},
"enabled": true,
"sentCount": 0,
"failedCount": 0,
"droppedCount": 0,
"lastSentAt": "2024-01-01T00:00:00Z",
"lastError": "string",
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredkindstringrequirednamestringrequiredconfigobjectrequiredmappingobjectrequiredShow child parameters
identifybooleanrequiredtrackbooleanrequiredeventsstring[]requiredrenameobjectrequireddenyPropertiesstring[]requiredtraitsstring[]requiredenabledbooleanrequiredsentCountintegerrequiredfailedCountintegerrequireddroppedCountintegerrequiredlastSentAtstringrequiredlastErrorstringrequiredcreatedAtstringrequiredGET
https://hermeticor.com /v1/destinations/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/destinations/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/destinations/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/destinations/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPATCH
https://hermeticor.com /v1/destinations/{id} Parameters
idstringpathrequiredRequest body
application/json
namestringenabledbooleanconfigobjectcredentialsobjectmappingobjectShow child parameters
identifybooleantrackbooleaneventsstring[]renameobjectdenyPropertiesstring[]traitsstring[]{
"name": "string",
"enabled": true,
"config": {},
"credentials": {},
"mapping": {
"identify": true,
"track": true,
"events": [
"string"
],
"rename": {},
"denyProperties": [
"string"
],
"traits": [
"string"
]
}
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/destinations/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","enabled":true,"config":{},"credentials":{},"mapping":{"identify":true,"track":true,"events":["string"],"rename":{},"denyProperties":["string"],"traits":["string"]}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/destinations/{id}/test Send one test event to the destination
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/destinations/{id}/test" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true,
"message": "string"
}Schema
okbooleanrequiredmessagestringrequiredGET
https://hermeticor.com /v1/destinations/{id}/deliveries Recent deliveries with their status and last error
Parameters
limitintegerquerycursorstringqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/destinations/{id}/deliveries" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"key": "string",
"status": "pending",
"attempts": 0,
"lastError": "string",
"sentAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z",
"type": "string",
"event": "string"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredkeystringrequiredstatusstringrequiredattemptsintegerrequiredlastErrorstringrequiredsentAtstringrequiredcreatedAtstringrequiredtypestringrequiredeventstringrequirednextCursorstringrequiredUpdated