AcquisityDeveloper Docs
Practical guides

Track background work

Tell the difference between accepted, running and finished.

Some actions take time. An HTTP 202 Accepted response means Acquisity accepted the work and created an operation to track it.

  1. Read the response's Location header, which points to /v1/operations/{operationId}.
  2. Call Get operation with your authorized key.
  3. Check status. Keep polling while it is queued or running, allowing time between requests and respecting rate limits.
  4. Stop polling at a terminal status and inspect the result or error.
StatusMeaning
queued / runningWork has not finished.
succeededThe operation completed; inspect result for the endpoint-specific outcome.
failedWork failed; inspect its error before deciding whether to retry.
cancelledWork was cancelled. Do not report success.
needs_attentionWork stopped and needs attention. Do not report success or keep polling as if it were running.

Read the outcome carefully: campaign lead search succeeds when dispatched. The leads arrive later. Other actions return their own documented result fields.

Organization-owned operations can only be read by that organization; user-owned operations by that user. Preserve the operation ID if your integration times out so it can check the existing work instead of submitting it again.