How to Handle API Errors
This guide provides an overview of common errors you might encounter when using the Pipefy API and how to handle them effectively.
Common Error Types
| Error Code | Error Name | Description | 
|---|---|---|
| UNAUTHORIZED | Unauthorized Error | Occurs when the API request lacks valid authentication credentials or the provided token is invalid. | 
| INVALID_ROLE | Invalid Role Errors | Triggered when attempting to perform actions without the required permissions or with an invalid role. | 
| RESOURCE_NOT_FOUND | Field Type Not Found Error | Occurs when trying to access a field type that doesn't exist in the specified context. | 
| missingRequiredInputObjectAttribute | Missing Required Argument Error | Triggered when required parameters are missing from the API request. | 
| INVALID_INPUT | Invalid Input Error | Occurs when the provided input data doesn't meet the expected format or validation rules. | 
| USAGE_LIMIT_EXCEEDED | Email Rate Limit Exceeded Error | Triggered when the email sending rate limit is exceeded. | 
| Card could not be moved to phase | Card Could Not Be Moved to Phase Error | Occurs when there's an issue moving a card to a different phase. | 
Other Errors
If your error isn't listed here, you can find the complete list in the Status Codes and Error Handling section.
Error Response Format
All API errors follow a consistent response format:
{
  "error": {
    "message": "Error description",
    "details": {
      "code": "ERROR_CODE",
      "correlation_id": "unique-identifier-string",
      // Additional error details if available
    }
  }
}
The correlation_id field in the error details is a unique identifier that can be used to track specific error instances. When contacting Pipefy support, please include this ID to help us identify and resolve your issue more efficiently.
