Approve an access request
/workspaces/{workspace}/access-requests/{accessRequest}/approveShares some or all of the requested documents. The requester is emailed a private link that works until access ends (your access_days setting). A request can only be decided once.
Authentication
Send an API token as a bearer token. This endpoint needs a read and write token, made by an editor, admin or owner. Create one in My account → API tokens; see scopes and roles.
Authorization: Bearer 42|bynh_pat_•••••••HeaderPath parameters
workspacestringRequiredYour workspace slug, e.g. dokan.
accessRequestintegerRequiredAccess request id.
Request body
application/jsondocument_idsstringRequired1–50 distinct ids, all from this request. NDA documents need a signed NDA.
Response
200 OKRequest detail.
idintegerAccess request id.companystringCompany.requester{name, title, email}Who asked.notestring|nullTheir note.nda_signedbooleanSigned your NDA.statusenumDecision state (use access_expires_at to tell if access has ended). One ofpending,approved,declined.access_expires_atstring|nullISO 8601.access_daysintegerWorkspace setting: how long approved access lasts.documents[]objectid, title, pages, visibility, visibility_label, granted.activity[]{at, text}Localized timeline, oldest first.created_atstringISO 8601.
Rate limits
This endpoint counts toward your general limit of 120 requests a minute. When you go over, wait for the number of seconds in Retry-After.
Errors
Every error is JSON with a message. See Errors.