In order to properly implement rate-limiting per these docs: https://developer.apple.com/documentation/retentionmessaging/identifying-rate-limits We need to expose the response headers like this to access the `Retry-After` value ```python @define class APIException(Exception): http_status_code: int api_error: Optional[APIError] raw_api_error: Optional[int] error_message: Optional[str] response_headers: Optional[Dict[str, str]] = None # <---- add this ``` Will submit a PR shortly to add this functionality
Activity
alexanderjordanbaker commentedon Aug 28, 2026
#211