Skip to the guide

API errors and how to fix them

What each API error means, and what to change so the call works.

Every answer is JSON, errors too:

{
  "error": {
    "code": "invalid",
    "message": "Some of what was sent can't be used; see fields.",
    "fields": { "phone": "Send a 10-digit US phone number, or another country's number starting with + and its country code." }
  }
}

A lead with a problem isn't added at all. Fix what fields names and send it again.

StatusCodeWhat to do
400bad_jsonThe body isn't a JSON object. Check the quotes and commas, or send a form post.
400key_in_urlThe key was in the address. Make a new key, revoke that one, and send keys in a header.
401no_key, bad_keyNo key, or one that was revoked or mistyped. Check the whole key was copied.
403posting_keyThat call needs a full key. Posting keys only add leads.
404not_foundNo lead or appointment with that id in this account.
413too_largeOver 64 KB. Leave out what LeadVault doesn't need.
415content_typeSend Content-Type: application/json, or a form post.
422invalidSomething can't be used. fields says what, field by field.
429slow_downOver 120 calls a minute. Wait as long as the Retry-After header says.
429too_many_bad_keys20 wrong keys in 10 minutes from one address. Wait 10 minutes, and fix the key.
500server_errorOur fault. Nothing was saved; try again.

Common 422s

Names LeadVault doesn't use aren't errors: they come back in ignored, so check it when an answer seems to go missing.

Didn't answer it? Ask us.