Passer au contenu principal
POST
/
v2
/
api
/
summary_templates
Create summary template
curl --request POST \
  --url https://api.withallo.com/v2/api/summary_templates \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "name": "Sales call",
  "call_context": "B2B SaaS sales calls",
  "icon": "📞",
  "sections": [
    {
      "title": "Pain points",
      "instructions": "List the prospect's pain points",
      "order": 0
    },
    {
      "title": "Next steps",
      "instructions": "What was agreed",
      "order": 1
    }
  ]
}
EOF
{
  "data": {
    "id": "tst-abc123",
    "name": "Sales call",
    "call_context": "B2B SaaS sales calls",
    "icon": "📞",
    "sections": [
      {
        "title": "Pain points",
        "instructions": "List the prospect's pain points",
        "order": 0
      },
      {
        "title": "Next steps",
        "instructions": "What was agreed",
        "order": 1
      }
    ],
    "created_at": "2026-06-01T10:00:00",
    "updated_at": "2026-06-01T10:00:00"
  }
}
Scope requis : SUMMARY_TEMPLATES_WRITE

Comportement

Cree un modele de resume pour l’equipe. Seul name est requis. sections peut contenir jusqu’a 10 entrees ; chaque section necessite un title et un order.

Idempotence

Cet endpoint prend en charge l’en-tete Idempotency-Key. Si une requete reussit et que vous la rejouez avec la meme cle, la reponse stockee est retournee sans reexecuter l’operation. Voir Idempotence.

Autorisations

Authorization
string
header
requis

Corps

application/json
name
string
requis

Template name.

Exemple:

"Sales call"

call_context
string | null

Background context that helps the AI summarize calls (max 4000 characters).

Exemple:

"B2B SaaS sales calls"

icon
string | null

Optional icon (e.g. an emoji).

Exemple:

"📞"

sections
object[]

Ordered sections that make up the summary (max 10).

Maximum array length: 10

Réponse

Summary template created

data
object