Assets

Retrieve the assets of a space

The example below only shows a query on the primary revision of a space, but the same route can be applied on a specific revision or draft. Please check this section for more information.

The Assets endpoints retrieve content of binary (images, etc) fils uploaded to a GitBook space.

get
List Assets

https://$HOSTNAME/v1/spaces/:spaceID/content/assets
Retrieve the list of assets uploaded in a space.
Request
Response
Request
Path Parameters
spaceID
required
string
ID of the space
Response
200: OK
{
"items": [
{
"uid": "-M-FbedxfM37Cr6E1uNA",
"name": "gitbook.jpeg",
"downloadURL": "...",
"contentType": "image/jpeg"
}
]
}