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

# Get the exports for an environment

> Returns the exports for the specified environment.



## OpenAPI

````yaml get /environments/{environmentId}/exports
openapi: 3.0.1
info:
  title: Dashboard API
  description: Dashboard API documentation
  version: 1.0.0
servers:
  - url: https://app.dynamicauth.com/api/v0
  - url: https://app.dynamic.xyz/api/v0
  - url: http://localhost:3333/api/v0
security: []
tags:
  - name: Analytics
  - name: SDK
  - name: Organizations
  - name: Projects
  - name: Environments
  - name: Users
  - name: Invites
  - name: Tokens
  - name: Origins
  - name: Allowlists
  - name: Wallets
  - name: Members
  - name: Sessions
  - name: Settings
  - name: Gates
  - name: Chains
  - name: Exports
  - name: Events
  - name: Webhooks
  - name: Custom Fields
  - name: OrganizationMfaSettings
  - name: CustomHostnames
  - name: TestAccount
  - name: NameServices
  - name: GlobalWallets
  - name: GlobalWalletConnections
  - name: UserApiTokens
  - name: Waas
  - name: WalletConnect
paths:
  /environments/{environmentId}/exports:
    get:
      tags:
        - Exports
      summary: Get the exports for an environment
      operationId: getEnvironmentExports
      parameters:
        - $ref: '#/components/parameters/environmentId'
        - in: query
          name: model
          description: The type of data to export
          schema:
            $ref: '#/components/schemas/ExportModelEnum'
      responses:
        '200':
          description: List of exports for this project environment
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportsResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    environmentId:
      in: path
      name: environmentId
      required: true
      description: ID of the environment
      schema:
        $ref: '#/components/schemas/uuid'
  schemas:
    ExportModelEnum:
      type: string
      enum:
        - users
        - visits
    ExportsResponse:
      type: object
      properties:
        exports:
          type: array
          items:
            $ref: '#/components/schemas/Export'
    uuid:
      type: string
      pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
      minLength: 36
      maxLength: 36
      example: 95b11417-f18f-457f-8804-68e361f9164f
    Export:
      type: object
      required:
        - id
        - format
        - model
        - status
        - createdAt
      properties:
        id:
          $ref: '#/components/schemas/uuid'
        format:
          $ref: '#/components/schemas/ExportFormatEnum'
        model:
          $ref: '#/components/schemas/ExportModelEnum'
        status:
          $ref: '#/components/schemas/ExportStatusEnum'
        createdAt:
          type: string
          format: date-time
        startedAt:
          type: string
          format: date-time
          nullable: true
        completedAt:
          type: string
          format: date-time
          nullable: true
        downloadUrl:
          type: string
          format: url
        error:
          description: >-
            When defined, this is the error message and stack trace received
            when attempting to process the export.
          type: string
    Unauthorized:
      type: object
      properties:
        error:
          type: string
          example: No jwt provided!
    Forbidden:
      type: object
      properties:
        error:
          type: string
          example: Access Forbidden
    InternalServerError:
      type: object
      properties:
        error:
          type: string
          example: Internal Server Error
    ExportFormatEnum:
      type: string
      enum:
        - csv
    ExportStatusEnum:
      type: string
      enum:
        - completed
        - failed
        - pending
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Unauthorized'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Forbidden'
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InternalServerError'

````