Skip to main content
POST
Upload Chat Widget icon

Overview

Upload a custom image to replace the Chat Widget’s floating launcher button icon. The uploaded file is stored and applied to the widget immediately after upload. Requires the ORG_ADMIN or DEVELOPER role.

Required Permission

agentsORG_ADMIN or DEVELOPER role

Path Parameters

Request

Send the request as multipart/form-data with a single field named file containing the image. When using cURL with the -F flag, the Content-Type header is set automatically. Accepted formats: JPEG, PNG, GIF, BMP, WebP, TIFF, SVG

Example cURL

Response

Success (200)

Response Fields

Error Responses

Use Cases

  • Branding the chat widget launcher with your company logo
  • Using a different icon per agent to reflect different product lines
  • Updating the icon after a brand refresh
For best results, use a square image of at least 60×60 pixels. PNG or WebP with a transparent background renders cleanly on any launcher button color.
Save the requestId from every response. You will need it if you contact Inya support to trace a specific request.

Authorizations

x-api-key
string
header
required

API key with 'agents' permission

Path Parameters

botId
string
required

Unique identifier of the agent

Body

multipart/form-data
file
file
required

Icon image file (JPEG, PNG, GIF, BMP, WebP, TIFF, SVG)

Response

File uploaded successfully

status
string
Example:

"success"

requestId
string
Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

message
string
response
object