Zum Hauptinhalt springen
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>",
  "status": "pending_upload",
  "productIds": [
    "<string>"
  ],
  "brands": [
    "<string>"
  ],
  "metadata": {},
  "isExternal": true,
  "collections": [
    "<string>"
  ],
  "mimetype": "<string>",
  "url": "<string>"
}

Autorisierungen

Authorization
string
header
erforderlich

A valid API key generated in Topsort's UI.

Pfadparameter

asset-id
string
erforderlich

Asset ID.

Antwort

Successful Response

id
string
erforderlich

The id of the asset.

name
string
erforderlich

The name of the asset.

status
enum<string>
erforderlich

Approval status of the asset

Verfügbare Optionen:
pending_upload,
pending_approval,
upload_error,
approved,
rejected
productIds
string[]
erforderlich

The product ids that the asset is associated with.

brands
string[]
erforderlich

The brands that the asset is associated with.

metadata
Metadata · object
erforderlich

The metadata associated with the asset.

isExternal
boolean
erforderlich

Indicates if the asset is externally hosted.

collections
string[]
erforderlich

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