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

# Export reporting facts



## OpenAPI

````yaml /api-reference/openapi.json post /api/v2/reporting/facts/export
openapi: 3.1.1
info:
  title: ContraForce API
  description: ContraForce platform API for security operations management.
  version: '2.0'
servers: []
security: []
tags:
  - name: Incidents
  - name: Gamebooks
  - name: Data sources
  - name: Service tickets
  - name: Investigation
  - name: Export
  - name: agent-tools
  - name: Cross-workspace incidents
  - name: Cross-workspace gamebooks
  - name: Cross-workspace data sources
  - name: Webhooks
  - name: Service accounts
  - name: Users
  - name: Azure resources
  - name: Reporting
paths:
  /api/v2/reporting/facts/export:
    post:
      tags:
        - Reporting
      summary: Export reporting facts
      operationId: v2-export-reporting-facts
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReportingFactsExportRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseOfReportingFactsTableResponse'
        '400':
          description: Bad request — validation or parameter binding failed.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
        '401':
          description: Unauthorized — missing or invalid Bearer token.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
        '403':
          description: Forbidden — insufficient scope or workspace access.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
        '404':
          description: Not found — workspace or resource is missing.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
        '500':
          description: Internal server error.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ApiProblemDetails'
components:
  schemas:
    ReportingFactsExportRequest:
      required:
        - type
        - from
        - to
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
          description: >-
            The fact type: `detection`, `closure`, `investigation`, `feedback`,
            `sla-result`,

            `sla-transition`, `assignment` or `response-action`.
        closerType:
          type:
            - 'null'
            - string
          description: 'Closure facts only: who closed the incident.'
        outcome:
          type:
            - 'null'
            - string
          description: 'Investigation and response-action facts only: how the run ended.'
        severity:
          type:
            - 'null'
            - string
          description: The incident's severity.
        verdict:
          type:
            - 'null'
            - string
          description: 'Investigation facts only: the agent''s verdict.'
        rule:
          type:
            - 'null'
            - string
          description: 'Closure facts only: the rule, as the incident title.'
        slaType:
          type:
            - 'null'
            - string
          description: 'SLA state changes only: the clock, `Slo` or `Mttr`.'
        tier:
          type:
            - 'null'
            - string
          description: >-
            SLA state changes only: the tier the clock moved to, `AtRisk`,
            `Breached` or `Met`.
        from:
          type: string
          description: >-
            The first day of the range, inclusive (UTC days). A range spans at
            most 366 days.
          format: date
        to:
          type: string
          description: The last day of the range, inclusive (UTC days).
          format: date
        workspaceIds:
          type:
            - 'null'
            - array
          items:
            type: string
            format: uuid
          description: >-
            The workspaces to read, at most 500; `null` or empty reads every
            workspace the caller may see. A service

            account sees the workspaces it holds a role on.
      description: >-
        One fact type over the range with its optional filters: every row, as
        the export reads them.
    ApiResponseOfReportingFactsTableResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/ReportingFactsTableResponse'
          description: >-
            Every row behind a report, as a table with the columns of its fact
            type.
        meta:
          $ref: '#/components/schemas/ResponseMeta'
      description: Standard v2 API response envelope for single-item responses.
    ApiProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
        code:
          type:
            - 'null'
            - string
        requestId:
          type:
            - 'null'
            - string
        timestamp:
          type:
            - 'null'
            - string
        target:
          type:
            - 'null'
            - string
        errors:
          type:
            - 'null'
            - object
          additionalProperties:
            type: array
            items:
              type: string
      description: >-
        API extension of ProblemDetails that surfaces the stable error code,

        trace identifier, timestamp, optional target, and optional field-keyed
        validation

        error map alongside the RFC 7807 members.
    ReportingFactsTableResponse:
      type: object
      properties:
        columns:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/ReportingFactsColumnResponse'
            description: One column of a ReportingFactsTableResponse.
        rows:
          type:
            - 'null'
            - array
          items:
            type: array
            items:
              type: string
          description: >-
            One list of cells per row, in column order; a value the fact does
            not have is `null`.
      description: Every row behind a report, as a table with the columns of its fact type.
    ResponseMeta:
      type: object
      properties:
        requestId:
          type:
            - 'null'
            - string
        timestamp:
          type:
            - 'null'
            - string
    ReportingFactsColumnResponse:
      required:
        - header
        - kind
      type: object
      properties:
        header:
          type:
            - 'null'
            - string
        kind:
          type:
            - 'null'
            - string
          description: >-
            string ReportingFactsColumnResponse.Text, string
            ReportingFactsColumnResponse.Number or string
            ReportingFactsColumnResponse.Time.
      description: One column of a ReportingFactsTableResponse.

````

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