sms
GET
https://hermeticor.com /v1/sms/conversations Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/sms/conversations" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"profileId": "string",
"address": "string",
"connectionId": "string",
"lastText": "string",
"lastAt": "2024-01-01T00:00:00Z",
"unread": 0,
"assignedUserId": "string",
"inboundId": "string"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
profileIdstringrequiredaddressstringrequiredconnectionIdstringrequiredlastTextstringrequiredlastAtstringrequiredunreadintegerrequiredassignedUserIdstringrequiredinboundIdstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/sms/conversations/{profileId} Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageprofileIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/sms/conversations/{profileId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"kind": "received",
"id": "string",
"at": "2024-01-01T00:00:00Z",
"text": "string",
"status": "string"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
kindstringrequiredidstringrequiredatstringrequiredtextstringrequiredstatusstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/sms/conversations/{profileId}/read Parameters
profileIdstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/sms/conversations/{profileId}/read" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPOST
https://hermeticor.com /v1/sms/conversations/{profileId}/reply Parameters
profileIdstringpathrequiredRequest body
application/json
connectionIdstringrequiredbodystringrequiredidempotencyKeystringrequired{
"connectionId": "string",
"body": "string",
"idempotencyKey": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/sms/conversations/{profileId}/reply" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"connectionId":"string","body":"string","idempotencyKey":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"jobId": "string",
"status": "queued",
"reason": "string"
}Schema
jobIdstringrequiredstatusstringrequiredreasonstringGET
https://hermeticor.com /v1/sms/canned-replies Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/sms/canned-replies" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"title": "string",
"body": "string"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem124[]requiredShow child parameters
idstringrequiredtitlestringrequiredbodystringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/sms/canned-replies Request body
application/json
titlestringrequiredbodystringrequired{
"title": "string",
"body": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/sms/canned-replies" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"string","body":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"title": "string",
"body": "string"
}Schema
idstringrequiredtitlestringrequiredbodystringrequiredDELETE
https://hermeticor.com /v1/sms/canned-replies/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/sms/canned-replies/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/sms/credits Text messages sent this month against the plan allowance. Carrier balances stay with the carrier.
Code samples
cURL
curl -X GET "https://hermeticor.com/v1/sms/credits" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"period": "string",
"used": 0,
"limit": 0,
"remaining": 0
}Schema
periodstringrequiredusednumberrequiredlimitnumberrequiredremainingnumberrequiredPOST
https://hermeticor.com /v1/sms/ai-drafts Write a text message from a brief; a draft for a person to review, never sent
Request body
application/json
briefstringrequiredtonestring{
"brief": "string",
"tone": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/sms/ai-drafts" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"brief":"string","tone":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"brief": "string",
"tone": "string",
"channel": "string",
"text": "string",
"model": "string",
"draft": true
}Schema
idstringrequiredbriefstringrequiredtonestringrequiredchannelstringrequiredtextstringrequiredmodelstringrequireddraftbooleanrequiredGET
https://hermeticor.com /v1/sms/ai-drafts/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/sms/ai-drafts/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
PUT
https://hermeticor.com /v1/sms/ai-drafts/{id} Write it again from a new brief or tone, replacing this draft
Parameters
idstringpathrequiredRequest body
application/json
briefstringrequiredtonestring{
"brief": "string",
"tone": "string"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/sms/ai-drafts/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"brief":"string","tone":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated