> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mavioapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create template

> Create a custom meeting template with defined sections and AI prompts.

Creates a new custom template that can be applied to meetings to structure AI-generated summaries and notes.

<ParamField body="name" type="string" required>
  Display name for the template (e.g., "Sprint Retrospective").
</ParamField>

<ParamField body="description" type="string" required>
  Brief description of the template's purpose.
</ParamField>

<ParamField body="category" type="string">
  Category for organization. One of `general`, `sales`, `product`, `hr`, or `custom`. Defaults to `custom`.
</ParamField>

<ParamField body="sections" type="array" required>
  Array of section definitions. Each section has:

  <Expandable title="Section object">
    <ParamField body="title" type="string" required>
      The heading for this section in the output.
    </ParamField>

    <ParamField body="prompt" type="string" required>
      Instructions for the AI on what to extract for this section.
    </ParamField>

    <ParamField body="type" type="string" required>
      Output format: `list`, `paragraph`, or `table`.
    </ParamField>
  </Expandable>
</ParamField>

### Response

Returns the created template object with its generated ID.

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.mavioapp.com/v1/templates \
    -H "Authorization: Bearer mvo_live_abc123" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "Design Review",
      "description": "Structured output for design review meetings.",
      "category": "product",
      "sections": [
        { "title": "Designs Reviewed", "prompt": "List each design or prototype discussed.", "type": "list" },
        { "title": "Feedback Summary", "prompt": "Summarize the feedback given for each design.", "type": "paragraph" },
        { "title": "Approved Designs", "prompt": "List designs that were approved.", "type": "list" },
        { "title": "Revisions Needed", "prompt": "List designs that need revisions with specific feedback.", "type": "table" },
        { "title": "Next Steps", "prompt": "List action items and deadlines.", "type": "list" }
      ]
    }'
  ```

  ```python Python theme={null}
  template = client.templates.create(
      name="Design Review",
      description="Structured output for design review meetings.",
      category="product",
      sections=[
          {"title": "Designs Reviewed", "prompt": "List each design discussed.", "type": "list"},
          {"title": "Feedback Summary", "prompt": "Summarize feedback for each design.", "type": "paragraph"},
          {"title": "Approved Designs", "prompt": "List approved designs.", "type": "list"},
          {"title": "Revisions Needed", "prompt": "List designs needing revisions.", "type": "table"},
          {"title": "Next Steps", "prompt": "List action items and deadlines.", "type": "list"},
      ]
  )
  ```

  ```javascript Node.js theme={null}
  const template = await client.templates.create({
    name: 'Design Review',
    description: 'Structured output for design review meetings.',
    category: 'product',
    sections: [
      { title: 'Designs Reviewed', prompt: 'List each design discussed.', type: 'list' },
      { title: 'Feedback Summary', prompt: 'Summarize feedback for each design.', type: 'paragraph' },
      { title: 'Approved Designs', prompt: 'List approved designs.', type: 'list' },
      { title: 'Revisions Needed', prompt: 'List designs needing revisions.', type: 'table' },
      { title: 'Next Steps', prompt: 'List action items and deadlines.', type: 'list' },
    ],
  });
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": "tpl_c4d5e6f7g8h9",
    "name": "Design Review",
    "description": "Structured output for design review meetings.",
    "category": "product",
    "type": "custom",
    "sections": [
      { "title": "Designs Reviewed", "prompt": "List each design or prototype discussed.", "type": "list" },
      { "title": "Feedback Summary", "prompt": "Summarize the feedback given for each design.", "type": "paragraph" },
      { "title": "Approved Designs", "prompt": "List designs that were approved.", "type": "list" },
      { "title": "Revisions Needed", "prompt": "List designs that need revisions with specific feedback.", "type": "table" },
      { "title": "Next Steps", "prompt": "List action items and deadlines.", "type": "list" }
    ],
    "created_by": "usr_a1b2c3d4e5",
    "created_at": "2026-04-14T11:00:00Z"
  }
  ```
</ResponseExample>
