Skip to main content
POST
/
templates
/
create
cURL
curl --request POST \
  --url https://alto.dialme.at/api/altov2/public/templates/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "description": "<string>",
  "instruction": "basic",
  "conversational_states": {}
}
'
{
  "message": "success",
  "result": {
    "_id": "tp_***",
    "title": "<string>",
    "description": "<string>",
    "instruction": {},
    "conversational_states": {},
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Retrieve your key from Dashboard.

Body

application/json
title
string
required
Required string length: 3 - 180
description
string
required
Required string length: 3 - 360
instruction
object
required
conversational_states
object
required

You can use our generator to create a conversational_states and export it as JSON. The JSON should be in the format of the generator JSON export.

Response

Successful response

message
string
Example:

"success"

result
object