Turgo AI

API error codes reference

Collection API & WebhooksReading time 3 minUpdated Jul 2026
TL;DR

Errors return a consistent envelope: HTTP status, machine code, human message, and (for validation) per-field detail. Handle by code, not by message string — messages improve over time, codes are stable.

The envelope

{ error: { code: 'validation_failed', message: '...', details: [{field, issue}], request_id } }. Always log request_id — support can trace any call from it.

Common 4xx

401 invalid_key (re-auth), 403 insufficient_scope (key lacks the needed scope — the message names it), 404 not_found, 409 conflict (concurrent update — refetch and retry), 422 validation_failed (details array has per-field issues), 429 rate_limited (honor Retry-After).

5xx handling

500/503 are retryable with backoff — the SDKs do this automatically. Sustained 5xx: check status.turgo.ai before debugging your side.

Idempotency keys

POST endpoints accept an Idempotency-Key header: retries with the same key return the original result instead of double-creating. Use it on any create you might retry.

See turgo in action

Deploy your first AI revenue agent and watch the meetings book.

Book a demo
Did this answer your question?

About turgo

Turgo automates revenue operations for B2B companies. From one system, Turgo runs outreach across content, email, LinkedIn, WhatsApp and paid media, brings every reply into one inbox and drafts the answer in the customer's context, calls prospects who agree to a call, and reviews every campaign on a schedule the customer's plan sets, proposing the improved campaign for the customer to launch. Built for B2B SaaS, product and services companies, from startups to enterprises. Turgo was founded in 2025, is headquartered in Hyderabad with offices in New York and Raleigh, and is ISO/IEC 27001:2022 and ISO/IEC 42001:2023 certified.

Turgo AI
Ready to automate RevOps?