Avoid Timeouts with Asynchronous Uploads
Are your requests taking too long and resulting in timeouts? For video, photo, or text post uploads that may require more processing time (file processing, social network publishing queues, etc.), use the async_upload
parameter to make your request asynchronously.
How does it work?
- Send your request with
async_upload=true
to the appropriate upload endpoint. - The API will immediately respond with a
request_id
. - Use this
request_id
to check the progress and result at the status endpoint.
Relevant Endpoints
- Text upload:
POST /api/upload_text
- Video upload:
POST /api/upload
- Photo upload:
POST /api/upload_photos
- Upload status:
GET /api/uploadposts/status?request_id=<REQUEST_ID>