> ## 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 an entry to a list

> Adds one value to a list, named by `listId` or `listName`. The value is normalised by the list's type and rejected with `400` when it cannot belong to it (a country list takes ISO codes). A list named by `listName` that does not exist yet is created, typed from the value. Answers `409` when the value is already on the list.



## OpenAPI

````yaml /openapi/transaction-monitoring.json post /api/v1/reference-lists/
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/:
    post:
      tags:
        - Reference lists
      summary: Add an entry to a list
      description: >-
        Adds one value to a list, named by `listId` or `listName`. The value is
        normalised by the list's type and rejected with `400` when it cannot
        belong to it (a country list takes ISO codes). A list named by
        `listName` that does not exist yet is created, typed from the value.
        Answers `409` when the value is already on the list.
      operationId: reference_lists_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReferenceListEntryWrite'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ReferenceListEntryWrite'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ReferenceListEntryWrite'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReferenceListEntryResponse'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ReferenceListEntryWrite:
      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
        value:
          type: string
          description: The value rules test against, normalised by the list's type
          maxLength: 500
      required:
        - value
    ReferenceListEntryResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        partnerId:
          type: integer
          readOnly: true
        listId:
          type: string
          format: uuid
          readOnly: true
        listName:
          type: string
          readOnly: true
          description: The list's name, mirrored from the list
        entityId:
          type: string
          nullable: true
          readOnly: true
        value:
          type: string
          readOnly: true
          description: Listed value, as entered
        normalizedValue:
          type: string
          readOnly: true
          description: The value in its list type's normalised form
        label:
          type: string
          readOnly: true
          nullable: true
          description: Optional human-readable label
        expiresOn:
          type: string
          format: date
          readOnly: true
          nullable: true
          description: Last day the entry counts; rules ignore it from the next day on
        isExpired:
          type: boolean
          readOnly: true
          description: Past its expiry, so no rule counts it
        synced:
          type: boolean
          readOnly: true
          description: >-
            Added by a sync from the list's source, and removed by one when the
            source drops it
        createdAt:
          type: string
          format: date-time
          readOnly: true
      required:
        - createdAt
        - entityId
        - expiresOn
        - id
        - isExpired
        - label
        - listId
        - listName
        - normalizedValue
        - partnerId
        - synced
        - value
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

## Related topics

- [Add entries in bulk](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/add-entries-in-bulk.md)
- [List a reference list's entries](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/list-a-reference-lists-entries.md)
- [List entries across your lists](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/list-entries-across-your-lists.md)
- [Update an entry](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/update-an-entry.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.