Async APIs
Submit large masking or unmasking jobs for background processing and poll for results using a tracking ID.
Overview
Protecto's async endpoints are for large payloads or long-running operations where you don't want the request to block or risk timeouts.
The async flow is always:
- Submit an async job (mask or unmask) → receive a
tracking_id - Poll the Async Status API with
tracking_iduntil the job reaches a terminal state - Read the
resultfrom the status response
Async APIs require a paid subscription. They are not available on the trial.
When to use async
| Scenario | Use async? |
|---|---|
| Small, single-value requests | No — use synchronous APIs |
| Large batch of values | Yes |
| Payloads that may exceed request timeouts | Yes |
| Need reliable job tracking for batch workflows | Yes |
Submit response
All async submit endpoints return a tracking_id and initial status:
{
"data": [
{
"tracking_id": "17079670-e3a1-4643-b821-59f7b3c7824a26092024151238",
"status": "PENDING"
}
],
"success": true,
"error": { "message": "" }
}
Polling guidance
- Poll the Async Status endpoint every 30–60 seconds
- Stop polling when status becomes
SUCCESS,FAILED, orPURGED - Store results on your side when
SUCCESS— results may eventually be purged
Was this page helpful?
Last updated 3 weeks ago
Built with Documentation.AI