Requests and responses
Pagination, errors, retries and limits that apply to every endpoint.
Format
- Send JSON with
Content-Type: application/json. Responses are JSON. - Single records come back as
{ "data": { … } }, lists as{ "data": [ … ], "pagination": { … } }. - Dates are ISO 8601 strings in UTC, for example
2026-11-29T09:30:00.000Z. - Every response carries
Cache-Control: no-store. - Only the documented methods exist. There are no
HEADroutes.
Pagination
Lists return up to limit items (at most 100) and a cursor for the next page:
{
"data": [{ "id": "…" }],
"pagination": { "nextCursor": "eyJpZCI6…" }
}Pass cursor to get the next page. nextCursor is null on the last page.
async function* allLeads(apiKey) {
let cursor;
do {
const url = new URL('https://api.coldvenue.in/api/v1/leads');
url.searchParams.set('limit', '100');
if (cursor) url.searchParams.set('cursor', cursor);
const response = await fetch(url, { headers: { Authorization: `Bearer ${apiKey}` } });
if (!response.ok) throw new Error(`ColdVenue answered ${response.status}`);
const page = await response.json();
yield* page.data;
cursor = page.pagination.nextCursor;
} while (cursor);
}Errors
Errors share one shape:
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request",
"details": {},
"requestId": "3f1c2a…"
}
}Include requestId when you contact support.
| Status | Code | When |
|---|---|---|
400 | VALIDATION_ERROR | The body, query or path doesn't match the schema; details says where |
400 | BAD_REQUEST | The request is valid but can't be done, e.g. a search that ran too long |
401 | UNAUTHENTICATED | Missing, unknown, revoked or expired API key |
402 | PLAN_FEATURE_LOCKED, PLAN_LIMIT_REACHED, SUBSCRIPTION_REQUIRED | Your plan doesn't include this, or a plan limit is reached |
403 | FORBIDDEN | The key lacks the required scope |
403 | TENANT_SUSPENDED, SENDING_HOLD | The workspace is suspended, or its sending is on hold |
404 | NOT_FOUND | No such record in this workspace |
409 | CONFLICT, INVALID_STATE | A duplicate, or the record isn't in a state that allows this |
413 | PAYLOAD_TOO_LARGE | The body is over the limit below |
429 | RATE_LIMITED | Over a rate limit: see Rate limits |
503 | MAINTENANCE, SERVICE_UNAVAILABLE | Try again shortly |
Unknown routes, wrong content types and malformed bodies answer a fixed message, never internal detail.
Retries and idempotency
Retry 429 after the retry-after header, and 503 or network errors with exponential backoff.
Don't retry other 4xx errors unchanged.
Replies send email, so make retries safe: send an Idempotency-Key header with
Reply to an email and
Reply in a conversation. Use a new value for each reply: 8 to
100 letters, digits, - or _ (a UUID works). Retrying with the same key returns the first reply
instead of sending a second one. Reusing a key for a different conversation answers 409.
Limits
| Limit | Value |
|---|---|
| Request body | 1 MB (replies 2 MB, sequence saves 4 MB) |
| Body on routes that take none | 16 KB |
| Search queries | 5 seconds, then 400: narrow the filter |
| Analytics queries | 15 seconds, then 400: narrow the date range |
| Page size | 100 items |