Docs API keys /api/upload
API reference

Upload image

Upload an image to the image host and receive a public URL. Implementation note: This path is not implemented inside the new--api gateway. The console defaults to https://imageproxy.zhongzhuan.chat/api/upload…

POST/api/upload

Body Parametersmultipart/form-data

file* string · binary

Image file

Responses

200 Success (response fields depend on the image-host service) application/json
response-200 object
400 Bad request or validation failed application/json
response-400 object
properties
error* object
401 Missing or invalid API Key application/json
response-401 object
Request Body Example
1{
2"file": "<binary>"
3}
Code Sample cURL
1curl -X POST "https://api.digislash.com/api/upload" \
2-H "Authorization: Bearer <API Key>" \
3-F "file=@<binary>"
Response
1▼{
2"data": null,
3"message": "",
4"success": true
5}