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

circle-info

Example: To upload 25,000 users in 3 batches, each request would share the same sessionId , have totalBatches: 3 , totalUsers: 25000 , and individual sequence values of 1, 2, and 3.

Last updated

Was this helpful?