Skip to main content
GET
/
public
/
v1
/
assets
/
asset
/
{asset-id}
Get Asset
curl --request GET \
  --url https://api.topsort.com/public/v1/assets/asset/{asset-id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "name": "<string>",
  "mimetype": "<string>",
  "status": "pending_upload",
  "url": "<string>",
  "productIds": [
    "<string>"
  ],
  "brands": [
    "<string>"
  ],
  "metadata": {},
  "isExternal": true,
  "collections": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

A valid API key generated in Topsort's UI.

Path Parameters

asset-id
string
required

Asset ID.

Response

Successful Response

id
string
required

The id of the asset.

name
string
required

The name of the asset.

status
enum<string>
required

Approval status of the asset

Available options:
pending_upload,
pending_approval,
upload_error,
approved,
rejected
productIds
string[]
required

The product ids that the asset is associated with.

brands
string[]
required

The brands that the asset is associated with.

metadata
object
required

The metadata associated with the asset.

isExternal
boolean
required

Indicates if the asset is externally hosted.

collections
string[]
required

The collections that the asset is associated with.

mimetype
string | null

The mimetype of the asset.

url
string<uri> | null

The url of the asset.

Required string length: 1 - 2083