canvas_id
, you’re going to pass your application_id
.
Head to your Workstation App page and follow these steps:
Open Connect via API
Get your app data
success
response and the task will have a running
status. You have two options for consuming the result of the task:
completed
or failed
. To poll the status of a task after creating it we can make a request to our API /task
endpoint.
webhook_url
to your API call. This way you’ll receive a POST
request in your endpoint when the task finishes.
GET
request to the /task
endpoint. This endpoint supports various optional parameters for filtering and pagination:
limit
: Number of results per response (default: 10, range: 1-100)offset
: Starting position of results (default: 0)status
: Array of task statuses (options: “created”, “running”, “validating”, “completed”, “failed”)since
: Start date for filtering tasks (format: timestamp or ISO 8601)until
: End date for filtering tasks (format: timestamp or ISO 8601)approvedBy
: Email of the user who approved the taskrevisionProcess
: Type of revision received (options: “approvedWithRevisions”, “approvedDirectly”)promptApplicationId
: ID of the application where the task was createdpromptVersionId
: ID of the Canvas version used to create the taskids
: Array of specific task IDs to retrieveorderBy
: Field to sort by (options: “name”, “reference”, “approvedAt”, “createdAt”, “updatedAt”, “id”, “status”, “approvedBy”, “createdBy”)order
: Sort direction (options: “asc” or “desc”)