Upload Webchat Image
POST /webchat/images
Upload an image for the widget and get back its public URL.
STATELESS: this does not change the widget. Write the returned URL into
the theme with PATCH /webchat/settings - headerImageUrlExternal /
headerImageUrlInternal for a header, botAvatarCustomUrl for an avatar.
The file type is checked from its bytes, not its declared content type.
Authorizations
Parameters
Query Parameters
header (the widget header image) or avatar (the assistant avatar). Only selects where the file is stored.
header (the widget header image) or avatar (the assistant avatar). Only selects where the file is stored.
Header Parameters
Request Body required
object
JPEG, PNG, GIF or WebP. 10 MB maximum.
Responses
201
Successful Response
object
An open envelope for one webchat object.
Open because the widget’s config grows a field per product decision and a pinned schema would DROP it. Same choice the desk surface made.
object
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error