---
title: "Send File to opened session"
method: POST
path: "/api/v1/sendSessionFile/{whatsappNumber}"
tags: ["Messaging"]
---

# Send File to opened session

`POST /api/v1/sendSessionFile/{whatsappNumber}`

## Path parameters

- `whatsappNumber` string, required

## Query parameters

- `caption` string

## Response `200`

Send file to opened session success

- object
  - `ok` boolean — Indicates whether the file message was sent successfully.
  - `result` string — Result status of the operation (e.g. 'success').
  - `message` object — Detailed information about the sent WhatsApp message.
    - `whatsappMessageId` string — Unique WhatsApp message identifier.
    - `localMessageId` unknown
    - `text` string — Text content associated with the media (e.g. media URL or caption).
    - `media` object — Media metadata of the sent file.
      - `id` string — Internal media identifier.
      - `mimeType` string — MIME type of the media file.
      - `caption` string — Caption text for the media.
    - `messageContact` unknown
    - `location` unknown
    - `type` string — Type of the message (e.g. 'image', 'document').
    - `time` string — Unix timestamp (as string) when the message was created.
    - `status` integer — Numeric status code of the message.
    - `statusString` unknown
    - `isOwner` boolean — Whether the message was sent by the business (true) or the user (false).
    - `isUnread` boolean — Whether the message is unread.
    - `ticketId` string — Ticket ID associated with this message.
    - `avatarUrl` unknown
    - `assignedId` string — ID of the assigned operator handling this ticket.
    - `operatorName` string — Name of the operator handling this ticket.
    - `replyContextId` unknown
    - `sourceType` integer — Numeric source type of the message.
    - `id` string — Internal ID of the message record.
    - `created` string — Timestamp when the message record was created.
    - `conversationId` string — Conversation ID this message belongs to.

---

[API](https://skmtc.dev/wati/apis/api-documentation-v3.md) · [All operations](https://skmtc.dev/wati/apis/api-documentation-v3/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wati/api-documentation-v3/revisions/dee16d2c7d41/schema)
