Skip to main content

Put media on a saved reply from links

POST 

/v1/agents/:agentId/saved-replies/:savedReplyId/media/import

x-scope: "saved_replies:write"
x-rate-limit-per-minute: 10

Replaces the saved reply's media with files read from links: one image, video or document, or up to 10 images for an album. Each is an https link Mojeeb downloads within 20 seconds (a public address, no redirects) or the url of a Mojeeb upload of this agent. An image is JPEG, PNG or WebP up to 10 MB, a video MP4 or MOV up to 16 MB, a document PDF or DOCX up to 20 MB. Every link is read before anything stored changes; one that can't be is 422 media_url_invalid. It spends a budget of 10 requests a minute per key.

Request​

Responses​

The saved reply with its new media.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.