List access requests
/workspaces/{workspace}/access/requestsReturns requests for your private documents, newest first, 25 per page, with counts for each state.
Authentication
Send an API token as a bearer token. This endpoint needs a read token, made by any member of the workspace. Create one in My account → API tokens; see scopes and roles.
Authorization: Bearer 42|bynh_pat_•••••••HeaderPath parameters
workspacestringRequiredYour workspace slug, e.g. dokan.
Query parameters
statusenumdefault allapproved means access is still live. One of
all,waiting,approved,declined,ended.qstringSearches name, email and company (max 120).
pageintegerdefault 1Page number.
Response
200 OK25 per page; meta {counts {all, waiting, approved, declined, ended}, page, last_page, total, approved_domains, access_days}. No links.
idintegerAccess request id.requester{name, email, title}Who asked.personal_emailbooleanEmail is from a personal provider (e.g. gmail.com).companystringCompany.documents[]{id, title}Documents asked for.documents_labelstringTitles joined, or “All private documents”.all_documentsbooleanAsked for every requestable document (more than 2).reasonstring|nullLocalized reason label (Vendor review, Procurement, Audit, Due diligence, Contract renewal, Something else).notestring|nullRequester’s note.nda_signedbooleanSigned your NDA.nda_versionstring|nullNDA version signed.stateenumended: approved but revoked or past access_expires_at. One ofwaiting,approved,declined,ended.auto_approvedbooleanApproved by an approved email domain.decided_bystring|nullName.decided_atstring|nullISO 8601.access_expires_atstring|nullISO 8601.revoked_atstring|nullISO 8601.revoked_bystring|nullName.inbox_item_idinteger|nullLinked inbox item (list only; null on revoke).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.