ai-agents
DELETE
https://hermeticor.com /v1/ai-agents/{id}/guidances/{guidanceId} Parameters
idstringpathrequiredguidanceIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/ai-agents/{id}/guidances/{guidanceId}" \
-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/ai-agents/{id}/guidances/{guidanceId} Parameters
idstringpathrequiredguidanceIdstringpathrequiredRequest body
application/json
titlestringbodystringpositioninteger{
"title": "string",
"body": "string",
"position": 0
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/ai-agents/{id}/guidances/{guidanceId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"string","body":"string","position":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"agentId": "string",
"title": "string",
"body": "string",
"position": 0,
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredagentIdstringrequiredtitlestringrequiredbodystringrequiredpositionintegerrequiredcreatedAtstringrequiredGET
https://hermeticor.com /v1/ai-agents/items Parameters
agentIdstringquerystatusstringqueryprofileIdstringquerylimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/ai-agents/items" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"agentId": "string",
"agentKind": "inbox_manager",
"kind": "reply",
"status": "pending",
"profileId": "string",
"profileEmail": "string",
"refId": "string",
"subject": "string",
"body": "string",
"reason": "string",
"research": "string",
"jobId": "string",
"outcome": "string",
"autoSent": true,
"decidedBy": "string",
"decidedAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem212[]requiredShow child parameters
idstringrequiredagentIdstringrequiredagentKindstringrequiredkindstringrequiredstatusstringrequiredprofileIdstringrequiredprofileEmailstringrequiredrefIdstringrequiredsubjectstringrequiredbodystringrequiredreasonstringrequiredresearchstringrequiredjobIdstringrequiredoutcomestringrequiredautoSentbooleanrequireddecidedBystringrequireddecidedAtstringrequiredcreatedAtstringrequirednextCursorstringrequiredGET
https://hermeticor.com /v1/ai-agents/items/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/ai-agents/items/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"agentId": "string",
"agentKind": "inbox_manager",
"kind": "reply",
"status": "pending",
"profileId": "string",
"profileEmail": "string",
"refId": "string",
"subject": "string",
"body": "string",
"reason": "string",
"research": "string",
"jobId": "string",
"outcome": "string",
"autoSent": true,
"decidedBy": "string",
"decidedAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredagentIdstringrequiredagentKindstringrequiredkindstringrequiredstatusstringrequiredprofileIdstringrequiredprofileEmailstringrequiredrefIdstringrequiredsubjectstringrequiredbodystringrequiredreasonstringrequiredresearchstringrequiredjobIdstringrequiredoutcomestringrequiredautoSentbooleanrequireddecidedBystringrequireddecidedAtstringrequiredcreatedAtstringrequiredPATCH
https://hermeticor.com /v1/ai-agents/items/{id} Edit a pending draft before approving it
Parameters
idstringpathrequiredRequest body
application/json
subjectstringbodystring{
"subject": "string",
"body": "string"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/ai-agents/items/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"subject":"string","body":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/ai-agents/items/{id}/decide Approve (sends through consent and suppression; a blocked recipient ends as blocked) or reject (nothing is sent)
Parameters
idstringpathrequiredRequest body
application/json
actionstringrequiredsubjectstringbodystring{
"action": "approve",
"subject": "string",
"body": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/ai-agents/items/{id}/decide" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"approve","subject":"string","body":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/ai-agents/items/bulk-decide Request body
application/json
idsstring[]requiredactionstringrequired{
"ids": [
"string"
],
"action": "approve"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/ai-agents/items/bulk-decide" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":["string"],"action":"approve"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"done": 0,
"failed": 0
}Schema
doneintegerrequiredfailedintegerrequiredPOST
https://hermeticor.com /v1/ai-agents/items/bulk-delete Delete items from the feed; a deleted draft is never sent
Request body
application/json
idsstring[]required{
"ids": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/ai-agents/items/bulk-delete" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/ai-agents/{id}/analytics/summary Parameters
daysintegerqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/ai-agents/{id}/analytics/summary" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"total": 0,
"byStatus": {},
"approvalRate": 0,
"autoSent": 0,
"byDay": [
{
"day": "string",
"drafted": 0,
"sent": 0,
"rejected": 0
}
]
}Schema
totalintegerrequiredbyStatusobjectrequiredapprovalRatenumberrequiredautoSentintegerrequiredbyDayobject[]requiredShow child parameters
daystringrequireddraftedintegerrequiredsentintegerrequiredrejectedintegerrequiredUpdated