curl Example
Uploads a file to owf.gay in one request via POST /a/1/u/s, using curl's standard HTTP client - no third-party library required.
#!/bin/sh # Prints the file's URL. Add -H "X-Api-Key: your-api-key" if accounts are enabled. curl -F "[email protected]" "https://owf.gay/a/1/u/s" # Upload options go in as extra form fields, e.g. a link that works for # 5 downloads and expires at a set time: curl -F "[email protected]" -F "maxDownloads=5" -F "expiresAt=2030-01-01T00:00:00Z" "https://owf.gay/a/1/u/s"
Full endpoint details are on the API page.