Documentation Index
Fetch the complete documentation index at: https://docs.adclear.ai/llms.txt
Use this file to discover all available pages before exploring further.
Trigger Evaluation
Start a compliance evaluation for a specific promotion version. Evaluation runs asynchronously - the endpoint returns immediately with a202 Accepted status.
Request:
Poll Evaluation Status
Check the current status and results of compliance evaluations for a version. The response includes per-file results - single-file promotions return an array of one. Request:status logic:
| Aggregate Status | Condition |
|---|---|
processing | Any individual evaluation is still pending |
succeeded | All evaluations have succeeded |
failed | At least one failed, none pending |
Recommended Flow
- Trigger evaluation via
POST .../evaluate - Poll via
GET .../evaluationevery 5–10 seconds untilstatusissucceededorfailed - Alternatively, configure a webhook to receive results asynchronously without polling
Polling Example
Error responses
| Status | When | Action |
|---|---|---|
| 404 | Promotion or version not found | Verify the promotionId and versionId are correct |
| 404 | No evaluation exists (GET only) | Trigger an evaluation first |
| 502 | Upstream service error | Retry after a short delay |
Troubleshooting
Evaluation stuck in processing
Evaluation stuck in processing
Symptom:
GET .../evaluation keeps returning status: "processing" for longer than expected.Context: Typical evaluation time is 30–90 seconds depending on content size and complexity.Resolution:- Continue polling every 5–10 seconds for up to 5 minutes.
- If still processing after 5 minutes, re-trigger the evaluation with
POST .../evaluate. - If the issue persists, contact Adclear support with the
correlationIdandevaluationId.
Can I re-evaluate the same version?
Can I re-evaluate the same version?
Yes. Each call to
POST .../evaluate creates a new evaluation. When you poll with GET .../evaluation, you always receive the most recent result for that version. Previous evaluation results are retained internally for audit purposes.