Skip to main content
GET
/
api
/
v1
/
media
/
{attachment_id}
/
info
Get Attachment Info
curl --request GET \
  --url https://api.example.com/api/v1/media/{attachment_id}/info \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "attachment_type": "image",
  "file_name": "<string>",
  "mime_type": "<string>",
  "file_size": 123,
  "storage_provider": "local",
  "created_at": "2023-11-07T05:31:56Z",
  "storage_path": "<string>",
  "file_metadata": {},
  "download_url": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

attachment_id
string
required

Response

Successful Response

id
string
required
attachment_type
enum<string>
required
Available options:
image,
video,
audio,
document
file_name
string
required
mime_type
string
required
file_size
integer
required
storage_provider
enum<string>
required
Available options:
local,
gcs,
s3,
azure
created_at
string<date-time>
required
storage_path
string | null
file_metadata
File Metadata · object
download_url
string | null