sms
GET
https://hermeticor.com /v1/sms/configuration Code samples
cURL
curl -X GET "https://hermeticor.com/v1/sms/configuration" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"defaultSenderId": "string",
"sendingStartMin": 0,
"sendingEndMin": 0,
"timezone": "string",
"company": {
"name": "string",
"website": "string",
"address": "string",
"contactEmail": "string",
"phone": "string"
},
"templates": {
"help": "string",
"stop": "string",
"start": "string",
"optIn": "string"
},
"countryRules": [
{
"country": {},
"enabled": true,
"quietStartMin": 0,
"quietEndMin": 0,
"senderId": "string"
}
],
"configured": true,
"updatedAt": "2024-01-01T00:00:00Z"
}Schema
defaultSenderIdstringrequiredsendingStartMinintegerrequiredsendingEndMinintegerrequiredtimezonestringrequiredcompanyobjectrequiredShow child parameters
namestringwebsitestringaddressstringcontactEmailstringphonestringtemplatesobjectrequiredShow child parameters
helpstringrequiredstopstringrequiredstartstringrequiredoptInstringrequiredcountryRulesCountryRulesItem[]requiredShow child parameters
countryrequiredenabledbooleanrequiredquietStartMinintegerquietEndMinintegersenderIdstringconfiguredbooleanrequiredupdatedAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPUT
https://hermeticor.com /v1/sms/configuration Request body
application/json
defaultSenderIdstringsendingStartMinintegersendingEndMinintegertimezonestringcompanyobjectShow child parameters
namestringwebsitestringaddressstringcontactEmailstringphonestringtemplatesobjectShow child parameters
helpstringstopstringstartstringoptInstringcountryRulesobject[]Show child parameters
countrystringrequiredenabledbooleanquietStartMinintegerquietEndMinintegersenderIdstring{
"defaultSenderId": "string",
"sendingStartMin": 0,
"sendingEndMin": 0,
"timezone": "string",
"company": {
"name": "string",
"website": "string",
"address": "string",
"contactEmail": "string",
"phone": "string"
},
"templates": {
"help": "string",
"stop": "string",
"start": "string",
"optIn": "string"
},
"countryRules": [
{
"country": "string",
"enabled": true,
"quietStartMin": 0,
"quietEndMin": 0,
"senderId": "string"
}
]
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/sms/configuration" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"defaultSenderId":"string","sendingStartMin":0,"sendingEndMin":0,"timezone":"string","company":{"name":"string","website":"string","address":"string","contactEmail":"string","phone":"string"},"templates":{"help":"string","stop":"string","start":"string","optIn":"string"},"countryRules":[{"country":"string","enabled":true,"quietStartMin":0,"quietEndMin":0,"senderId":"string"}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/sms/links Parameters
limitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/sms/links" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"code": "string",
"url": "string",
"shortUrl": "string",
"profileId": "string",
"expiresAt": "2024-01-01T00:00:00Z",
"clickCount": 0,
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem122[]requiredShow child parameters
idstringrequiredcodestringrequiredurlstringrequiredshortUrlstringrequiredprofileIdstringrequiredexpiresAtstringrequiredclickCountintegerrequiredcreatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/sms/links Request body
application/json
urlstringrequiredprofileIdstringttlDaysinteger{
"url": "string",
"profileId": "string",
"ttlDays": 0
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/sms/links" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"string","profileId":"string","ttlDays":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"code": "string",
"url": "string",
"shortUrl": "string",
"profileId": "string",
"expiresAt": "2024-01-01T00:00:00Z",
"clickCount": 0,
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredcodestringrequiredurlstringrequiredshortUrlstringrequiredprofileIdstringrequiredexpiresAtstringrequiredclickCountintegerrequiredcreatedAtstringrequiredGET
https://hermeticor.com /s/{code} Short-link redirect (records a click)
Parameters
codestringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/s/{code}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
302 Default Response
"string"
GET
https://hermeticor.com /v1/sms/keywords 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/keywords" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"keyword": "string",
"replyText": "string",
"action": "none",
"tag": "string",
"active": true
}
],
"nextCursor": "string"
}Schema
itemsItemsItem123[]requiredShow child parameters
idstringrequiredkeywordstringrequiredreplyTextstringrequiredactionstringrequiredtagstringrequiredactivebooleanrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/sms/keywords Request body
application/json
keywordstringrequiredreplyTextstringactionstringtagstringactiveboolean{
"keyword": "string",
"replyText": "string",
"action": "none",
"tag": "string",
"active": true
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/sms/keywords" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword":"string","replyText":"string","action":"none","tag":"string","active":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"keyword": "string",
"replyText": "string",
"action": "none",
"tag": "string",
"active": true
}Schema
idstringrequiredkeywordstringrequiredreplyTextstringrequiredactionstringrequiredtagstringrequiredactivebooleanrequiredPUT
https://hermeticor.com /v1/sms/keywords/{id} Parameters
idstringpathrequiredRequest body
application/json
keywordstringrequiredreplyTextstringactionstringtagstringactiveboolean{
"keyword": "string",
"replyText": "string",
"action": "none",
"tag": "string",
"active": true
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/sms/keywords/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword":"string","replyText":"string","action":"none","tag":"string","active":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/sms/keywords/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/sms/keywords/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredUpdated