Sign inGet Started

Get a WhatsApp file

GET
/v1/whatsapp/files/{file_id}
const file = await bird.whatsapp.files.get("waf_01kyb2m4xq7whs0d8n3prv6tez");
// Send it from file.from before expires_at, as file_id on a media send.
console.log(file.name, file.mime_type, file.from, file.expires_at);
Response200
{
  "id": "waf_01krdgeqcxet5s7t44vh8rt9mg",
  "from": "+13124495648",
  "name": "receipt.pdf",
  "mime_type": "application/pdf",
  "size": 48213,
  "created_at": "2026-12-03T12:00:00Z",
  "expires_at": "2027-01-02T12:00:00Z"
}

Returns a file stored for the workspace's WhatsApp messages with POST /v1/whatsapp/files, with the number it can be sent from. An unknown ID, an ID from another workspace, the ID of media on a received message, a file WhatsApp refused at upload, or a file past its 30-day expiry returns 404.

Parameters

file_idstring

ID of the WhatsApp file.

Response Payload

id
string
required

ID of the stored file, which a free-form media send or a template's media header accepts as file_id.

from
string
required

The E.164 number the file was uploaded to WhatsApp with; only a message from this number can send it.

name
string
required

Display filename.

mime_type
string
required

Media type of the file.

size
integer
required

File size in bytes.

created_at
string
required

When the file was stored.

expires_at
string
required

When the file is removed, 30 days after it was stored. A send within 24 hours of this time is refused.

Continue with the documentation, guides and examples for this topic.