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

# Sync a reference list from its source

> Fetches the list's source file now and mirrors it: values new to the source are added, synced values it no longer carries are removed, and entries added by hand are left alone. One value per line, or CSV with the value then an optional label; `#` lines are skipped. `dryRun: true` reports the counts without changing anything. A failed fetch changes nothing and answers `400`.



## OpenAPI

````yaml /openapi/transaction-monitoring.json post /api/v1/reference-lists/lists/{list_id}/sync/
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/lists/{list_id}/sync/:
    post:
      tags:
        - Reference lists
      summary: Sync a reference list from its source
      description: >-
        Fetches the list's source file now and mirrors it: values new to the
        source are added, synced values it no longer carries are removed, and
        entries added by hand are left alone. One value per line, or CSV with
        the value then an optional label; `#` lines are skipped. `dryRun: true`
        reports the counts without changing anything. A failed fetch changes
        nothing and answers `400`.
      operationId: reference_lists_lists_sync_create
      parameters:
        - in: path
          name: list_id
          schema:
            type: string
            format: uuid
            description: Primary key
          required: true
          description: Identifies the list.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReferenceListSyncRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ReferenceListSyncRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ReferenceListSyncRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReferenceList'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ReferenceListSyncRequest:
      type: object
      properties:
        dryRun:
          type: boolean
          default: false
          description: Report what a sync would change without changing anything
    ReferenceList:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        partnerId:
          type: integer
          readOnly: true
        name:
          type: string
          readOnly: true
          description: Slug a rule refers to, e.g. mule_accounts; ^[a-z0-9_]+$
        valueType:
          allOf:
            - $ref: '#/components/schemas/ValueTypeEnum'
          readOnly: true
          description: |-
            What the list holds; decides normalisation

            * `COUNTRY` - Country
            * `ACCOUNT` - Account / IBAN
            * `WALLET` - Wallet address
            * `IP` - IP address
            * `TEXT` - Text
        description:
          type: string
          readOnly: true
          nullable: true
          description: What the list is for
        entryCount:
          type: integer
          readOnly: true
          default: 0
          description: Entries on the list
        createdAt:
          type: string
          format: date-time
          readOnly: true
        updatedAt:
          type: string
          format: date-time
          readOnly: true
        usedBy:
          type: object
          additionalProperties: {}
          description: What tests against the list; it cannot be deleted while used
          readOnly: true
        sourceUrl:
          type: string
          format: uri
          readOnly: true
          nullable: true
          description: https:// file of values this list can sync from
        lastSyncedAt:
          type: string
          format: date-time
          readOnly: true
          nullable: true
          description: When the last sync ran
        lastSyncStatus:
          type: string
          readOnly: true
          nullable: true
          description: SUCCEEDED or FAILED, for the last sync
        lastSyncError:
          type: string
          readOnly: true
          nullable: true
          description: Why the last sync failed
        lastSyncSummary:
          readOnly: true
          nullable: true
          description: 'Counts from the last sync: added, removed, unchanged, rejected'
      required:
        - createdAt
        - description
        - entryCount
        - id
        - lastSyncError
        - lastSyncStatus
        - lastSyncSummary
        - lastSyncedAt
        - name
        - partnerId
        - sourceUrl
        - updatedAt
        - usedBy
        - valueType
    ValueTypeEnum:
      enum:
        - COUNTRY
        - ACCOUNT
        - WALLET
        - IP
        - TEXT
      type: string
      description: |-
        * `COUNTRY` - Country
        * `ACCOUNT` - Account / IBAN
        * `WALLET` - Wallet address
        * `IP` - IP address
        * `TEXT` - Text
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

## Related topics

- [Update a reference list](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/update-a-reference-list.md)
- [List reference lists](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/list-reference-lists.md)
- [List a reference list's changes](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/list-a-reference-lists-changes.md)
- [List a reference list's entries](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/list-a-reference-lists-entries.md)
- [Create a reference list](https://documentation.idenfy.com/api-reference/transaction-monitoring/reference-lists/create-a-reference-list.md)


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