Skip to main content
GET
/
v1
/
product_medias
/
{id}
Retrieve
curl --request GET \
  --url https://{defaultHost}/v1/product_medias/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "5e630fc5-d943-498a-9801-9909c680f924",
  "object": "product_media",
  "alt": null,
  "position": 0,
  "title": null,
  "url": null,
  "media": "9fb2b256-2c2f-4da9-8b32-b430e63bb757",
  "product": "609a7942-90a7-4c5e-b290-821cab1c8357",
  "created_at": 1780335123,
  "updated_at": 1780335123
}

Documentation Index

Fetch the complete documentation index at: https://developer.surecart.com/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.

Path Parameters

id
string
required

Response

200 - application/json

Success

id
string | null

The UUID of the specific object.

object
string

A string describing the object type returned.

alt
string | null

The HTML alt attribute for the product media.

position
integer | null

The ordering position of this product media when displayed to customers.

title
string | null

The HTML title attribute for the product media.

url
string | null

Instead of attaching a Media record, a public URL can be set. If set, this URL will be used to serve the product media asset.

media

Expandable – The associated media ID.

product

Expandable – The associated product ID.

created_at
integer | null

Time at which the object was created. Measured in seconds since the Unix epoch.

updated_at
integer | null

Time at which the object was last updated. Measured in seconds since the Unix epoch.