objects
GET
https://hermeticor.com /v1/associations/{type}/{id} Everything a profile or object record is associated with, with labels
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pagetypestringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/associations/{type}/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"toType": "string",
"toId": "string",
"name": "string",
"label": "string"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
toTypestringrequiredtoIdstringrequirednamestringrequiredlabelstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPUT
https://hermeticor.com /v1/associations/{fromType}/{fromId}/{toType}/{toId} Associate two records; without a label the pair's default label is used (or "related")
Parameters
fromTypestringpathrequiredfromIdstringpathrequiredtoTypestringpathrequiredtoIdstringpathrequiredRequest body
application/json
labelstring{
"label": "string"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/associations/{fromType}/{fromId}/{toType}/{toId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"label":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredDELETE
https://hermeticor.com /v1/associations/{fromType}/{fromId}/{toType}/{toId} Parameters
labelstringqueryfromTypestringpathrequiredfromIdstringpathrequiredtoTypestringpathrequiredtoIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/associations/{fromType}/{fromId}/{toType}/{toId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/associations/batch Up to 100 associations in one call; any failure rolls back all
Request body
application/json
itemsobject[]requiredShow child parameters
fromTypestringrequiredfromIdstringrequiredtoTypestringrequiredtoIdstringrequiredlabelstring{
"items": [
{
"fromType": "string",
"fromId": "string",
"toType": "string",
"toId": "string",
"label": "string"
}
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/associations/batch" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"items":[{"fromType":"string","fromId":"string","toType":"string","toId":"string","label":"string"}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"associated": 0
}Schema
associatedintegerrequiredGET
https://hermeticor.com /v1/association-labels Parameters
fromTypestringquerytoTypestringquerylimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/association-labels" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"fromType": "string",
"toType": "string",
"label": "string",
"isDefault": true,
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem227[]requiredShow child parameters
idstringrequiredfromTypestringrequiredtoTypestringrequiredlabelstringrequiredisDefaultbooleanrequiredcreatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/association-labels Request body
application/json
fromTypestringrequiredtoTypestringrequiredlabelstringrequiredisDefaultboolean{
"fromType": "string",
"toType": "string",
"label": "string",
"isDefault": false
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/association-labels" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fromType":"string","toType":"string","label":"string","isDefault":false}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"fromType": "string",
"toType": "string",
"label": "string",
"isDefault": true,
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredfromTypestringrequiredtoTypestringrequiredlabelstringrequiredisDefaultbooleanrequiredcreatedAtstringrequiredDELETE
https://hermeticor.com /v1/association-labels/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/association-labels/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
PATCH
https://hermeticor.com /v1/association-labels/{id} Parameters
idstringpathrequiredRequest body
application/json
labelstringisDefaultboolean{
"label": "string",
"isDefault": true
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/association-labels/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"label":"string","isDefault":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/objects/relationships/import Link people (by externalId, email or phone) to object records (by type and externalId); a bad row is reported, the rest land
Request body
application/json
rowsobject[]requiredShow child parameters
objectTypestringrequiredobjectExternalIdstringrequiredemailstringphonestringexternalIdstringlabelstring{
"rows": [
{
"objectType": "string",
"objectExternalId": "string",
"email": "string",
"phone": "string",
"externalId": "string",
"label": "string"
}
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/objects/relationships/import" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"rows":[{"objectType":"string","objectExternalId":"string","email":"string","phone":"string","externalId":"string","label":"string"}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"linked": 0,
"failed": [
{
"index": 0,
"reason": "string"
}
]
}Schema
linkedintegerrequiredfailedRejectedItem[]requiredShow child parameters
indexintegerrequiredreasonstringrequiredUpdated