Skip to main content
GET
Get Training Status
Return the current training run for a policy import. Poll after Train Policy Adapter until status is succeeded or failed. The successful poll is part of activation: when Training Studio reports succeeded, ZeroDrift records the run as the import’s active adapter. A failed retraining attempt does not replace an earlier working adapter.

Path Parameters

string
required
The policy import whose training run you want to inspect.

Response

string
Policy import associated with the run.
string
Training Studio run identifier.
string
Current run status. succeeded and failed are terminal.
string
Current training pipeline stage, when reported.
object
Training progress details, when reported.
string
Failure detail when status is failed.

Error Responses

Complete flow

Training extends the custom-policy flow:
  1. Import Policy.
  2. Poll Get Import Details until extraction reaches pending_review.
  3. Review or simulate the extracted rules, then Activate Rules.
  4. Train Policy Adapter.
  5. Poll this endpoint until status is succeeded or failed. Stop on either terminal status; do not keep polling a failed run.
  6. If the run succeeded, enforce content with validation_scope.imports containing the import ID.
Do not submit content for enforcement to a still-training run. ZeroDrift only promotes training_run_id after a successful status poll; until then, scoped enforcement follows its configured fallback path.

Example

This sample starts training and polls to a terminal state.
Python