> ## 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 an intel request

> Returns the status and progress of an intel request created with `POST /firework/v4/threat_flow/intel/requests`. `status` goes from `pending` to `processing`, then ends as `completed` or `error`; `result` reports the progress of the generation. Once `status` is `completed`, `report` contains the generated Custom Intel report. Only requests of the tenant of the authenticated user are visible; any other `id` returns `404 REQUEST_NOT_FOUND`. Requires read access to Custom Intel in the tenant.

&#x20;Required API key permission: **Read Tenant**

> [!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/intel/requests/{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/intel/requests/{id}:
    get:
      tags:
        - Threat Flow
      summary: Get an intel request
      description: >-
        Returns the status and progress of an intel request created with `POST
        /firework/v4/threat_flow/intel/requests`. `status` goes from `pending`
        to `processing`, then ends as `completed` or `error`; `result` reports
        the progress of the generation. Once `status` is `completed`, `report`
        contains the generated Custom Intel report. Only requests of the tenant
        of the authenticated user are visible; any other `id` returns `404
        REQUEST_NOT_FOUND`. Requires read access to Custom Intel in the tenant.
      operationId: get_intel_request_threat_flow_intel_requests__id__get
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: >-
              The `request_id` returned by `POST
              /firework/v4/threat_flow/intel/requests`.
            title: Id
          description: >-
            The `request_id` returned by `POST
            /firework/v4/threat_flow/intel/requests`.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntelRequestResponse'
        '401':
          description: UNAUTHORIZED
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - UNAUTHORIZED
                      data:
                        anyOf:
                          - additionalProperties: true
                            type: object
                          - type: 'null'
                        title: Data
                      message:
                        anyOf:
                          - type: string
                          - items: {}
                            type: array
                          - type: 'null'
                        title: Message
                    required:
                      - code
                      - data
                      - message
                    title: HTTPError
                    type: object
                required:
                  - error
        '403':
          description: FORBIDDEN
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - FORBIDDEN
                      data:
                        anyOf:
                          - additionalProperties: true
                            type: object
                          - type: 'null'
                        title: Data
                      message:
                        anyOf:
                          - type: string
                          - items: {}
                            type: array
                          - type: 'null'
                        title: Message
                    required:
                      - code
                      - data
                      - message
                    title: HTTPError
                    type: object
                required:
                  - error
        '404':
          description: NOT_FOUND, REQUEST_NOT_FOUND
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - NOT_FOUND
                          - REQUEST_NOT_FOUND
                      data:
                        anyOf:
                          - additionalProperties: true
                            type: object
                          - type: 'null'
                        title: Data
                      message:
                        anyOf:
                          - type: string
                          - items: {}
                            type: array
                          - type: 'null'
                        title: Message
                    required:
                      - code
                      - data
                      - message
                    title: HTTPError
                    type: object
                required:
                  - error
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    IntelRequestResponse:
      properties:
        request_id:
          type: string
          format: uuid
          title: Request Id
          description: The ID of the intel request.
        status:
          $ref: '#/components/schemas/AsyncRequestStatus'
          description: >-
            The state of the request: `pending` and `processing` are ongoing,
            `completed` and `error` are final.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the request was created.
        request_payload:
          $ref: '#/components/schemas/IntelRequestPayloadResponse'
          description: The parameters the request was created with.
        result:
          anyOf:
            - $ref: '#/components/schemas/IntelRequestProgress'
            - type: 'null'
          description: >-
            The progress of the generation, updated while the request is
            processed.
        report:
          anyOf:
            - $ref: '#/components/schemas/PydanticThreatFlowReport'
            - type: 'null'
          description: The generated report, present only when `status` is `completed`.
      type: object
      required:
        - request_id
        - status
        - created_at
        - request_payload
        - result
      title: IntelRequestResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AsyncRequestStatus:
      type: string
      enum:
        - pending
        - processing
        - completed
        - error
      title: AsyncRequestStatus
    IntelRequestPayloadResponse:
      properties:
        question:
          type: string
          title: Question
          description: The question submitted when the request was created.
        tone:
          $ref: '#/components/schemas/IntelTone'
          description: The writing style requested for the report.
      type: object
      required:
        - question
        - tone
      title: IntelRequestPayloadResponse
    IntelRequestProgress:
      properties:
        report_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Report Id
          description: The ID of the Custom Intel associated with the request
        current_step:
          anyOf:
            - $ref: '#/components/schemas/IntelRequestStep'
            - type: 'null'
          description: The current step of the request
        iteration:
          anyOf:
            - type: integer
            - type: 'null'
          title: Iteration
          description: The number of iterations of the data collection process
        events_retrieved_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Events Retrieved Count
          description: The number of events retrieved from the decomposed queries search
        generated_queries:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Generated Queries
          description: The queries generated from the topic for the data collection process
        triage_events_analyzed_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Triage Events Analyzed Count
          description: >-
            The number of events analyzed (used to track progress of the triage
            process)
        triage_events_total_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Triage Events Total Count
          description: The total number of events in the triage process
        avg_relevance_score:
          anyOf:
            - type: number
            - type: 'null'
          title: Avg Relevance Score
          description: The average relevance score of the triaged events
        web_search_queries:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Web Search Queries
          description: The queries used for web search
        time_range_type:
          anyOf:
            - $ref: '#/components/schemas/TimeRangeType'
            - type: 'null'
          description: The time range inferred from the question
      type: object
      title: IntelRequestProgress
    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
    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
    IntelTone:
      type: string
      enum:
        - executive
        - analytical
      title: IntelTone
    IntelRequestStep:
      type: string
      enum:
        - dark_web_collection
        - triage
        - ai_analysis
        - clear_web_enrichment
        - report_generation
        - output_delivery
      title: IntelRequestStep
    TimeRangeType:
      type: string
      enum:
        - all
        - last_24h
        - last_2d
        - last_7d
        - last_1m
        - last_3m
        - last_6m
        - range
      title: TimeRangeType
    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.