bulk
POST
https://hermetica.15.204.158.166.sslip.io /v1/exports Export a segment, a list or all profiles to CSV, NDJSON or XLSX, with chosen columns (`attributes.<key>` for a custom property); poll GET /v1/exports/:id for the signed download URL
Request body
application/json
selectorobjectrequiredShow child parameters
profileIdsstring[]listIdstringsegmentIdstringallbooleanfilterobjectShow child parameters
qstringtagstringtagsAnystringtagsAllstringlistIdstringemailstringphonestringcreatedSincestringcreatedBeforestringupdatedSincestringupdatedBeforestringattrKeystringattrValuestringvipstringconsentStatusstringconsentChannelstringconsentSincestringtopicIdstringcountrystringregionstringcitystringsegmentIdstringeventNamestringeventSincestringeventBeforestringsourcestringarchivedstringattrOpstringnotifyEmailstringcolumnsstring[]formatstring{
"selector": {
"profileIds": [
"string"
],
"listId": "string",
"segmentId": "string",
"all": true,
"filter": {
"q": "string",
"tag": "string",
"tagsAny": "string",
"tagsAll": "string",
"listId": "string",
"email": "string",
"phone": "string",
"createdSince": "2024-01-01T00:00:00Z",
"createdBefore": "2024-01-01T00:00:00Z",
"updatedSince": "2024-01-01T00:00:00Z",
"updatedBefore": "2024-01-01T00:00:00Z",
"attrKey": "string",
"attrValue": "string",
"vip": "true",
"consentStatus": "granted",
"consentChannel": "email",
"consentSince": "2024-01-01T00:00:00Z",
"topicId": "string",
"country": "string",
"region": "string",
"city": "string",
"segmentId": "string",
"eventName": "string",
"eventSince": "2024-01-01T00:00:00Z",
"eventBefore": "2024-01-01T00:00:00Z",
"source": "string",
"archived": "only",
"attrOp": "eq"
}
},
"notifyEmail": "string",
"columns": [
"id"
],
"format": "csv"
}Code samples
cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/exports" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"selector":{"profileIds":["string"],"listId":"string","segmentId":"string","all":true,"filter":{"q":"string","tag":"string","tagsAny":"string","tagsAll":"string","listId":"string","email":"string","phone":"string","createdSince":"2024-01-01T00:00:00Z","createdBefore":"2024-01-01T00:00:00Z","updatedSince":"2024-01-01T00:00:00Z","updatedBefore":"2024-01-01T00:00:00Z","attrKey":"string","attrValue":"string","vip":"true","consentStatus":"granted","consentChannel":"email","consentSince":"2024-01-01T00:00:00Z","topicId":"string","country":"string","region":"string","city":"string","segmentId":"string","eventName":"string","eventSince":"2024-01-01T00:00:00Z","eventBefore":"2024-01-01T00:00:00Z","source":"string","archived":"only","attrOp":"eq"}},"notifyEmail":"string","columns":["id"],"format":"csv"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"id": "string",
"kind": "bulk",
"op": "string",
"status": "queued",
"progress": {
"total": 0,
"processed": 0,
"failed": 0
},
"error": "string",
"downloadUrl": "string",
"failures": [
{
"profileId": "string",
"message": "string"
}
],
"createdAt": "2024-01-01T00:00:00Z",
"finishedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredkindstringrequiredopstringrequiredstatusstringrequiredprogressobjectrequiredShow child parameters
totalintegerrequiredprocessedintegerrequiredfailedintegerrequirederrorstringrequireddownloadUrlstringfailuresobject[]Show child parameters
profileIdstringrequiredmessagestringrequiredcreatedAtstringrequiredfinishedAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermetica.15.204.158.166.sslip.io /v1/jobs/{id}/stream Live progress of a bulk job or export as server-sent events (event: progress, then event: done)
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/jobs/{id}/stream" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
{}Updated