Chanl

Create Prompt

Create a new prompt template.

Request
curl -X POST "https://platform.chanl.ai/api/v1/prompts" \
  -H "X-API-Key: chanl_key_..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Support Greeting",
    "content": "Hello {{customer_name}}!",
    "category": "support",
    "status": "active"
  }'
const { data } = await chanl.prompts.create({
  name: 'Support Greeting',
  content: 'Hello {{customer_name}}!',
  category: 'support',
  status: 'active',
});