Add a subscriber to segmentation lists
POST/segmentation/add-subscriber/:email
Add a subscriber to segmentation lists by email
Request
Path Parameters
email stringrequired
Subscriber email address
Header Parameters
x-api-key stringrequired
Your API key
x-developer-mode boolean
Enable developer mode. Learn more here.
- application/json
Body
segmentationLists string[]
List of segmentation lists IDs. You can get the ID by calling our support team.
Responses
- 200
- 400
- 404
- 422
- 500
Subscriber added to segmentation list
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
requestId string
data object[]
id string
email string
subscriberId string
segmentationListId string
createdAt date-time
updatedAt date-time
{
"requestId": "string",
"data": [
{
"id": "string",
"email": "string",
"subscriberId": "string",
"segmentationListId": "string",
"createdAt": "2024-07-29T19:44:36.658Z",
"updatedAt": "2024-07-29T19:44:36.658Z"
}
]
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
- Body is necessary
- Subscriber not enabled
anyOf
error string
errorCode string
requestId string
error string
errorCode string
requestId string
{}
Not found
- application/json
- Schema
- Example (from schema)
Schema
- Subscriber not found
- Segmentation list not found
anyOf
error string
errorCode string
requestId string
error string
errorCode string
requestId string
{}
Unprocessable Entity
- application/json
- Schema
- Example (from schema)
Schema
- Subscriber email is necessary
- Unprocessable Entity
anyOf
error string
errorCode string
requestId string
error string
errorCode string
requestId string
{}
Internal server error.
- application/json
- Schema
- Example (from schema)
Schema
error string
errorCode string
requestId string
{
"error": "Internal server error.",
"errorCode": "INTERNAL_SERVER_ERROR",
"requestId": "ff37b0a8-de19-4f72-a7ed-0bd1cb73f29f"
}
Loading...