API Reference
Status Check
Accounts
Workspaces
Workspace users
Workspace domains
Workspace pages
Workspace sections
Workspace plan tasks
Assets
Retrieve a list of assets
Retrieve a list of assets
GET
/
assets
curl --request GET \
--url https://api.dock.so:4000/{version}/assets \
--header 'Authorization: Bearer <token>'
{
"data": {
"assets": [
{
"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"
}
],
"pageInfo": {
"page": 1,
"pages": 10,
"total": 100,
"pageTotal": 10,
"hasNextPage": true,
"hasPrevPage": false
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Page number
Number of results to return
Select the asset properties that should be returned
Response
200
application/json
List of assets
The response is of type object
.
curl --request GET \
--url https://api.dock.so:4000/{version}/assets \
--header 'Authorization: Bearer <token>'
{
"data": {
"assets": [
{
"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"
}
],
"pageInfo": {
"page": 1,
"pages": 10,
"total": 100,
"pageTotal": 10,
"hasNextPage": true,
"hasPrevPage": false
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.