Upload raw image bytes for a chat message.
Parameters
Input
Encoding
*/*Accepts raw binary data
Output
Encoding
application/jsonheight
integer
Required
No description available.
key
string
Required
No description available.
publicUrl
string
Required
No description available.
width
integer
Required
No description available.
Errors
InvalidRequest
PayloadTooLarge
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Upload raw image bytes for a chat message.",
"errors": [
{
"name": "InvalidRequest"
},
{
"name": "PayloadTooLarge"
}
],
"input": {
"encoding": "*/*"
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"height": {
"type": "integer"
},
"key": {
"type": "string"
},
"publicUrl": {
"type": "string"
},
"width": {
"type": "integer"
}
},
"required": [
"key",
"publicUrl",
"width",
"height"
],
"type": "object"
}
},
"parameters": {
"properties": {
"height": {
"minimum": 1,
"type": "integer"
},
"width": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"width",
"height"
],
"type": "params"
},
"type": "procedure"
}