Skip to content

Get an async operation's progress

On this page
GET/v1/operations/{operation_id}get_operation
Riskread
AuthenticationAPI key or OAuth access token
Scopesnone (any valid credential)
Idempotencynatural: repeating the call gives the same result
Dry runnot applicable
Success status200
Response typeapplication/json

What it does#

  • Use when: A bulk call answered 202; poll until state is succeeded, failed or canceled.
  • Do not use when: the call answered 200 (the results are already in the response).
  • Side effects: None.
  • Reversible: Not applicable, nothing changes.
  • Required scope: none (any valid credential).
  • Idempotency: safe to repeat.
  • Typical next step: wait poll_after_seconds, or call cancel_operation to stop.

Request#

Path parameters#

FieldTypeDescription
operation_idstring

Query parameters#

FieldTypeRequiredDescription
itemsone of "true", "false", default "false"notrue adds a page of per-item results; needs subscribers:read.
limitinteger, min 1, max 200, default 50noPage size, 1 to 200. Default 50.
cursorstring, max 1024 charactersnoOpaque cursor from next_cursor of the previous page. Valid only with the same filters.

Every read also accepts fields=a,b,c to return only those top-level fields.

Response#

FieldTypeRequiredDescription
idstringyes
kindstringyes
stateone of "queued", "running", "succeeded", "failed", "canceled"yes
progressobjectyes
progress.totalinteger, min -9007199254740991, max 9007199254740991yes
progress.doneinteger, min -9007199254740991, max 9007199254740991yes
progress.countsobjectyes
resultany or nullyes
problemany or nullyes
created_atstring (date-time)yes
finished_atstring (date-time) or nullyes
poll_after_secondsinteger, min -9007199254740991, max 9007199254740991 or nullyesSuggested wait before asking again; null once finished
itemsobjectno
items.dataarray of objectyes
items.data[].ordinalinteger, min -9007199254740991, max 9007199254740991yes
items.data[].resultobjectyes
items.next_cursorstring or nullyes
items.has_morebooleanyes

Examples#

running#

Request:

curl 'https://api.seemly.com/v1/operations/opn_0123456789abcdefghjkmnpq' \
  -H "Authorization: Bearer $SEEMLY_API_KEY"

Response: 200:

JSON
{
  "id": "opn_0123456789abcdefghjkmnpq",
  "kind": "bulk_upsert_subscribers",
  "state": "running",
  "progress": {
    "total": 500,
    "done": 120,
    "counts": {
      "added_pending": 118,
      "invalid": 2
    }
  },
  "result": null,
  "problem": null,
  "created_at": "2026-02-01T10:00:00Z",
  "finished_at": null,
  "poll_after_seconds": 2
}

Errors#

Every error is an application/problem+json body with a code, a fix sentence and next_actions. See reading a problem response.

Typical next steps#

View this page as MarkdownReport a problem with this page

Type to search. Try a method and path, an operation name or an error code.