Skip to Content
CallHumanDocs

Quickstart

Make your first call to your own phone in 5 minutes, then receive the answer.

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

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." }
    ]
  }'

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

Try it with your own phone

Sign in to run this example with your API key. It uses 1 call of your plan.

Sign in to try it

Step by step

Create your account and project

Sign in at callhuman.es with your email, Google, Microsoft or GitHub. Create a project: its name is the business name people hear when they call your number back.

Choose a plan

Calls and phone numbers need an active plan. Until then the API answers subscription_required. After paying, pick the country of your phone number: it is assigned instantly.

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:

export CALLHUMAN_API_KEY="ch_live_xxxxxxxxxxxx"

Send the request

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

Read the result

curl https://api.callhuman.es/v1/calls/call_x9f2k \
  -H "Authorization: Bearer $CALLHUMAN_API_KEY"
{
  "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.

Prefer no code?

Use the n8n node: fill in the phone, the message and the options, and connect one output per option.

On this page