POST
/
message-templates
curl --request POST \
  --url https://api.gleap.io/v3/message-templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'project: <project>' \
  --data '{
  "title": "<string>",
  "content": "<any>",
  "lexorank": "<string>",
  "isPublic": true,
  "users": [
    "<string>"
  ]
}'
{
  "updatedAt": "<string>",
  "createdAt": "<string>",
  "lexorank": "<string>",
  "project": {
    "isValid": {},
    "createFromHexString": {},
    "createFromTime": {},
    "generate": {},
    "cacheHexString": "<any>",
    "prototype": "<string>"
  },
  "content": "<any>",
  "title": "<string>",
  "isPublic": true,
  "users": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

project
string
required

Body

application/json
title
string
required
content
any
required
lexorank
string
required
isPublic
boolean
users
string[]

Response

200 - application/json
Ok
updatedAt
string
required
createdAt
string
required
isPublic
boolean
required
users
string[]
required
lexorank
string
project
object
content
any
title
string