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

# List Policy Assignments (Beta)

> List the identifiers a matching policy of the tenant the caller is acting in is assigned to, sorted by assignment date then identifier ID in the direction given by `order`. Results are paginated with a cursor: pass the `next` value of a response as `from` to get the following page, and stop when `next` is `null`. The list is empty when the policy has no assignment or does not exist in the tenant.

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

> [!NOTE]
>
> The List Policy Assignments endpoint is still in beta and is subject to change.


## OpenAPI

````yaml firework-v4-openapi get /firework/v4/matching-policies/{policy_uuid}/assignments
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/matching-policies/{policy_uuid}/assignments:
    get:
      tags:
        - Matching Policies
      summary: List the identifiers assigned to a matching policy
      description: >-
        List the identifiers a matching policy of the tenant the caller is
        acting in is assigned to, sorted by assignment date then identifier ID
        in the direction given by `order`. Results are paginated with a cursor:
        pass the `next` value of a response as `from` to get the following page,
        and stop when `next` is `null`. The list is empty when the policy has no
        assignment or does not exist in the tenant.
      operationId: list_policy_assignments_matching_policies__policy_uuid__assignments_get
      parameters:
        - name: policy_uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: UUID of the matching policy.
            title: Policy Uuid
          description: UUID of the matching policy.
        - name: from
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: From
            description: >-
              Pagination cursor: pass the `next` value of the previous response
              to get the following page, omit it for the first page.
          description: >-
            Pagination cursor: pass the `next` value of the previous response to
            get the following page, omit it for the first page.
        - name: size
          in: query
          required: false
          schema:
            type: integer
            exclusiveMinimum: 0
            description: Maximum number of items to return, at least 1.
            default: 25
            title: Size
          description: Maximum number of items to return, at least 1.
        - name: order
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/OrderType'
            description: Sort direction of the results.
            default: desc
          description: Sort direction of the results.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaginatedResults_PolicyAssignedIdentifierPayload_str_
        '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:
    OrderType:
      type: string
      enum:
        - asc
        - desc
      title: OrderType
    PaginatedResults_PolicyAssignedIdentifierPayload_str_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/PolicyAssignedIdentifierPayload'
          type: array
          title: Items
          description: Results of the current page.
        next:
          anyOf:
            - type: string
            - type: 'null'
          title: Next
          description: >-
            Cursor to send in the next request to continue after this page, or
            `null` when no further page is available.
      type: object
      required:
        - items
        - next
      title: PaginatedResults[PolicyAssignedIdentifierPayload, str]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PolicyAssignedIdentifierPayload:
      properties:
        identifier_id:
          type: integer
          title: Identifier Id
          description: The ID of the identifier this policy is assigned to
        identifier_name:
          type: string
          title: Identifier Name
          description: The name of the identifier this policy is assigned to
        clean_past_events:
          type: boolean
          title: Clean Past Events
          description: Whether this policy has been applied to historical events
        assigned_at:
          type: string
          format: date-time
          title: Assigned At
          description: The date and time this policy was assigned to the identifier
      type: object
      required:
        - identifier_id
        - identifier_name
        - clean_past_events
        - assigned_at
      title: PolicyAssignedIdentifierPayload
    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.