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

# Create entity from existing Sumsub applicant

> Creates or resolves a compliance entity from an existing Sumsub applicant ID. This operation is idempotent for applicant/customer/environment combinations and can include provider details with `?include=providers`.



## OpenAPI

````yaml https://grid.squads.xyz/api-docs/openapi.json post /api/compliance/v1/entities/import-sumsub
openapi: 3.1.0
info:
  title: Grid v1 API
  description: Grid v1 REST API for Solana-based smart account system
  contact:
    name: Grid API Support
    url: https://squads.so
    email: support@squads.so
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://grid.squads.xyz
    description: Production server
security:
  - bearer_auth: []
tags:
  - name: accounts
    description: Smart account management operations
  - name: spending-limits
    description: Spending limit management
  - name: standing-orders
    description: Standing order operations
  - name: transactions
    description: Transaction management
  - name: trade
    description: Trade operations and management
  - name: payments
    description: Payment intent operations
  - name: passkeys
    description: Passkey management
  - name: kyc
    description: Know Your Customer operations
  - name: external-accounts
    description: External bank account management
  - name: virtual-accounts
    description: Virtual account management
  - name: auth
    description: Authentication operations
  - name: proposals
    description: Proposal management for multi-sig operations
  - name: compliance
    description: Compliance entity management and KYB/KYC operations
paths:
  /api/compliance/v1/entities/import-sumsub:
    post:
      tags:
        - compliance
      summary: Create entity from existing Sumsub applicant
      description: >-
        Creates or resolves a compliance entity from an existing Sumsub
        applicant ID. This operation is idempotent for
        applicant/customer/environment combinations and can include provider
        details with `?include=providers`.
      operationId: handler
      parameters:
        - name: x-grid-environment
          in: header
          description: Solana network environment (sandbox, devnet, mainnet)
          required: true
          schema:
            type: string
        - name: include
          in: query
          description: >-
            Comma-separated list of related resources to include (e.g.
            providers)
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportSumsubEntityRequestPayload'
        required: true
      responses:
        '200':
          description: Existing entity returned (idempotent)
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GridApiResponse_ImportSumsubEntityResponsePayload
        '201':
          description: Entity created successfully
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GridApiResponse_ImportSumsubEntityResponsePayload
        '400':
          description: Invalid request parameters
        '401':
          description: Unauthorized
        '404':
          description: Applicant or Infinite customer not found
        '409':
          description: Submission ownership conflict
        '503':
          description: Sumsub or Infinite unavailable
      security:
        - bearer_auth: []
components:
  schemas:
    ImportSumsubEntityRequestPayload:
      type: object
      required:
        - applicant_id
        - type
        - name
      properties:
        applicant_id:
          type: string
          description: >-
            Existing Sumsub applicant identifier (external user ID or internal
            ID)
        bridge_customer_id:
          type:
            - string
            - 'null'
          description: >-
            Optional existing Bridge customer identifier to attach for later
            distribution
        email:
          type:
            - string
            - 'null'
          description: Contact email address
        external_id:
          type:
            - string
            - 'null'
          description: Your external identifier for this entity
        infinite_customer_id:
          type:
            - string
            - 'null'
          description: >-
            Optional existing Infinite customer identifier to attach for later
            distribution
        name:
          type: string
          description: Entity name (max 255 characters)
        smart_account_address:
          type:
            - string
            - 'null'
          description: Smart account address used to bind this entity to a Grid user
        type:
          $ref: '#/components/schemas/EntityType'
          description: 'Entity type: individual or business'
    GridApiResponse_ImportSumsubEntityResponsePayload:
      type: object
      required:
        - data
        - metadata
      properties:
        data:
          type: object
          required:
            - id
            - type
            - name
            - created_at
            - updated_at
          properties:
            compliance_status:
              oneOf:
                - type: 'null'
                - $ref: '#/components/schemas/ConsumerComplianceStatus'
                  description: Current verification status
            compliance_submission_id:
              type:
                - string
                - 'null'
              format: uuid
              description: Verification submission ID
            created_at:
              type: string
              format: date-time
              description: Creation timestamp
            email:
              type:
                - string
                - 'null'
              description: Contact email address
            external_id:
              type:
                - string
                - 'null'
              description: Your external identifier for this entity
            id:
              type: string
              format: uuid
              description: Unique entity identifier
            name:
              type: string
              description: Entity name
            providers:
              type: array
              items:
                $ref: '#/components/schemas/ProviderItem'
              description: Provider details (included with ?include=providers)
              nullable: true
            type:
              $ref: '#/components/schemas/EntityType'
              description: 'Entity type: individual or business'
            updated_at:
              type: string
              format: date-time
              description: Last update timestamp
        metadata:
          $ref: '#/components/schemas/Metadata'
    EntityType:
      type: string
      enum:
        - individual
        - business
    ConsumerComplianceStatus:
      type: string
      description: Verification status of the entity.
      enum:
        - not_started
        - pending
        - in_progress
        - in_review
        - action_required
        - approved
        - rejected
        - suspended
    ProviderItem:
      type: object
      required:
        - provider
        - status
        - tos_required
        - tos_accepted
        - tos_outdated
        - created_at
        - updated_at
      properties:
        created_at:
          type: string
          format: date-time
          description: Creation timestamp
        id:
          type:
            - string
            - 'null'
          description: Provider-assigned external identifier
        provider:
          type: string
          description: Provider identifier
        provider_id:
          type:
            - string
            - 'null'
          description: Provider-assigned identifier
        status:
          $ref: '#/components/schemas/ProviderSubmissionStatus'
          description: Verification status for this provider
        status_code:
          type:
            - string
            - 'null'
          description: Provider-specific status code
        status_message:
          type:
            - string
            - 'null'
          description: Human-readable status message
        submitted_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When verification was submitted to the provider
        tos_accepted:
          type: boolean
          description: Whether the entity accepted TOS for this provider
        tos_accepted_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the TOS was accepted
        tos_outdated:
          type: boolean
          description: Whether the accepted TOS version is outdated
        tos_required:
          type: boolean
          description: Whether this provider requires TOS acceptance
        tos_version:
          type:
            - string
            - 'null'
          description: TOS version the entity accepted
        tos_version_current:
          type:
            - string
            - 'null'
          description: Required TOS version
        updated_at:
          type: string
          format: date-time
          description: Last update timestamp
    Metadata:
      type: object
      required:
        - request_id
        - timestamp
      properties:
        request_id:
          type: string
        timestamp:
          type: string
          format: date-time
    ProviderSubmissionStatus:
      type: string
      enum:
        - not_started
        - tos_pending
        - pending
        - in_review
        - action_required
        - approved
        - rejected
        - suspended
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: Your Grid API key from the Grid Dashboard

````