Create a read-only Dosya API key
Create a Read only key for listing and downloads, apply compatible reach controls, and prove that an attempted folder creation is refused by scope.
Last reviewed
A Read only credential can list and download but cannot open upload transactions or change stored data. Use it for reporting, backup reads, or inventory jobs.

Configure compatible reach
The permission card says List and download. Cannot upload, move or delete anything. For a REST client, select REST API and optionally pin one workspace. Do not choose a folder anchor for REST because anchored credentials work only through WebDAV or S3.
The current role still needs access_files, and hidden or locked resources remain subject to their normal gates.
Steps
- Open Profile → API keys, select New API key, and give the reporting or download client a distinct name.
- Choose Read only under What can it do?, then open Restrictions and expiry.
- Permit REST API, pin the intended workspace when possible, and set origin, usage, or expiry controls appropriate to the job.
- Press Generate key, copy the secret once, and store it in the client’s credential mechanism.
- Prove the allowed side with
GET /api/files?workspace_id=wks_…and confirm the response contains the expected listing. - Prove the denied side with a disposable
POST /api/folders; require a scope 403 and confirm no folder was created.
Scope boundary
REST treats GET, HEAD, and OPTIONS as read capability. Documented bulk-download POST routes are classified as reads because they return existing bytes. Upload endpoints and POST /api/folders require write capability; rename, move, share, and delete operations generally require Full access.
The denied folder request reads This credential's scope is 'read' and cannot perform POST /api/folders. A different 403 can still come from surface, pin, role, or lock rules and should be diagnosed separately.
Revocation irreversibly deletes the key row and schedules REST/S3 cache invalidation. Cached authentication can remain valid for up to five minutes, so stop the client and verify that the retired secret is refused before considering access closed. Keep a production read credential only after the intended list/download action and its mutation refusal both pass.
Expected result
The credential returns permitted metadata or downloads, while the harmless create test is rejected before data changes and the workspace boundary remains intact.

Related guides
Was this helpful?
Loading helpfulness results…
Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.
Questions and replies
Ask about the steps in this guide. Questions are reviewed before publication.
Keep account details, credentials and private files out of public questions. Use private support for those.
Loading questions…
Sign in to your Dosya account to ask a question.