API Responses
API Responses
Success (200)
{
"success": true
}Validation Error — Malformed Body (400) Returned when the request body is not valid form data:
Malformed request body, must be form data (<error details>)Validation Error — Corrupted Payload (400)
{
"success": false,
"errors": [
"Payload is corrupted or missing. Please send JSON string. <error>"
]
}Validation Error — Empty Users (400)
No users in the segment. Segment cannot be created.Provider Errors (400, sync mode only)
{
"success": false,
"errors": [ "" ]
}Batching & Large Audiences
For large audiences that exceed practical request size limits, the API supports splitting users across multiple requests using the batch metadata:
Split your user list into chunks (e.g., 10,000 users per batch)
Generate a unique sessionId for the entire upload
Send each chunk as a separate API call with incrementing sequence numbers
Set totalBatches and totalUsers consistently across all requests
Last updated
Was this helpful?

