planner
GET
https://hermetica.15.204.158.166.sslip.io /v1/planner/goals Business goals the planner can build a starter plan for
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/planner/goals" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"key": "grow_list",
"label": "string",
"summary": "string"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
keystringrequiredlabelstringrequiredsummarystringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermetica.15.204.158.166.sslip.io /v1/planner/goals/{goal} Suggested segments, journeys and campaign drafts for one goal (nothing is created)
Parameters
goalstringpathrequiredCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/planner/goals/{goal}" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"goal": "grow_list",
"label": "string",
"summary": "string",
"items": [
{
"key": "string",
"kind": "segment",
"title": "string",
"why": "string",
"missing": []
}
]
}Schema
goalstringrequiredlabelstringrequiredsummarystringrequireditemsobject[]requiredShow child parameters
keystringrequiredkindstringrequiredtitlestringrequiredwhystringrequiredmissingstring[]requiredPOST
https://hermetica.15.204.158.166.sslip.io /v1/planner/create Create the ticked items of a plan as drafts (segments, journey drafts, campaign drafts); a failing item is reported, the rest still go through
Request body
application/json
goalstringrequiredkeysstring[]required{
"goal": "grow_list",
"keys": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/planner/create" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"goal":"grow_list","keys":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"created": [
{
"key": "string",
"kind": "segment",
"id": "string",
"name": "string"
}
],
"skipped": [
{
"key": "string",
"reason": "string"
}
]
}Schema
createdobject[]requiredShow child parameters
keystringrequiredkindstringrequiredidstringrequirednamestringrequiredskippedobject[]requiredShow child parameters
keystringrequiredreasonstringrequiredGET
https://hermetica.15.204.158.166.sslip.io /v1/business-goals Business goals with progress; ?archived=true lists archived ones
Parameters
archivedstringquerylimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/business-goals" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"notes": "string",
"metric": "revenue",
"targetValue": 0,
"currency": "string",
"startsOn": "string",
"endsOn": "string",
"archivedAt": "2024-01-01T00:00:00Z",
"progress": 0,
"percent": 0
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequirednamestringrequirednotesstringrequiredmetricstringrequiredtargetValueintegerrequiredcurrencystringrequiredstartsOnstringrequiredendsOnstringrequiredarchivedAtstringrequiredprogressintegerrequiredpercentnumberrequirednextCursorstringrequiredPOST
https://hermetica.15.204.158.166.sslip.io /v1/business-goals Request body
application/json
namestringrequirednotesstringmetricstringrequiredtargetValueintegerrequiredcurrencystringstartsOnstringrequiredendsOnstringrequired{
"name": "string",
"notes": null,
"metric": "revenue",
"targetValue": 0,
"currency": null,
"startsOn": "string",
"endsOn": "string"
}Code samples
cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/business-goals" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","notes":null,"metric":"revenue","targetValue":0,"currency":null,"startsOn":"string","endsOn":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"name": "string",
"notes": "string",
"metric": "revenue",
"targetValue": 0,
"currency": "string",
"startsOn": "string",
"endsOn": "string",
"archivedAt": "2024-01-01T00:00:00Z",
"progress": 0,
"percent": 0
}Schema
idstringrequirednamestringrequirednotesstringrequiredmetricstringrequiredtargetValueintegerrequiredcurrencystringrequiredstartsOnstringrequiredendsOnstringrequiredarchivedAtstringrequiredprogressintegerrequiredpercentnumberrequiredGET
https://hermetica.15.204.158.166.sslip.io /v1/business-goals/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/business-goals/{id}" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
PATCH
https://hermetica.15.204.158.166.sslip.io /v1/business-goals/{id} Parameters
idstringpathrequiredRequest body
application/json
namestringnotesstringtargetValueintegerstartsOnstringendsOnstring{
"name": "string",
"notes": "string",
"targetValue": 0,
"startsOn": "string",
"endsOn": "string"
}Code samples
cURL
curl -X PATCH "https://hermetica.15.204.158.166.sslip.io/v1/business-goals/{id}" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","notes":"string","targetValue":0,"startsOn":"string","endsOn":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermetica.15.204.158.166.sslip.io /v1/business-goals/batch/archive Archive goals (hidden, restorable)
Request body
application/json
idsstring[]required{
"ids": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/business-goals/batch/archive" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"count": 0
}Schema
countintegerrequiredPOST
https://hermetica.15.204.158.166.sslip.io /v1/business-goals/batch/restore Request body
application/json
idsstring[]required{
"ids": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/business-goals/batch/restore" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ids":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated