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.
If you notice an issue with this page or need help, please reach out to us! Use the 'Did this page help you?' buttons below, or get in contact with our Customer Success team via the Intercom messenger in the bottom-right corner of this page, or at [email protected].