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

# Quickstart

> Make your first authenticated request in under five minutes.

## 1. Create an API key

In your Nateq dashboard, open **Settings → Developers → API Keys** and create a
key. Choose the **scopes** it needs (for example `conversations:read`). You'll see
the key **once** — copy it somewhere safe.

* Production keys start with `tg_live_`
* Sandbox keys start with `tg_test_`

## 2. Make a request

Authenticate by passing the key as a Bearer token in the `Authorization` header.

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.nateq.io/api/v1/conversations \
    -H "Authorization: Bearer tg_live_your_key_here"
  ```

  ```js Node theme={null}
  const res = await fetch("https://api.nateq.io/api/v1/conversations", {
    headers: { Authorization: "Bearer tg_live_your_key_here" },
  });
  const body = await res.json();
  console.log(body.data);
  ```

  ```python Python theme={null}
  import requests

  res = requests.get(
      "https://api.nateq.io/api/v1/conversations",
      headers={"Authorization": "Bearer tg_live_your_key_here"},
  )
  print(res.json()["data"])
  ```
</CodeGroup>

## 3. Read the response

Every response follows the same envelope:

```json theme={null}
{
  "success": true,
  "data": [ /* ... */ ],
  "meta": { "total": 42 }
}
```

On failure, `success` is `false` and `error` carries a machine-readable `code`:

```json theme={null}
{
  "success": false,
  "error": { "code": "INSUFFICIENT_SCOPE", "message": "API key does not have the required scope" }
}
```

<Check>
  That's it — you're authenticated. Head to the [API Reference](/api-reference) to
  explore every endpoint with a live console.
</Check>
