> 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/ru/api-dokumentaciya/podpiski.md).

# Подписки

Каталог подписок с ценовыми периодами

## Получить список подписок

> Возвращает подписки текущего пользователя вместе с их ценовыми периодами

```json
{"openapi":"3.1.0","info":{"title":"Tribute API","version":"1.0.0"},"tags":[{"name":"Subscriptions","description":"Каталог подписок с ценовыми периодами"}],"servers":[{"url":"https://tribute.tg/api/v1","description":"Tribute API v1"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Api-Key","description":"API ключ для аутентификации."}},"schemas":{"Subscription":{"type":"object","required":["subscriptionId","name","currency","periods"],"properties":{"subscriptionId":{"type":"integer","description":"ID подписки"},"name":{"type":"string","description":"Название подписки"},"currency":{"type":"string","description":"Код валюты"},"periods":{"type":"array","description":"Ценовые периоды","items":{"$ref":"#/components/schemas/SubscriptionPeriod"}}}},"SubscriptionPeriod":{"type":"object","required":["periodId","period","price"],"properties":{"periodId":{"type":"integer","description":"ID периода"},"period":{"type":"string","description":"Период оплаты","enum":["trial","onetime","weekly","monthly","quarterly","halfyearly","yearly"]},"price":{"type":"number","description":"Цена в основных единицах валюты"}}},"Error":{"type":"object","required":["error","message"],"properties":{"error":{"type":"string","description":"Код ошибки","enum":["error_bad_request","error_not_found","error_not_permitted","no_access"]},"message":{"type":"string","description":"Описание ошибки"}}}}},"paths":{"/subscriptions":{"get":{"summary":"Получить список подписок","description":"Возвращает подписки текущего пользователя вместе с их ценовыми периодами","tags":["Subscriptions"],"responses":{"200":{"description":"Успешный ответ","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/Subscription"}}}}}}},"401":{"description":"Неавторизован (неверный API ключ)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Слишком много запросов (превышен лимит)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Внутренняя ошибка сервера","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```
