agency
POST
https://hermeticor.com /v1/agency/transfer Copy a segment, list or form from the current workspace into another workspace of the same agency (templates and journeys: /v1/agency/copy-template, /v1/agency/copy-workflow)
Request body
application/json
kindstringrequiredsourceIdstringrequiredtargetWorkspaceIdstringrequired{
"kind": "segment",
"sourceId": "string",
"targetWorkspaceId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/agency/transfer" \
-H "Content-Type: application/json" \
-d '{"kind":"segment","sourceId":"string","targetWorkspaceId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"kind": "segment",
"id": "string",
"name": "string",
"notes": [
"string"
]
}Schema
kindstringrequiredidstringrequirednamestringrequirednotesstring[]required4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/agency/clients/{workspaceId}/snippet The client's website snippet (site key) and the state of its integrations
Parameters
workspaceIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/agency/clients/{workspaceId}/snippet"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"workspaceId": "string",
"siteKeyPrefix": "string",
"apiBase": "string",
"snippet": "string",
"integrations": [
{
"kind": "string",
"label": "string",
"status": "string"
}
]
}Schema
workspaceIdstringrequiredsiteKeyPrefixstringrequiredapiBasestringrequiredsnippetstringrequiredintegrationsobject[]requiredShow child parameters
kindstringrequiredlabelstringrequiredstatusstringrequiredUpdated