Skip to main content
POST
/
api
/
media
Upload media
curl --request POST \
  --url https://api.mymarky.ai/api/media \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "id": "<string>",
  "business_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "alt_text": "<string>",
  "original_url": "<string>",
  "type": "<string>",
  "width": 123,
  "height": 123,
  "source": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mymarky.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Query Parameters

business_id
string
required

Business to upload media for

alt_text
string | null

Alt text for the media

Body

multipart/form-data
file
file
required

Image or video file

Response

Successful Response

id
string
required

Media ID

business_id
string
required

Business this media belongs to

created_at
string<date-time>
required

When the media was uploaded

alt_text
string | null

Alt text description

original_url
string | null

Media URL

type
string | null

Media type: image, video, or audio

width
integer | null

Width in pixels

height
integer | null

Height in pixels

source
string | null

Media origin (e.g. upload, unsplash)