Retrieve a redaction job Preview
GET / v1 / privacy / redaction_jobs /:id
Retrieves the details of a previously created redaction job.
Parameters
- job string Required RedactionJob object identifier
Returns
Returns the RedactionJob object.
Response
{ "id": "prj_123", "object": "privacy.redaction_job", "created": 1234567890, "livemode": true, "status": "ready", "validation_behavior": "error"}
List all redaction jobs Preview
GET / v1 / privacy / redaction_jobs
Returns a list of redaction jobs.
Parameters
- status enum If provided, only RedactionJob objects with the given status will be returned. Possible enum values
canceledThe job is canceled. No objects are redacted.cancelingThe job is canceling and no objects will be redacted.createdThis job is newly created and will begin validating shortly.failedThe job failed to validate. View the job’s validation errors for more information.readyThe job is ready to run or cancel.redactingThe job is running. It is redacting the job’s specified objects.succeededThe job is complete. The job’s objects are redacted.validatingThe job is checking if the objects are eligible for redaction.
More parameters
- ending _ before string
- limit integer
- starting _ after string
Returns
Returns a list of RedactionJob objects.
Response
Cancel a redaction job Preview
POST / v1 / privacy / redaction_jobs /:id / cancel
You can cancel a redaction job when it’s in one of these statuses: ready, failed.
Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
Parameters
- job string Required RedactionJob object identifier
Returns
Returns the RedactionJob object if successful. Otherwise, returns an error.
Response
{ "id": "prj_123", "object": "privacy.redaction_job", "created": 1234567890, "livemode": true, "status": "canceling", "validation_behavior": "error"}
