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

# Export targets to CSV

> Exports all targets in a workspace to a CSV file containing value, type (DOMAIN or CIDR), last discovered date, and creation date for reporting and analysis purposes.



## OpenAPI

````yaml /api-reference/openapi.json get /api/targets/export
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/targets/export:
    get:
      tags:
        - Targets
      summary: Export targets to CSV
      description: >-
        Exports all targets in a workspace to a CSV file containing value, type
        (DOMAIN or CIDR), last discovered date, and creation date for reporting
        and analysis purposes.
      operationId: TargetsController_exportTargetsToCSV
      parameters:
        - name: X-Workspace-Id
          in: header
          description: Workspace ID
          schema:
            type: string
      responses:
        '200':
          description: CSV file containing targets data
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    AppResponseSerialization:
      type: object
      properties: {}

````