Search templates
lob_templates_searchFind Lob templates by description substring or metadata. Returns slim matches without HTML for quick lookup when you know the template name but not its ID.
Instructions
Find templates by description substring (case-insensitive) and/or by Lob metadata. Pages through /templates server-side and returns slim matches (no HTML — use lob_templates_get(id) for the full body). Useful when you know the template by name but not by tmpl_… id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description_contains | No | Substring to match against each template's `description` field. Case-insensitive. Filtered client-side after pages are fetched. | |
| metadata | No | Forwarded to Lob as a `metadata[k]=v` filter. Use this to narrow the page walk on the server side before client-side description matching. | |
| limit | No | Maximum matches to return (default 20, max 100). | |
| max_pages | No | Maximum number of Lob list pages to walk before stopping (default 5, page size 100). Caps total templates inspected at max_pages × 100. |