Describe a time when you implemented an API integration, including how you handled errors and retries.