Long-running operations
Calls that finish after the response, and what to poll after each one.
Some operations depend on a charger or a roaming partner answering, which takes longer than one HTTP request should wait. These calls return at once and finish in the background. Each operation’s description in the API Reference names what to poll.
Polling well
- Poll every 2 to 5 seconds, and stop at a deadline you choose.
emsp.commands.getrefreshes a roaming command that is stillPENDINGfrom the partner, so polling it is what finishes it.
Prefer events to polling? Register a webhook endpoint with webhooks.endpoints.create, for example for energy.control_response.
Retries and asynchronous calls
The SDKs send a POST that could act twice only once, even after a 503: the first attempt may already have reached the charger. Check the status before you retry it yourself, or send an Idempotency-Key so a repeat returns the first result. See Errors and retries.