Uploads

Media Status

GEThttps://tryferra.co/api/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.

Authorization

Send your API key in the Authorization header. It is under Settings → Developers → Public API in Ferra.

Parameters

idstringrequired

path · The media id returned by the upload

Request

curl -X GET 'https://tryferra.co/api/public/v1/media/{id}/status' \
  -H 'Authorization: your-api-key'

Responses

200Media status
{
  "id": "e639003b-f727-4a1e-87bd-74a2c48ae41e",
  "path": "https://tryferra.co/uploads/video.mp4",
  "status": "ready"
}
404Media 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://tryferra.co/api/public/v1/media/01HXYZ123ABCDEF/status" \
  -H "Authorization: your-api-key"

Response:

{
  "id": "01HXYZ123ABCDEF",
  "path": "https://tryferra.co/uploads/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.

Parts of these docs are adapted from open-source documentation under the MIT License (© 2023 Mintlify).