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

# Update call summary

> Replace the markdown content of a call's AI-generated summary.

Only call items have summaries — passing an SMS ID (`msg-*`) returns `400 INVALID_ITEM_ID`. If multiple completed summary templates exist on the same call, set `template_key` to disambiguate.

<Note>
  **Required scope:** `CONVERSATIONS_WRITE`
</Note>

Use this endpoint to replace the markdown body of a call's AI-generated summary — for example, after an agent reviews the auto-generated text and corrects it.

Only call items have summaries. Passing an SMS ID (`msg-*`) returns `400 INVALID_ITEM_ID`.

## Choosing a template

Most calls have a single completed summary, so `template_key` can be omitted. When a call has more than one completed summary (e.g., both `MARKDOWN_CLASSIC` and `MARKDOWN_SHORT_CALL`), `template_key` is **required** — otherwise the request fails with `400 SUMMARY_TEMPLATE_KEY_REQUIRED`.

| Template              | Use case                              |
| --------------------- | ------------------------------------- |
| `MARKDOWN_CLASSIC`    | Full structured summary with sections |
| `MARKDOWN_SHORT_CALL` | One-paragraph summary for short calls |

If the call has no completed summary matching the supplied `template_key`, the request returns `404 SUMMARY_TEMPLATE_NOT_FOUND`.

## Error codes

| Code                            | Status | When                                                                     |
| ------------------------------- | ------ | ------------------------------------------------------------------------ |
| `INVALID_ITEM_ID`               | 400    | The ID prefix isn't `cll-`                                               |
| `INVALID_REQUEST_BODY`          | 400    | `content` is missing or exceeds 100,000 characters                       |
| `SUMMARY_TEMPLATE_KEY_REQUIRED` | 400    | The call has multiple completed templates and `template_key` was omitted |
| `CONVERSATION_ITEM_NOT_FOUND`   | 404    | The call doesn't exist or the API key's owner has no access to it        |
| `SUMMARY_TEMPLATE_NOT_FOUND`    | 404    | No completed summary exists for the requested `template_key`             |


## OpenAPI

````yaml PATCH /v2/api/conversations/items/{id}/summary
openapi: 3.0.3
info:
  title: Allo API
  description: >-
    Allo API provides programmatic access to your Allo account, allowing you to
    manage webhooks, retrieve calls and contacts, and send SMS messages.


    All requests to `/v1/api/**` endpoints automatically go through quota
    checking and scope validation.
  version: 1.0.0
  contact:
    name: Allo Support
servers:
  - url: https://api.withallo.com
    description: Production server
security: []
tags:
  - name: Summary Templates
    description: >-
      Manage call summary templates that control how AI-generated call summaries
      are structured for your team.
  - name: Webhooks
    description: >-
      Manage webhook configurations to receive real-time notifications about
      events in your Allo account. Each webhook is associated with a specific
      Allo phone number.
  - name: Calls
    description: >-
      Retrieve and search call records with filtering and pagination. Filter
      calls by your Allo phone number.
  - name: Contacts
    description: >-
      Search and retrieve contact information with sorting and pagination.
      Includes engagement level tracking.
  - name: SMS
    description: Send SMS messages to phone numbers using your Allo numbers.
  - name: Phone Numbers
    description: Retrieve information about your Allo phone numbers.
  - name: Analytics
    description: Pre-computed call metrics, team performance, and outbound dial funnel
  - name: CRM
    description: Manage people, companies, and deals in your CRM.
paths:
  /v2/api/conversations/items/{id}/summary:
    patch:
      tags:
        - Conversations
      summary: Update call summary
      description: >-
        Replace the markdown content of a call's AI-generated summary.


        Only call items have summaries — passing an SMS ID (`msg-*`) returns
        `400 INVALID_ITEM_ID`. If multiple completed summary templates exist on
        the same call, set `template_key` to disambiguate.
      operationId: updateCallSummary
      parameters:
        - name: id
          in: path
          required: true
          description: Call ID (`cll-*`)
          schema:
            type: string
            example: cll-abc123
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                content:
                  type: string
                  description: Full replacement markdown content. Max 100,000 characters.
                  maxLength: 100000
                template_key:
                  type: string
                  nullable: true
                  enum:
                    - MARKDOWN_CLASSIC
                    - MARKDOWN_SHORT_CALL
                  description: >-
                    Required only when the call has more than one completed
                    summary template.
              required:
                - content
            example:
              content: >-
                # Summary


                Customer asked about pricing for the Pro plan and confirmed a
                follow-up call next Tuesday.
      responses:
        '200':
          description: Updated summary
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/CallSummary'
              example:
                data:
                  id: cll-abc123
                  content: >-
                    # Summary


                    Customer asked about pricing for the Pro plan and confirmed
                    a follow-up call next Tuesday.
                  version: 4
                  updated_at: '2026-05-12T14:32:11'
                  updated_by:
                    id: usr-abc123
                    name: Alex Kim
        '400':
          $ref: '#/components/responses/ApiValidationError'
        '401':
          $ref: '#/components/responses/ApiUnauthorized'
        '404':
          $ref: '#/components/responses/ApiNotFound'
        '429':
          $ref: '#/components/responses/ApiRateLimited'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CallSummary:
      type: object
      properties:
        id:
          type: string
          description: Call ID this summary belongs to
          example: cll-abc123
        content:
          type: string
          nullable: true
          description: Markdown summary content
        version:
          type: integer
          format: int64
          description: Optimistic-lock version. Increments on every successful update.
          example: 4
        updated_at:
          type: string
          format: date-time
          nullable: true
          example: '2026-05-12T14:32:11'
        updated_by:
          type: object
          nullable: true
          properties:
            id:
              type: string
              example: usr-abc123
            name:
              type: string
              nullable: true
              example: Alex Kim
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            request_id:
              type: string
            retry_after_seconds:
              type: integer
              nullable: true
  responses:
    ApiValidationError:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiUnauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiNotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiRateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````