library

Get media asset

Get a single MEDIA ASSET (uploaded image or video) by its media ID.

For a markdown/text document, use get_file instead.

Errors: 401 authentication_required: API key or token is missing, invalid, or revoked. 403 permission_denied: Your plan does not include API access, or this file is not in your org. 404 resource_not_found: No file with that ID exists. 429 rate_limit_exceeded: You sent too many requests this minute.

get/api/businesses/{business_id}/library/{media_id}

Request

  • Base URL: https://api.mymarky.ai
  • URL: https://api.mymarky.ai/api/businesses/{business_id}/library/{media_id}
  • Auth: HTTP bearer

Path parameters

business_idstring required

A UUID identifier.

media_idstring required

A UUID identifier.

Headers

Marky-Version'2026-04-08' | '2026-07-17' | '2026-08-02' | '2026-08-04' | '2026-08-06'
Example:2026-08-06

Opt into a dated API version. Omit to stay on the floor (2026-04-08) forever — unpinned clients never break. Pin to a newer date (e.g. 2026-08-06) to receive the newest response shapes. Unknown values fall back to the floor. See https://docs.mymarky.ai for the versioning model.

Response

Successful Response

idstring required

Media ID

business_idstring required

Business this media belongs to

alt_textstring nullable

Alt text description

original_urlstring nullable

Media URL

typestring nullable

Media type: image, video, or audio

widthinteger nullable

Width in pixels

heightinteger nullable

Height in pixels

sourcestring nullable

Media origin (e.g. upload, unsplash)

created_atstring required

When the media was uploaded

Changes

No recorded changes to this operation across all 1 revision of this API.