Skip to Content
Templates & tariff

Set a template's cost

PUT
/partner/templates/{templateName}/cost

Sets how many credits (a whole number, 0 or more) one send of the template costs a sub-customer. Without language the cost applies to every language of the template; with it, to that language only (and it wins over the general one).

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
credits*integer
Formatint64
Range0 <= value <= 1000000
language?string

Only this language (e.g. tr, en_US); omit for every language.

Match^[A-Za-z]{2,3}(_[A-Za-z0-9]{2,8})?$

Response Body

Stored

application/json
  1. response
data*
meta*
Example Request
curl -X PUT 'https://app.messora.tech/api/v1/partner/templates/string/cost' \  -H 'Content-Type: application/json' \  -d '{  "credits": 2}'
Example Response
{  "data": {    "credits": 2,    "language": null,    "template_name": "invoice_ready",    "updated_at": "2026-12-01T09:00:00Z"  },  "meta": {    "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff"  }}