Skip to content

ASYNC_TASK_STATUSES

const ASYNC_TASK_STATUSES: readonly ["queued", "running", "retrying", "succeeded", "failed"]

Defined in: src/schemas/asyncTask.schema.ts:17

Async task object schema.

Long-running operations (e.g. markdown writes with allow_async: true) return an async task handle instead of completing synchronously. Poll GET /v1/async_tasks/{id} until the task reaches a terminal status.

Notion API reference: https://developers.notion.com/reference/retrieve-async-task