templates
Validate Template Variables
Validate that all variables in template content are valid Pydantic fields.
This endpoint checks:
- All {{variable}} references are extracted
- Each variable corresponds to a field in LoadSchema or CarrierSchema
- Nested paths are valid (e.g., load.customer.name)
- Array access is valid (e.g., load.stops.0.city)
Returns validation result with any errors found.
Use this for:
- Real-time validation in template editor
- Pre-save validation
- Displaying helpful error messages to users
post/v1/templates/validate
Request
- Base URLhttps://api.mentium.io (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Headers
mentium-workspace-idstring nullable
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 2 revisions of this API.