Skip to content

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub

ComPDF AI Open API Error Code Reference ​

Scope ​

This reference applies only to public Open API requests.

Error Response ​

Open API error responses contain an HTTP status, a numeric code, a stable error_code, a message, and optional data:

json
{
  "code": 102,
  "error_code": "INVALID_RULE_CONFIGURATION",
  "message": "Invalid reminder rule configuration",
  "data": false
}

Use error_code to identify the error. Do not parse the human-readable message.

Open API Error Codes ​

error_codeCodeHTTP statusDescription
INTERNAL_ERROR100500An unexpected server-side failure occurred.
INVALID_ARGUMENT101400A request parameter is missing, invalid, or has an unsupported format.
INVALID_RULE_STATUS102400The supplied reminder-rule status is not allowed.
INVALID_RULE_CONFIGURATION102400The reminder-rule conditions, frequency, delivery channels, or recipients are invalid.
API_KEY_REQUIRED401401The request does not include a Service API Key.
API_KEY_INVALID401401The Service API Key is invalid, inactive, or expired.
RULE_NOT_FOUND404404The requested reminder rule does not exist or is not available to the API Key organization.
RESOURCE_CONFLICT409409The resource cannot be changed in its current state.

Reminder Rule API Mapping ​

Open APIPossible error_code values
POST /api/v2/rulesAPI_KEY_REQUIRED, API_KEY_INVALID, INVALID_RULE_CONFIGURATION, RESOURCE_CONFLICT, INTERNAL_ERROR
GET /api/v2/rulesAPI_KEY_REQUIRED, API_KEY_INVALID, INVALID_ARGUMENT, INVALID_RULE_STATUS, INTERNAL_ERROR
GET /api/v2/rules/{ruleId}API_KEY_REQUIRED, API_KEY_INVALID, RULE_NOT_FOUND, INTERNAL_ERROR
PUT /api/v2/rules/{ruleId}API_KEY_REQUIRED, API_KEY_INVALID, INVALID_RULE_CONFIGURATION, RULE_NOT_FOUND, RESOURCE_CONFLICT, INTERNAL_ERROR
PATCH /api/v2/rules/{ruleId}/statusAPI_KEY_REQUIRED, API_KEY_INVALID, INVALID_RULE_STATUS, RULE_NOT_FOUND, INTERNAL_ERROR
DELETE /api/v2/rules/{ruleId}API_KEY_REQUIRED, API_KEY_INVALID, RULE_NOT_FOUND, INTERNAL_ERROR