API Reference
Status Check
Accounts
Workspaces
Workspace users
Workspace domains
Workspace pages
Workspace sections
Workspace plan tasks
Retrieve an asset
Retrieve an asset by ID
curl --request GET \
--url https://api.dock.so:4000/{version}/assets/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"asset": {
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"tags": [
{
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "tag",
"url": "https://api.dock.us/v1/tags/RiHO4e0Ju3DS",
"title": "Logo"
}
],
"object": "asset",
"url": "https://api.dock.us/v1/assets/RiHO4e0Ju3DS",
"name": "Logo",
"description": "Logo of the asset",
"views": 100,
"shares": 100,
"assetType": "image",
"assetUrl": "https://dock.us/logo.png"
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Unique identifier
"RiHO4e0Ju3DS"
Query Parameters
Select the asset properties that should be returned
name
, description
, updatedAt
, createdAt
, views
, shares
, type
, assetUrl
, tags.title
, tags.createdAt
, tags.updatedAt
Response
Id of the object
"RiHO4e0Ju3DS"
Last updated date
"2021-01-01T00:00:00.000Z"
Created at date
"2021-01-01T00:00:00.000Z"
Tags of the asset
Id of the object
"RiHO4e0Ju3DS"
Last updated date
"2021-01-01T00:00:00.000Z"
Created at date
"2021-01-01T00:00:00.000Z"
Type of the object
tag
"tag"
URL to the resource
"https://api.dock.us/v1/tags/RiHO4e0Ju3DS"
Title of the tag
"Logo"
Type of the object
asset
"asset"
URL to the resource
"https://api.dock.us/v1/assets/RiHO4e0Ju3DS"
Name of the asset
"Logo"
Description of the asset
"Logo of the asset"
Number of views
100
Number of shares
100
Type of the asset
image
, pdf
, link
, video
"image"
URL to the asset
"https://dock.us/logo.png"
curl --request GET \
--url https://api.dock.so:4000/{version}/assets/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"asset": {
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"tags": [
{
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "tag",
"url": "https://api.dock.us/v1/tags/RiHO4e0Ju3DS",
"title": "Logo"
}
],
"object": "asset",
"url": "https://api.dock.us/v1/assets/RiHO4e0Ju3DS",
"name": "Logo",
"description": "Logo of the asset",
"views": 100,
"shares": 100,
"assetType": "image",
"assetUrl": "https://dock.us/logo.png"
}
}
}