> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.idenfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add entries in bulk

> Adds up to 10000 values to one list in a call: every value the type accepts and that is not already there is added, and the rest are reported in `rejected` with the reason. Send `dryRun: true` to see the counts without writing. Fails whole when the list would pass 100,000 entries.



## OpenAPI

````yaml /openapi/transaction-monitoring.json post /api/v1/reference-lists/bulk/
openapi: 3.0.3
info:
  title: iDenfy Transaction Monitoring API
  version: v1
  description: >-
    Submit transactions and events for AML monitoring, and read back the alerts,
    cases and reports they produce.
servers:
  - url: https://ivs-tx-monitoring.idenfy.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Ingest
    description: Submit transactions and events for monitoring.
  - name: Transactions
    description: Read back submitted transactions and their rule hits.
  - name: Rules
    description: Detection rules evaluated against every submission.
  - name: Alerts
    description: Alerts opened when a rule matches.
  - name: Investigations
    description: Cases opened from one or more alerts.
  - name: SARs
    description: Suspicious activity reports and their attachments.
  - name: Sanctions screening
    description: Sanctions and PEP screening of transaction parties.
  - name: AML monitoring
    description: Ongoing AML monitoring of screened parties.
  - name: Party suspensions
    description: ''
  - name: Webhooks
    description: Outbound event delivery to your endpoints.
  - name: Custom fields
    description: Your own transaction attributes, declared so rules can match them.
  - name: Reference lists
    description: Named value lists rules can reference.
  - name: Notification rules
    description: Slack and email notifications for alerts.
  - name: Reports
    description: Generated compliance reports.
paths:
  /api/v1/reference-lists/bulk/:
    post:
      tags:
        - Reference lists
      summary: Add entries in bulk
      description: >-
        Adds up to 10000 values to one list in a call: every value the type
        accepts and that is not already there is added, and the rest are
        reported in `rejected` with the reason. Send `dryRun: true` to see the
        counts without writing. Fails whole when the list would pass 100,000
        entries.
      operationId: reference_lists_bulk_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReferenceListEntryBulk'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ReferenceListEntryBulk'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ReferenceListEntryBulk'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReferenceListBulkResult'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ReferenceListEntryBulk:
      type: object
      properties:
        partnerId:
          type: string
          writeOnly: true
          nullable: true
          description: >-
            Target partner id; honored only for multi-partner operators, ignored
            otherwise.
        listId:
          type: string
          format: uuid
          nullable: true
          description: The list to add to
        listName:
          type: string
          nullable: true
          description: >-
            Or the list by name; a list that does not exist yet is created,
            typed from the values sent
          maxLength: 100
        entityId:
          type: string
          nullable: true
          description: >-
            Your own identifier for the customer this entry applies to; empty
            for every customer
          maxLength: 128
        label:
          type: string
          nullable: true
          description: >-
            Shown next to the value and on alerts it matches; not matched
            against
          maxLength: 255
        expiresOn:
          type: string
          format: date
          nullable: true
          description: >-
            Last day the entry counts — for a temporary allowlist entry; omit to
            keep it indefinitely
        values:
          type: array
          items:
            type: string
            maxLength: 500
          maxItems: 10000
        dryRun:
          type: boolean
          default: false
          description: Report what an import would do without writing anything
      required:
        - values
    ReferenceListBulkResult:
      type: object
      properties:
        created:
          type: integer
          description: Values added (or that would be, on a dry run)
        skipped:
          type: integer
          description: Values already on the list
        rejected:
          type: array
          items:
            $ref: '#/components/schemas/BulkRejection'
          description: Values the list's type does not accept, with why
        renewed:
          type: integer
          default: 0
          description: Expired entries the import named again and put back in force
      required:
        - created
        - rejected
        - skipped
    BulkRejection:
      type: object
      properties:
        value:
          type: string
        reason:
          type: string
      required:
        - reason
        - value
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

## Related topics

- [Add an entry to a list](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/add-an-entry-to-a-list.md)
- [Update an entry](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/update-an-entry.md)
- [Create Monitoring](https://documentation.idenfy.com/aml/monitoring-create.md)
- [Retrieve AML Profile](https://documentation.idenfy.com/aml/retrieve-profile.md)
- [Remove an entry](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/remove-an-entry.md)


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