Skip to main content
POST
Create message template

Authorizations

Authorization
string
header
required

Send your team API key or project token as Authorization: Bearer <token>. The credential must have the required permissions. Project tokens can access only their own project.

Body

application/json
projectId
string<uuid>
required

Identifier of the Polymorfa project that owns this resource.

Value constraints

name
string
required

Human-readable name for this resource.

Value constraints

Required string length: 1 - 512
definition
object
required

Structured definition for this resource.

draftId
string<uuid>

Identifier of the saved draft.

Value constraints

sampleValues
object | null

Example values used to preview this template field.

Accepted alternatives

Response

Success

data
string<uuid>
required

Structured data carried by this object.

Value constraints