Amazon S3 Acl API

The acl API from Amazon S3 — 1 operation(s) for acl.

GitHub OpenAPI

Operations 4

GET /{Bucket}?acl Get Bucket Acl #
PUT /{Bucket}?acl Put Bucket Acl #
GET /{Bucket}/{Key+}?acl Get Object Acl #
PUT /{Bucket}/{Key+}?acl Put Object Acl #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-s3:amazon-s3-acl-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-s3-acl-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Simple Storage Service Acl API
  version: '2006-03-01'
  description: Generated from AWS's published Smithy model for Amazon Simple Storage Service. 4 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://s3.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /{Bucket}?acl:
    get:
      operationId: GetBucketAcl
      summary: Get Bucket Acl
      description: 'This operation is not supported for directory buckets. This implementation of the GET action uses the
        acl subresource to return the access control list (ACL) of a bucket. To use GET to return the ACL of the bucket, you
        must have the READ_ACP access to the bucket. If READ_ACP permission is granted to the anonymous user, you can return
        the ACL of the bucket without using an authorization header. When you use this API operation with an access point,
        provide the alias of the access point in place of the bucket name. When you use this API operation with an Object
        Lambda access point, provide the alias of the Object Lambda access point in place of the bucket name. If the Object
        Lambda access point alias in a request is not valid, the error code InvalidAccessPointAliasError is returned. For
        more information about InvalidAccessPointAliasError, see List of Error Codes. If your bucket uses the bucket owner
        enforced setting for S3 Object Ownership, requests to read ACLs are still supported and return the bucket-owner-full-control
        ACL with the owner being the account that created the bucket. For more information, see Controlling object ownership
        and disabling ACLs in the Amazon S3 User Guide. '
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/GetBucketAclOutput'
      parameters:
      - name: Bucket
        in: path
        required: true
        schema:
          type: string
        description: Specifies the S3 bucket whose ACL is being requested. When you use this API operation with an access
          point, provide the alias of the access point in place of the bucket name. When you use this API operation with an
          Object Lambda access point, provide the alias of the Object Lambda access point in place of the bucket name. If
          the Object Lambda access point alias in a request is not valid, the error code InvalidAccessPointAliasError is returned.
          For more information about InvalidAccessPointAliasError, see List of Error Codes.
      - name: x-amz-expected-bucket-owner
        in: header
        schema:
          type: string
        description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
          owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
      tags:
      - Acl
    put:
      operationId: PutBucketAcl
      summary: Put Bucket Acl
      description: 'End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access
        Control Lists (ACLs). If you attempt to use an Email Grantee ACL in a request after October 1, 2025, the request will
        receive an HTTP 405 (Method Not Allowed) error. This change affects the following Amazon Web Services Regions: US
        East (N. Virginia), US West (N. California), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia
        Pacific (Tokyo), Europe (Ireland), and South America (São Paulo). This operation is not supported for directory buckets.
        Sets the permissions on an existing bucket using access control lists (ACL). For more information, see Using ACLs.
        To set the ACL of a bucket, you must have the WRITE_ACP permission. You can use one of the following two ways to set
        a bucket''s permissions: Specify the ACL in the request body Specify permissions using request headers You cannot
        specify access permission using both the body and the request headers. Depending on your application needs, you may
        choose to set the ACL on a bucket using either the request body or the headers. For example, if you have an existing
        application that updates a bucket ACL using th'
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                type: string
      parameters:
      - name: x-amz-acl
        in: header
        schema:
          type: string
          enum:
          - private
          - public-read
          - public-read-write
          - authenticated-read
        description: The canned ACL to apply to the bucket.
      - name: Bucket
        in: path
        required: true
        schema:
          type: string
        description: The bucket to which to apply the ACL.
      - name: Content-MD5
        in: header
        schema:
          type: string
        description: The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check
          to verify that the request body was not corrupted in transit. For more information, go to RFC 1864. For requests
          made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated
          automatically.
      - name: x-amz-sdk-checksum-algorithm
        in: header
        schema:
          type: string
          enum:
          - CRC32
          - CRC32C
          - SHA1
          - SHA256
          - CRC64NVME
          - SHA512
          - MD5
          - XXHASH64
          - XXHASH3
          - XXHASH128
        description: Indicates the algorithm used to create the checksum for the request when you use the SDK. This header
          will not provide any additional functionality if you don't use the SDK. When you send this header, there must be
          a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP
          status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide. If
          you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.
      - name: x-amz-grant-full-control
        in: header
        schema:
          type: string
        description: Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
      - name: x-amz-grant-read
        in: header
        schema:
          type: string
        description: Allows grantee to list the objects in the bucket.
      - name: x-amz-grant-read-acp
        in: header
        schema:
          type: string
        description: Allows grantee to read the bucket ACL.
      - name: x-amz-grant-write
        in: header
        schema:
          type: string
        description: Allows grantee to create new objects in the bucket. For the bucket and object owners of existing objects,
          also allows deletions and overwrites of those objects.
      - name: x-amz-grant-write-acp
        in: header
        schema:
          type: string
        description: Allows grantee to write the ACL for the applicable bucket.
      - name: x-amz-expected-bucket-owner
        in: header
        schema:
          type: string
        description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
          owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
      requestBody:
        content:
          application/xml:
            schema:
              $ref: '#/components/schemas/AccessControlPolicy'
            example:
              Bucket: examplebucket
              GrantFullControl: id=examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484
              GrantWrite: uri=http://acs.amazonaws.com/groups/s3/LogDelivery
      tags:
      - Acl
  /{Bucket}/{Key+}?acl:
    get:
      operationId: GetObjectAcl
      summary: Get Object Acl
      description: 'This operation is not supported for directory buckets. Returns the access control list (ACL) of an object.
        To use this operation, you must have s3:GetObjectAcl permissions or READ_ACP access to the object. For more information,
        see Mapping of ACL permissions and access policy permissions in the Amazon S3 User Guide This functionality is not
        supported for Amazon S3 on Outposts. By default, GET returns ACL information about the current version of an object.
        To return ACL information about a different version, use the versionId subresource. If your bucket uses the bucket
        owner enforced setting for S3 Object Ownership, requests to read ACLs are still supported and return the bucket-owner-full-control
        ACL with the owner being the account that created the bucket. For more information, see Controlling object ownership
        and disabling ACLs in the Amazon S3 User Guide. The following operations are related to GetObjectAcl: GetObject GetObjectAttributes
        DeleteObject PutObject You must URL encode any signed header values that contain spaces. For example, if your header
        value is my file.txt, containing two spaces after my, you must URL encode this value to my%20%20file.txt.'
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/GetObjectAclOutput'
              example:
                Owner:
                  DisplayName: owner-display-name
                  ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc
                Grants:
                - Grantee:
                    Type: CanonicalUser
                    DisplayName: owner-display-name
                    ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc
                  Permission: WRITE
                - Grantee:
                    Type: CanonicalUser
                    DisplayName: owner-display-name
                    ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc
                  Permission: WRITE_ACP
                - Grantee:
                    Type: CanonicalUser
                    DisplayName: owner-display-name
                    ID: examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc
                  Permission: READ
                - Grantee:
                    Type: CanonicalUser
                    DisplayName: owner-display-name
                    ID: 852b113eexamplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc
                  Permission: READ_ACP
        '404':
          description: NoSuchKey
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/NoSuchKey'
      parameters:
      - name: Bucket
        in: path
        required: true
        schema:
          type: string
        description: The bucket name that contains the object for which to get the ACL information. Access points - When you
          use this action with an access point for general purpose buckets, you must provide the alias of the access point
          in place of the bucket name or specify the access point ARN. When you use this action with an access point for directory
          buckets, you must provide the access point name in place of the bucket name. When using the access point ARN, you
          must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaw
      - name: Key
        in: path
        required: true
        schema:
          type: string
        description: The key of the object for which to get the ACL information.
      - name: versionId
        in: query
        schema:
          type: string
        description: Version ID used to reference a specific version of the object. This functionality is not supported for
          directory buckets.
      - name: x-amz-request-payer
        in: header
        schema:
          type: string
          enum:
          - requester
      - name: x-amz-expected-bucket-owner
        in: header
        schema:
          type: string
        description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
          owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
      tags:
      - Acl
    put:
      operationId: PutObjectAcl
      summary: Put Object Acl
      description: 'End of support notice: As of October 1, 2025, Amazon S3 has discontinued support for Email Grantee Access
        Control Lists (ACLs). If you attempt to use an Email Grantee ACL in a request after October 1, 2025, the request will
        receive an HTTP 405 (Method Not Allowed) error. This change affects the following Amazon Web Services Regions: US
        East (N. Virginia), US West (N. California), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia
        Pacific (Tokyo), Europe (Ireland), and South America (São Paulo). This operation is not supported for directory buckets.
        Uses the acl subresource to set the access control list (ACL) permissions for a new or existing object in an S3 bucket.
        You must have the WRITE_ACP permission to set the ACL of an object. For more information, see What permissions can
        I grant? in the Amazon S3 User Guide. This functionality is not supported for Amazon S3 on Outposts. Depending on
        your application needs, you can choose to set the ACL on an object using either the request body or the headers. For
        example, if you have an existing application that updates a bucket ACL using the request body, you can continue to
        use that approach. For more information, se'
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/PutObjectAclOutput'
              example: {}
        '404':
          description: NoSuchKey
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/NoSuchKey'
      parameters:
      - name: x-amz-acl
        in: header
        schema:
          type: string
          enum:
          - private
          - public-read
          - public-read-write
          - authenticated-read
          - aws-exec-read
          - bucket-owner-read
          - bucket-owner-full-control
        description: The canned ACL to apply to the object. For more information, see Canned ACL.
      - name: Bucket
        in: path
        required: true
        schema:
          type: string
        description: The bucket name that contains the object to which you want to attach the ACL. Access points - When you
          use this action with an access point for general purpose buckets, you must provide the alias of the access point
          in place of the bucket name or specify the access point ARN. When you use this action with an access point for directory
          buckets, you must provide the access point name in place of the bucket name. When using the access point ARN, you
          must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws
      - name: Content-MD5
        in: header
        schema:
          type: string
        description: The Base64 encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check
          to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.> For requests
          made using the Amazon Web Services Command Line Interface (CLI) or Amazon Web Services SDKs, this field is calculated
          automatically.
      - name: x-amz-sdk-checksum-algorithm
        in: header
        schema:
          type: string
          enum:
          - CRC32
          - CRC32C
          - SHA1
          - SHA256
          - CRC64NVME
          - SHA512
          - MD5
          - XXHASH64
          - XXHASH3
          - XXHASH128
        description: Indicates the algorithm used to create the checksum for the object when you use the SDK. This header
          will not provide any additional functionality if you don't use the SDK. When you send this header, there must be
          a corresponding x-amz-checksum or x-amz-trailer header sent. Otherwise, Amazon S3 fails the request with the HTTP
          status code 400 Bad Request. For more information, see Checking object integrity in the Amazon S3 User Guide. If
          you provide an individual checksum, Amazon S3 ignores any provided ChecksumAlgorithm parameter.
      - name: x-amz-grant-full-control
        in: header
        schema:
          type: string
        description: Allows grantee the read, write, read ACP, and write ACP permissions on the bucket. This functionality
          is not supported for Amazon S3 on Outposts.
      - name: x-amz-grant-read
        in: header
        schema:
          type: string
        description: Allows grantee to list the objects in the bucket. This functionality is not supported for Amazon S3 on
          Outposts.
      - name: x-amz-grant-read-acp
        in: header
        schema:
          type: string
        description: Allows grantee to read the bucket ACL. This functionality is not supported for Amazon S3 on Outposts.
      - name: x-amz-grant-write
        in: header
        schema:
          type: string
        description: Allows grantee to create new objects in the bucket. For the bucket and object owners of existing objects,
          also allows deletions and overwrites of those objects.
      - name: x-amz-grant-write-acp
        in: header
        schema:
          type: string
        description: Allows grantee to write the ACL for the applicable bucket. This functionality is not supported for Amazon
          S3 on Outposts.
      - name: Key
        in: path
        required: true
        schema:
          type: string
        description: Key for which the PUT action was initiated.
      - name: x-amz-request-payer
        in: header
        schema:
          type: string
          enum:
          - requester
      - name: versionId
        in: query
        schema:
          type: string
        description: Version ID used to reference a specific version of the object. This functionality is not supported for
          directory buckets.
      - name: x-amz-expected-bucket-owner
        in: header
        schema:
          type: string
        description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual
          owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied).
      requestBody:
        content:
          application/xml:
            schema:
              $ref: '#/components/schemas/AccessControlPolicy'
            example:
              AccessControlPolicy: {}
              Bucket: examplebucket
              GrantFullControl: emailaddress=user1@example.com,emailaddress=user2@example.com
              GrantRead: uri=http://acs.amazonaws.com/groups/global/AllUsers
              Key: HappyFace.jpg
      tags:
      - Acl
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: s3
  schemas:
    AccessControlPolicy:
      type: object
      properties:
        Grants:
          type: array
          items:
            $ref: '#/components/schemas/Grant'
          description: A list of grants.
        Owner:
          $ref: '#/components/schemas/Owner'
    GetBucketAclOutput:
      type: object
      properties:
        Owner:
          $ref: '#/components/schemas/Owner'
        Grants:
          type: array
          items:
            $ref: '#/components/schemas/Grant'
          description: A list of grants.
    GetObjectAclOutput:
      type: object
      properties:
        Owner:
          $ref: '#/components/schemas/Owner'
        Grants:
          type: array
          items:
            $ref: '#/components/schemas/Grant'
          description: A list of grants.
        RequestCharged:
          type: string
          enum:
          - requester
    Grant:
      type: object
      properties:
        Grantee:
          $ref: '#/components/schemas/Grantee'
        Permission:
          type: string
          enum:
          - FULL_CONTROL
          - WRITE
          - WRITE_ACP
          - READ
          - READ_ACP
          description: Specifies the permission given to the grantee.
    Grantee:
      type: object
      properties:
        DisplayName:
          type: string
        EmailAddress:
          type: string
        ID:
          type: string
          description: The canonical user ID of the grantee.
        URI:
          type: string
          description: URI of the grantee group.
        Type:
          type: string
          enum:
          - CanonicalUser
          - AmazonCustomerByEmail
          - Group
          description: Type of grantee
      required:
      - Type
    NoSuchKey:
      type: object
      properties: {}
    Owner:
      type: object
      properties:
        DisplayName:
          type: string
        ID:
          type: string
          description: Container for the ID of the owner.
    PutObjectAclOutput:
      type: object
      properties:
        RequestCharged:
          type: string
          enum:
          - requester
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/s3/service/2006-03-01/s3-2006-03-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)