Skip to main content
GET
/
manage-call-whitelist
curl https://api.magpipe.ai/functions/v1/manage-call-whitelist?agent_id=3f2504e0-4f89-11d3-9a0c-0305e82c3301 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "entries": [
    {
      "id": "a1b2c3d4-0000-0000-0000-000000000001",
      "caller_number": "+16045551234",
      "forward_to": "+16045559876",
      "label": "Kyler's son",
      "created_at": "2026-03-15T08:00:00Z"
    }
  ]
}
Returns all whitelist entries configured for a specific agent. Entries are returned in creation order.

Query Parameters

agent_id
string
required
The UUID of the agent whose whitelist entries to retrieve.Example: 3f2504e0-4f89-11d3-9a0c-0305e82c3301

Response

entries
array
Array of whitelist entry objects.
curl https://api.magpipe.ai/functions/v1/manage-call-whitelist?agent_id=3f2504e0-4f89-11d3-9a0c-0305e82c3301 \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "entries": [
    {
      "id": "a1b2c3d4-0000-0000-0000-000000000001",
      "caller_number": "+16045551234",
      "forward_to": "+16045559876",
      "label": "Kyler's son",
      "created_at": "2026-03-15T08:00:00Z"
    }
  ]
}