members
GET
https://hermeticor.com /v1/members/{userId} Parameters
userIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/members/{userId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"userId": "string",
"email": "string",
"name": "string",
"role": "owner",
"listIds": [
"string"
]
}Schema
userIdstringrequiredemailstringrequirednamestringrequiredrolestringrequiredlistIdsstring[]4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/shares/{type}/{id} Who a list, template, campaign or segment is shared with (none = open to all roles that can use it)
Parameters
typestringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/shares/{type}/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"restricted": true,
"items": [
{
"userId": "string",
"email": "string",
"name": "string",
"level": "view"
}
]
}Schema
restrictedbooleanrequireditemsItemsItem29[]requiredShow child parameters
userIdstringrequiredemailstringrequirednamestringrequiredlevelstringrequiredPUT
https://hermeticor.com /v1/shares/{type}/{id}/{userId} Share with one member (restricts the resource to admins and the people shared with)
Parameters
typestringpathrequiredidstringpathrequireduserIdstringpathrequiredRequest body
application/json
levelstringrequired{
"level": "view"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/shares/{type}/{id}/{userId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"level":"view"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"userId": "string",
"email": "string",
"name": "string",
"level": "view"
}Schema
userIdstringrequiredemailstringrequirednamestringrequiredlevelstringrequiredDELETE
https://hermeticor.com /v1/shares/{type}/{id}/{userId} Stop sharing with one member; when the last share goes the resource is open again
Parameters
typestringpathrequiredidstringpathrequireduserIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/shares/{type}/{id}/{userId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredGET
https://hermeticor.com /v1/invitations Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/invitations" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"email": "string",
"role": "string",
"expiresAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredemailstringrequiredrolestringrequiredexpiresAtstringrequiredcreatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/invitations/{id}/resend Reissue the invitation link (the old one stops working); the token is returned once
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/invitations/{id}/resend"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"email": "string",
"role": "owner",
"token": "string",
"expiresAt": "2024-01-01T00:00:00Z",
"emailed": true
}Schema
idstringrequiredemailstringrequiredrolestringrequiredtokenstringrequiredexpiresAtstringrequiredemailedbooleanDELETE
https://hermeticor.com /v1/invitations/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/invitations/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/members/by-email/{email}/permissions One call: a member found by email with their role and effective module read/write grid
Parameters
emailstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/members/by-email/{email}/permissions" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"userId": "string",
"email": "string",
"name": "string",
"role": "string",
"modules": [
"string"
],
"matrix": {}
}Schema
userIdstringrequiredemailstringrequirednamestringrequiredrolestringrequiredmodulesstring[]requiredmatrixobjectrequiredPOST
https://hermeticor.com /v1/workspace/transfer-ownership Make another member the owner; you become an admin
Request body
application/json
userIdstringrequired{
"userId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/workspace/transfer-ownership" \
-H "Content-Type: application/json" \
-d '{"userId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated