Skip to content

Errors

The Braidis API uses standard HTTP status codes and returns structured JSON error responses.

Error Response Format

json
{
  "success": false,
  "error": {
    "code": "INVALID_PHONE",
    "message": "The phone number provided is not a valid format",
    "field": "phone"
  }
}

HTTP Status Codes

CodeMeaning
200Success
400Bad Request — invalid parameters
401Unauthorized — missing or invalid API key
403Forbidden — key lacks permission for this endpoint
404Not Found — no data found for the query
409Conflict — duplicate request detected
422Unprocessable — valid format but data can't be resolved
429Too Many Requests — rate limit exceeded
500Internal Server Error — something went wrong on our end
503Service Unavailable — temporary maintenance

Error Codes

Authentication Errors

CodeDescription
AUTH_MISSING_KEYNo API key provided in the Authorization header
AUTH_INVALID_KEYAPI key is invalid or has been revoked
AUTH_EXPIRED_KEYAPI key has expired
AUTH_INSUFFICIENT_SCOPEKey does not have access to this endpoint

Validation Errors

CodeDescription
INVALID_PHONEPhone number format is invalid
INVALID_ADDRESSAddress could not be parsed
INVALID_NAMEName fields are missing or empty
MISSING_REQUIRED_FIELDA required field was not provided

Credit Errors

CodeDescription
INSUFFICIENT_CREDITSNot enough credits remaining (Free tier only)
CREDITS_LIMIT_WARNINGCredits are running low (informational, request still processed)

Data Errors

CodeDescription
NO_MATCHNo data found for the provided query
LOW_CONFIDENCEMatch found but below confidence threshold
PARTIAL_MATCHOnly some requested fields could be resolved

System Errors

CodeDescription
RATE_LIMIT_EXCEEDEDToo many requests — retry after the specified delay
INTERNAL_ERRORUnexpected server error — contact support
SERVICE_UNAVAILABLETemporary outage — retry shortly

Handling Errors

javascript
const response = await fetch("https://api.braidisdata.com/v1/reverse-phone", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ phone: "+15551234567" }),
});

const data = await response.json();

if (!data.success) {
  switch (data.error.code) {
    case "NO_MATCH":
      console.log("No data found for this phone number");
      break;
    case "RATE_LIMIT_EXCEEDED":
      // Retry after the specified delay
      await sleep(data.error.retry_after * 1000);
      break;
    default:
      console.error(`API error: ${data.error.message}`);
  }
}

Braidis Data Enrichment Platform