integrations
GET
https://hermeticor.com /v1/id-mappings Old ids (from HubSpot, for example) and the lists or journeys they became
Parameters
sourcestringquerykindstringqueryrequiredlimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/id-mappings?kind=list" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"legacyId": "string",
"targetId": "string",
"kind": "string",
"source": "string"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem182[]requiredShow child parameters
legacyIdstringrequiredtargetIdstringrequiredkindstringrequiredsourcestringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/id-mappings Record old id -> new id pairs
Request body
application/json
sourcestringkindstringrequiredpairsobject[]requiredShow child parameters
legacyIdstringrequiredtargetIdstringrequired{
"source": "hubspot",
"kind": "list",
"pairs": [
{
"legacyId": "string",
"targetId": "string"
}
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/id-mappings" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"source":"hubspot","kind":"list","pairs":[{"legacyId":"string","targetId":"string"}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"saved": 0
}Schema
savedintegerrequiredPOST
https://hermeticor.com /v1/id-mappings/read Look up the new ids for up to 1000 old ids
Request body
application/json
sourcestringkindstringrequiredlegacyIdsstring[]required{
"source": "hubspot",
"kind": "list",
"legacyIds": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/id-mappings/read" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"source":"hubspot","kind":"list","legacyIds":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"legacyId": "string",
"targetId": "string",
"kind": "string",
"source": "string"
}
]
}Schema
itemsItemsItem182[]requiredShow child parameters
legacyIdstringrequiredtargetIdstringrequiredkindstringrequiredsourcestringrequiredPOST
https://hermeticor.com /v1/migrations/hubspot/lists Import HubSpot list memberships (list id, list name, email): one list per HubSpot list, existing contacts only, no consent granted
Request body
application/json
rowsobject[]requiredShow child parameters
listIdstringrequiredlistNamestringrequiredemailstringrequired{
"rows": [
{
"listId": "string",
"listName": "string",
"email": "string"
}
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/migrations/hubspot/lists" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"rows":[{"listId":"string","listName":"string","email":"string"}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"legacyId": "string",
"listId": "string",
"name": "string",
"created": true,
"added": 0,
"notFound": 0
}
]
}Schema
itemsobject[]requiredShow child parameters
legacyIdstringrequiredlistIdstringrequirednamestringrequiredcreatedbooleanrequiredaddedintegerrequirednotFoundintegerrequiredUpdated