profiles
PATCH
https://hermeticor.com /v1/profiles/{id} Update a contact; `tags` adds tags and `subscriptions` sets email / SMS marketing status through the consent ledger
Parameters
idstringpathrequiredRequest body
application/json
firstNamestringlastNamestringtimezonestringlocalestringcountrystringcitystringregionstringlifecycleStagestringownerUserIdstringattributesobjectsubscriptionsobjectShow child parameters
emailstringsmsstringlegalBasisstringtagsstring[]{
"firstName": "string",
"lastName": "string",
"timezone": "string",
"locale": "string",
"country": "string",
"city": "string",
"region": "string",
"lifecycleStage": "string",
"ownerUserId": "string",
"attributes": {},
"subscriptions": {
"email": "subscribed",
"sms": "subscribed",
"legalBasis": "consent"
},
"tags": [
"string"
]
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/profiles/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"firstName":"string","lastName":"string","timezone":"string","locale":"string","country":"string","city":"string","region":"string","lifecycleStage":"string","ownerUserId":"string","attributes":{},"subscriptions":{"email":"subscribed","sms":"subscribed","legalBasis":"consent"},"tags":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"emailPrimary": "string",
"phonePrimary": "string",
"firstName": "string",
"lastName": "string",
"timezone": "string",
"locale": "string",
"country": "string",
"city": "string",
"region": "string",
"source": "string",
"lifecycleStage": "string",
"ownerUserId": "string",
"attributes": {},
"tags": [
"string"
],
"mergedIntoId": "string",
"archivedAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z",
"consentIgnored": [
"email"
]
}Schema
idstringrequiredemailPrimarystringrequiredphonePrimarystringrequiredfirstNamestringrequiredlastNamestringrequiredtimezonestringrequiredlocalestringrequiredcountrystringrequiredcitystringrequiredregionstringrequiredsourcestringrequiredlifecycleStagestringrequiredownerUserIdstringrequiredattributesobjectrequiredtagsstring[]requiredmergedIntoIdstringrequiredarchivedAtstringcreatedAtstringrequiredupdatedAtstringrequiredconsentIgnoredstring[]4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/profiles/{id}/archive Archive a contact: kept with history, never sent to or counted until restored
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/profiles/{id}/archive" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/profiles/{id}/restore Restore an archived contact
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/profiles/{id}/restore" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/profiles/{id}/merge Parameters
idstringpathrequiredRequest body
application/json
mergedIdstringrequired{
"mergedId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/profiles/{id}/merge" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mergedId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/profiles/{id}/export Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/profiles/{id}/export" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
{}GET
https://hermeticor.com /v1/profiles/{id}/activity Timeline, newest first; filter by activity type and by event / ref name
Parameters
limitintegerquerycursorstringquerytypestringquerynamestringqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/profiles/{id}/activity" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"profileId": "string",
"kind": "string",
"refType": "string",
"refId": "string",
"summary": "string",
"data": {},
"at": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem3[]requiredShow child parameters
idstringrequiredprofileIdstringrequiredkindstringrequiredrefTypestringrequiredrefIdstringrequiredsummarystringrequireddatarequiredatstringrequirednextCursorstringrequiredGET
https://hermeticor.com /v1/profiles/{id}/notes Parameters
limitintegerquerycursorstringqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/profiles/{id}/notes" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"profileId": "string",
"authorId": "string",
"body": "string",
"kind": "note",
"at": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem4[]requiredShow child parameters
idstringrequiredprofileIdstringrequiredauthorIdstringrequiredbodystringrequiredkindstringrequiredatstringrequiredupdatedAtstringnextCursorstringrequiredPOST
https://hermeticor.com /v1/profiles/{id}/notes Parameters
idstringpathrequiredRequest body
application/json
bodystringrequiredkindstring{
"body": "string",
"kind": "note"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/profiles/{id}/notes" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body":"string","kind":"note"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"profileId": "string",
"authorId": "string",
"body": "string",
"kind": "note",
"at": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredprofileIdstringrequiredauthorIdstringrequiredbodystringrequiredkindstringrequiredatstringrequiredupdatedAtstringGET
https://hermeticor.com /v1/profiles/{id}/tags Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/profiles/{id}/tags" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"tags": [
"string"
]
}Schema
tagsstring[]requiredUpdated