webhooks
DELETE
https://hermeticor.com /v1/webhook-templates/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/webhook-templates/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPATCH
https://hermeticor.com /v1/webhook-templates/{id} Parameters
idstringpathrequiredRequest body
application/json
namestringurlstringmethodstringheadersobjectbodyobjectauthHeadersAuthHeadersItem[]Show child parameters
headerstringrequiredsecretNamestringrequiredprefixstringdescriptionstringinputsInputsItem2[]Show child parameters
keystringrequiredlabelstringrequiredrequiredbooleantypestringoptionsstring[]optionsUrlstringpropertystringlabelsobjectoutputsOutputsItem2[]Show child parameters
pathstringrequiredfieldstringrequiredlabelstringtypestringlabelsobjectkindstringstatusstringlabelsobjectexecutionRulesExecutionRulesItem2[]Show child parameters
pathstringrequiredopstringrequiredvaluestatestringrequiredmessagestringrequiredcodestringpreActionCodestringallowedHostsstring[]secretNamesstring[]timeoutMsintegermemoryMbinteger{
"name": "string",
"url": "string",
"method": "POST",
"headers": {},
"body": {},
"authHeaders": [
{
"header": "string",
"secretName": "string",
"prefix": "string"
}
],
"description": "string",
"inputs": [
{
"key": "string",
"label": "string",
"required": false,
"type": "string",
"options": [
"string"
],
"optionsUrl": "string",
"property": "string",
"labels": {}
}
],
"outputs": [
{
"path": "string",
"field": "string",
"label": "string",
"type": "string",
"labels": {}
}
],
"kind": "webhook",
"status": "draft",
"labels": {},
"executionRules": [
{
"path": "string",
"op": "eq",
"value": {},
"state": "SUCCESS",
"message": "string"
}
],
"code": "string",
"preActionCode": "string",
"allowedHosts": [
"string"
],
"secretNames": [
"string"
],
"timeoutMs": 0,
"memoryMb": 0
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/webhook-templates/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","url":"string","method":"POST","headers":{},"body":{},"authHeaders":[{"header":"string","secretName":"string","prefix":"string"}],"description":"string","inputs":[{"key":"string","label":"string","required":false,"type":"string","options":["string"],"optionsUrl":"string","property":"string","labels":{}}],"outputs":[{"path":"string","field":"string","label":"string","type":"string","labels":{}}],"kind":"webhook","status":"draft","labels":{},"executionRules":[{"path":"string","op":"eq","value":{},"state":"SUCCESS","message":"string"}],"code":"string","preActionCode":"string","allowedHosts":["string"],"secretNames":["string"],"timeoutMs":0,"memoryMb":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"name": "string",
"url": "",
"method": "POST",
"headers": {},
"body": null,
"authHeaders": [],
"description": "",
"inputs": [],
"outputs": [],
"kind": "webhook",
"status": "published",
"labels": {},
"executionRules": [],
"code": null,
"preActionCode": null,
"allowedHosts": [],
"secretNames": [],
"timeoutMs": 5000,
"memoryMb": 64,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequirednamestringrequiredurlstringrequiredmethodstringrequiredheadersobjectrequiredbodyobjectrequiredauthHeadersAuthHeadersItem2[]requiredShow child parameters
headerstringrequiredsecretNamestringrequiredprefixstringdescriptionstringrequiredinputsInputsItem[]requiredShow child parameters
keystringrequiredlabelstringrequiredrequiredbooleanrequiredtypestringrequiredoptionsstring[]optionsUrlstringpropertystringlabelsobjectoutputsOutputsItem[]requiredShow child parameters
pathstringrequiredfieldstringrequiredlabelstringtypestringlabelsobjectkindstringrequiredstatusstringrequiredlabelsobjectrequiredexecutionRulesExecutionRulesItem[]requiredShow child parameters
pathstringrequiredopstringrequiredvaluestatestringrequiredmessagestringrequiredcodestringrequiredpreActionCodestringrequiredallowedHostsstring[]requiredsecretNamesstring[]requiredtimeoutMsintegerrequiredmemoryMbintegerrequiredcreatedAtstringrequiredupdatedAtstringrequiredGET
https://hermeticor.com /v1/webhook-templates/{id}/inputs/{key}/options Dropdown values for an enum input (fixed options, or loaded from its options URL)
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageidstringpathrequiredkeystringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/webhook-templates/{id}/inputs/{key}/options" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"label": "string",
"value": "string"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
labelstringrequiredvaluestringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/webhook-templates/test Make a real test call (saved template or ad-hoc), SSRF-guarded, never retried
Request body
application/json
templateIdstringurlstringmethodstringheadersobjectbodyobjectauthHeadersAuthHeadersItem[]Show child parameters
headerstringrequiredsecretNamestringrequiredprefixstring{
"templateId": "string",
"url": "string",
"method": "POST",
"headers": {},
"body": {},
"authHeaders": []
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/webhook-templates/test" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"templateId":"string","url":"string","method":"POST","headers":{},"body":{},"authHeaders":[]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true,
"status": 0,
"error": "string",
"blocked": true,
"response": {}
}Schema
okbooleanrequiredstatusintegerrequirederrorstringrequiredblockedbooleanrequiredresponsePOST
https://hermeticor.com /v1/webhooks/journal/exports Start a background export of the journal (optionally as one endpoint would receive it); poll GET /v1/webhooks/journal/exports/:id
Request body
application/json
afterintegerendpointIdstringtopicstring{
"after": 0,
"endpointId": "string",
"topic": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/webhooks/journal/exports" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"after":0,"endpointId":"string","topic":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"id": "string",
"kind": "bulk",
"op": "string",
"status": "queued",
"progress": {
"total": 0,
"processed": 0,
"failed": 0
},
"error": "string",
"downloadUrl": "string",
"failures": [
{
"profileId": "string",
"message": "string"
}
],
"createdAt": "2024-01-01T00:00:00Z",
"finishedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredkindstringrequiredopstringrequiredstatusstringrequiredprogressobjectrequiredShow child parameters
totalintegerrequiredprocessedintegerrequiredfailedintegerrequirederrorstringrequireddownloadUrlstringfailuresFailuresItem[]Show child parameters
profileIdstringrequiredmessagestringrequiredcreatedAtstringrequiredfinishedAtstringrequiredUpdated