Contacts

Poll a bulk-delete background job

GET
/api/contacts/bulk-job/{jobId}

Returns the progress of a background bulk job created by DELETE /api/contacts/query-bulk-delete. Jobs live in an in-memory store and expire some time after completion; the response includes the cumulative processed count and the final status (pending while running, completed, or failed). Scoped to the caller's organization - SUPERADMIN can poll any org's jobs. Returns 404 for unknown/expired job IDs or jobs the caller does not own (no information leak).

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

jobId*string

Job UUID returned by DELETE /api/contacts/query-bulk-delete.

Response Body

application/json

application/json

curl -X GET "https://example.com/api/contacts/bulk-job/string"
{  "jobId": "b09c2c61-2f8f-4f02-9c1b-2f23a3a2f9c1",  "status": "pending",  "processed": 1500,  "total": 0}