---
title: "POST /api/{session}/send-file"
method: POST
path: "/api/{session}/send-file"
tags: ["Messages"]
---

# POST /api/{session}/send-file

`POST /api/{session}/send-file`

## Path parameters

- `session` string, required

## Request body

- object
  - `phone` string
  - `isGroup` boolean
  - `isNewsletter` boolean
  - `isLid` boolean
  - `filename` string
  - `caption` string
  - `base64` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

## Changes

> 52 revisions in range; 47 could not be searched.

- **2022-07-21** `5384d2ef4ae9` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/wppconnect-team/apis/wppconnect-api-rest/changes/api/:session/send-file/post.md)

---

[API](https://skmtc.dev/wppconnect-team/apis/wppconnect-api-rest.md) · [All operations](https://skmtc.dev/wppconnect-team/apis/wppconnect-api-rest/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wppconnect-team/wppconnect-api-rest/revisions/4ae2377201e7/schema)
