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

# List Calls

> WhatsApp calls, newest first: all of them, or one contact's. Each has who answered (AI or team), how long it lasted and the AI summary.



## OpenAPI

````yaml GET /api/pub/wa/call/list
openapi: 3.1.0
info:
  title: AdsEra REST API
  description: >-
    Welcome to the AdsEra REST API. Use our API to integrate powerful,
    multi-channel communication (Email and WhatsApp) directly into your
    applications. Automate transactional messages, trigger marketing campaigns,
    manage your audience, and track performance programmatically.
  contact:
    name: Shubham
    email: shubham@adsera.in
  version: 1.0.0
servers:
  - url: https://app.adsera.in
    description: Production Server
security:
  - AppIdAuth: []
    AppSecretAuth: []
paths:
  /api/pub/wa/call/list:
    get:
      tags:
        - Call
      summary: List Calls
      description: >-
        WhatsApp calls, newest first: all of them, or one contact's. Each has
        who answered (AI or team), how long it lasted and the AI summary.
      operationId: listCalls
      parameters:
        - name: phone
          in: query
          required: false
          description: Only this contact's calls (phone with country code).
          schema:
            type: string
        - name: from
          in: query
          required: false
          description: Calls from this date.
          schema:
            type: string
            format: date
            example: '2026-11-01'
        - name: to
          in: query
          required: false
          description: Calls up to this date.
          schema:
            type: string
            format: date
        - name: page
          in: query
          required: false
          description: Page, from 1.
          schema:
            type: integer
            example: 1
        - name: perPage
          in: query
          required: false
          description: Calls per page, at most 100. Default 25.
          schema:
            type: integer
            example: 25
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      calls:
                        type: array
                        items:
                          $ref: '#/components/schemas/CallRecord'
                      page:
                        type: integer
                      perPage:
                        type: integer
                      total:
                        type: integer
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CrmError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: >-
            Your plan has no API access, has expired, or doesn't include
            WhatsApp.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CrmError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CrmError'
components:
  schemas:
    CallRecord:
      type: object
      properties:
        id:
          type: string
        callId:
          type: string
          description: WhatsApp's call id.
        whatsapp:
          type: string
          description: Id of your WhatsApp number.
        contact:
          type: string
          example: '919876543210'
        contactId:
          type: string
        direction:
          type: string
          enum:
            - inbound
            - outbound
        status:
          type: string
          enum:
            - CONNECTING
            - CONNECTED
            - END
            - MISSED
            - REJECTED
        handledBy:
          type: string
          enum:
            - ai
            - team
            - api
          description: >-
            Who answered: the AI voice agent, your team in AdsEra, or your own
            system.
        startedAt:
          type: string
          format: date-time
          nullable: true
        endedAt:
          type: string
          format: date-time
          nullable: true
        durationSeconds:
          type: integer
          example: 95
        summary:
          type: string
          nullable: true
          example: Wants a demo on Friday at 11; asked about pricing for 3 users.
          description: >-
            The AI's summary of the call, when the AI took it. It can arrive a
            little after the call ends (see the call.summary webhook).
        recording:
          type: string
          nullable: true
          example: /api/pub/wa/call/6740…/recording
          description: >-
            Path of the recording, when the call was recorded. Fetch it with
            your API headers.
        transcript:
          type: array
          description: 'Only on Get a Call: what was said, line by line (AI calls).'
          items:
            type: object
            properties:
              who:
                type: string
                enum:
                  - caller
                  - addy
                  - agent
                  - system
              text:
                type: string
              at:
                type: string
                format: date-time
        createdAt:
          type: string
          format: date-time
    CrmError:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          example: Contact not found
    ErrorResponse:
      type: object
      properties:
        status:
          type: integer
          example: 500
        success:
          type: boolean
          example: false
        error:
          type: string
          example: Internal Server Error!
  responses:
    Unauthorized:
      description: Unauthorized. The API keys are missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            status: 401
            success: false
            error: 'Unauthorized: Please provide valid API credentials.'
  securitySchemes:
    AppIdAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your application's unique ID.
    AppSecretAuth:
      type: apiKey
      in: header
      name: x-api-secret
      description: Your application's secret key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.