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

# Create denied party screening

> Screen a person or company against the consolidated denied-party lists: CLEAR, REVIEW or BLOCK with the matches. One of company_name, or first_name with last_name, is required. Stores the screening.

Key scope: read (or execute). Module: screening. At most 25 candidates are scored, best first; only those scoring 0.5 or more are listed



## OpenAPI

````yaml /openapi.json post /v1/denied_party_screenings
openapi: 3.1.0
info:
  title: InsightChain API
  version: 2.0.0
  description: 'The InsightChain API. Send your key as `Authorization: Bearer <key>`.'
  contact:
    name: InsightChain
    url: https://insightchain.ai/docs
  license:
    name: Proprietary
    url: https://insightchain.ai/terms
servers:
  - url: https://api.insightchain.ai
security: []
tags:
  - name: Data ingestion
  - name: Tariff check
  - name: Landed cost
  - name: Import taxes
  - name: Customs documents
  - name: Denied party screening
  - name: Location risk
  - name: Tariff impact and trade data
  - name: Recommendations
  - name: Orders and approval
  - name: Explanations
  - name: Alerts
  - name: Inventory
  - name: Forecast check
  - name: Disruptions
  - name: Product compliance
  - name: Product recalls
  - name: Product passports
  - name: Webhooks
  - name: Connections
  - name: Sync runs
  - name: API keys
  - name: Usage
  - name: Request log
  - name: Agent (MCP) server
paths:
  /v1/denied_party_screenings:
    post:
      tags:
        - Denied party screening
      summary: Create denied party screening
      description: >-
        Screen a person or company against the consolidated denied-party lists:
        CLEAR, REVIEW or BLOCK with the matches. One of company_name, or
        first_name with last_name, is required. Stores the screening.


        Key scope: read (or execute). Module: screening. At most 25 candidates
        are scored, best first; only those scoring 0.5 or more are listed
      operationId: createDeniedPartyScreening
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                first_name:
                  type: string
                  maxLength: 100
                  description: Required with last_name, unless company_name is sent
                last_name:
                  type: string
                  maxLength: 100
                  description: Required with first_name, unless company_name is sent
                company_name:
                  type: string
                  maxLength: 200
                  description: Required unless first_name and last_name are sent
                country_code:
                  type: string
                  pattern: ^[A-Za-z]{2}$
                  description: ISO 3166-1 alpha-2 country code
                locality:
                  type: string
                  maxLength: 200
                address_line1:
                  type: string
                  maxLength: 300
                firstName:
                  type: string
                  maxLength: 100
                  description: 'Deprecated: use first_name'
                  deprecated: true
                lastName:
                  type: string
                  maxLength: 100
                  description: 'Deprecated: use last_name'
                  deprecated: true
                companyName:
                  type: string
                  maxLength: 200
                  description: 'Deprecated: use company_name'
                  deprecated: true
                addressLine1:
                  type: string
                  maxLength: 300
                  description: 'Deprecated: use address_line1'
                  deprecated: true
                countryCode:
                  type: string
                  pattern: ^[A-Za-z]{2}$
                  description: 'Deprecated: use country_code'
                  deprecated: true
              additionalProperties: false
            example:
              company_name: Northwind Textiles Ltd
              country_code: VN
              locality: Hai Phong
      responses:
        '200':
          description: OK
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-RateLimit-Limit-Day:
              $ref: '#/components/headers/X-RateLimit-Limit-Day'
            X-RateLimit-Remaining-Day:
              $ref: '#/components/headers/X-RateLimit-Remaining-Day'
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
            X-Client-Request-ID:
              $ref: '#/components/headers/X-Client-Request-ID'
            X-InsightChain-Sandbox:
              $ref: '#/components/headers/X-InsightChain-Sandbox'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeniedPartyScreening'
              example:
                screening_id: 7a274fc4-848d-4282-a6ac-324451a2f969
                request_id: c55491a7-ea77-47b4-a3af-6b08b95d0c00
                searched_party:
                  first_name: null
                  last_name: null
                  company_name: Example Trading LLC
                  country_code: AE
                action: BLOCK
                match_count: 4
                best_score: 1
                matches:
                  - denied_party:
                      id: b65ce09b-6f28-41ea-ae91-35f972acd007
                      name: EXAMPLE TRADING LLC
                      alt_names: []
                      entity_type: null
                      country: AE
                      locality: DUBAI
                      address_line1: PO BOX 00000
                      source_list: >-
                        Denied Persons List (DPL) - Bureau of Industry and
                        Security
                      source_list_code: DPL
                      programs: []
                      federal_register_notice: >-
                        75 F.R. 56052 9/15/10, 76 F.R. 12318 3/7/11, 76 F.R.
                        54198 8/31/11, 77 F.R. 10719 2/23/12, 77 F.R. 48960
                        8/15/12, 78 F.R. 9359 2/8/13, 78...
                      start_date: '2014-08-13'
                      end_date: '2016-08-13'
                      remarks: FEDERAL REGISTER UPDATED
                      source_url: >-
                        https://www.bis.gov/licensing/end-user-guidance/denied-persons-list-dpl
                    scores:
                      name_score: 1
                      name_match: EXACT_MATCH
                      country_match: EXACT_MATCH
                      overall_score: 1
                ai_analysis: null
                ai_opinion: null
                duration_ms: 388
                disclaimer: >-
                  This screening is provided for informational purposes only. It
                  does not constitute legal advice. Users should consult with
                  trade complian...
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '415':
          $ref: '#/components/responses/UnsupportedMediaType'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
        '502':
          $ref: '#/components/responses/UpstreamError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
      security:
        - apiKey: []
components:
  headers:
    RateLimit-Limit:
      schema:
        type: integer
      description: Requests allowed per minute. On every answer to an accepted API key
    RateLimit-Remaining:
      schema:
        type: integer
      description: Requests left in the current minute window
    RateLimit-Reset:
      schema:
        type: integer
      description: Seconds until the minute window resets
    X-RateLimit-Limit-Day:
      schema:
        type: integer
      description: The key's daily quota
    X-RateLimit-Remaining-Day:
      schema:
        type: integer
      description: Requests left today (resets 00:00 UTC)
    X-Request-ID:
      schema:
        type: string
      description: Quote this when asking about a request
    X-Client-Request-ID:
      schema:
        type: string
      description: Your own X-Request-ID request header, echoed. Absent when you sent none
    X-InsightChain-Sandbox:
      schema:
        type: string
        enum:
          - 'true'
      description: >-
        Present, and true, on every answer to a test key: the data is the
        sandbox's
    Allow:
      schema:
        type: string
      description: The methods the path takes
    Retry-After:
      schema:
        type: integer
      description: Seconds to wait before trying again
  schemas:
    DeniedPartyScreening:
      type: object
      properties:
        screening_id:
          type: string
          format: uuid
        searched_party:
          type: object
          properties:
            first_name:
              type:
                - string
                - 'null'
            last_name:
              type:
                - string
                - 'null'
            company_name:
              type:
                - string
                - 'null'
            country_code:
              type:
                - string
                - 'null'
          required:
            - first_name
            - last_name
            - company_name
            - country_code
        action:
          type: string
          enum:
            - CLEAR
            - REVIEW
            - BLOCK
          description: The screening's outcome. A second opinion never changes it
        match_count:
          type: integer
          description: The number of matches listed
        best_score:
          type: number
          description: >-
            The highest score among the candidates, 0 to 1; it can be below the
            0.5 a listed match needs, so it can be above 0 with no match listed
        matches:
          type: array
          items:
            type: object
            properties:
              denied_party:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                  alt_names:
                    type: array
                    items:
                      type: string
                  entity_type:
                    type:
                      - string
                      - 'null'
                    description: Entity, Individual, Vessel or Aircraft, when the list says
                  country:
                    type:
                      - string
                      - 'null'
                    description: ISO 3166-1 alpha-2
                  locality:
                    type:
                      - string
                      - 'null'
                  address_line1:
                    type:
                      - string
                      - 'null'
                  source_list:
                    type: string
                    description: The list the party is on
                  source_list_code:
                    type:
                      - string
                      - 'null'
                  programs:
                    type: array
                    items:
                      type: string
                    description: The sanctions programmes the listing names
                  federal_register_notice:
                    type:
                      - string
                      - 'null'
                  start_date:
                    type:
                      - string
                      - 'null'
                    format: date
                  end_date:
                    type:
                      - string
                      - 'null'
                    format: date
                  remarks:
                    type:
                      - string
                      - 'null'
                  source_url:
                    type:
                      - string
                      - 'null'
                required:
                  - id
                  - name
                  - alt_names
                  - entity_type
                  - country
                  - locality
                  - address_line1
                  - source_list
                  - source_list_code
                  - programs
                  - federal_register_notice
                  - start_date
                  - end_date
                  - remarks
                  - source_url
              scores:
                type: object
                properties:
                  name_score:
                    type: number
                    description: How alike the names are, 0 to 1
                  name_match:
                    type: string
                    enum:
                      - EXACT_MATCH
                      - PARTIAL_MATCH
                      - NO_MATCH
                  country_match:
                    type: string
                    enum:
                      - EXACT_MATCH
                      - NO_MATCH
                  overall_score:
                    type: number
                    description: The match's score, 0 to 1; a listed match has at least 0.5
                required:
                  - name_score
                  - name_match
                  - country_match
                  - overall_score
            required:
              - denied_party
              - scores
        ai_analysis:
          type:
            - string
            - 'null'
          description: >-
            A model's second opinion on a REVIEW outcome, as text; null when
            none was made
        ai_opinion:
          type:
            - object
            - 'null'
          properties:
            matches:
              type: array
              items:
                type: object
                properties:
                  same_entity:
                    type: boolean
                    description: Whether the screened party is likely this listed party
                  confidence:
                    type: string
                    enum:
                      - HIGH
                      - MEDIUM
                      - LOW
                  reasoning:
                    type: string
                required:
                  - same_entity
                  - confidence
                  - reasoning
              description: >-
                One per match looked at (the first five), in the order of
                matches
            recommendation:
              type: string
              enum:
                - false_positive
                - escalate
                - proceed_with_caution
          required:
            - matches
            - recommendation
          description: The same second opinion as fields; advisory only
        duration_ms:
          type: integer
        disclaimer:
          type: string
        request_id:
          type: string
          description: >-
            Quote this when asking about the request; also the X-Request-ID
            header
      required:
        - screening_id
        - searched_party
        - action
        - match_count
        - best_score
        - matches
        - ai_analysis
        - ai_opinion
        - duration_ms
        - disclaimer
        - request_id
    Error:
      type: object
      description: The body of every non-2xx answer
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - authentication_error
                - permission_error
                - rate_limit_error
                - api_error
            code:
              type: string
              description: >-
                Stable machine-readable code, e.g. parameter_invalid,
                scope_missing, rate_limit_exceeded. Every code is listed at
                /docs/errors
            message:
              type: string
              description: For people; what `error` used to be as a plain string
            param:
              type:
                - string
                - 'null'
              description: The parameter the error is about, when there is one
            doc_url:
              type: string
              description: Where the code is documented
          required:
            - type
            - code
            - message
            - param
            - doc_url
        request_id:
          type: string
        details:
          type: array
          items: {}
          description: >-
            On a 400 for input with several problems: one entry per problem, a
            sentence or an object with `field` and `message`
        limit:
          type: integer
          description: 'On a 429: the limit that was reached'
        code:
          type: string
          deprecated: true
          description: 'Deprecated: use error.code'
        field:
          type: string
          deprecated: true
          description: 'Deprecated: use error.param'
      required:
        - error
        - request_id
      additionalProperties: true
  responses:
    BadRequest:
      description: >-
        Invalid input: an unknown or invalid parameter (error.param names it) or
        a body the route does not accept
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        The key lacks the scope, or the organization lacks the module or is
        suspended
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    MethodNotAllowed:
      description: The route does not take this method; Allow lists the ones it takes
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
        Allow:
          $ref: '#/components/headers/Allow'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PayloadTooLarge:
      description: >-
        The body, or the data the request would read, is larger than the route
        allows
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnsupportedMediaType:
      description: The Content-Type is not one the route reads
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: Per-minute or daily key limit; Retry-After is the real reset
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Internal error; quote request_id
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UpstreamError:
      description: >-
        The API could not be reached, or a service this route depends on failed.
        Try again shortly
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServiceUnavailable:
      description: The API, or this route, is not available right now
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
        X-RateLimit-Limit-Day:
          $ref: '#/components/headers/X-RateLimit-Limit-Day'
        X-RateLimit-Remaining-Day:
          $ref: '#/components/headers/X-RateLimit-Remaining-Day'
        X-Client-Request-ID:
          $ref: '#/components/headers/X-Client-Request-ID'
        X-InsightChain-Sandbox:
          $ref: '#/components/headers/X-InsightChain-Sandbox'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An InsightChain API key: ic_live_... for your organization, ic_test_...
        for its sandbox

````

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