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

# Listar ligações

> Lista ligações de voz feitas ou recebidas.



## OpenAPI

````yaml /voice-api/api-reference/openapi-voice.json get /v1/voice/calls
openapi: 3.0.3
info:
  title: Notifique API Voice
  description: >-
    Faça ligações de voz e controle chamadas em andamento. Autentique com
    `Authorization: Bearer sk_live_...` ou `x-api-key`.
  version: 1.0.0
servers:
  - url: https://api.notifique.dev
    description: Produção
security:
  - ntfVoiceBearerAuth: []
  - ntfVoiceApiKeyHeader: []
tags:
  - name: 'Voice: Chamadas'
    description: Originar, listar, consultar e controlar chamadas de voz.
paths:
  /v1/voice/calls:
    get:
      tags:
        - 'Voice: Chamadas'
      summary: Listar ligações
      description: Lista ligações de voz feitas ou recebidas.
      operationId: ntfVoice_getV1VoiceCalls
      parameters:
        - name: page
          in: query
          schema:
            type: string
          description: Página (padrão 1).
        - name: limit
          in: query
          schema:
            type: string
          description: Itens por página (padrão 20, máx. 100).
        - name: direction
          in: query
          schema:
            type: string
            enum:
              - OUTBOUND
              - INBOUND
          description: Filtrar por direção.
      responses:
        '200':
          description: Lista paginada de chamadas.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfVoice_ListEnvelope'
        '401':
          $ref: '#/components/responses/NtfVoice_Unauthorized'
        '403':
          $ref: '#/components/responses/NtfVoice_Forbidden'
components:
  schemas:
    NtfVoice_ListEnvelope:
      type: object
      required:
        - success
        - data
        - pagination
      properties:
        success:
          type: boolean
        data:
          type: array
          items:
            $ref: '#/components/schemas/NtfVoice_VoiceCall'
        pagination:
          type: object
          properties:
            page:
              type: integer
            limit:
              type: integer
            total:
              type: integer
            totalPages:
              type: integer
    NtfVoice_VoiceCall:
      type: object
      properties:
        id:
          type: string
        workspaceId:
          type: string
        phoneNumberId:
          type: string
          nullable: true
        direction:
          type: string
          enum:
            - OUTBOUND
            - INBOUND
        fromE164:
          type: string
        toE164:
          type: string
        status:
          type: string
          enum:
            - QUEUED
            - INITIATED
            - RINGING
            - ANSWERED
            - COMPLETED
            - FAILED
        callSessionId:
          type: string
          nullable: true
        callLegId:
          type: string
          nullable: true
        answeredAt:
          type: string
          format: date-time
          nullable: true
        endedAt:
          type: string
          format: date-time
          nullable: true
        durationSecs:
          type: integer
          nullable: true
        hangupCause:
          type: string
          nullable: true
        recordingAvailable:
          type: boolean
        recordingId:
          type: string
          nullable: true
        dtmfDigits:
          type: string
          nullable: true
        gatherResult:
          type: string
          nullable: true
        machineDetectionResult:
          type: string
          nullable: true
        speakText:
          type: string
          nullable: true
        playAudioUrl:
          type: string
          nullable: true
        chargedAs:
          type: string
          nullable: true
        chargeAmount:
          type: number
          nullable: true
        clientState:
          type: string
          nullable: true
        metadata:
          type: object
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    NtfVoice_ErrorEnvelope:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
        message:
          type: string
        code:
          type: string
  responses:
    NtfVoice_Unauthorized:
      description: API Key ausente ou inválida.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NtfVoice_ErrorEnvelope'
    NtfVoice_Forbidden:
      description: Escopo insuficiente.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NtfVoice_ErrorEnvelope'
          example:
            success: false
            error: Forbidden
            message: 'Missing scope: voice:call'
            code: FORBIDDEN
  securitySchemes:
    ntfVoiceBearerAuth:
      type: http
      scheme: bearer
      description: 'API Key no formato Bearer (ex.: sk_live_...).'
    ntfVoiceApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````