infipostdocs
Uploads

Media Status

GET /media/{id}/status — Infipost Public API

GET/public/v1/media/{id}/status

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
curl --request GET \
  --url 'https://api.infipost.asia/public/v1/media/{id}/status' \
  --header 'Authorization: YOUR_API_KEY'

Authorization

Authorizationstring · headerrequired

Workspace API key or OAuth access token. Send the token directly without a Bearer prefix.

Parameters

idstring · pathrequired

The media id returned by the upload

Response

Media status

application/json
{
  "id": "e639003b-f727-4a1e-87bd-74a2c48ae41e",
  "path": "https://uploads.postiz.com/video.mp4",
  "status": "ready"
}
idstring
pathstring
statusstring
"processing""ready""failed"
warningstring

Present when the adjustment failed and the original file was kept

errorstring

Present with status "failed", only when the adjustment failed and the original file's format cannot be published as is

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

bash
curl "https://api.infipost.asia/public/v1/media/01HXYZ123ABCDEF/status" \
  -H "Authorization: your-api-key"

Response:

json
{
  "id": "01HXYZ123ABCDEF",
  "path": "https://uploads.postiz.com/video.mp4",
  "status": "ready"
}

Statuses

StatusMeaning
processingThe 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.
readyThe 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 warningThe 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.