Dashboard
Documentation/Reference

Responses & errors

Reference for JSON submission responses and the steps to take when a request is rejected.

Accepted submission

Authenticated submissions may also include leadId. A configured redirectUrl may appear when the target form has one. Public anonymous responses omit internal record identifiers.

HTTP 200json
{
  "success": true,
  "status": "success",
  "statusCode": 200,
  "message": "Lead captured successfully"
}
Quarantined submission

The request was received but flagged for review. Inspect Spam Shield instead of treating HTTP 202 as a clean lead. An authenticated response may include spamId.

HTTP 202json
{
  "success": false,
  "status": "quarantined",
  "statusCode": 202,
  "message": "Submission received and quarantined for security inspection"
}
Status code reference
Status code reference
CodeMeaningWhat to check
200AcceptedThe lead is stored in the target environment.
202QuarantinedReview the submission in Spam Shield.
400Invalid requestCheck that the body is valid JSON or URL-encoded data.
401Invalid API keyCheck for a mistyped or revoked submission key.
403Submission rejectedCheck paused forms, origin rules, workspace ownership, and key environment.
404Target not foundCopy the current form endpoint again; verify its ID or slug.
405Wrong methodUse POST on /api/v1/leads.
413Body too largeReduce the request body below 1 MB.
429Rate limitedWait before sending another request.
500Server errorCheck server health and logs before retrying.
Read the response body

Error responses can contain message, error, or both. Show a useful message to the visitor and keep the HTTP status available in your server logs. CORS failures may prevent browser JavaScript from reading the response; inspect the Network panel.

Infraly documentation