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:
| Field | What it tracks | Send it as |
|---|---|---|
metadata_revision | An 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 equality | expected_revision in Update Data |
versions.live | The number of the asset's live file (content version). It goes up each time the file is replaced and made live | expected_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
- 200
- 401
- 403
- 500
Successful operation
Unauthorized - Invalid or missing authentication
Forbidden - Insufficient permissions
Internal server error