Skip to main content
POST
Plans with WhatsApp (Pro and up) can use this endpoint. On other plans it returns 403. Use it for a WhatsApp template whose header is an image, video or document. WhatsApp gets the header file from a link, and that link must point to Nedzo’s storage. Get a link to upload one file. Then:
  1. PUT the file bytes to uploadUrl, with the Content-Type header set to contentType.
  2. Send the template with Send a WhatsApp message, with template.parameters.header set to { "type": type, "link": link } from this answer. Add filename for a document.
The upload link works for 2 hours. Each link puts the file at a new address, so it can’t replace another file. The file stays after the link ends, so you can send one upload as many times as you like. The link fixes the address, not the file type or size. Send the contentType from this answer when you upload. A file of another type, or one over the size limit, uploads, but the send refuses it with 400. Anyone with the link can open the file.
workspaceId is required when your account has more than one workspace. See Workspace ID and Request Scope.

Body Parameters

string
The workspace. Required when your account has more than one workspace.
string
required
The file name, with its extension: .jpg, .jpeg, .png, .mp4 or .pdf. Up to 255 characters.
string
required
The file type from the table above. It must match the extension.

Errors