MediaGet a media

Media

Get a media

Returns one media of the library with a signed URL valid for the current window, so you can reuse its identifier in a post.

GEThttps://api.sofia-post.com/api/v1/media/{id}
GET/v1/media/{id}
curl -X GET 'https://api.sofia-post.com/api/v1/media/{id}' \
  -H "Authorization: Bearer $SOFIA_API_KEY"

Authorizations

  • Authorizationstringrequired

    Your personal key or OAuth access token, sent as Bearer <token>.

Path parameters

  • idstringrequired

    Identifier of the media.

Response

200application/json

The media and its signed URL.

  • idstringrequired

    Identifier of the media, to pass in media[].id of a post

  • typestringrequired

    Kind of the media

    Allowed values: imagevideo

  • urlstringrequired

    Signed address, valid for the current window

401

The token is missing, unknown, expired or revoked.

403

The token does not have the media:read scope.

404

media_not_found: outside the establishments of the Workspace.

4XXapplication/json

Any other error, in the error envelope.