Validate API
Validation is the recommended pre-flight step before render.
Endpoint: POST https://api.reelforger.com/v1/videos/validate
What validation checks
- request shape/schema
- semantic warnings (timing/layout risks)
- estimated duration and credit cost
- both payload families: recipe payloads (
recipe_id+variables) and timeline manifest payloads
For Timeline manifests specifically, validation is where you catch:
- missing or invalid field shapes
- bad
asset_idreferences - duplicate IDs
- impossible or ambiguous timing setups
- image duration inference gaps
- layout/readability risks that may still render but are likely poor output
What validation does not do
- it does not queue a render job
- it does not consume credits
- it does not simulate full rendering execution
How to use it in production
Use validate before render for both recipe-first and timeline workflows when reliability matters.
- validate payload
- fix all hard errors first
- review warnings and decide whether they are intentional
- re-run validate after manifest edits
- render only when the payload is clean or warnings are explicitly acceptable
How to interpret warnings
- Errors mean the manifest is invalid and should be revised before render.
- Warnings mean the payload is valid enough to continue, but ReelForger has detected a likely quality or intent risk.
- For agent workflows, warnings should usually trigger one revision pass rather than being ignored automatically.
Suggested agent loop
- Build the manifest.
- Call validate with the exact render body.
- If there are schema or semantic errors, revise the manifest fields directly.
- If there are warnings, decide whether they reflect intentional design or an authoring mistake.
- Re-validate until the result matches the intended output shape.
- Submit the same body to render.