# Get the catalog

`GET` `https://goblins-call-api.onrender.com/v1/catalog`

Returns what an agent can be built from: voice engines, models, languages and built-in tools. Each entry’s `id` is the value to send when creating or updating an agent.

Needs a [workspace API key](https://www.cracklehq.com/docs/authentication).

## Notes

- The catalog changes as engines, models and languages are added. Read it instead of hard-coding the lists.

Request:

cURL:

```bash
curl "https://goblins-call-api.onrender.com/v1/catalog" \
  -H "Authorization: Bearer $CRACKLE_API_KEY"
```

Node.js:

```js
const response = await fetch('https://goblins-call-api.onrender.com/v1/catalog', {
  headers: {
    Authorization: `Bearer ${process.env.CRACKLE_API_KEY}`,
  },
});
if (!response.ok) throw new Error(await response.text());
const data = await response.json();
```

Python:

```python
import os
import requests

response = requests.get(
    "https://goblins-call-api.onrender.com/v1/catalog",
    headers={"Authorization": f"Bearer {os.environ['CRACKLE_API_KEY']}"},
    timeout=30,
)
response.raise_for_status()
data = response.json()
```

Response · 200 OK:

```json
{
  "catalog": {
    "languages": [
      { "id": "hi", "label": "Hindi", "iso": "hi", "default": true, "enabled": true },
      { "id": "hinglish", "label": "Hinglish", "iso": "hi", "enabled": true },
      { "id": "en", "label": "English", "iso": "en", "enabled": true }
    ],
    "ttsProviders": [ … ],
    "llmModels": [ … ],
    "sttProviders": [ … ],
    "voices": [ … ],
    "systemTools": [ … ],
    "plans": [ … ]
  },
  "defaults": {
    "agentInstruction": "…",
    "greetingInstruction": "…"
  }
}
```

Source: https://www.cracklehq.com/docs/reference/catalog
