Skip to main content
GET
Retrieve an async task

Authorizations

Authorization
string
header
required

Path Parameters

task_id
string
required

The task's friendly ID (e.g. task_AbCd1234567890Ef), or the id that POST /ledgers/{ledger_id}/batch_generations returns.

Response

Async task status

id
string
required

Friendly async task ID.

Example:

"task_AbCd1234567890Ef"

type
string
required

Opaque identifier for the kind of background work, e.g. ProductionAccounting::BatchBulkDestroyTask. New kinds may appear.

Example:

"ProductionAccounting::BatchBulkDestroyTask"

state
enum<string>
required

For Reporting::ReportInitiation specifically, a failure classified onto the resulting registry submission (see GET /reports/{report_id}'s registry_submissions) completes the task normally rather than failing it. Check the submission's kind/reason/sent, not this task's state, for that task type.

Available options:
initialized,
running,
completed,
failed
progress
integer
required
Required range: 0 <= x <= 100
progress_description
string | null
started_at
string<date-time> | null
finished_at
string<date-time> | null
error_message
string | null

Set when state is failed. Omitted when redacted for the caller.

result
any

Omitted when redacted for the caller.

args
object

Omitted when redacted for the caller.