Upload media file
Upload a media file to create an attachment. The uploaded file can then be used to create image or file documents. Uses multipart/form-data encoding with the file uploaded under the name ‘file’.
Access: an API key with any one of content:images:write, content:files:write or content:videos:write (or a master above one). A signed-in person may call it as far as their own permissions allow; anyone else gets 403.
Signing: a key whose signing mode covers writes signs this upload by its SHA-256: send the hex digest of the exact body bytes in X-Fetchski-Content-SHA256 and sign that digest in the body’s place (<timestamp>.POST.<path+query>.<digest>). The site checks the signature before it reads the upload, then the bytes against the digest. The SDKs do this for you. Signing requests shows how, from the API and both SDKs.
Rate limit: the key’s own writes-per-minute limit, set when the key is created (default 120); over it, 429 with Retry-After.
Authorizations
Query Parameters
Response
File uploaded successfully
File attachment information from upload endpoint