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

# Rejeitar chamada

> Rejeita uma chamada recebida pelo telefone de quem ligou (`from`) e o `callId`.



## OpenAPI

````yaml /pt-br/api-reference/openapi.json post /calls/reject
openapi: 3.1.0
info:
  title: Zapfy API
  description: >-
    API de WhatsApp multi-tenant. Envie mensagens e gerencie webhooks por uma
    superfície única.
  version: 1.0.0
servers:
  - url: https://api.zapfy.io/v1
security:
  - accountToken: []
paths:
  /calls/reject:
    post:
      tags:
        - Chamadas
      summary: Rejeitar chamada
      description: >-
        Rejeita uma chamada recebida pelo telefone de quem ligou (`from`) e o
        `callId`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RejectCallBody'
      responses:
        '200':
          $ref: '#/components/responses/ActionDone'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
        - instanceToken: []
components:
  schemas:
    RejectCallBody:
      type: object
      required:
        - from
        - callId
      properties:
        from:
          type: string
          description: Telefone de quem ligou, em E.164 (vem no webhook de chamada).
          example: '5511999998888'
        callId:
          type: string
          description: Identificador da chamada (vem no webhook de chamada).
          example: ABCD1234
    SuccessResult:
      type: object
      properties:
        success:
          type: boolean
          example: true
          description: Sempre `true` quando a ação foi concluída.
  responses:
    ActionDone:
      description: Ação executada.
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                $ref: '#/components/schemas/SuccessResult'
    Error:
      description: Erro.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Instance not found
  securitySchemes:
    accountToken:
      type: http
      scheme: bearer
      description: Token de conta (`zpfy_acct_...`) — gerencia instâncias e webhooks.
    instanceToken:
      type: http
      scheme: bearer
      description: Token de instância (`zpfy_inst_...`) — envia mensagens.

````