Represents a digital asset in Posta, primarily used for rendering documents.
Assets are version-controlled containers, where the actual content is stored in Asset Versions. This structure allows for efficient management, compliance tracking, and monitoring of changes over time.
Assets support HTML templates with variables for document personalization, as well as static content like images, fonts, and documents.
Represents the overall status of an Asset, derived from the status(es) of its associated Asset Version(s).
draft: Indicates an Asset that is not yet published. This status applies when:
draft status and no version is published.published: Indicates that the Asset has a published Asset Version. The Asset is available for use.
archived: Indicates that all associated Asset Versions are archived. This status makes the Asset unavailable for new uses but may still be accessible for historical purposes.
deleted: Indicates that all associated Asset Versions have been deleted. This is a terminal status for the Asset.
Note:
deleted status.archived back to draft if a new Asset Version is created, or to published if a new or existing Asset Version is published.draft, published, archived, deleted "draft"
Specifies the type of Asset, determining its content format and how it's processed in Posta. Each type has specific use cases and handling mechanisms.
template, image, font, document "template"
Name of the Asset, used for display and organizational purposes.
1 - 255"Right to Cure"
Optional description of the Asset. Provides additional context or details about its purpose or content.
255"A legal document that a mortgage lender sends to a borrower who has fallen behind on their payments."
The asset version that defines the status of the asset. Hierarchical order: published > draft > archived > deleted. Deleted versions are not considered.
{
"id": "astv_2jyk1xYhW4n0vVfHirU5eJeXsbw",
"status": "draft",
"notes": "Minor changes to the footer.",
"content": {
"source": "inline",
"type": "text/html",
"content": "<html><body>Hello {{firstName}}</body></html>"
},
"variableDefinitions": [
{
"name": "name",
"behavior": "required",
"allowEmpty": false
}
],
"contentType": "text/html",
"contentLength": 100,
"contentUrl": "https://api.posta.co/assets/astv_2jyk1xYhW4n0vVfHirU5eJeXsbw/content",
"publish": false,
"createdAt": "2023-06-07T12:34:56Z",
"modifiedAt": "2023-06-07T12:34:56Z"
}A key-value store for custom metadata.
Limitations: