# Quickstart (/docs/quickstart)

Send one request and your own phone rings. Replace `+34600111222` with your mobile number in international format and run:

```bash tab="curl"
curl https://api.callhuman.es/v1/calls \
  -H "Authorization: Bearer $CALLHUMAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+34600111222",
    "message": "Hello from CallHuman. Do you like this?",
    "options": [
      { "label": "Yes", "reply": "Great, have a nice day!" },
      { "label": "No", "reply": "Thanks for trying anyway." }
    ]
  }'
```

```js tab="JavaScript"
const response = await fetch("https://api.callhuman.es/v1/calls", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CALLHUMAN_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    to: "+34600111222",
    message: "Hello from CallHuman. Do you like this?",
    options: [
      { label: "Yes", reply: "Great, have a nice day!" },
      { label: "No", reply: "Thanks for trying anyway." },
    ],
  }),
});

const call = await response.json();
console.log(call); // { id: "call_x9f2k", status: "queued" }
```

```python tab="Python"
import os
import requests

response = requests.post(
    "https://api.callhuman.es/v1/calls",
    headers={"Authorization": f"Bearer {os.environ['CALLHUMAN_API_KEY']}"},
    json={
        "to": "+34600111222",
        "message": "Hello from CallHuman. Do you like this?",
        "options": [
            {"label": "Yes", "reply": "Great, have a nice day!"},
            {"label": "No", "reply": "Thanks for trying anyway."},
        ],
    },
)

print(response.json())  # {"id": "call_x9f2k", "status": "queued"}
```

The API answers immediately with `202 Accepted` and the call `id`. Your phone rings a few seconds later.



## Step by step [#step-by-step]

<Steps>
<Step>
### Create your account and project [#create-your-account-and-project]

Sign in at [callhuman.es](https://www.callhuman.es/login) with your email, Google, Microsoft or GitHub. Create a project: its name is the business name people hear when they call your number back.
</Step>

<Step>
### Choose a plan [#choose-a-plan]

Calls and phone numbers need an active plan. Until then the API answers [`subscription_required`](/docs/errors#subscription_required). After paying, pick the country of your phone number: it is assigned instantly.
</Step>

<Step>
### Create an API key [#create-an-api-key]

In the dashboard go to **API keys → Create key**. Copy it now: it is shown only once. Save it as an environment variable:

```bash
export CALLHUMAN_API_KEY="ch_live_xxxxxxxxxxxx"
```
</Step>

<Step>
### Send the request [#send-the-request]

Run the example above with your own number. Answer the phone, press 1 or say “yes”.
</Step>

<Step>
### Read the result [#read-the-result]

```bash
curl https://api.callhuman.es/v1/calls/call_x9f2k \
  -H "Authorization: Bearer $CALLHUMAN_API_KEY"
```

```json
{
  "id": "call_x9f2k",
  "status": "answered",
  "option_path": [1],
  "option_label": "Yes",
  "metadata": {}
}
```

To get the result pushed to your server instead of polling, add a `webhook_url` to the request. See [Webhooks](/docs/webhooks).
</Step>
</Steps>

<Callout title="Prefer no code?">
Use the [n8n node](/docs/n8n): fill in the phone, the message and the options, and connect one output per option.
</Callout>