GET
/
media
/
{id}
curl -X GET \
 /media/{id} \
 --header "Authorization: Bearer <token>"
{
  "id": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ",
  "mediaFolder": {
    "name": "invoice"
  },
  "isPrivate": true,
  "mimeType": "image/jpeg",
  "fileExtension": "jpg",
  "fileName": "invoice.jpg",
  "storageFileName": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ.jpg",
  "createdAt": "2021-01-01T00:00:00+00:00"
}

Authorizations

Authorization
string
header
required

Value for the Authorization header parameter.

Path Parameters

id
string
required

Media identifier

Response

200
application/json
Media resource
id
object
mediaFolder
object
isPrivate
boolean

Whether the media is public accessible or not

Example:

true

mimeType
string | null

The mime type of the media

Example:

"image/jpeg"

fileExtension
string

The file extension of the media

Example:

"jpg"

fileName
string

The original file name of the media

Example:

"invoice.jpg"

storageFileName
string

The file name of the media in the storage

Example:

"01F9Z3ZJXZQZJZJZJZJZJZJZJZ.jpg"

createdAt
string

The date and time when the media was created

Example:

"2021-01-01T00:00:00+00:00"