Uploading Media ⬆️

Uploading Media

Media files are uploaded using HTTP PUT. You must set the following HTTP headers in the upload request:

  • " Content-type" = "<File content type>"
  • "X-Token" = "<Token>"

The Bot Server upload URL format is:
https://<nandboxBotServer>:<port>/nandbox/upload/<imageName>

In the body of the request, include the binary content of the file.

For more details, check the code examples here

Query Params
int32
Defaults to 1

Public upload ( return link for the media to be downloaded.)

int32
Defaults to 1

Return size, width, height, and thumbnail only when p is 1.

Response

Language
LoadingLoading…
Response
Choose an example:
text/plain