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

# Identifier Recommendation Actions (accept, reject)

> Accept or reject identifier recommendations of the tenant the caller is acting in, identified by the IDs returned by `GET /identifier-recommendations/`. Accepting a recommendation starts monitoring its asset as an identifier, which is subject to the identifier limit. The action is recorded and processed asynchronously: the response has an empty body and does not tell whether the action succeeded, so list the recommendations again to check their `status`. Requires write access to the tenant's identifier recommendations.

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


## OpenAPI

````yaml firework-v4-openapi post /firework/v4/identifier-recommendations/actions
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/identifier-recommendations/actions:
    post:
      tags:
        - Identifiers
      summary: Accept or reject identifier recommendations
      description: >-
        Accept or reject identifier recommendations of the tenant the caller is
        acting in, identified by the IDs returned by `GET
        /identifier-recommendations/`. Accepting a recommendation starts
        monitoring its asset as an identifier, which is subject to the
        identifier limit. The action is recorded and processed asynchronously:
        the response has an empty body and does not tell whether the action
        succeeded, so list the recommendations again to check their `status`.
        Requires write access to the tenant's identifier recommendations.
      operationId: >-
        create_action_for_identifier_recommendations_identifier_recommendations_actions_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IdentifierRecommendationActionsBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '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'
components:
  schemas:
    IdentifierRecommendationActionsBody:
      properties:
        targets:
          items:
            $ref: '#/components/schemas/IdentifierRecommendationActionTarget'
          type: array
          maxItems: 100
          title: Targets
          description: The recommendations to act on, at most 100.
        action:
          $ref: '#/components/schemas/IdentifierRecommendationAction'
          description: The action to apply to every target.
      type: object
      required:
        - action
      title: IdentifierRecommendationActionsBody
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    IdentifierRecommendationActionTarget:
      properties:
        id:
          type: integer
          title: Id
          description: ID of the recommendation to act on.
      type: object
      required:
        - id
      title: IdentifierRecommendationActionTarget
    IdentifierRecommendationAction:
      properties:
        type:
          $ref: '#/components/schemas/IdentifierRecommendationActionType'
          description: >-
            `accept` to start monitoring the recommended assets, `reject` to
            dismiss the recommendations.
      type: object
      required:
        - type
      title: IdentifierRecommendationAction
    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
    IdentifierRecommendationActionType:
      type: string
      enum:
        - accept
        - reject
      title: IdentifierRecommendationActionType
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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