How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Lob.com Template Versions API

These API endpoints allow you to create, retrieve, update and delete versions of reusable HTML templates for use with the Print & Mail API.back to top

Lob.com Template Versions API is one of 32 APIs that Lob.com publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Template Versions. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 5 operations across 2 paths, and defines 20 schemas. It is described by OpenAPI 3.2.0, at version 1.22.0.

Requests are made against a single base URL, https://api.lob.com/v1.

5 operations 2 paths 20 schemas 1 DELETE2 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.22.0
Base URL
https://api.lob.com/v1
Authentication
HTTP Basic
License
Terms of Service
Resource Areas
1

Authentication & Security 1

Lob.com Template Versions API declares 1 security scheme for authenticating requests. It accepts HTTP basic authentication (basicAuth). By default, every request must be authenticated.

Paths & Operations 5

Across 2 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Template Versions 5

These API endpoints allow you to create, retrieve, update and delete versions of reusable HTML templates for use with the Print & Mail API. back to top

GET
/templates/{tmpl_id}/versions/{vrsn_id}
Retrieve
template_version_retrieve 2 params → 200default
POST
/templates/{tmpl_id}/versions/{vrsn_id}
Update
template_version_update 2 params body → 200default
DELETE
/templates/{tmpl_id}/versions/{vrsn_id}
Delete
template_version_delete 2 params → 200default
GET
/templates/{tmpl_id}/versions
List
template_versions_list 5 params → 200default
POST
/templates/{tmpl_id}/versions
Create
create_template_version 1 param body → 200default

Schemas 20

The contract defines 20 schemas that model the data the API accepts and returns. The most detailed are list (5 properties), lob_base (4 properties), template_version_writable (4 properties), template_version_updatable (3 properties). Each schema is shown below with its type and property counts.

tmpl_id
string
Unique identifier prefixed with tmpl. ID of a saved [HTML template](section/HTML-Templates).
error
object
Lob uses RESTful HTTP response codes to indicate success or failure of an API request. In general, 2xx indicates success, 4xx indicate an input error, and 5xx…
1 property 1 required
count
integer
number of resources in a set
date_filter
object
Filter by ISO-8601 date or datetime, e.g. { "gt": "2012-01-01", "lt": "2012-01-31T12:34:56Z" } where gt is , lt is <, gte is ≥, and lte is ≤.
lob_base
object
4 properties 3 required
failure_status_code
integer
A conventional HTTP status code: 401 - Authorization error with your API key or account 403 - Forbidden error with your API key or account 404 - The requested…
template_required_vars
array
An array of required variables to be used in a template. Only available for handlebars templates.
template_version_writable
object
4 properties 1 required
date_created
string
A timestamp in ISO 8601 format of the date the resource was created.
template_html
string
An HTML string of less than 100,000 characters to be used as the publishedversion of this template. See [here](section/HTML-Examples) for guidance on designing…
template_version_deletion
object
Lob uses RESTful HTTP response codes to indicate success or failure of an API request. In general, 2xx indicates success, 4xx indicate an input error, and 5xx…
2 properties
list
object
Multiple items returned in order
5 properties
resource_description
stringnull
An internal description that identifies this resource. Must be no longer than 255 characters.
date_modified
string
A timestamp in ISO 8601 format of the date the resource was last modified.
engine
stringnull
The engine used to combine HTML template with merge variables. legacy - Lob's original engine handlebars
template_version_updatable
object
3 properties
template_version
vrsn_id
string
Unique identifier prefixed with vrsn.
deleted
boolean
Only returned if the resource has been successfully deleted.
object
string
Value is resource type.

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

lobcom-template-versions-api-openapi.yml Raw ↑

Other APIs Lob.com publishes across the network.

Lob.com Accounts API
Lob.com Addresses API
Lob.com Bank Accounts API
Lob.com Billing Groups API
Lob.com Booklets API
Lob.com Buckslip Orders API
Lob.com Buckslips API
Lob.com Campaigns API
Lob.com Card Orders API
Lob.com Cards API
Lob.com Checks API
Lob.com Creatives API
Where this information came from

This is an independent, third-party profile of Lob.com Template Versions API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.