---
title: "Sends an image to the specified thread. This method ensures that the image content is delivered according to the provided parameters, including thread and image data."
method: POST
path: "/aiagents/SendImage"
tags: ["AIAgents"]
---

# Sends an image to the specified thread. This method ensures that the image content is delivered according to the provided parameters, including thread and image data.

`POST /aiagents/SendImage`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/aiagents/SendImage`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/aiagents/SendImage/post.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `threadId` string, required
- `setupId` integer

## Request body `multipart/form-data`

- object
  - `file` string, binary, required: Photo to attach the conversation

## Response `200`

Indicates that the image data has been sent.

## Other responses

- `401`: Indicates that the requested resource requires authentication. <br>Error codes: 504 - API call rejected by security permissions;
- `500`: The server was unable to complete the request due to an internal error. <br/>Error codes: 501 - Unspecified internal server error occurred

---

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