- Developers
- 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
{
"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
| Status | Meaning |
|---|---|
| 200 / 201 | It worked. 201 means a new person was created |
| 204 | CORS preflight answered |
| 400 | Your request has a problem. The code says which |
| 401 | Authentication failed |
| 404 | Not found in your workspace (or not switched on yet) |
| 409 | Refused because of the current state, e.g. do-not-contact |
| 429 | Too many requests. Wait for Retry-After |
| 500 | Our side. Safe to retry |
#API error codes
| Status | Code | What happened | What to do |
|---|---|---|---|
| 400 | bad_body | The JSON body is missing a field or has a wrong one. The message names the first problem. | Fix the body. |
| 400 | bad_linkedin_url | The link isn’t a LinkedIn profile (linkedin.com/in/…). | Send a profile link, not a company or post link. |
| 400 | bad_cursor | The cursor isn’t one we issued. | Start again without a cursor. |
| 400 | bad_campaign_id | campaign_id isn’t an id. | Use an id from GET /campaigns. |
| 400 | bad_since | since isn’t a date. | Use ISO 8601, e.g. 2026-11-01T00:00:00Z. |
| 401 | unauthorized | No key, a wrong key, or a revoked key. | Send Authorization: Bearer rf_live_… |
| 404 | not_found | No 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. |
| 409 | campaign_finished | The campaign has finished. | Pick another campaign. |
| 409 | do_not_contact | The email or its domain is on your do-not-contact list. | Don’t add them; this is working as intended. |
| 409 | in_another_campaign | The person is already in a different campaign. | Leave them where they are, or move them in the app. |
| 409 | duplicate | The person is already in your workspace. | Look them up with GET /lookup. |
| 429 | rate_limited | Over 120 requests a minute for this key. | Wait Retry-After seconds. |
| 500 | server_error | Something 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.
| Error | Where | Meaning |
|---|---|---|
invalid_redirect_uri | register | Redirect addresses must be https (or http on localhost), 1 to 10 of them |
invalid_grant | token | The code or refresh token is wrong, used or expired; the PKCE check failed; or the person left the workspace |
unsupported_grant_type | token | Use authorization_code or refresh_token |
invalid_request | authorize | PKCE with S256 is missing |
unsupported_response_type | authorize | Use response_type=code |
access_denied | authorize | The person pressed Cancel |
server_error | any | Our side. Try again |
#Connector errors
The connector speaks JSON-RPC 2.0. Protocol problems come back as JSON-RPC errors:
| HTTP | JSON-RPC code | Meaning |
|---|---|---|
| 401 | -32001 | Sign in to RevFirst first. The WWW-Authenticate header says where |
| 429 | -32029 | Rate limit or today’s limit reached. See Retry-After |
| 400 | -32700 | The body isn’t JSON |
| 200 | -32600 | Not a valid JSON-RPC request |
| 200 | -32601 | Unknown method |
| 200 | -32602 | Unknown 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:
{
"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