programmatically assign a public internet link
API for AnythingURL.
POST a file, a JSON body, or a destination and receive a public HTTPS URL you can share with the world.
POST /api/v1/things/
Multipart or JSON. Returns the public URL, branded host, slug, and kind.
curl -F "file=@gloves.jpg" -F "slug=gloves" \
https://www.anythingurl.com/api/v1/things/
curl -H "Content-Type: application/json" \
-d '{"slug":"inventory","text":{"ok":true}}' \
https://www.anythingurl.com/api/v1/things/
JSON body fields
slug — optional public name. Must be unique; if it is taken we assign a random adjective-noun-number such as quiet-harbor-4821. text or text_body — notes, Markdown, HTML, or a JSON payload (send an object and it will be stored as JSON). redirect_url or url — destination for a named redirect.
Response
{
"ok": true,
"slug": "gloves",
"kind": "image",
"url": "https://www.anythingurl.com/u/gloves/",
"branded": "https://gloves.anythingurl.com",
"display": "gloves.anythingurl.com",
"qr": "https://www.anythingurl.com/u/gloves/qr.png"
}
Public routes after create
Share /u/<slug>/. Fetch bytes from /u/<slug>/raw/. Force a download at /u/<slug>/download/. Get a printable QR at /u/<slug>/qr.png.