C# Example
Uploads a file to owf.gay in one request via POST /a/1/u/s, using C#'s standard HTTP client - no third-party library required.
using System.Net.Http;
using System.Net.Http.Headers;
var client = new HttpClient();
// client.DefaultRequestHeaders.Add("X-Api-Key", "your-api-key"); // if accounts are enabled
using var form = new MultipartFormDataContent();
using var fileStream = File.OpenRead("file.txt");
var fileContent = new StreamContent(fileStream);
fileContent.Headers.ContentType = MediaTypeHeaderValue.Parse("application/octet-stream");
form.Add(fileContent, "f", "file.txt");
var response = await client.PostAsync("https://owf.gay/a/1/u/s", form);
var url = await response.Content.ReadAsStringAsync();
Console.WriteLine(url); // the file's URL
Full endpoint details are on the API page.