> For the complete documentation index, see [llms.txt](https://docs.zata.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zata.ai/manage/bucket/generating-a-public-access-url-for-an-object.md).

# Generating a Public Access URL for an Object

### Accessing an Object Using Public URL

1. Log in to the **Zata.ai Dashboard**.
2. Go to the **Buckets** section and select your required bucket.

***

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FyeK1wOugf4dwUjuQfydp%2Fimage.png?alt=media&amp;token=e13f0560-5553-4b2f-8851-6369c7c7c2f0" alt=""><figcaption></figcaption></figure>

\
3\. Click on **Bucket Settings**.\
4\. Open the **Permissions** tab.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FNQ47WucqKN7Aw3I1eAeq%2Fimage.png?alt=media&amp;token=3e3fe256-60cd-4c9a-b8a8-8926316e3cc6" alt=""><figcaption></figcaption></figure>

5\. Enable public access by adding the following bucket policy:

```json
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Principal": "*",
    "Action": "s3:GetObject",
    "Resource": [
      "arn:aws:s3:::<Bucketname>/*"
    ]
  }]
}
```

Explanation for documentation:

* **Effect: Allow** → Grants permission.
* **Principal: "\*"** → Allows access to everyone (public access).
* **Action: s3:GetObject** → Allows only read/download access.
* **Resource** → Applies to all objects inside the bucket.

Replace `<Bucketname>` with your actual bucket name.\
Example:

```
arn:aws:s3:::prertest/*
```

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FKI22s2XJjy8uhUjic5VF%2Fimage.png?alt=media&amp;token=488a70e7-25b7-41a3-bf09-df85d804a426" alt=""><figcaption></figcaption></figure>

\
7\. Open your **S3 Browser** application.\
8\. Connect using your access credentials.

***

9\. Your bucket will now be accessible publicly.\
10\. Navigate inside the bucket and select the required object.

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2F6m1mcBwMn1rjY8D9EOfx%2Fimage.png?alt=media&amp;token=207cf15b-67ed-4016-97c8-cb89f69c4bdb" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FF5XYKpeZmYvqusvrGvUj%2Fimage.png?alt=media&amp;token=463d656e-172c-420c-8ea7-979187077d2d" alt=""><figcaption></figcaption></figure>

***

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FLhmg9ntPwkJ0quioDRKq%2Fimage.png?alt=media&amp;token=51d8d0d2-f1f3-41c1-8299-162a00b19a04" alt=""><figcaption></figcaption></figure>

\
11\. Right-click on the object.\
12\. Select **Generate Web URL**.

***

<figure><img src="https://2683631041-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPPVG4W649TwXN8OejRhb%2Fuploads%2FveDMTP97nE4VkYomdssH%2Fimage.png?alt=media&amp;token=cebd6728-51e0-46d4-9e61-2ecbdf817f86" alt=""><figcaption></figcaption></figure>

\
Click on **Copy** .

\
13\. Paste the copied URL into any web browser and press Enter, The object will open directly in the browser using the public URL.

\
\ <br>
