> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goyappr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Create your first AI voice agent and make a call in under 5 minutes.

## 1. Get your API key

Go to the [Yappr dashboard](https://app.goyappr.com) → **Settings → API Keys** → create a new key.

Store it as an environment variable:

```bash theme={null}
export YAPPR_API_KEY="ypr_live_..."
```

## 2. Check your balance

```bash theme={null}
curl -s https://api.goyappr.com/billing \
  -H "Authorization: Bearer $YAPPR_API_KEY" | jq .
```

You need at least **\$3 balance** to place outbound calls. Top up in the dashboard under **Settings → Billing**.

## 3. Create an agent

```bash theme={null}
curl -s -X POST https://api.goyappr.com/agents \
  -H "Authorization: Bearer $YAPPR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My First Agent",
    "system_prompt": "You are a friendly assistant. Greet the caller, ask how you can help, and keep responses brief.",
    "voice": "Kore",
    "language": "he",
    "greeting_message": "שלום! איך אוכל לעזור?"
  }' | jq .
```

Copy the `id` from the response — you'll need it for the call.

## 4. Get a phone number

Search for available Israeli numbers:

```bash theme={null}
curl -s -X POST https://api.goyappr.com/phone-numbers/search \
  -H "Authorization: Bearer $YAPPR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit": 5}' | jq '.data[].phone_number'
```

Purchase one:

```bash theme={null}
curl -s -X POST https://api.goyappr.com/phone-numbers/purchase \
  -H "Authorization: Bearer $YAPPR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phoneNumber": "+972551234567"}' | jq .
```

<Note>Purchasing a number starts a \$10/month subscription charged to your saved card.</Note>

## 5. Make a call

```bash theme={null}
curl -s -X POST https://api.goyappr.com/calls \
  -H "Authorization: Bearer $YAPPR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_id": "YOUR_AGENT_ID",
    "to": "+972501234567",
    "from": "+972551234567"
  }' | jq .
```

<Warning>
  `to` and `from` must never be the same number — calling a number from itself creates an infinite loop.
</Warning>

## 6. Check call status

```bash theme={null}
curl -s "https://api.goyappr.com/calls?limit=1" \
  -H "Authorization: Bearer $YAPPR_API_KEY" | jq '.data[0].status'
```

## Next steps

* [Create a webhook tool](/api-reference/introduction) to capture data from calls
* [Configure inbound calls](/api-reference/introduction) by assigning an agent to a number
* Explore the full [API Reference](/api-reference/introduction)
