Skip to Content
ColdVenue API

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 HEAD routes.

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.

StatusCodeWhen
400VALIDATION_ERRORThe body, query or path doesn't match the schema; details says where
400BAD_REQUESTThe request is valid but can't be done, e.g. a search that ran too long
401UNAUTHENTICATEDMissing, unknown, revoked or expired API key
402PLAN_FEATURE_LOCKED, PLAN_LIMIT_REACHED, SUBSCRIPTION_REQUIREDYour plan doesn't include this, or a plan limit is reached
403FORBIDDENThe key lacks the required scope
403TENANT_SUSPENDED, SENDING_HOLDThe workspace is suspended, or its sending is on hold
404NOT_FOUNDNo such record in this workspace
409CONFLICT, INVALID_STATEA duplicate, or the record isn't in a state that allows this
413PAYLOAD_TOO_LARGEThe body is over the limit below
429RATE_LIMITEDOver a rate limit: see Rate limits
503MAINTENANCE, SERVICE_UNAVAILABLETry 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

LimitValue
Request body1 MB (replies 2 MB, sequence saves 4 MB)
Body on routes that take none16 KB
Search queries5 seconds, then 400: narrow the filter
Analytics queries15 seconds, then 400: narrow the date range
Page size100 items

On this page