Set the endpoint and region in an S3 client

Configure an S3 client with Dosya’s exact endpoint, us-east-1 signer region, path-style addressing, workspace bucket, and one-time credentials.

Last reviewed

Create S3 credentials from an existing Dosya API key, then configure the exact gateway values returned by the released dialog. The S3 secret cannot be retrieved after that dialog closes.

Four-step workflow map for Set the endpoint and region in an S3 client: Enable S3 in the API key settings, require the S3 gateway restriction. Copy the access ID and one-time secret, save both before closing the dialog. Configure endpoint /s3 and us-east-1, select path-style addressing. List a permitted key prefix, require both API scope and member role.
This map follows set the endpoint and region in an s3 client from “Enable S3 in the API key settings, require the S3 gateway restriction.” through “Copy the access ID and one-time secret, save both before closing the dialog.” and “Configure endpoint /s3 and us-east-1, select path-style addressing.”, ending with “List a permitted key prefix, require both API scope and member role.”. Open full-size screenshot.

Before you start

In Profile > API keys, use a key whose protocols are unrestricted or explicitly include S3 gateway. A workspace-pinned key also requires current membership and a role permitted to use S3. Expired keys cannot be enabled.

Choose Read only, Upload only, or Full access for the task and narrow the workspace or folder when possible. A folder anchor becomes the S3 root visible to that credential.

Steps

  1. Expand the intended API-key row and choose Enable in its S3 section; if no key exists, create one and include S3 gateway under protocol restrictions.
  2. In S3 credentials, copy Access key ID and Secret access key into a protected client profile before closing the dialog.
  3. Set Endpoint to https://api.dosya.dev/s3 and Region to us-east-1, exactly as displayed.
  4. Enable path-style addressing and use the exact workspace ID as the bucket name.
  5. Run a non-destructive bucket or prefix listing that the key’s scope and role allow; an upload-only key cannot list existing files.
  6. Confirm the expected workspace appears and one known permitted key is returned, then remove credentials from terminal history or temporary files.

Expected result

The client reaches Dosya through AWS Signature V4 at /s3/{workspace-id}/…. The access key remains visible in the API-key row, while reopening S3 credentials shows that the secret is not retrievable and rotation requires a new API key.

If Enable is absent, inspect the key’s protocol restriction and expiry. The server refuses S3 credential creation for keys that exclude S3, expired keys, lost workspace memberships, and roles without S3 access.

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.

    Check the outcome before you retry

    Use these shared checks when a task needs a second look.