API referenceSections

Save a welcome template after trying it; empty subject and body restore the default

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/account-kit/templates/{lang}

Save a welcome template after trying it; empty subject and body restore the default

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
langpathstringrequired
Allowed values: "vi" "en"
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • subject string required
  • body string required
Example
{
  "subject": "string",
  "body": "string"
}

Responses

200 Saved

Content type: application/json

  • lang string required
    Allowed values: "vi" "en"
  • subject string required
  • body string required

    Plain text, Go text/template fields such as {{.PanelURL}}

  • custom boolean required
  • fields array<string> required
  • updated_at string (date-time) optional
Example
{
  "lang": "vi",
  "subject": "string",
  "body": "string",
  "custom": true,
  "fields": [
    "string"
  ],
  "updated_at": "2026-01-01T00:00:00Z"
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required