workflows
POST
https://hermeticor.com /v1/workflow-custom-types Register an action type (runs a call template or code action) or a trigger type (fires on an event)
Request body
application/json
kindstringrequiredkeystringrequirednamestringrequireddescriptionstringfieldsFieldsItem6[]Show child parameters
keystringrequiredlabelstringrequiredtypestringrequiredbooleanoptionsstring[]webhookTemplateIdstringeventNamestring{
"kind": "action",
"key": "string",
"name": "string",
"description": "",
"fields": [],
"webhookTemplateId": "string",
"eventName": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/workflow-custom-types" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"action","key":"string","name":"string","description":"","fields":[],"webhookTemplateId":"string","eventName":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"kind": "action",
"key": "string",
"name": "string",
"description": "string",
"fields": [
{
"key": "string",
"label": "string",
"type": "string",
"required": false,
"options": [
"string"
]
}
],
"webhookTemplateId": "string",
"eventName": "string",
"archivedAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredkindstringrequiredkeystringrequirednamestringrequireddescriptionstringrequiredfieldsFieldsItem5[]requiredShow child parameters
keystringrequiredlabelstringrequiredtypestringrequiredrequiredbooleanrequiredoptionsstring[]webhookTemplateIdstringrequiredeventNamestringrequiredarchivedAtstringrequiredcreatedAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/workflow-custom-types/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/workflow-custom-types/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/workflow-custom-types/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/workflow-custom-types/{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/workflow-custom-types/{id} Rename, change fields, or archive (archived types leave the palette but keep running)
Parameters
idstringpathrequiredRequest body
application/json
namestringdescriptionstringfieldsFieldsItem6[]Show child parameters
keystringrequiredlabelstringrequiredtypestringrequiredbooleanoptionsstring[]webhookTemplateIdstringeventNamestringarchivedboolean{
"name": "string",
"description": "string",
"fields": [
{
"key": "string",
"label": "string",
"type": "string",
"required": false,
"options": [
"string"
]
}
],
"webhookTemplateId": "string",
"eventName": "string",
"archived": true
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/workflow-custom-types/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","fields":[{"key":"string","label":"string","type":"string","required":false,"options":["string"]}],"webhookTemplateId":"string","eventName":"string","archived":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated