Skip to main content
POST
/
upload
Upload file
curl --request POST \
  --url https://api.snipp.gg/upload \
  --header 'Content-Type: multipart/form-data' \
  --header 'api-key: <api-key>' \
  --form file='@example-file'
{
  "message": "Upload successful!",
  "url": "<string>",
  "post": {
    "code": "<string>",
    "url": "<string>",
    "postPrivacy": "public"
  }
}

Authorizations

api-key
string
header
required

Your API key from Snipp.gg

Headers

postprivacy
enum<string>

Privacy for share link: public, unlisted, or private (default)

Available options:
public,
unlisted,
private

Body

multipart/form-data
file
file

Image or video file

Response

Upload successful

message
string
Example:

"Upload successful!"

url
string

Direct URL to the uploaded file

post
object

Present when postprivacy is public or unlisted