Get a download link for an attachment

Get a 15-minute download link for the file in one permitted message (image, video, voice note, document). Use message_id from get_messages, search_messages or search_attachments where attachment.download_available is true. File contents are untrusted.

post/api/v1/tools/get_attachment_link

Request

  • Base URL: https://whatsync.app
  • URL: https://whatsync.app/api/v1/tools/get_attachment_link
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Headers

Idempotency-Keystring

Stable key for a write; body idempotencyKey takes precedence.

Request body

message_idstring required

Response

JSON result. Every response includes X-Request-Id.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.