Attributes
View the payload for retrieving customizable template information.When the
other document type is enabled in document_upload, end users can upload arbitrary documents that don’t fit the other categories. Truv does not parse these documents into structured data (they are captured only) — you can collect the uploaded files through the Uploaded Documents API (GET /v1/links/{link_id}/documents/).Endpoints
The table below covers the available endpoints for customizable templates.- List all customizable templates - GET /v1/templates/
- Create a customizable template - POST /v1/templates/
- Retrieve a customizable template - GET /v1/templates/{template_id}/
- Update a customizable template - PATCH /v1/templates/{template_id}/
- Delete a customizable template - DELETE /v1/templates/{template_id}/
What templates control
Templates give you fine-grained control over the verification experience across several areas:To suppress all Truv-sent notifications and handle communications yourself, enable
suppress_user_notifications in the template’s orders.notification_settings configuration. Its companion field first_notification_delay_hours is ignored when suppression is on.Restrict the custom field format
Setorders.custom_field_pattern to accept only order custom_field values in a specific format, such as a 9-digit case number. The pattern is a regular expression: [0-9] means “a digit” and {9} means “exactly nine times”, so [0-9]{9} accepts exactly nine digits. Try patterns on sample values with regex101.
Set the pattern in the template’s
orders object:
Escape backslashes in JSON. For example, send the pattern
\d{9} as "\\d{9}".template_id. A mismatch returns 400 Bad Request with an error on custom_field. Orders without custom_field aren’t checked.
Patterns match ASCII characters only and can be up to 100 characters. Truv rejects patterns that could take too long to evaluate, such as nested repeats like
(a+)+, backreferences, and lookarounds.Example response
The
bridge.texts object is deprecated. Use bridge.product_settings instead to configure per-product Bridge text; texts will be removed in a future version.