Submit
POST /v1/task/submit accepts the common envelope:
Retrieve
GET /v1/task/{task_id} returns the current task state.
succeeded and failed are terminal. Clients should tolerate repeated
reads of the same state.
Choose a completion strategy
Polling
Best for local tools, scripts, and the first integration.
Callbacks
Best for services that already expose a public HTTPS endpoint.
Polling and callbacks are complementary. Keep the read endpoint available as
the recovery path when callback delivery is delayed.