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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Records list

> Collect the whole SDN or Consolidated list record by record. Use `source_status` first to learn the publication and skip unchanged lists; use `records_changes` for deltas.

## Request contract

* **Method and path:** POST /apis/v1/sanctionssearch-ofac-treas-gov/sanctions/records-list
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/records-list`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/sanctionssearch-ofac-treas-gov.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "sanctionssearch-ofac-treas-gov.sanctions.records-list",
  "method": "POST",
  "path": "/apis/v1/sanctionssearch-ofac-treas-gov/sanctions/records-list",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "list": "consolidated",
              "page_size": 2
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "cursor": {
              "description": "The `next_cursor` of the previous page; omit for the first page.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "list": {
              "description": "Which OFAC list: `sdn` (Specially Designated Nationals, export files SDN_ENHANCED.XML / SDN.XML) or `consolidated` (the Consolidated non-SDN list: SSI, FSE, CAPTA, PLC, MBS, CMIC..., export files CONS_ENHANCED.XML / CONSOLIDATED.XML).\n\nProvider reference: allowed values [\"sdn\", \"consolidated\"].",
              "type": "string"
            },
            "page_size": {
              "default": 100,
              "description": "Maximum records per page (pages may be shorter).\n\nProvider reference: minimum 1; maximum 500; default 100.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 500,
                "min": 1
              }
            }
          },
          "required": [
            "list"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/sanctionssearch-ofac-treas-gov.json POST /apis/v1/sanctionssearch-ofac-treas-gov/sanctions/records-list
openapi: 3.1.0
info:
  description: ''
  title: OFAC Sanctions List Search
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    sanctionssearch-ofac-treas-gov:
      description: ''
      title: OFAC Sanctions List Search
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 5db8475c359f632962cfb4b525aa7ae6a3f055e3ab7b2ab3c4455a0d0d869740
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/sanctionssearch-ofac-treas-gov/sanctions/entity
    - /apis/v1/sanctionssearch-ofac-treas-gov/sanctions/publications
    - /apis/v1/sanctionssearch-ofac-treas-gov/sanctions/record
    - /apis/v1/sanctionssearch-ofac-treas-gov/sanctions/records-changes
    - /apis/v1/sanctionssearch-ofac-treas-gov/sanctions/records-get
    - /apis/v1/sanctionssearch-ofac-treas-gov/sanctions/records-list
    - /apis/v1/sanctionssearch-ofac-treas-gov/sanctions/reference-lists
    - /apis/v1/sanctionssearch-ofac-treas-gov/sanctions/search
    - /apis/v1/sanctionssearch-ofac-treas-gov/sanctions/source-status
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:4af08ca6bf76fd2c3108bee3007ecc756bd1340fa31bd529f09507332d50631b
    facts_hash: 5db8475c359f632962cfb4b525aa7ae6a3f055e3ab7b2ab3c4455a0d0d869740
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: sanctionssearch-ofac-treas-gov
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/sanctionssearch-ofac-treas-gov/sanctions/records-list:
    post:
      tags:
        - OFAC Sanctions List Search
      summary: Records list
      description: >-
        Collect the whole SDN or Consolidated list record by record. Use
        `source_status` first to learn the publication and skip unchanged lists;
        use `records_changes` for deltas.
      operationId: sanctionssearch-ofac-treas-gov.sanctions.records-list
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  list: consolidated
                  page_size: 2
            schema:
              additionalProperties: true
              properties:
                cursor:
                  description: >-
                    The `next_cursor` of the previous page; omit for the first
                    page.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                list:
                  description: >-
                    Which OFAC list: `sdn` (Specially Designated Nationals,
                    export files SDN_ENHANCED.XML / SDN.XML) or `consolidated`
                    (the Consolidated non-SDN list: SSI, FSE, CAPTA, PLC, MBS,
                    CMIC..., export files CONS_ENHANCED.XML / CONSOLIDATED.XML).


                    Provider reference: allowed values ["sdn", "consolidated"].
                  type: string
                page_size:
                  default: 100
                  description: |-
                    Maximum records per page (pages may be shorter).

                    Provider reference: minimum 1; maximum 500; default 100.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 500
                    min: 1
              required:
                - list
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-17.
                  summary: Official provider example
                  value:
                    data_as_of: '2026-09-14T00:00:00'
                    etag: '"c3c6cc83b5526fc19c9b638ea999313f"'
                    file_name: CONS_ENHANCED.XML
                    file_size: 3829359
                    list: consolidated
                    next_cursor: >-
                      v1|consolidated|1054|"c3c6cc83b5526fc19c9b638ea999313f"|3829359|147440|2026-09-14T00:00:00
                    next_offset: 147440
                    observed_at_ms: 1792279367689
                    publication_id: 1054
                    records:
                      - addresses:
                          - address_id: 12813
                            city: null
                            country: null
                            lines: []
                            other_parts: []
                            postal_code: null
                            state_province: null
                        birth_dates:
                          - approximate: false
                            from: '1951-01-01'
                            is_range: false
                            to: '1951-12-31'
                            value: '1951'
                        birth_places:
                          - Umm Tuba
                        citizenships: []
                        delisted: null
                        entity_type: person
                        entity_type_raw: Individual
                        extra:
                          features: []
                        identifiers: []
                        identity_id: 1979
                        legal_basis:
                          - General License 4 Under EO 13224 (Terrorism)
                        listed_on: '2006-04-12'
                        lists:
                          - listed_on: '2006-04-12'
                            name: Non-SDN Palestinian Legislative Council List
                          - listed_on: '2014-10-10'
                            name: Consolidated List
                        measures:
                          - other
                        names:
                          - alias_type: null
                            is_low_quality: false
                            name: ABU TEIR, Mohammed
                            script: Latin
                            type: primary
                          - alias_type: A.K.A.
                            is_low_quality: false
                            name: ABU TAIR, Mohammed Mahmud
                            script: Latin
                            type: alias
                          - alias_type: A.K.A.
                            is_low_quality: false
                            name: ABOU TAYR, Mohammad Mahmoud
                            script: Latin
                            type: alias
                        nationalities: []
                        primary_name: ABU TEIR, Mohammed
                        programs:
                          - NS-PLC
                        publication_id: 1054
                        relationships: []
                        remarks: null
                        retrieved_at: '2026-10-17T23:22:43Z'
                        sanctions_types:
                          - Reject
                        source_id: 9640
                        source_record_id: ofac:9640
                        source_url: >-
                          https://sanctionslistservice.ofac.treas.gov/entities/9640
                        un_reference: null
                      - addresses:
                          - address_id: 12128
                            city: null
                            country: Palestinian
                            lines: []
                            other_parts: []
                            postal_code: null
                            state_province: Gaza
                        birth_dates:
                          - approximate: false
                            from: '1955-01-01'
                            is_range: false
                            to: '1955-12-31'
                            value: '1955'
                        birth_places:
                          - Jabalia Camp
                        citizenships: []
                        delisted: null
                        entity_type: person
                        entity_type_raw: Individual
                        extra:
                          features: []
                        identifiers: []
                        identity_id: 1980
                        legal_basis:
                          - General License 4 Under EO 13224 (Terrorism)
                        listed_on: '2006-04-12'
                        lists:
                          - listed_on: '2006-04-12'
                            name: Non-SDN Palestinian Legislative Council List
                          - listed_on: '2014-10-10'
                            name: Consolidated List
                        measures:
                          - other
                        names:
                          - alias_type: null
                            is_low_quality: false
                            name: AL-SHANTI, Jamileh Abdullah
                            script: Latin
                            type: primary
                          - alias_type: A.K.A.
                            is_low_quality: false
                            name: EL-SHANTI, Jameela Abdallah
                            script: Latin
                            type: alias
                          - alias_type: A.K.A.
                            is_low_quality: false
                            name: AL SHANTEE, Jamila Abed Allah
                            script: Latin
                            type: alias
                        nationalities: []
                        primary_name: AL-SHANTI, Jamileh Abdullah
                        programs:
                          - NS-PLC
                        publication_id: 1054
                        relationships: []
                        remarks: null
                        retrieved_at: '2026-10-17T23:22:43Z'
                        sanctions_types:
                          - Reject
                        source_id: 9641
                        source_record_id: ofac:9641
                        source_url: >-
                          https://sanctionslistservice.ofac.treas.gov/entities/9641
                        un_reference: null
                    retrieved_at: '2026-10-17T23:22:43Z'
                    source_url: >-
                      https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/CONS_ENHANCED.XML
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            The full current list, one page of records at a time, read from the
            official Enhanced XML export (GET
            /api/PublicationPreview/exports/SDN_ENHANCED.XML or
            CONS_ENHANCED.XML, 302 to the presigned S3 object) with HTTP Range
            windows so every fetch stays under the 32 MiB cap: a page fetches
            one byte window (page_size x 16 KiB, 256 KiB to 8 MiB, grown up to
            24 MiB when a single entity is larger), shapes the complete <entity>
            elements in it (at most page_size; a page may be shorter than
            page_size, never empty before the end) and returns a cursor holding
            the byte offset after the last record. The cursor is pinned to the
            S3 object (x-amz-meta-publication-id, ETag, byte size): when OFAC
            publishes a new file between pages the next call fails with
            invalid_input, issue code `publication_changed` at /cursor, instead
            of mixing publications; start again without a cursor. The
            Consolidated list (481 records, 3.8 MB) takes five pages of 100; the
            SDN list (about 19,500 records, 110 MB) about 200. Records are in
            file order and carry source_record_id, source_url, publication_id
            and retrieved_at.


            The response contains the tool result directly.


            The provider identifies `records` as the primary payload key.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `addresses` | object[] |  |

            | `birth_dates` | object[] |  |

            | `birth_places` | string[] |  |

            | `citizenships` | string[] | `Citizenship Country` feature values.
            |

            | `delisted` | boolean | true only for a `remove` change record;
            null otherwise (the current lists carry no delisted records). |

            | `entity_type` | string | Individual = person, Entity =
            organization, Vessel, Aircraft; anything else (or a partial change
            record without generalInfo) = other. |

            | `entity_type_raw` | string | generalInfo/entityType as published
            (Individual, Entity, Vessel, Aircraft); null only in a partial
            change record. |

            | `extra` | object |  |

            | `identifiers` | object[] |  |

            | `identity_id` | number | generalInfo/identityId; null in a partial
            change record. |

            | `legal_basis` | string[] | legalAuthority values. |

            | `listed_on` | string | Earliest sanctionsList@datePublished. |

            | `lists` | object[] |  |

            | `measures` | string[] | sanctionsType `Block` = asset_freeze;
            every other sanctions type (sectoral directives, CAPTA,
            menu-based...) = other. Deduplicated. |

            | `names` | object[] |  |

            | `nationalities` | string[] | `Nationality Country` feature values.
            |

            | `primary_name` | string |
            name[isPrimary]/translation[isPrimary]/formattedFullName. Always a
            string in `records_list` and `records_get`; null only in a change
            record whose delta does not carry the primary name. |

            | `programs` | string[] | sanctionsProgram codes (CUBA, SDGT,
            RUSSIA-EO14024...). |

            | `publication_id` | number | The publication the record belongs to:
            the S3 object's publication id for `records_list`, the delta's
            publication for `records_changes`, the latest publication id at
            retrieval time for `records_get` (its endpoint serves live data). |

            | `relationships` | object[] |  |

            | `remarks` | string |  |

            | `retrieved_at` | string | UTC, RFC 3339. |

            | `sanctions_types` | string[] | sanctionsType values as published.
            |

            | `source_id` | number | The numeric entity id. |

            | `source_record_id` | string | `ofac:<entity id>`; the entity id is
            OFAC's own, shared by every SLS endpoint, the delta files and
            sanctionssearch Details.aspx?id=. |

            | `source_url` | string |
            https://sanctionslistservice.ofac.treas.gov/entities/{id} |

            | `un_reference` | object | OFAC publishes no UN reference; always
            null, kept for the batch's common shape. |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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