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

# Export the domain inventory

> Download canonical (primary) domain inventory as CSV or JSON. One row per hostname, same filters as the list (`q`, lifecycle, dns, web, source). Omits Attack Surface / candidates and bookkeeping evidence sources. Ordered by apex then FQDN.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/orgs/{orgSlug}/domains/export
openapi: 3.0.3
info:
  title: Tolmo API
  version: 1.0.0
  description: >-
    The Tolmo REST API. Every endpoint is scoped to one organization and
    authenticated with an API token.
servers:
  - url: https://api.tolmo.com
    description: Production
security:
  - bearerAuth: []
paths:
  /api/v1/orgs/{orgSlug}/domains/export:
    get:
      tags:
        - domains
      summary: Export the domain inventory
      description: >-
        Download canonical (primary) domain inventory as CSV or JSON. One row
        per hostname, same filters as the list (`q`, lifecycle, dns, web,
        source). Omits Attack Surface / candidates and bookkeeping evidence
        sources. Ordered by apex then FQDN.
      operationId: apiExportDomains
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 512
          in: query
          name: q
          required: false
        - schema:
            type: string
            enum:
              - current
              - stale
              - historical
          in: query
          name: lifecycleStatus
          required: false
        - schema:
            type: string
            enum:
              - resolved
              - unresolved
              - error
              - not_checked
          in: query
          name: dnsStatus
          required: false
        - schema:
            type: string
            enum:
              - reachable
              - unreachable
              - blocked
              - not_checked
          in: query
          name: webStatus
          required: false
        - schema:
            type: string
            minLength: 1
            maxLength: 128
          in: query
          name: source
          required: false
        - schema:
            type: string
            minLength: 1
            maxLength: 1024
          in: query
          name: labels
          required: false
        - schema:
            type: string
            enum:
              - 'true'
              - 'false'
          in: query
          name: offensiveAuthorized
          required: false
        - schema:
            type: string
            enum:
              - csv
              - json
          in: query
          name: format
          required: true
        - schema:
            type: string
          in: path
          name: orgSlug
          required: true
      responses:
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
components:
  schemas:
    HttpError:
      type: object
      properties:
        statusCode:
          type: number
        code:
          type: string
        error:
          type: string
        message:
          type: string
      title: HttpError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A Tolmo API token, sent as `Authorization: Bearer <token>`. Either a
        user token (`usr_tok.*`, minted by `tolmo auth login`, scoped to your
        own permissions) or an org API token created in the Tolmo app, for CI
        and automation.

````