ai
GET
https://hermeticor.com /v1/ai/settings Code samples
cURL
curl -X GET "https://hermeticor.com/v1/ai/settings" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"enabled": true,
"model": "string",
"enabledAt": "2024-01-01T00:00:00Z",
"configured": true,
"brandVoice": "string"
}Schema
enabledbooleanrequiredmodelstringrequiredenabledAtstringrequiredconfiguredbooleanrequiredbrandVoicestringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPUT
https://hermeticor.com /v1/ai/settings Workspace opt-in / kill switch for AI assist (off by default)
Request body
application/json
enabledbooleanrequiredacknowledgeThirdPartyProcessingbooleanmodelstring{
"enabled": true,
"acknowledgeThirdPartyProcessing": true,
"model": "string"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/ai/settings" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"enabled":true,"acknowledgeThirdPartyProcessing":true,"model":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/ai/usage Parameters
fromstringqueryrequiredtostringqueryrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/ai/usage?from=<from>&to=<to>" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"requests": 0,
"inputTokens": 0,
"outputTokens": 0,
"byFeature": {}
}Schema
requestsintegerrequiredinputTokensintegerrequiredoutputTokensintegerrequiredbyFeatureobjectrequiredPOST
https://hermeticor.com /v1/ai/subject-suggestions Request body
application/json
bodystringrequiredcountintegertonestring{
"body": "string",
"count": 5,
"tone": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/ai/subject-suggestions" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body":"string","count":5,"tone":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"suggestions": [
"string"
],
"draft": true,
"model": "string"
}Schema
suggestionsstring[]requireddraftbooleanrequiredmodelstringrequiredPOST
https://hermeticor.com /v1/ai/rewrite-tone Request body
application/json
textstringrequiredtonestringrequired{
"text": "string",
"tone": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/ai/rewrite-tone" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"string","tone":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"text": "string",
"draft": true,
"model": "string"
}Schema
textstringrequireddraftbooleanrequiredmodelstringrequiredPOST
https://hermeticor.com /v1/ai/translate Request body
application/json
textstringrequiredtargetLanguagestringrequired{
"text": "string",
"targetLanguage": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/ai/translate" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"string","targetLanguage":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/ai/body-from-brief Request body
application/json
briefstringrequiredtonestringchannelstring{
"brief": "string",
"tone": "string",
"channel": "email"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/ai/body-from-brief" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"brief":"string","tone":"string","channel":"email"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
PUT
https://hermeticor.com /v1/ai/brand-voice Tone/style guide applied to every AI draft
Request body
application/json
brandVoicestringrequired{
"brandVoice": "string"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/ai/brand-voice" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"brandVoice":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/ai/segment-from-text Draft a segment definition from a description; validated, never saved (create it through /v1/segments)
Request body
application/json
descriptionstringrequired{
"description": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/ai/segment-from-text" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"description":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"definition": {},
"explanation": [
"string"
],
"draft": true,
"model": "string"
}Schema
definitionrequiredexplanationstring[]requireddraftbooleanrequiredmodelstringrequiredPOST
https://hermeticor.com /v1/ai/schedule-from-text Turn “next Tuesday at 9am” into one concrete send time for a preview; never schedules anything (use /v1/campaigns/{id}/schedule)
Request body
application/json
textstringrequiredtimezonestringrequired{
"text": "string",
"timezone": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/ai/schedule-from-text" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"string","timezone":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"localTime": "string",
"iso": "string",
"label": "string",
"timezone": "string",
"draft": true,
"model": "string"
}Schema
localTimestringrequiredisostringrequiredlabelstringrequiredtimezonestringrequireddraftbooleanrequiredmodelstringrequiredPOST
https://hermeticor.com /v1/ai/first-line Request body
application/json
prospectobjectrequiredShow child parameters
firstNamestringcompanystringtitlestringresearchstringrequiredofferstring{
"prospect": {
"firstName": "string",
"company": "string",
"title": "string"
},
"research": "string",
"offer": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/ai/first-line" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prospect":{"firstName":"string","company":"string","title":"string"},"research":"string","offer":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated