Skip to main content
POST
Records list

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 Effective request declaration (including authentication and referenced schemas):

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.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
list
string
required

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"].

cursor
string

The next_cursor of the previous page; omit for the first page.

page_size
number
default:100

Maximum records per page (pages may be shorter).

Provider reference: minimum 1; maximum 500; default 100.

Response

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

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.