Get a task
Returns the status of asynchronous work and references to what it produced. Every accepted scan, check, site audit, scan report, export, and connection sync returns a task_id and task_url that point here. Poll until the task reaches a terminal status.
/tasks/{task_id}AuthorizationBearer token · headerrequiredAPI key sent as Authorization: Bearer <key>. A key belongs to one workspace, has scopes, and can be limited to some brands.
AuthorizationOAuth2 access token · headerrequiredOAuth 2.1 sign-in (authorization code with PKCE) used by AI assistants that connect through the Zaraftis MCP server. Discovery URLs are at https://api.zaraftis.com/api/auth.
task_idstring<uuid>requiredTask status (the status values include partial)
successbooleanrequireddataTaskObjectrequiredThe public task status shape served by GET /v1/tasks/{task_id} (and the task_id/task_url reference members carried by accepted scan, check, audit, report, and export responses). Status uses the shared vocabulary including partial; the error member is the safe {code,message} shape only, never vendor or task ids. Each operation populates only the reference pair (or integration snapshot arrays) matching it.
Show propertiesHide properties
task_idstring<uuid>requiredoperationstringrequiredscansite_auditsetup_generationreport_creationexportintegration_syncstatusstringrequiredqueuedrunningcompletedpartialfailedcancelledprogressobjectrequiredShow propertiesHide properties
requestedintegerrequiredcompletedintegerrequiredfailedintegerrequirederrorobject | nullrequiredShow propertiesHide properties
codestringrequiredmessagestringrequirednulltimestampsobjectrequiredShow propertiesHide properties
created_atstringrequiredstarted_atstring | nullrequiredcompleted_atstring | nullrequiredscan_idstring<uuid> | nullrequiredShow propertiesHide properties
string<uuid>nullscan_urlstring | nullrequiredsite_audit_idstring<uuid> | nullrequiredShow propertiesHide properties
string<uuid>nullsite_audit_urlstring | nullrequiredreport_idstring<uuid> | nullrequiredShow propertiesHide properties
string<uuid>nullreport_urlstring | nullrequiredexport_idstring<uuid> | nullrequiredShow propertiesHide properties
string<uuid>nullexport_urlstring | nullrequiredintegration_snapshot_idsstring<uuid>[]requiredintegration_snapshot_urlsstring[]requiredrequest_idstringrequirednot_found: unknown id, or an id this key cannot see
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequired