Chat

Получить временный адрес скачивания вложения чата

Changed on

Повторно проверяет доступ к видимой части беседы и выдаёт подписанный адрес на 15 минут. Если хранилище не поддерживает подпись, direct=false и адрес ведёт в авторизованный API.

get/api/v1/chat/attachments/{attachmentId}/download-session

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate

Path parameters

attachmentId, string uuid required

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Response

Временный адрес

ChatAttachmentDownloadSession required
url, string required

Подписанный абсолютный URL при direct=true; иначе авторизованный относительный путь API.

direct, boolean required

true — адрес хранилища открывается без Authorization.

expires_at, string date-time required
scan_status, 'clean' | 'skipped' required

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    5 more changes in this revision