# Call selected leads with an agent

> POST /leads/call. HeyRik API parameters and documented request and response examples.

Source: https://www.heyrik.com/docs/api-reference/crm/post-leads-call-call-selected-leads-with-an-agent

POST https://server.heyrik.com/api/v1/leads/call

## Headers

Authorization: Bearer $HEYRIK_API_KEY (required). Keep your key on your server.

## Parameters

- lead_ids (array, required): Leads to dial.
- agency_id (string, required): Agent that speaks.
- trunk_id (string, required): Number to dial from.

## Notes

Each lead's fields are passed to the agent as {{variables}}, so the call can greet them by name.

## Request example

```sh
curl -X POST https://server.heyrik.com/api/v1/leads/call \
  -H "Authorization: Bearer $HEYRIK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "lead_ids": ["lead_71a4", "lead_8b02"],
    "agency_id": "agc_9f2a1c30",
    "trunk_id": "sip_45723ca5"
  }'
```
