Handling Errors

Errors return an HTTP status and a JSON body with an error code, message, and diagnostic code.

{
  "errorCode": "400-218",
  "errorMessage": "At least one company ID, keyword set ID, or keyword is required.",
  "diagnosticCode": "..."
}

Status codes

StatusMeaning
400 Bad RequestThe request body, filter values, date range, sorting, or pagination token is invalid.
401 UnauthorizedThe bearer token is missing, invalid, expired, or unsupported.
403 ForbiddenThe API key set does not include access to the Intent API.
429 Too Many RequestsA rate or account quota has been reached. Reduce concurrency and retry after a delay.
500 Internal Server ErrorAn unexpected error occurred.
503 Service UnavailableThe service is temporarily unavailable.

Common validation errors

Error codeCause
400-218No company IDs, keyword set IDs, or keywords were provided.
400-219More than 10 company IDs were provided.
400-220, 400-221A date is missing or is not in yyyy-MM-dd format.
400-222startDate is later than endDate.
400-223The date range exceeds 12 months.
400-224intentStrength contains an unsupported value.
400-225The people-researching range is negative or the minimum exceeds the maximum.
400-226pageSize is outside the 1–100 range.
400-227A sorting value is unsupported.
400-228The page token is invalid or expired.
400-229More than 10 keyword set IDs were provided.
400-230More than 50 keywords were provided.

Troubleshooting

  • Use errorMessage to correct a 400 response before retrying.
  • Refresh or replace the bearer token for 401 responses.
  • Ask your Demandbase administrator to verify Intent API access for 403 responses.
  • Retry 429 and transient 5xx responses with exponential backoff and jitter.
  • Include the diagnosticCode when contacting Demandbase Support.

Did this page help you?