# White-label API

{% hint style="info" %}
Make sure that you have access to the API token of your Telegram bot before starting
{% endhint %}

### Configure your bot in "full-control" mode

In "full-control" mode we will automatically configure a webhook for your bot, so you can't use your own commands. But in this mode, you don't need to have your own servers and don't need to have programming skills.

1. Create an API application on the [API Settings](https://fullyst.com/api_settings) page
2. Insert the API token of your bot (received from @BotFather) in the form
3. Tick the "Full control" checkbox
4. Click the "Save" button

<figure><img src="https://1355699699-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvbbEGxRTwrzUPUEXxps8%2Fuploads%2Fr4zMdK1X82uCh3boNPWb%2FScreenshot%202022-11-07%20at%2004.34.23.png?alt=media&#x26;token=88790b8d-3826-446b-8b59-880c11850586" alt=""><figcaption><p>Configured White-label bot</p></figcaption></figure>

Now you can use your bot as [@Fullystbot](https://docs.fullyst.com/getting-started)

### Forwarding data to the webhook

Unlike other services, we don't require full control over your bot and that's why we created it this way. This method is suitable for bots that must contain their own functionality different from Fullyst's functionality and require you to maintain your own webhook.

1. Create an API application on the [API Settings](https://fullyst.com/api_settings) page
2. Insert the API token of your bot (received from @BotFather) in the form
3. **Don't** tick the "Full control" checkbox
4. Click the "Save" button

Now you should send all data that you receive from Telegram to our webhook API as a POST request:

```
https://api.fully.st/v1/webhook
```

with the following parameters:

```
key - API ID + API key combined with a colon, for example, eKgl2d2P:8afe4df7-df9e-5e79-8e28-4e83ae5530ce
query - unchanged data received by your webhook from Telegram
```

{% hint style="info" %}
**NB!** In the case that a substitution or change of messages on the side of your webhook is detected, we reserve the right to unilaterally suspend your API application and/or prohibit the creation and use of new API applications.
{% endhint %}
