> For the complete documentation index, see [llms.txt](https://wiki.tribute.tg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.tribute.tg/for-shops/api.md).

# Shop API

### Authorization

To access the Tribute API, you need to obtain an API key through the settings.

#### How to get an API key

1. Open the Tribute web application in Telegram
2. Click on the three dots **(⋯)** in the upper right corner and select "**Settings**" from the context menu
3. Go to the "**API Keys**" section
4. Click the "**Generate API Key**" button and copy it to a safe place

#### Using the API key

The key is passed in the `Api-Key` header in every HTTPS request to the API.

**Example using curl:**

```bash
curl -X GET \
  'https://tribute.tg/api/v1/shops' \
  -H 'Api-Key: your_api_key_here'
```
