# Quick start

Your first successful API call, in about five minutes. This uses the `api-key` path, which needs no
OAuth flow — you are calling your own account.

## 1. Create an integration

In the left menu of the Bito admin panel open **Integration → Integration** and press **Custom
integration**. In the **Create integration** dialog press **+ Create** next to **External
integration**.

Fill in a name, leave the rest empty for now, and press **Save**. Field-by-field detail is in
[Create an integration](https://docs.bito.uz/en/guide/create.md).

::: warning Install it
A new integration is created but not yet **installed**. Open it in the **Integration** section and press
**Install**. Until then requests return `400`, `code: 115004`.
:::

## 2. Copy the three values

Saving shows `client_id`, `secret` and `api_key`. The `secret` is shown here **once** and never again —
copy all three somewhere safe before closing the dialog, see [Your credentials](https://docs.bito.uz/en/guide/credentials.md).

For this quick start you only need `api_key`. It looks like `mycompany:9ad41c0e7b3f28d5610ac94e7f1b26d8`.

## 3. Install it

An integration is **created, not installed**. Until it is installed, every API call made with its
credentials fails with `Integration is not installed`.

On the **Integration** page, open your new integration from the **Installed** list and press
**Install**. Installing also fires your `redirect_uri` and `webhook_uri` if you set them — see
[Install & uninstall hooks](https://docs.bito.uz/en/guide/lifecycle-hooks.md#install).

## 4. Make a call

List queries are `POST` — their filters travel in the body. Reads of a single record are `GET`,
updates `PUT`, deletes `DELETE`.

```bash
curl -X POST \
  'https://api.bito.uz/integration-api/integration/api/v2/product/get-paging' \
  -H 'api-key: mycompany:9ad41c0e7b3f28d5610ac94e7f1b26d8' \
  -H 'Content-Type: application/json' \
  -H 'Accept-Language: en' \
  -d '{ "page": 1, "limit": 5 }'
```

**Response**

```json
{
    "code": 0,
    "message": "Success",
    "status_code": 200,
    "data": {
        "total": 1043,
        "data": [
            { "_id": "6712f0a9c4d1e87b3a0f9911", "name": "Espresso" }
        ]
    },
    "time": "2025-05-01T12:00:00Z"
}
```

`code: 0` means success. The rows are at `data.data`, the count at `data.total`.

::: tip
Got `401`? The header is `api-key`, not `Authorization`, and the value includes the username part
before the colon. Got `404`? Check the base URL — it ends with `/integration/api/v2/`.
:::

Where to see the result in the admin panel: [Verify in Bito](https://docs.bito.uz/en/guide/verify.md).

## 5. Pick your path from here

| You are building | Read next |
|---|---|
| Something for your own account only | [Calling the API](https://docs.bito.uz/en/guide/api.md), then the [API reference](https://docs.bito.uz/en/api/index.md) — or [a widget for your own account](https://docs.bito.uz/en/guide/private-widget.md) if it needs a screen inside Bito |
| A marketplace API integration many merchants install | [Become a Bito developer](https://docs.bito.uz/en/guide/developer-account.md), then read the [OAuth 2.0 overview](https://docs.bito.uz/en/guide/oauth/index.md) |
| A public widget that appears inside Bito | [Your app page](https://docs.bito.uz/en/guide/developer-app.md), then [Custom widgets](https://docs.bito.uz/en/guide/widget.md) |
| Something that reacts to data changes | [Data webhooks](https://docs.bito.uz/en/guide/webhooks.md) |

When it works, [submit it for review](https://docs.bito.uz/en/guide/submit.md). Public widgets have separate app-card and release reviews; approval makes the app installable, never automatically installed.
