For the complete documentation index, see llms.txt. This page is also available as Markdown.

Mail Merge

Generate documents from templates and submissions

Get a generated document

get
Authorizations
OAuth2passwordRequired

Send the access token as Authorization: Bearer <token>.

Token URL: Refresh URL:

OAuth2authorizationCodeRequired

Send the access token as Authorization: Bearer <token>.

Authorization URL: Token URL: Refresh URL:
Path parameters
app_shortstringRequired

Short name of the workspace, as found in the URL of the back-office.

report_idstringRequiredPattern: [0-9]+
Header parameters
X-Accept-Versionstring · enumOptional

API version to apply. Defaults to v1.0 when omitted; an unknown value falls back to the latest version.

Default: v1.3Possible values:
Responses
200

Document object

application/json

Generated mail merge

errorMessagestringOptional

Error message, if any

idintegerOptional

Mail merge identifier

statusstringOptional

Mail merge status (e.g. finished, error)

get/{app_short}/reports/{report_id}
GET /{app_short}/reports/{report_id} HTTP/1.1
Host: api.daxium-air.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "errorMessage": "text",
  "id": 1,
  "original_document": {
    "file_name": "text",
    "file_uuid": "text"
  },
  "pdf_document": {
    "file_name": "text",
    "file_uuid": "text"
  },
  "status": "text"
}

List the mail merge templates

get

Templates can be filtered by form or by submission.

Authorizations
OAuth2passwordRequired

Send the access token as Authorization: Bearer <token>.

Token URL: Refresh URL:

OAuth2authorizationCodeRequired

Send the access token as Authorization: Bearer <token>.

Authorization URL: Token URL: Refresh URL:
Path parameters
app_shortstringRequired

Short name of the workspace, as found in the URL of the back-office.

Query parameters
pagestringOptional

Page number

Default: 0Pattern: \d+
per_pagestringOptional

Number of result by page (Max 1000)

Default: 10Pattern: -?\d+
updated_sincestringOptional

Get only templates updated from this date

Default: ""Pattern: \d+
structurestringOptional

Structure id

Default: ""Pattern: [0-9]+
submissionstringOptional

Submission id

Default: ""Pattern: [0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}
Header parameters
X-Accept-Versionstring · enumOptional

API version to apply. Defaults to v1.0 when omitted; an unknown value falls back to the latest version.

Default: v1.3Possible values:
Responses
200

Paginated list of templates

application/json
server_timeinteger · int64Optional
total_countintegerOptional
total_pagesintegerOptional
get/{app_short}/report_templates
GET /{app_short}/report_templates HTTP/1.1
Host: api.daxium-air.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "server_time": 1,
  "templates": [
    {
      "id": 1,
      "listingMode": true,
      "mailBody": "text",
      "mailSubject": "text",
      "name": "text",
      "reportName": "text",
      "sendAsHtml": true,
      "templateEngine": "text"
    }
  ],
  "total_count": 1,
  "total_pages": 1
}

List the generated documents

get

Returns the documents generated for the given submission.

Authorizations
OAuth2passwordRequired

Send the access token as Authorization: Bearer <token>.

Token URL: Refresh URL:

OAuth2authorizationCodeRequired

Send the access token as Authorization: Bearer <token>.

Authorization URL: Token URL: Refresh URL:
Path parameters
app_shortstringRequired

Short name of the workspace, as found in the URL of the back-office.

Query parameters
pagestringOptional

Page number

Default: 0Pattern: \d+
per_pagestringOptional

Number of result by page (Max 1000)

Default: 10Pattern: -?\d+
updated_sincestringOptional

Get only pp updated from this date

Default: ""Pattern: \d+
submissionstringRequired

Submission id

Default: ""Pattern: [0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}
Header parameters
X-Accept-Versionstring · enumOptional

API version to apply. Defaults to v1.0 when omitted; an unknown value falls back to the latest version.

Default: v1.3Possible values:
Responses
200

Paginated list of documents

application/json
next_pageintegerOptional
server_timeinteger · int64Optional
total_countintegerOptional
get/{app_short}/reports
GET /{app_short}/reports?submission= HTTP/1.1
Host: api.daxium-air.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "next_page": 1,
  "reports": [
    {
      "errorMessage": "text",
      "id": 1,
      "original_document": {
        "file_name": "text",
        "file_uuid": "text"
      },
      "pdf_document": {
        "file_name": "text",
        "file_uuid": "text"
      },
      "status": "text"
    }
  ],
  "server_time": 1,
  "total_count": 1
}

Generate a document

post

Generates a document from a template and a submission.

Authorizations
OAuth2passwordRequired

Send the access token as Authorization: Bearer <token>.

Token URL: Refresh URL:

OAuth2authorizationCodeRequired

Send the access token as Authorization: Bearer <token>.

Authorization URL: Token URL: Refresh URL:
Path parameters
app_shortstringRequired

Short name of the workspace, as found in the URL of the back-office.

Header parameters
X-Accept-Versionstring · enumOptional

API version to apply. Defaults to v1.0 when omitted; an unknown value falls back to the latest version.

Default: v1.3Possible values:
Body

Body for starting a mail merge

api_callbackstringRequired

URL called (PUT) when generation completes; {publipostage_id} is substituted (mandatory)

header_namestringOptional

HTTP header name to send during the callback (optional)

header_valuestringOptional

HTTP header value to send during the callback (optional)

join_formatstring · enumOptional

Output format: original, pdf, or original,pdf (two reports generated)

Possible values:
submission_idstring · uuidRequired

Submission identifier (mandatory)

template_idintegerRequired

Template identifier (mandatory)

Responses
200

Document generation started

application/json

Generated mail merge

errorMessagestringOptional

Error message, if any

idintegerOptional

Mail merge identifier

statusstringOptional

Mail merge status (e.g. finished, error)

post/{app_short}/reports
POST /{app_short}/reports HTTP/1.1
Host: api.daxium-air.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 162

{
  "api_callback": "text",
  "header_name": "text",
  "header_value": "text",
  "join_format": "original",
  "submission_id": "123e4567-e89b-12d3-a456-426614174000",
  "template_id": 1
}
{
  "errorMessage": "text",
  "id": 1,
  "original_document": {
    "file_name": "text",
    "file_uuid": "text"
  },
  "pdf_document": {
    "file_name": "text",
    "file_uuid": "text"
  },
  "status": "text"
}

Download the result of a generated document

get
Authorizations
OAuth2passwordRequired

Send the access token as Authorization: Bearer <token>.

Token URL: Refresh URL:

OAuth2authorizationCodeRequired

Send the access token as Authorization: Bearer <token>.

Authorization URL: Token URL: Refresh URL:
Path parameters
app_shortstringRequired

Short name of the workspace, as found in the URL of the back-office.

report_idstringRequiredPattern: [0-9]+
file_uuidstringRequiredPattern: [0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}
Header parameters
X-Accept-Versionstring · enumOptional

API version to apply. Defaults to v1.0 when omitted; an unknown value falls back to the latest version.

Default: v1.3Possible values:
Responses
200

Binary content of the produced document

application/octet-stream
string · binaryOptional
get/{app_short}/reports/{report_id}/results/{file_uuid}
GET /{app_short}/reports/{report_id}/results/{file_uuid} HTTP/1.1
Host: api.daxium-air.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
binary

Last updated

Was this helpful?