DevelopersErrors
  1. Developers
  2. Platform

Errors

Errors use standard HTTP status codes and one predictable shape. Every code below is stable: branch on it in your code.

#Error shape

JSON
{
  "error": {
    "code": "in_another_campaign",
    "message": "This person is already in another campaign."
  }
}

code is for your program. message is plain words for a person; it may change, so don’t parse it. Error bodies never include stack traces or internal details.

#HTTP status codes

StatusMeaning
200 / 201It worked. 201 means a new person was created
204CORS preflight answered
400Your request has a problem. The code says which
401Authentication failed
404Not found in your workspace (or not switched on yet)
409Refused because of the current state, e.g. do-not-contact
429Too many requests. Wait for Retry-After
500Our side. Safe to retry

#API error codes

StatusCodeWhat happenedWhat to do
400bad_bodyThe JSON body is missing a field or has a wrong one. The message names the first problem.Fix the body.
400bad_linkedin_urlThe link isn’t a LinkedIn profile (linkedin.com/in/…).Send a profile link, not a company or post link.
400bad_cursorThe cursor isn’t one we issued.Start again without a cursor.
400bad_campaign_idcampaign_id isn’t an id.Use an id from GET /campaigns.
400bad_sincesince isn’t a date.Use ISO 8601, e.g. 2026-11-01T00:00:00Z.
401unauthorizedNo key, a wrong key, or a revoked key.Send Authorization: Bearer rf_live_…
404not_foundNo such person or campaign in your workspace, or the API isn’t switched on yet.Check the id. During early access, ask us about access.
409campaign_finishedThe campaign has finished.Pick another campaign.
409do_not_contactThe email or its domain is on your do-not-contact list.Don’t add them; this is working as intended.
409in_another_campaignThe person is already in a different campaign.Leave them where they are, or move them in the app.
409duplicateThe person is already in your workspace.Look them up with GET /lookup.
429rate_limitedOver 120 requests a minute for this key.Wait Retry-After seconds.
500server_errorSomething failed on our side.Retry with backoff. If it keeps happening, tell us.

#OAuth errors

The OAuth endpoints follow the standard shape, { "error", "error_description" }. You only see these when building your own MCP client.

ErrorWhereMeaning
invalid_redirect_uriregisterRedirect addresses must be https (or http on localhost), 1 to 10 of them
invalid_granttokenThe code or refresh token is wrong, used or expired; the PKCE check failed; or the person left the workspace
unsupported_grant_typetokenUse authorization_code or refresh_token
invalid_requestauthorizePKCE with S256 is missing
unsupported_response_typeauthorizeUse response_type=code
access_deniedauthorizeThe person pressed Cancel
server_erroranyOur side. Try again

#Connector errors

The connector speaks JSON-RPC 2.0. Protocol problems come back as JSON-RPC errors:

HTTPJSON-RPC codeMeaning
401-32001Sign in to RevFirst first. The WWW-Authenticate header says where
429-32029Rate limit or today’s limit reached. See Retry-After
400-32700The body isn’t JSON
200-32600Not a valid JSON-RPC request
200-32601Unknown method
200-32602Unknown tool, or arguments that aren’t an object

When a tool can’t do what was asked (no play with that id, a play that’s already live, an expired approval code), it answers normally with isError: true and a sentence saying what to do next, so the assistant can recover in the conversation:

JSON
{
  "jsonrpc": "2.0",
  "id": 7,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "This play is already approved, so its steps can’t change from here. Pause it in the RevFirst app first."
      }
    ],
    "isError": true
  }
}

Last updated 25 November 2026 · Questions? Write to satvik@revfirst.co