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

# Update call receiving

> Enables or disables receiving and answering WhatsApp calls on this connection. Disabled by default: when enabled, the bridge pre-accepts incoming calls, which brings up media even for calls nobody answers. Enable it only if your system will handle call.offer events (with POST /calls/accept or POST /calls/reject). Unavailable on cloud_api connections. The change updates the pod's env, so it takes effect from the next restart.



## OpenAPI

````yaml /api-reference/openapi.en.json post /api/v1/sessions/{sessionId}/receive-calls-settings
openapi: 3.1.0
info:
  title: D-API - Complete WhatsApp Infrastructure
  description: >-
    A scalable, robust solution for automation managers, SaaS products and end
    users who need a reliable WhatsApp integration. It offers multiple
    simultaneous instances, real-time webhooks, an intuitive dashboard and a
    documented REST API with 99.9% uptime and latency under 30ms.
  version: 1.2.1
  contact:
    name: Suporte D-API
    email: suporte@d-api.cloud
    url: https://d-api.cloud
servers:
  - url: https://api.d-api.cloud
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Home
    description: Base endpoints
  - name: Sessions
    description: Endpoints for managing sessions
  - name: Messages
    description: Endpoints for sending messages
  - name: Cloud API
    description: >-
      WhatsApp Official API (Meta Cloud API): manual connection, template
      management (list/create/delete) and template sending.
  - name: IVR Calls
    description: 'Voice call dispatch (IVR): single or bulk, with audio or an IVR flow.'
  - name: SMS
    description: 'SMS sending: single or bulk.'
  - name: Commands
    description: >-
      Look up asynchronous commands (async: true) by the commandId returned when
      enqueued.
paths:
  /api/v1/sessions/{sessionId}/receive-calls-settings:
    post:
      tags:
        - Sessions
      summary: Update call receiving
      description: >-
        Enables or disables receiving and answering WhatsApp calls on this
        connection. Disabled by default: when enabled, the bridge pre-accepts
        incoming calls, which brings up media even for calls nobody answers.
        Enable it only if your system will handle call.offer events (with POST
        /calls/accept or POST /calls/reject). Unavailable on cloud_api
        connections. The change updates the pod's env, so it takes effect from
        the next restart.
      operationId: postApiV1SessionsBySessionIdReceive-calls-settings
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
          description: Session identifier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                receiveCalls:
                  type: boolean
              required:
                - receiveCalls
          multipart/form-data:
            schema:
              type: object
              properties:
                receiveCalls:
                  type: boolean
              required:
                - receiveCalls
          text/plain:
            schema:
              type: object
              properties:
                receiveCalls:
                  type: boolean
              required:
                - receiveCalls
      responses:
        '200':
          description: Settings updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  sessionId:
                    type: string
                  receiveCalls:
                    type: boolean
                  updatedAt:
                    type: string
                required:
                  - message
                  - sessionId
                  - receiveCalls
              example:
                message: Receive calls setting updated successfully
                sessionId: session123
                receiveCalls: true
                updatedAt: '2025-09-19T14:22:31.000Z'
        '400':
          description: Official API connection (Cloud API)
          content:
            application/json:
              example:
                success: false
                error: >-
                  Conexões da API Oficial (Cloud API) não suportam chamadas de
                  WhatsApp
                sessionId: cloud-1a2b3c
                code: 400
        '404':
          description: Session not found
          content:
            application/json:
              example:
                error: Session not found
                sessionId: session123
                code: 404
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'API Key for authentication. Format: <API_KEY>'

````

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