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

> Queues the generation of a Custom Intel report answering `question` for the tenant of the authenticated user, and returns a `request_id`. The generation is asynchronous: poll `GET /firework/v4/threat_flow/intel/requests/{id}` until `status` is `completed` or `error`. The time range covered by the report is inferred from the question. A tenant can have at most 10 requests in `pending` or `processing` status; beyond that the call fails with `429 MAXIMUM_CONCURRENT_INTEL_REQUEST_EXCEEDED` until one finishes. `400 INVALID_QUESTION` means the question was rejected by validation and the error message states the reason. Requires write access to Custom Intel in the tenant.

&#x20;Required API key permission: **Write 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 post /firework/v4/threat_flow/intel/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/intel/requests:
    post:
      tags:
        - Threat Flow
      summary: Create an intel request
      description: >-
        Queues the generation of a Custom Intel report answering `question` for
        the tenant of the authenticated user, and returns a `request_id`. The
        generation is asynchronous: poll `GET
        /firework/v4/threat_flow/intel/requests/{id}` until `status` is
        `completed` or `error`. The time range covered by the report is inferred
        from the question. A tenant can have at most 10 requests in `pending` or
        `processing` status; beyond that the call fails with `429
        MAXIMUM_CONCURRENT_INTEL_REQUEST_EXCEEDED` until one finishes. `400
        INVALID_QUESTION` means the question was rejected by validation and the
        error message states the reason. Requires write access to Custom Intel
        in the tenant.
      operationId: create_intel_request_threat_flow_intel_requests_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateIntelRequestPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateIntelRequestResponse'
        '400':
          description: INVALID_QUESTION
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - INVALID_QUESTION
                      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
        '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
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    properties:
                      code:
                        type: string
                        enum:
                          - 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'
        '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
components:
  schemas:
    CreateIntelRequestPayload:
      properties:
        question:
          type: string
          title: Question
          description: >-
            The question the report must answer, in natural language. At most
            500 characters, not blank, without curly braces, angle brackets,
            backticks, triple quotes or sensitive personal information.
        tone:
          $ref: '#/components/schemas/IntelTone'
          description: The writing style of the generated report.
          default: analytical
      type: object
      required:
        - question
      title: CreateIntelRequestPayload
    CreateIntelRequestResponse:
      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/intel/requests/{id}`.
      type: object
      required:
        - request_id
      title: CreateIntelRequestResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    IntelTone:
      type: string
      enum:
        - executive
        - analytical
      title: IntelTone
    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.