Upload an image to any registered subdomain on sxcu.net.
Note - a user agent is must be set with the request otherwise the upload will be rejected.

Resource URL

https://{domain}/upload

Parameters

Parameter Type Description Optional Default
image file Binary file - png, jpeg, gif, tiff, bmp, ico or webm. false None
token string Domain upload token (if one required) true None
collection string Collection ID to upload the file to. true None
collection_token string Collection's upload token (if one required) true None
noembed void If sent, the uploader will return the direct link to the image, instead of an image page with meta tags for nice embeds. true None

Example

POST https://sxcu.net/upload

Response

{
  "url":"https://nothing-to-see-he.re/OXrxb",
  "del_url":"https://nothing-to-see-he.re/d/4040faa5-8fbb-40cd-8b4d-090bb27990c6",
  "thumb":"https://nothing-to-see-he.re/t/OXrxb.png",
  "collection": "yGdZe6z"
}

Response JSON Params

Parameter Type Description
url string The URL to the uploaded image.
del_url string The deletion URL for this image, if this URL is requested, the image will be deleted.
thumb string Thumbnail URL, this is a small version of the original uploaded image.
collection string This will be the collection ID if the image was uploaded to a collection.

Resource Information

Rate Limited True
Response Format JSON
Authentication none