read
general

Reads one long-running operation — a render, an AI design edit, or a write waiting for the merchant's approval — by the

Changed on

Reads one long-running operation — a render, an AI design edit, or a write waiting for the merchant's approval — by the id a tool returned in operation.id. Answers its state (queued, running, awaiting_approval, succeeded, failed, cancelled or expired), progress where the work reports it, the result's magistry:// uri once it succeeded, and the error code once it did not. A write that settles on its outcome (a catalog changeset, negative keywords, an audience sync) also says in result.outcome whether it was applied, partly_applied or failed, and in result.outcome_detail how many of how many (applied, of) and why the rest was not written (reasons): succeeded can be a partial write. Poll this, or subscribe to the operation.* events, instead of re-calling the tool that started the work.

post/api/v1/tools/operation_get

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopesread

Request body

object required
id, string required

The operation id (op_…) a tool returned in operation.id.

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision