> ## 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.

# Set a number's default template

> Sets or clears the default summary template used for a phone number's call summaries. Pass `summary_template_id` to set it, or null/omit to clear it.

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

## Behavior

Sets the default summary template for a phone number. New calls on that number are summarized using this template. The `{number}` path parameter is the Allo phone number in E.164 format (e.g. `+14155551234`).

Pass `summary_template_id` (a `tst-*` ID) to set the default, or omit it / pass `null` to clear the default and fall back to Allo's standard summary.

## Errors

* `404 PHONE_NUMBER_NOT_FOUND` — the number is not one of your account's numbers. List them with `GET /v2/api/numbers`.
* `404 SUMMARY_TEMPLATE_NOT_FOUND` — no active template with that ID exists for the number's team.


## OpenAPI

````yaml PUT /v2/api/numbers/{number}/default_summary_template
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 endpoints to receive real-time notifications about events
      in your Allo account. Each endpoint subscribes to one or more event topics
      and is verified with a signing secret.
  - 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/numbers/{number}/default_summary_template:
    put:
      tags:
        - Summary Templates
      summary: Set number default summary template
      description: >-
        Sets or clears the default summary template used for a phone number's
        call summaries. Pass `summary_template_id` to set it, or null/omit to
        clear it.
      operationId: setNumberDefaultSummaryTemplate
      parameters:
        - name: number
          in: path
          required: true
          description: Allo phone number in E.164 format
          schema:
            type: string
            example: '+14155551234'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                summary_template_id:
                  type: string
                  nullable: true
                  description: >-
                    Summary template ID (`tst-*`) to set as the default, or null
                    to clear.
                  example: tst-abc123
            example:
              summary_template_id: tst-abc123
      responses:
        '200':
          description: Default summary template updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      number:
                        type: string
                        example: '+14155551234'
                      default_summary_template_id:
                        type: string
                        nullable: true
                        example: tst-abc123
              example:
                data:
                  number: '+14155551234'
                  default_summary_template_id: tst-abc123
        '400':
          $ref: '#/components/responses/ApiValidationError'
        '401':
          $ref: '#/components/responses/ApiUnauthorized'
        '404':
          $ref: '#/components/responses/ApiNotFound'
        '429':
          $ref: '#/components/responses/ApiRateLimited'
      security:
        - ApiKeyAuth: []
components:
  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'
  schemas:
    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
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````