---
agentTools:
  projectIndex: https://docs.doubletick.io/llms.txt
---

# Decline or end call

Declines an incoming call or ends an active call.

### Before you call
- Your organization needs a calling licence or add-on, and the API key's user needs permission to receive calls for the call.
- Send the `callId` of a call that is still ringing or in progress.

### How it works
- Hangs up the call on WhatsApp and updates the call in the chat.
- The response's `callStatus` is `REJECT` for a declined ringing call and `END` for an ended call.
- Returns 422 if the call is not found, already closed, its number is disconnected, or another user is on the call.
- Browser (WebRTC) calls only: other calls return 400 `Calling is not supported on this number.`

### Rate limit
- 60 requests per minute.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "WhatsApp Call Public API",
    "description": "Public APIs for initiating, receiving, and managing WhatsApp voice calls.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://public.doubletick.io",
      "description": "Production"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-public-api-key"
      }
    },
    "schemas": {
      "CallId": {
        "type": "string",
        "example": "call_abc123"
      }
    }
  },
  "paths": {
    "/whatsapp/decline": {
      "post": {
        "summary": "Decline or end call",
        "description": "Declines an incoming call or ends an active call.\n\n### Before you call\n- Your organization needs a calling licence or add-on, and the API key's user needs permission to receive calls for the call.\n- Send the `callId` of a call that is still ringing or in progress.\n\n### How it works\n- Hangs up the call on WhatsApp and updates the call in the chat.\n- The response's `callStatus` is `REJECT` for a declined ringing call and `END` for an ended call.\n- Returns 422 if the call is not found, already closed, its number is disconnected, or another user is on the call.\n- Browser (WebRTC) calls only: other calls return 400 `Calling is not supported on this number.`\n\n### Rate limit\n- 60 requests per minute.",
        "operationId": "declineCall",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "callId"
                ],
                "properties": {
                  "callId": {
                    "$ref": "#/components/schemas/CallId"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Call declined or ended"
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "number",
                      "example": 429
                    },
                    "message": {
                      "type": "string",
                      "example": "Too many requests, please try again later."
                    },
                    "reason": {
                      "type": "string",
                      "example": "RATE_LIMIT_EXCEEDED"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 106,
      "1": 228,
      "2": 175,
      "3": 11,
      "4": 17,
      "5": 215,
      "6": 47,
      "7": 50,
      "8": 254,
      "9": 135,
      "10": 198,
      "11": 206
    }
  }
}
```