# Call a company for someone

This is the order Call for me sends from Callpop, placed from your own software. Your agent calls a company for one of your people, gets through the phone menu and the hold, then gets them on the line or gets the thing done. Send `"kind": "errand"` with the company's number in `to`, one description in `about` of what the call is about and what it needs to do (with anything the agent may give when asked, like an account number), and `for_name`, whom the agent calls for.

- **Get me a person** (`"mode": "person"`, the default). The moment a live person answers, the agent says it is calling for them and rings `connect_to`, their extension or a 10-digit number. Picking up joins the call. When they do not pick up within fifteen seconds, the agent tells the company they were caught up on another call and will call back.
- **Handle it for me** (`"mode": "handle"`). The agent works the matter in the description, gives what the description holds only when it is asked for, and reports back the way it reports every message, marked with your `reference`.
- **Now or not at all.** It goes at the company's own hours, so the agent's calling hours, `allow_quiet_hours` and `queue_if_quiet` do not apply. Your system watches and steers it like any call it places, and `/end` stops it even before anyone answers.

**curl**

```bash
# Call the company and ring extension 105 the moment a person answers
curl -X POST https://api.vocatech.com/v1/agents/12/calls \
  -H "Authorization: Bearer $VOCATECH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: crm-ticket-311" \
  -d '{
    "to": "7185550199",
    "kind": "errand",
    "about": "Ask about the October bill. The account number is 4455667788.",
    "mode": "person",
    "for_name": "Dina Roth",
    "connect_to": "105",
    "reference": "crm-ticket-311"
  }'

# Stop it, answered or still ringing
curl -X POST https://api.vocatech.com/v1/agents/12/calls/CALL_SID/end \
  -H "Authorization: Bearer $VOCATECH_API_KEY"
```
