> ## Documentation Index
> Fetch the complete documentation index at: https://help.statisfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Browse a bucket for a feed's file

> One level of a bucket, as the app's file picker shows it: the folders (prefixes) and the CSV and Excel files, up to 100 keys. Send a folder's prefix to go into it. A connection or bucket that doesn't exist is a 404, and one the connection may not list is a 422. Writes nothing. Needs integrations:write: it returns your file names.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/integrations/imports/s3-connections/{key}/browse
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/integrations/imports/s3-connections/{key}/browse:
    post:
      tags:
        - integrations
      summary: Browse a bucket for a feed's file
      description: >-
        One level of a bucket, as the app's file picker shows it: the folders
        (prefixes) and the CSV and Excel files, up to 100 keys. Send a folder's
        prefix to go into it. A connection or bucket that doesn't exist is a
        404, and one the connection may not list is a 422. Writes nothing. Needs
        integrations:write: it returns your file names.
      operationId: integrations_browse_s3
      parameters:
        - in: path
          name: key
          required: true
          schema:
            maxLength: 255
            minLength: 1
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                bucket:
                  maxLength: 63
                  minLength: 3
                  title: Bucket
                  type: string
                prefix:
                  anyOf:
                    - maxLength: 1024
                      minLength: 1
                      type: string
                    - type: 'null'
                  default: null
                  description: Only keys under this
                  title: Prefix
              required:
                - bucket
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/S3Listing'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    S3Listing:
      properties:
        files:
          description: The CSV and Excel files at this level
          items:
            $ref: '#/components/schemas/S3File'
          title: Files
          type: array
        folders:
          description: 'The prefixes one level down: browse one to go into it'
          items:
            $ref: '#/components/schemas/S3Folder'
          title: Folders
          type: array
      required:
        - folders
        - files
      title: S3Listing
      type: object
    S3File:
      properties:
        key:
          title: Key
          type: string
        last_modified:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Modified
        size:
          title: Size
          type: integer
      required:
        - key
        - size
      title: S3File
      type: object
    S3Folder:
      properties:
        prefix:
          title: Prefix
          type: string
      required:
        - prefix
      title: S3Folder
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.