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

# Get a report

> Returns a Threat Flow report by ID, with the entities mentioned in `content` turned into links when the report has entity annotations. The report is either a Custom Intel report of the tenant of the authenticated user, which requires read access to Custom Intel in that tenant, or a report that does not belong to any tenant. The `id` of the `report` returned by `GET /firework/v4/threat_flow/intel/requests/{id}` can be used as `report_id`.

> [!NOTE]
>
> Access to Flare CTI is required for this feature.
> Please contact your Customer Success Manager for more details.

## Guides

See the guide for using this endpoint:
[Generate a Threat Flow Report ](https://api.docs.flare.io/guides/threat-flow-report.md).


## OpenAPI

````yaml firework-v4-openapi get /firework/v4/threat_flow/reports/{report_id}
openapi: 3.1.0
info:
  title: Firework API
  version: v4
servers:
  - url: https://api.flare.io
security:
  - BearerAuth: []
tags:
  - name: Audit Logs
    description: Audit trail of actions performed in the platform.
  - name: Credentials
    description: >-
      Leaked credentials: search across all sources or within a tenant, and
      remediate or ignore them.
  - name: Entities
    description: >-
      Threat intelligence entities such as actors, chat channels, forum threads
      and domains, and the relations between them.
  - name: Events
    description: >-
      Events collected by Flare: global search, tenant and identifier feeds,
      event details, actions and saved feed views.
  - name: Identifiers
    description: >-
      Identifiers are the assets a tenant monitors, such as domains, keywords
      and email addresses. Includes recommendations and authorization of
      sensitive identifiers.
  - name: Matching Policies
    description: >-
      Matching policies refine which events match identifiers. Manage policies
      and their assignment to identifiers.
  - name: Sandbox
    description: File uploads and their sandbox analysis.
  - name: Threat Flow
    description: >-
      Threat Flow intelligence requests, generated reports and conversation
      summaries.
paths:
  /firework/v4/threat_flow/reports/{report_id}:
    get:
      tags:
        - Threat Flow
      summary: Get a report
      description: >-
        Returns a Threat Flow report by ID, with the entities mentioned in
        `content` turned into links when the report has entity annotations. The
        report is either a Custom Intel report of the tenant of the
        authenticated user, which requires read access to Custom Intel in that
        tenant, or a report that does not belong to any tenant. The `id` of the
        `report` returned by `GET /firework/v4/threat_flow/intel/requests/{id}`
        can be used as `report_id`.
      operationId: get_report_threat_flow_reports__report_id__get
      parameters:
        - name: report_id
          in: path
          required: true
          schema:
            type: integer
            description: The ID of the report.
            title: Report Id
          description: The ID of the report.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pyro__threat_flow__web__v4__reports__models__ReportResponse
        '401':
          description: The request is not authenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
        '403':
          description: The caller is not allowed to read this report.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
        '404':
          description: No report with this ID is visible to the caller.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    pyro__threat_flow__web__v4__reports__models__ReportResponse:
      properties:
        report:
          $ref: '#/components/schemas/PydanticThreatFlowReport'
          description: The requested report.
      type: object
      required:
        - report
      title: ReportResponse
    HTTPExceptionResponse:
      properties:
        error:
          $ref: '#/components/schemas/HTTPError'
      type: object
      required:
        - error
      title: HTTPExceptionResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PydanticThreatFlowReport:
      properties:
        id:
          type: integer
          title: Id
          description: >-
            The ID of the report, usable with `GET
            /firework/v4/threat_flow/reports/{report_id}`.
        format_type:
          $ref: '#/components/schemas/ThreatFlowReportFormatType'
          description: >-
            The structure of the report, which determines the format of
            `content`.
          default: simple_summary
        intel_type:
          $ref: '#/components/schemas/IntelType'
          description: >-
            How the report was generated; `custom_intel` reports come from intel
            requests.
          default: unit_summary_based
        title:
          type: string
          title: Title
          description: The title of the report.
        subtitle:
          anyOf:
            - type: string
            - type: 'null'
          title: Subtitle
          description: The subtitle of the report, if any.
        summary:
          type: string
          title: Summary
          description: The executive summary of the report.
        content:
          type: string
          title: Content
          description: >-
            The body of the report: text when `format_type` is `simple_summary`,
            otherwise a JSON-encoded string holding the sections of the report.
        tags:
          items:
            type: string
          type: array
          title: Tags
          description: The tags assigned to the report.
        highlights:
          items:
            type: string
          type: array
          title: Highlights
          description: The key terms or topics of the report.
        related_activity_uids:
          items:
            type: string
          type: array
          title: Related Activity Uids
          description: The UIDs of the Flare activities referenced by the report.
        prompt_preset_uid:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt Preset Uid
          description: >-
            The identifier of the prompt preset used to generate the report, if
            any.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the report was created.
        published_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Published At
          description: When the report was published, null if it is not.
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: When the report was last updated.
        reading_time:
          type: integer
          title: Reading Time
          description: The estimated time to read `content`, in minutes.
        tenant_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Tenant Id
          description: >-
            The ID of the tenant owning the report, null when the report is not
            specific to a tenant.
        organization_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Organization Id
          description: The ID of the organization owning the report, if any.
      type: object
      required:
        - id
        - title
        - subtitle
        - summary
        - content
        - tags
        - highlights
        - related_activity_uids
        - prompt_preset_uid
        - created_at
        - published_at
        - updated_at
        - reading_time
        - tenant_id
        - organization_id
      title: PydanticThreatFlowReport
    HTTPError:
      properties:
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Data
        message:
          anyOf:
            - type: string
            - items: {}
              type: array
            - type: 'null'
          title: Message
      type: object
      required:
        - code
        - data
        - message
      title: HTTPError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ThreatFlowReportFormatType:
      type: string
      enum:
        - simple_summary
        - expanded_summary
        - finished_intel_standard
      title: ThreatFlowReportFormatType
    IntelType:
      type: string
      enum:
        - unit_summary_based
        - custom_intel
      title: IntelType
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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