Skip to main content

Get Data

GET 

/api/v1/assets/:asset_id/data

Retrieve an Asset's data that includes Core metadata, Custom metadata, conversions and addon details.

Pass ?include=relationships to additionally embed the asset's typed relationships (parents, children, related and custom) under a top-level relationships object. The relationships key is only present when include=relationships is requested; see the Asset Relationships API for the relationship model.

HTTP RESPONSE​

HTTP Status code and JSON response that follows Standard Asset Data Format

Revisions for stale-write checks​

Two values in the response tell you which state of the asset you read. Send them back on a write and FileSpin refuses it with 409, writing nothing, if the asset changed in between:

FieldWhat it tracksSend it as
metadata_revisionAn opaque string that changes on every write to the asset's metadata (data), from any source: the API, the Dashboard, addons. Compare it only for equalityexpected_revision in Update Data
versions.liveThe number of the asset's live file (content version). It goes up each time the file is replaced and made liveexpected_version in Replace Asset Content or Replace Asset Content from URI

Both checks are optional; without them writes behave as before. See Retries and conflicts.

Request​

Responses​

Successful operation