Skip to content
Endless Documentation
Documents

Get document access

GET
/documents/{doc_id}/access

Get document access. Scoped to the doc named by doc_id.

Authorization

headerAuthorizationBearer <esk_live_…>

A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.

Scope: sharing:read

Path Parameters

doc_id*string
Formatuuid

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Response Body

OK

application/json
  1. response
kind*string
Value in"asset""project"
can_write*boolean
Example Request
curl -X GET 'https://api.endless.app/documents/0191e5a2-3d71-7c02-9a44-2b7e5c81d0a3/access'
Example Response
{  "kind": "asset",  "can_write": true}