> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vargopartners.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Документы клиента

> Ссылки на пользовательское соглашение и политику конфиденциальности под названием сервиса партнёра. Показывайте их клиенту до оплаты. Текст ведёт платформа, страницы открываются без ключа; заголовки — на языке из `Accept-Language`.



## OpenAPI

````yaml GET /api/partner/v1/documents
openapi: 3.1.0
info:
  title: VARGO Partner API
  version: '1.0'
  description: >-
    REST API для продажи VPN в своём боте, мини-аппе или на сайте: тарифы,
    счета, клиенты и их устройства. Клиент платит платформе, наценка партнёра
    начисляется на его баланс.


    Ключ партнёра — в заголовке `Authorization: Bearer vgo_live_…`, его выдаёт
    платформа. Ключ живёт только на сервере партнёра: в коде мини-аппа или сайта
    его быть не должно. Деньги — строки в рублях (`"150.00"`), даты — ISO-8601
    UTC. Ошибки — `{error: {code, message, fields}}`: ветвиться по `code`,
    `message` клиенту не показывать.
servers:
  - url: https://api.vargopartners.com
security:
  - PartnerKey: []
paths:
  /api/partner/v1/documents:
    get:
      tags:
        - Partner API
      summary: Документы клиента
      description: >-
        Ссылки на пользовательское соглашение и политику конфиденциальности под
        названием сервиса партнёра. Показывайте их клиенту до оплаты. Текст
        ведёт платформа, страницы открываются без ключа; заголовки — на языке из
        `Accept-Language`.
      operationId: get_documents_api_partner_v1_documents_get
      responses:
        '200':
          description: Ссылки на документы
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiDocuments'
        '401':
          description: >-
            Ключ не принят: `UNAUTHORIZED`. Неверный и отозванный ключ,
            выключенный доступ к API — один ответ
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: >-
            Запрос не прошёл проверку: `code` — `VALIDATION_ERROR`, в `fields` —
            поле и причина
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: >-
            Превышен лимит: `RATE_LIMITED` — повторить после паузы из
            `Retry-After`. У суточных лимитов (`NEW_CLIENTS_DAILY_LIMIT`,
            `TRIAL_DAILY_LIMIT`) заголовка нет — повторять на следующие сутки
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          headers:
            Retry-After:
              description: >-
                Пауза в секундах до повтора; есть у `RATE_LIMITED` и
                `LINK_ROTATE_TOO_SOON`
              schema:
                type: integer
                minimum: 1
        default:
          description: >-
            Ошибка — тот же конверт; ветвиться по `code`, список кодов — в
            документации
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    ApiDocuments:
      properties:
        documents:
          items:
            $ref: '#/components/schemas/ApiDocument'
          type: array
          title: Documents
          description: Документы клиента
      type: object
      required:
        - documents
      title: ApiDocuments
    ApiError:
      description: 'Конверт любой ошибки: статус HTTP плюс `error.code`.'
      properties:
        error:
          $ref: '#/components/schemas/ApiErrorBody'
          description: Код, текст и поля ошибки
      required:
        - error
      title: ApiError
      type: object
    ApiDocument:
      properties:
        type:
          type: string
          enum:
            - terms_of_service
            - privacy_policy
          title: Type
          description: >-
            `terms_of_service` — пользовательское соглашение, `privacy_policy` —
            политика конфиденциальности
        title:
          type: string
          title: Title
          description: Заголовок документа на языке из `Accept-Language`
        url:
          type: string
          title: Url
          description: Открытая страница документа под названием сервиса партнёра
      type: object
      required:
        - type
        - title
        - url
      title: ApiDocument
    ApiErrorBody:
      properties:
        code:
          description: Машиночитаемый код ошибки — ветвиться по нему
          examples:
            - VALIDATION_ERROR
          title: Code
          type: string
        message:
          description: >-
            Текст для логов на языке из `Accept-Language` (`ru` или `en`);
            клиенту не показывать
          title: Message
          type: string
        fields:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          description: Поле → причина у `VALIDATION_ERROR`; у остальных ошибок `null`
          title: Fields
      required:
        - code
        - message
        - fields
      title: ApiErrorBody
      type: object
  securitySchemes:
    PartnerKey:
      type: http
      scheme: bearer
      description: >-
        Ключ партнёра `vgo_live_…`, его выдаёт платформа. Хранится только на
        сервере партнёра.

````