Exception classes
The PHP SDK exports:MailrifyExceptionAuthenticationExceptionValidationExceptionNotFoundExceptionRateLimitExceptionApiException
Catch typed exceptions
Key-type mismatch example
events->track() requires a public key and most other methods require a secret key.
Retry and timeout behavior
The PHP SDK automatically retries transient failures:- Up to
maxRetriesretries (default3) - Retries
429and5xxresponses - Retries transport-level HTTP client failures
- Uses
Retry-Afterwhen present, otherwise exponential backoff with jitter
timeout client option.
retryAfter property on exceptions. Use the exception type, message, getStatusCode(), and getErrorData() for handling logic.
