Media Status
GET /media/{id}/status — Infipost Public API
Check whether a file uploaded with adjust set to true finished adjusting. A failed adjustment returns status "ready" with a warning: the original file was kept and is used for publishing.
curl --request GET \
--url 'https://api.infipost.asia/public/v1/media/{id}/status' \
--header 'Authorization: YOUR_API_KEY'Authorization
Authorizationstring · headerrequiredWorkspace API key or OAuth access token. Send the token directly without a Bearer prefix.
Parameters
idstring · pathrequiredThe media id returned by the upload
Response
Media status
{
"id": "e639003b-f727-4a1e-87bd-74a2c48ae41e",
"path": "https://uploads.postiz.com/video.mp4",
"status": "ready"
}idstringpathstringstatusstring"processing""ready""failed"warningstringPresent when the adjustment failed and the original file was kept
errorstringPresent with status "failed", only when the adjustment failed and the original file's format cannot be published as is
Media not found
Check whether a file uploaded with adjust set to true (on Upload File or Upload from URL) finished adjusting to the platforms' limits. Uploads without adjust are ready as soon as the upload call returns and don't need this endpoint.
Example
curl "https://api.infipost.asia/public/v1/media/01HXYZ123ABCDEF/status" \
-H "Authorization: your-api-key"
Response:
{
"id": "01HXYZ123ABCDEF",
"path": "https://uploads.postiz.com/video.mp4",
"status": "ready"
}
Statuses
| Status | Meaning |
|---|---|
processing | The adjustment is still running. Don't publish a post with this path yet, it would use the original file. Call again in a few seconds. |
ready | The file is ready to publish at the same path: adjusted, or unchanged when it was already within the limits or its format isn't adjusted. |
ready with a warning | The adjustment failed. The original file was kept at the same path and is used for publishing. |
An unknown id, or one from another organization, returns 404.