Upload a file
Upload an image or video from disk and get the id and path a post’s media takes.
file. The answer’s id and path go into a post’s image array.
What it accepts
PostQueen reads the type from the file’s bytes, not its name, and stores files up to 1 GB. Each network then has its own, much smaller limits when it publishes.Videos are processed first
A video answers with"status": "processing" while PostQueen prepares it for the networks. Poll Get media status until it is ready, then use the path that call returns: a converted file has a new one. Images are ready at once.
POST /upload allows 300 requests an hour per workspace, counted apart from Upload from a URL and from the posting limit. See Limits and errors.Authorizations
Your API key from Connections > API Keys, or an OAuth access token (pos_...). Send it as it is, with no Bearer prefix.
Body
The file to upload
Response
Stored
Unique file ID
Stored file name
The name the file was uploaded under
URL of the stored file. Send it with id as a post's media
Thumbnail URL, set for video
Alt text, when one was set
A video (MP4 or MOV) is normalized in the background and starts as processing; poll GET /media/{id}/status until it is ready before you put it on a post. Images are ready at once.
ready, processing, failed