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}
GEThttps://api.sofia-post.com/api/v1/media/{id}

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.

Authorizations

Authorizationstringrequired

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

Kept in this tab only, and sent only to api.sofia-post.com. Get an API key

Path parameters

idstringrequired

Identifier of the media.

The url returned is signed and expires: keep the id, and read the media again with GET /v1/media/{id} when you need a fresh URL.

Authorizations

  • Authorizationstringheaderrequired

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

Path parameters

  • idstringrequired

    Identifier of the media.

Response

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

Was this page helpful?