---
title: "Upload Media"
method: POST
path: "/api/v1/whatsapp/media"
tags: ["WhatsApp"]
---

# Upload Media

`POST /api/v1/whatsapp/media`

## Request

- Base URL: `https://api.inkbox.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.inkbox.ai/api/v1/whatsapp/media`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

## Query parameters

- `agent_identity_id` string, uuid, nullable

## Request body `multipart/form-data`

- object
  - `file` string, binary, required

## Response `201`

Successful Response

- WhatsAppMediaResponse
  - `id` string, uuid, required
  - `filename` string, required
  - `content_type` string, required
  - `size` integer, nullable, required
  - `status` 'pending' | 'ready' | 'unavailable', required
  - `url` string, nullable, required

## Other responses

- `422`: Validation Error
- `4XX`: Client error with Support Agent information.
- `5XX`: Server error with Support Agent information.

## Changes

- **2026-11-03** `7e848337e8bf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/inkbox/apis/inkbox-api/changes/api/v1/whatsapp/media/post.md)

---

[API](https://skmtc.dev/inkbox/apis/inkbox-api.md) - [All operations](https://skmtc.dev/inkbox/apis/inkbox-api/llms.txt) - [OpenAPI document](https://skmtc.dev/inkbox/apis/inkbox-api/revisions/3e862146bf53?raw)
