Operations
Get the status of an operation
Section titled “Get the status of an operation”GET /v1/operations/{id} · scope operations:read
Reads consult the real backend, with a 2 s cache. If the backend does not respond, the last known state is returned with stale: true and never a 500: a polling client must not lose its operation to a backend hiccup, nor be pushed into retrying the mutation.
curl https://api.truo.cloud/v1/operations/op_01JQ8XKM4N7P2R9TAB12CD34EF \ -H "Authorization: Bearer $TRUO_TOKEN"truo operation get op_01JQ8XKM4N7P2R9TAB12CD34EFawait truo.operations.get("op_01JQ8XKM4N7P2R9TAB12CD34EF");truo_meta({ "action": "operation_get", "id": "op_01JQ8XKM4N7P2R9TAB12CD34EF"})operationId: operations.get
List the account’s recent operations
Section titled “List the account’s recent operations”GET /v1/operations · scope operations:read
curl https://api.truo.cloud/v1/operations \ -H "Authorization: Bearer $TRUO_TOKEN"truo operation listawait truo.operations.list();operationId: operations.list