API
Upload chatbot icon
The Upload Chatbot Icon API endpoint allows you to update the icon of a specific chatbot.
Endpoint
Request Headers
The API request must include the following headers:
Authorization: Bearer <Your-Secret-Key>
- The secret key for authenticating the API request.Content-Type: multipart/form-data
- The content type for the file upload.
Request Body
The request body should be a multipart form containing the following parameters:
chatbotId
(string, required): The unique identifier for the chatbot you want to update the icon for (found in the chatbot settings).chatbotIconFile
(file, required): The icon file to be uploaded. It must be a square image (length = width) and its size must be under 1MB.
Example Request
Response
- 200: Returns a confirmation message indicating the successful upload and update of the chatbot icon.
- 400: If the chatbot ID is missing.
- 401: If the request is unauthorized.
- 404: If the chatbot ID is invalid.
- 500: If there is an internal server error.
Example Response
The Upload Chatbot Icon API endpoint provides a way to update the icon of a chatbot. Upon successful upload and update, a confirmation message is returned in the response.