Creates a new dynamic template by uploading HBS and JSON configuration files for multiple languages. The structure (JSON schema) is provided as part of each source metadata, extracted from the template editor. The system validates the structure and persists the template with version 1.0.
POST/orgs/{org_id}/dynamic_templates
Parameters
Name
In
Type
Required
Description
org_id
path
string
true
The string id related with one of Grupo MasOrange tenants
body
body
object
true
Template metadata and sources (HBS and JSON files) for each language. Each source includes the pre-extracted structure with fields, rules, and engine version.
Returns a paginated list of all dynamic templates for an organization. Only the latest version of each major version (the ones that could be edited) is included, ordered by creation_date in descending order.
GET/orgs/{org_id}/dynamic_templates
Parameters
Name
In
Type
Required
Description
org_id
path
string
true
The string id related with one of Grupo MasOrange tenants
external_id
query
string
false
Optional filter to retrieve templates for a specific external_id
Returns all minor versions for a specific major version of a dynamic template, ordered by minor version in descending order (newest to oldest). Includes JSON schema extracted from the template file.
Creates a new minor version of an existing dynamic template with non-breaking changes such as adding new languages or updating existing language content. Breaking changes like modifying the JSON schema structure, removing sources or changing default language will result in a 409 error.
Creates a new major version of an existing dynamic template with breaking changes. All languages must be provided with their sources. The new version will be X+1.0 where X is the highest existing major version. All new information in the template must be provided, as the information from the previous version will not be kept.
Deletes the latest minor version of a specific major version line. Cannot delete the base version (X.0) or if it's the only minor version in the major line.
Returns the complete changelog history for a dynamic template, showing all version transitions ordered by version in descending order (newest to oldest).
Submit an asynchronous request to fill a specific version of a dynamic template with provided data. The system validates the field values against the template's JSON schema and registers the request for asynchronous processing. Returns immediately with a fill_process_id that can be used to check status via the GET /fill_process endpoint.
Language of the template in ISO 639-1 format. Possible values: ES, EN, EU, GL, CA, DE, UNDEFINED Not all values are available to all organizations.
document
object
true
none
» name
string
true
Name for the generated document
» tags
[string]
false
Tags to categorize the document
fields_values
object
true
Field values that will be used to fill the template. Must conform to the template’s JSON schema. The entire payload is validated against the template’s JSON schema definition.
fill_priority
string
false
Processing priority for the fill request. Possible values: low, high
Check the status of an asynchronous document fill process. Returns the current state (CREATED, PROCESSING, COMPLETED, FAILED) and relevant metadata based on the state.
GET/orgs/{org_id}/fill_process/{fill_process_id}
Parameters
Name
In
Type
Required
Description
org_id
path
string
true
The string id related with one of Grupo MasOrange tenants
fill_process_id
path
string
true
Unique identifier of the fill process
Request example
1
2
3
4
curl -X GET https://documents.masstack.com/v1/orgs/masmovil/fill_process/11223344-aabb-ccdd-eeff-009988776655 \
-H "Accept: application/json"