# API Documentation

## Authorization

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

### How to get an API key

1. **Open Author Dashboard**: Go to your Tribute author dashboard
2. **Navigate to Settings**: Click on the three dots (⋯) menu
3. **Go to API Keys**: Select "API Keys" from the settings menu
4. **Generate New Key**: Click "Generate API Key" button
5. **Copy and Save**: Copy the generated key and store it securely

### Using the API key

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

#### Example with curl:

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.tribute.tg/for-content-creators/api-documentation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
