Buffering and retrying API calls

On API endpoints which have device as an authorized user, you can buffer endpoint calls.

If the agent is offline, the endpoint call will be stored on the device and retried when the agent comes back online. If the device shuts down, the call will be written to disk and retried when the device powers up and the agent comes back online.

Additionally, you can specify retry behavior for an API call based on response codes.

To enable endpoint call buffering and retrying, add the buffer_call, is_retryable, and retryable_codes parameters to your API call.

You can find an example on our GitHub page: GitHub: post_device_authenticated_cloud_call.py.

To use agent authentication, you’ll have to update your agent and your Python SDK.