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

# Delete Whitelist Entry

> Remove a call whitelist entry

Permanently removes a whitelist entry. Subsequent calls from the previously whitelisted number will be routed to the AI agent as normal.

## Query Parameters

<ParamField query="id" type="string" required>
  The UUID of the whitelist entry to delete.

  **Example:** `a1b2c3d4-0000-0000-0000-000000000001`
</ParamField>

## Response

Returns `{ "ok": true }` on success (`200 OK`). Returns `404` if the entry does not exist or belongs to a different account.

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE "https://api.magpipe.ai/functions/v1/manage-call-whitelist?id=a1b2c3d4-0000-0000-0000-000000000001" \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch(
    'https://api.magpipe.ai/functions/v1/manage-call-whitelist?id=a1b2c3d4-0000-0000-0000-000000000001',
    {
      method: 'DELETE',
      headers: { 'Authorization': 'Bearer YOUR_API_KEY' },
    }
  );
  const { ok } = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.delete(
      'https://api.magpipe.ai/functions/v1/manage-call-whitelist',
      params={'id': 'a1b2c3d4-0000-0000-0000-000000000001'},
      headers={'Authorization': 'Bearer YOUR_API_KEY'},
  )
  print(response.json())  # {"ok": true}
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "ok": true
  }
  ```

  ```json Not Found theme={null}
  {
    "error": {
      "code": "not_found",
      "message": "Entry not found"
    }
  }
  ```
</ResponseExample>
