Error Handling

πŸš€ ZoomInfo API Documentation

Error Codes Reference

πŸ”΄ Client Errors (4xx)

400 – Bad Request

Error CodeError MessageRecommended Action
PFAPI0001Disallowed field '[field_name]' requested in queryCheck user entitlements, remove disallowed fields, and verify field availability for the current API endpoint.
PFAPI0002One or more fields have validation errorsRemove disallowed fields, validate input values, and contact your administrator for access if needed.
PFAPI0002Required request parameters are missing: [parameter_name]Verify all required parameters are included. Refer to the API documentation for a complete list.
PFAPI0002Page number cannot be greater than max value 100Ensure pagination does not exceed 100 pages.
PFAPI0003Invalid request bodyValidate JSON syntax and ensure the structure matches the API schema.
PFAPI0003Invalid field requestedRemove or correct unrecognized fields. Refer to the official field documentation.
PFAPI0003Invalid field typeMatch field types with the expected schema. Use proper data types.
PFAPI0003There is invalid field(s) in the requestConfirm that all fields match the schema definition.
PFAPI0004There is not sufficient info for your request. Please provide at least one input field.Add at least one valid input parameter.
PFAPI0004Missing required inputs, please provide a value for at least one of [field1, field2, ...]Include one or more of the required fields listed. Refer to endpoint documentation.
PFAPI0005Invalid field requestedEnsure all field names are spelled correctly and are valid for the endpoint.
PFAPI0006Input parameter '[parameter]' is invalid - [reason]Use lookup endpoints for valid enumerated values and format strings correctly.
PFAPI0006'[fieldMin]' cannot be greater than '[fieldMax]'Ensure logical consistency between min and max values.
PFAPI0006Invalid 'topics' (or some other values)Check field constraints and validate values against allowed inputs.
PFAPI0008Invalid field typeEnsure field types match the API specification. Convert inputs to appropriate types as needed.
PFAPI0009Invalid field '[field]' requested in queryRefer to the field list for valid values. Remove or correct invalid fields.
PFAPI0009OutputFields invalid or disallowedRemove invalid entries from outputFields. Use lookup endpoints if needed to confirm valid fields.

401 – Unauthorized

Error CodeError MessageRecommended Action
ZI0001The token provided is invalid. Please provide a valid token and try again.Verify the token format and contents. Regenerate if expired or malformed.
ZI0001The Authorization token is required and cannot be left blank. Please provide a valid token and try again.Include the Authorization header with a valid token in every request.
ZI0001Your session has expired. Please provide a valid token and try again.Re-authenticate and implement logic to refresh expired tokens automatically.

403 – Forbidden

Error CodeError MessageRecommended Action
ZI0002This application does not have the required scope to access the requested resource '[resource]'.Request additional scopes from your ZoomInfo Administrator. Confirm required scopes per endpoint in the API documentation.
ZI0003You do not have access to this endpoint. Please contact your ZoomInfo Account Manager for purchasing options.Review your account's access level. Contact your Account Manager to enable access or upgrade your subscription.
ZI0003You do not have permission to access the ZoomInfo API.Confirm your subscription includes API access. Contact ZoomInfo support or your Account Manager to enable access.

429 – Too Many Requests

Error CodeError MessageRecommended Action
ZI0004You have exceeded the rate limit for this resource. Please try again later.Implement exponential backoff. Review rate limits in the documentation. Consider request batching to reduce frequency.

πŸ”΄ Server Errors (5xx)

500 – Internal Server Error

Error CodeError MessageRecommended Action
PFAPI0007Internal Server ErrorRetry after a short delay. If the issue persists, check system status or contact ZoomInfo support.

504 – Gateway Timeout

Error CodeError MessageRecommended Action
PFAPI0010Gateway Timeout ExceptionRetry the request after a delay. If timeouts are frequent, reduce request size or complexity, and contact support if needed.

Best Practices for Error Handling

  • Implement proper retry logic for 5xx errors with exponential backoff
  • Cache authentication tokens and refresh them before expiration
  • Validate input parameters before making API calls to avoid 4xx errors
  • Monitor rate limits and implement request throttling for 429 errors
  • Log error details for debugging while avoiding sensitive information exposure
  • Provide meaningful error messages to end users based on error codes

For additional support and documentation, contact your ZoomInfo API representative.