> ## 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.

# Create a report request

> **Deprecated.** Use `POST /firework/v4/threat_flow/intel/requests` and `GET /firework/v4/threat_flow/intel/requests/{id}` instead, which generate the same Custom Intel as the Flare web application. The request and response shapes differ because the underlying product differs. This endpoint will be removed; reports already generated through it stay available in the Flare application and through `GET /firework/v4/threat_flow/reports/{report_id}`.

Queues the generation of a report from the Threat Flow summaries matching the question, time range and keywords, for the tenant of the authenticated user, and returns a `request_id`. The generation is asynchronous: poll `GET /firework/v4/threat_flow/reports/requests/{request_info_id}` until `status` is `completed`. `404 UNIT_SUMMARY_NOT_FOUND_FOR_TIME_FRAME` means nothing matched the filters, so no request was created. A tenant can have at most 10 requests created in the last 24 hours in `processing` status; beyond that the call fails with `429 MAXIMUM_CONCURRENT_INTEL_REQUEST_EXCEEDED`. Requires write access to Custom Intel in the tenant.

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

> [!WARNING]
>
> **DEPRECATED:** This endpoint should be replaced by
> [/firework/v4/threat\_flow/intel/requests ](https://api.docs.flare.io/api-reference/v4/endpoints/threat-flow/create-an-intel-request.md)

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


## OpenAPI

````yaml firework-v4-openapi post /firework/v4/threat_flow/reports/requests
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/requests:
    post:
      tags:
        - Threat Flow
      summary: Create a report request
      description: >-
        **Deprecated.** Use `POST /firework/v4/threat_flow/intel/requests` and
        `GET /firework/v4/threat_flow/intel/requests/{id}` instead, which
        generate the same Custom Intel as the Flare web application. The request
        and response shapes differ because the underlying product differs. This
        endpoint will be removed; reports already generated through it stay
        available in the Flare application and through `GET
        /firework/v4/threat_flow/reports/{report_id}`.


        Queues the generation of a report from the Threat Flow summaries
        matching the question, time range and keywords, for the tenant of the
        authenticated user, and returns a `request_id`. The generation is
        asynchronous: poll `GET
        /firework/v4/threat_flow/reports/requests/{request_info_id}` until
        `status` is `completed`. `404 UNIT_SUMMARY_NOT_FOUND_FOR_TIME_FRAME`
        means nothing matched the filters, so no request was created. A tenant
        can have at most 10 requests created in the last 24 hours in
        `processing` status; beyond that the call fails with `429
        MAXIMUM_CONCURRENT_INTEL_REQUEST_EXCEEDED`. Requires write access to
        Custom Intel in the tenant.
      operationId: create_report_request_threat_flow_reports_requests_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReportRequestPayload'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportRequestResponse'
        '400':
          description: UNAUTHORIZED_CONVERSATION_WITH_QUESTION
          content:
            application/json:
              schema:
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - UNAUTHORIZED_CONVERSATION_WITH_QUESTION
                      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
                type: object
                required:
                  - error
        '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, UNIT_SUMMARY_NOT_FOUND_FOR_TIME_FRAME
          content:
            application/json:
              schema:
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - NOT_FOUND
                          - UNIT_SUMMARY_NOT_FOUND_FOR_TIME_FRAME
                      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
                type: object
                required:
                  - error
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: MAXIMUM_CONCURRENT_INTEL_REQUEST_EXCEEDED
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - MAXIMUM_CONCURRENT_INTEL_REQUEST_EXCEEDED
                      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
        '500':
          description: REQUEST_CREATION_FAILED, UNEXPECTED_REQUEST_TYPE
          content:
            application/json:
              schema:
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - REQUEST_CREATION_FAILED
                          - UNEXPECTED_REQUEST_TYPE
                      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
                type: object
                required:
                  - error
      deprecated: true
components:
  schemas:
    ReportRequestPayload:
      properties:
        report_title:
          type: string
          title: Report Title
          description: Required, but not used to title the generated report.
        question:
          anyOf:
            - type: string
            - type: 'null'
          title: Question
          description: >-
            The question the report must answer, also used to search the Threat
            Flow summaries the report is built from.
        time_range_type:
          $ref: '#/components/schemas/TimeRangeType'
          description: >-
            The period of the summaries to consider; use `range` to apply
            `time_range_from` and `time_range_to`.
          default: all
        time_range_from:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Time Range From
          description: >-
            The start of the period, only used when `time_range_type` is
            `range`.
        time_range_to:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Time Range To
          description: The end of the period, only used when `time_range_type` is `range`.
        included_keywords:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Included Keywords
          description: Full-text keywords used to keep only the summaries matching them.
        excluded_keywords:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Excluded Keywords
          description: Full-text keywords used to leave out the summaries matching them.
      type: object
      required:
        - report_title
      title: ReportRequestPayload
    ReportRequestResponse:
      properties:
        request_id:
          type: string
          format: uuid
          title: Request Id
          description: >-
            The ID of the created request, to pass to `GET
            /firework/v4/threat_flow/reports/requests/{request_info_id}`.
      type: object
      required:
        - request_id
      title: ReportRequestResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TimeRangeType:
      type: string
      enum:
        - all
        - last_24h
        - last_2d
        - last_7d
        - last_1m
        - last_3m
        - last_6m
        - range
      title: TimeRangeType
    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
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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