Welcome to Captain Data’s API v4 implementation guide.
identity_ids
in the API payload.
To set this up:
identity_ids
- if present, you’ll need to set up Identities
and connect their integrations first.identity_mode: "managed"
costs 1.5× the standard credit cost but requires no setup.error_label
: A machine-readable identifier for the error typeerror_scope
: Indicates which part of the request caused the error (e.g., “input”, “auth”, “server”)error_ref
: A unique reference code for tracking and debuggingmessage
: A human-readable description of the errorstatus_code
: The HTTP status codeparams
: Additional error parameters (if any)200
: The request was successful (some API calls may return 201 instead)400
: Bad Request - Invalid input or parameters401
: Unauthorized - Invalid or missing API key403
: Forbidden - Insufficient permissions404
: Not Found - Resource doesn’t exist500
: Internal Server Error - Server-side issueerror_label
and error_scope
fields to programmatically
handle different types of errors in your application.