POST
/
sdk
/
prompt
/
render
curl --request POST \
  --url https://backend.trychatter.ai/sdk/prompt/render \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "var_mapping": {
    "key1": "value1",
    "key2": 42,
    "key3": [
      "a",
      "list"
    ]
  }
}'
{
  "msg": "<string>",
  "prompt": "<string>"
}

Headers

Authorization
string

Body

application/json
id
string
required
var_mapping
object
required

This is a mapping of variables. Keys are variable names as strings and values can be any JSON-serializable object.

Response

200 - application/json
msg
string
required
prompt
string
required