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
| Method | Route | Headers |
|---|---|---|
| PUT | {baseurl}/vault/async-status | Authorization: Bearer <vault-user-api-key> |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
status | array | Yes | The jobs to check. |
status[].tracking_id | string | Yes | A 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.
| Field | Description |
|---|---|
tracking_id | The job's tracking ID. |
call_type | mask for a text job. |
status | PENDING, IN-PROGRESS, SUCCESS, or FAILED. |
error_msg | Why the job failed; null otherwise. |
input_payload | The request as it was submitted. |
result | One 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_time | When the job was submitted, as YYYY-MM-DD HH:MM:SS. |
process_start_time | When the job started, as YYYY-MM-DD HH:MM:SS. |
completed_time | When 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
successindicates whether the status call worked. Each job'sstatusanderror_msgindicate 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-statusinstead.
Was this page helpful?