HTTP API
List managers
GET
/v1/documents/{document_id}/managers
const url = 'https://sergo.example.com/v1/documents/example/managers';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://sergo.example.com/v1/documents/example/managers \ --header 'Authorization: Bearer <token>'Who can manage the document: its owner first, then people it was shared with, then people who manage a folder above it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”document_id
required
Document Id
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
ManagerList
object
items
required
Items
Array<object>
Managerobject
username
required
Username
string
name
required
Name
string
inherited_from
required
owner
required
Owner
Whether this is the owner — the person whose My documents it is in
boolean
Example
{ "items": [ { "owner": false } ]}Validation Error
Media typeapplication/json
RequestError
object
code
required
Code
string
message
required
Message
What was wrong, field by field
string
Example
{ "code": "invalid_request"}