Text Job Status

Check the status of submitted text masking jobs using their tracking IDs and retrieve results when the jobs complete.

Check text masking jobs

Use one or more tracking IDs to check jobs submitted through Mask Text (Async). Call the endpoint until each job is SUCCESS or FAILED.

File jobs submitted to PUT /mask/file/async use PUT /mask/file/async-status instead.

Endpoint

MethodRouteHeaders
PUT{baseurl}/vault/async-statusAuthorization: Bearer <vault-user-api-key>

Request body

FieldTypeRequiredDescription
statusarrayYesThe jobs to check.
status[].tracking_idstringYesA tracking ID returned by PUT /mask/async.

Example request

{
  "status": [
    {"tracking_id": "f58f73cd-8128-4213-827e-79473a5c85ca13112026065517"}
  ]
}

Response

The call returns one entry per tracking ID in data.

FieldDescription
tracking_idThe job's tracking ID.
call_typemask for a text job.
statusPENDING, IN-PROGRESS, SUCCESS, or FAILED.
error_msgWhy the job failed; null otherwise.
input_payloadThe request as it was submitted.
resultOne result per text item, with the same fields as a PUT /mask response: value, token_value, individual_tokens, excluded_entities, and toxicity_analysis. Empty until the job succeeds.
submitted_timeWhen the job was submitted, as YYYY-MM-DD HH:MM:SS.
process_start_timeWhen the job started, as YYYY-MM-DD HH:MM:SS.
completed_timeWhen the job finished, as YYYY-MM-DD HH:MM:SS.

Example response

This completed job used a policy that excludes URLs. The example shortens individual_tokens to one entry.

{
  "data": [
    {
      "tracking_id": "f58f73cd-8128-4213-827e-79473a5c85ca13112026065517",
      "call_type": "mask",
      "input_payload": {
        "mask": [{"value": "Arjun is my name here from DataLoop. Our official site is www.dataloop.ai and my email is arjun@gmail.com"}],
        "policy_name": "customer_mask_policy"
      },
      "result": [
        {
          "value": "Arjun is my name here from DataLoop. Our official site is www.dataloop.ai and my email is arjun@gmail.com",
          "token_value": "<PER>MaExJ</PER> is my name here from <ORG>R7Lazrxv</ORG>. Our official site is www.dataloop.ai and my email is <EMAIL>7PHWW@dnZ3r</EMAIL>",
          "individual_tokens": [
            {"value": "Arjun", "pii_type": "PERSON", "token": "MaExJ", "prefix": "<PER>", "suffix": "</PER>", "start_pos": 0, "end_pos": 5}
          ],
          "excluded_entities": [
            {"value": "www.dataloop.ai", "pii_type": "URL", "start_pos": 58, "end_pos": 73}
          ]
        }
      ],
      "error_msg": null,
      "submitted_time": "2026-11-13 06:55:18",
      "process_start_time": "2026-11-13 06:55:21",
      "completed_time": "2026-11-13 06:55:22",
      "status": "SUCCESS"
    }
  ],
  "success": true,
  "error": {"message": ""}
}

Errors and access

  • You can only read your own jobs in your own namespace. An unknown tracking ID, or one belonging to another user, returns Given tracking_ids not exists or Access denied.
  • The outer success indicates whether the status call worked. Each job's status and error_msg indicate how the job ended.
  • Results are stored once. Repeated calls for a finished job return the same result.
  • A file job's tracking ID is not found at this endpoint. Use PUT /mask/file/async-status instead.