Skip to Content
Templates & tariff

Set a template's company-name variable

PUT
/partner/templates/{templateName}/company-name

Names the template variable that every send fills with the sub-customer's display_name, for every language of the template: header.<key> or body.<key>, where the key is the variable's name ({{firma}}) or number ({{1}}). null removes the choice; then a variable named company_name is filled, if the template has one. A value the request gives for that variable always wins.

Scope: partner.manage. Rate limit: 300 requests per minute per API key.

Authorization

apiKey partner.manage
headerAuthorizationBearer <msk_live_…>

An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.

Scope: partner.manage

Path Parameters

templateName*string

The template's name in Meta.

Match^[a-z0-9_]{1,512}$

Request Body

application/json
  1. body
variable*|

header. or body. (the variable's name or number); null removes the choice.

Match^(header|body)\.[A-Za-z0-9_]{1,64}$

Response Body

Stored

application/json
  1. response
data*
meta*
Example Request
curl -X PUT 'https://app.messora.tech/api/v1/partner/templates/string/company-name' \  -H 'Content-Type: application/json' \  -d '{  "variable": "body.1"}'
Example Response
{  "data": {    "company_name": {      "source": "mapped",      "variable": "body.1"    },    "template_name": "invoice_ready"  },  "meta": {    "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff"  }}