# Quickstart

Part of the HebrewCore documentation. Web: https://hc.itsbaba.com/docs#quickstart · Whole docs: https://hc.itsbaba.com/docs.md · Index: https://hc.itsbaba.com/llms.txt

1. Create an API key in the [console](https://hc.itsbaba.com/dashboard/api-keys). 2. Send it as a bearer token on every request. 3. Call an endpoint:

```bash
curl https://hc.itsbaba.com/v1/translate \
  -H "Authorization: Bearer hc_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "text": "Welcome to your account", "target_lang": "he", "transliterate": true }'
```

## Node (fetch)

```js
const res = await fetch("https://hc.itsbaba.com/v1/translate", {
  method: "POST",
  headers: {
    "Authorization": "Bearer hc_live_YOUR_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ text: "Welcome to your account", target_lang: "he" }),
});
const data = await res.json();
console.log(data.translation.text, data.translation.dir); // "…", "rtl"
```

## Python (requests)

```python
import requests

r = requests.post(
    "https://hc.itsbaba.com/v1/translate",
    headers={"Authorization": "Bearer hc_live_YOUR_KEY"},
    json={"text": "Welcome to your account", "target_lang": "he"},
)
print(r.json()["translation"]["text"])
```
