imports
POST
https://hermeticor.com /v1/imports/{id}/cancel Stop an import that has not finished (a running one stops at its next batch)
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/imports/{id}/cancel" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"filename": "string",
"status": "uploaded",
"mapping": {},
"listId": "string",
"tags": [
"string"
],
"consentAssertion": {
"channel": "email",
"purpose": "marketing",
"sourceText": "string",
"attestedBy": "string"
},
"verifyEmail": true,
"listIds": [],
"updateExisting": true,
"topicId": null,
"stats": {
"total": 0,
"created": 0,
"updated": 0,
"errors": 0,
"suppressed": 0,
"consentSkipped": 0,
"consentGranted": 0,
"skipped": 0,
"blocked": 0,
"topicSubscribed": 0,
"topicUnsubscribed": 0
},
"progress": {
"rowsRead": 0,
"processed": 0,
"errors": 0
},
"error": "string",
"errorsUrl": "string",
"createdAt": "2024-01-01T00:00:00Z",
"finishedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredfilenamestringrequiredstatusstringrequiredmappingobjectrequiredlistIdstringrequiredtagsstring[]requiredconsentAssertionobjectrequiredShow child parameters
channelstringrequiredpurposestringrequiredsourceTextstringrequiredattestedBystringrequiredverifyEmailbooleanrequiredlistIdsstring[]requiredupdateExistingbooleanrequiredtopicIdstringrequiredstatsobjectrequiredShow child parameters
totalintegerrequiredcreatedintegerrequiredupdatedintegerrequirederrorsintegerrequiredsuppressedintegerrequiredconsentSkippedintegerrequiredconsentGrantedintegerrequiredskippedintegerrequiredblockedintegerrequiredtopicSubscribedintegerrequiredtopicUnsubscribedintegerrequiredprogressobjectrequiredShow child parameters
rowsReadintegerrequiredprocessedintegerrequirederrorsintegerrequirederrorstringrequirederrorsUrlstringcreatedAtstringrequiredfinishedAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/imports/{id}/rollback Undo a completed import within 7 days: deletes the profiles it created
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/imports/{id}/rollback" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/imports/json Bulk-import up to 10,000 profiles as JSON: runs as an import job (poll GET /v1/imports/:id, then /errors and /profiles)
Request body
application/json
profilesobject[]requiredShow child parameters
emailstringphonestringexternalIdstringfirstNamestringlastNamestringtimezonestringlocalestringcountrystringcitystringregionstringlifecycleStagestringattributesobjectunsubscribedbooleancreatedAtstringlistIdstringlistIdsstring[]updateExistingbooleantagsstring[]consentAssertionobjectShow child parameters
channelstringrequiredpurposestringrequiredsourceTextstringrequiredattestedBystringrequireddefaultCountrystring{
"profiles": [
{
"email": "string",
"phone": "string",
"externalId": "string",
"firstName": "string",
"lastName": "string",
"timezone": "string",
"locale": "string",
"country": "string",
"city": "string",
"region": "string",
"lifecycleStage": "string",
"attributes": {},
"unsubscribed": true,
"createdAt": "2024-01-01T00:00:00Z"
}
],
"listId": "string",
"listIds": [
"string"
],
"updateExisting": true,
"tags": [],
"consentAssertion": {
"channel": "email",
"purpose": "marketing",
"sourceText": "string",
"attestedBy": "string"
},
"defaultCountry": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/imports/json" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"profiles":[{"email":"string","phone":"string","externalId":"string","firstName":"string","lastName":"string","timezone":"string","locale":"string","country":"string","city":"string","region":"string","lifecycleStage":"string","attributes":{},"unsubscribed":true,"createdAt":"2024-01-01T00:00:00Z"}],"listId":"string","listIds":["string"],"updateExisting":true,"tags":[],"consentAssertion":{"channel":"email","purpose":"marketing","sourceText":"string","attestedBy":"string"},"defaultCountry":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/imports/{id}/errors Rejected rows of an import as a paged JSON list
Parameters
limitintegerqueryoffsetintegerqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/imports/{id}/errors" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"row": 0,
"error": "string",
"data": {}
}
],
"nextOffset": 0
}Schema
itemsobject[]requiredShow child parameters
rowintegerrequirederrorstringrequireddataobjectrequirednextOffsetintegerrequiredGET
https://hermeticor.com /v1/imports/{id}/profiles Profiles this import created (updated rows are not listed)
Parameters
limitintegerquerycursorstringqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/imports/{id}/profiles" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"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"
]
}
],
"nextCursor": "string"
}Schema
itemsItemsItem2[]requiredShow child parameters
idstringrequiredemailPrimarystringrequiredphonePrimarystringrequiredfirstNamestringrequiredlastNamestringrequiredtimezonestringrequiredlocalestringrequiredcountrystringrequiredcitystringrequiredregionstringrequiredsourcestringrequiredlifecycleStagestringrequiredownerUserIdstringrequiredattributesobjectrequiredtagsstring[]requiredmergedIntoIdstringrequiredarchivedAtstringcreatedAtstringrequiredupdatedAtstringrequiredconsentIgnoredstring[]nextCursorstringrequiredUpdated