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

# Post apicompliancev1entities distribute



## OpenAPI

````yaml https://grid.squads.xyz/api-docs/openapi.json post /api/compliance/v1/entities/{id}/distribute
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/{id}/distribute:
    post:
      tags:
        - compliance
      operationId: handler
      parameters:
        - name: id
          in: path
          description: Entity ID
          required: true
          schema:
            type: string
            format: uuid
        - name: x-grid-environment
          in: header
          description: Solana network environment (sandbox, devnet, mainnet)
          required: true
          schema:
            type: string
        - name: provider
          in: query
          description: Optional provider override (distribute only to this provider)
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Distribution attempt completed
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GridApiResponse_DistributeEntityResponsePayload
        '400':
          description: No compliance submission linked
        '401':
          description: Unauthorized
        '404':
          description: Entity not found
        '409':
          description: Submission not approved
        '422':
          description: Distribution validation failed
        '500':
          description: Internal server error
        '503':
          description: Distribution service unavailable
      security:
        - bearer_auth: []
components:
  schemas:
    GridApiResponse_DistributeEntityResponsePayload:
      type: object
      required:
        - data
        - metadata
      properties:
        data:
          type: object
          required:
            - entity_id
            - submission_id
            - applicant_id
            - distributed_to
            - failures
          properties:
            applicant_id:
              type: string
              description: |-
                Applicant identifier in Sumsub.
                Deprecated for external consumers; internal correlation key.
            distributed_to:
              type: array
              items:
                $ref: '#/components/schemas/DistributeEntityDistributedProvider'
              description: Providers that received data successfully.
            entity_id:
              type: string
              format: uuid
              description: Entity identifier.
            failures:
              type: array
              items:
                $ref: '#/components/schemas/DistributeEntityFailedProvider'
              description: Providers that failed distribution.
            submission_id:
              type: string
              format: uuid
              description: Compliance submission identifier.
        metadata:
          $ref: '#/components/schemas/Metadata'
    DistributeEntityDistributedProvider:
      type: object
      required:
        - provider
        - provider_submission_id
        - provider_id
        - id
        - requires_tos
      properties:
        external_url:
          type:
            - string
            - 'null'
          description: Optional provider dashboard URL.
        id:
          type: string
          description: Provider-side external identifier.
        provider:
          type: string
          description: Provider identifier (for example `bridge`).
        provider_id:
          type: string
          description: Provider-assigned identifier.
        provider_submission_id:
          type: string
          format: uuid
          description: Internal provider submission identifier.
        requires_tos:
          type: boolean
          description: Whether provider ToS must be accepted before final approval.
    DistributeEntityFailedProvider:
      type: object
      required:
        - provider
        - provider_submission_id
        - error
        - error_type
        - failure_stage
        - provider_error_fields
      properties:
        error:
          type: string
          description: Safe error string describing failure category.
        error_type:
          type: string
          description: Machine-readable error type.
        failure_class:
          type:
            - string
            - 'null'
          description: Optional normalized failure class.
        failure_stage:
          type: string
          description: Stage where this failure occurred.
        field_lineage:
          type: array
          items:
            $ref: '#/components/schemas/DistributeEntityFailedFieldLineage'
          description: Field-level lineage useful for mapping/debug remediation.
        provider:
          type: string
          description: Provider identifier (for example `bridge`).
        provider_error_code:
          type:
            - string
            - 'null'
          description: Optional provider error code.
        provider_error_fields:
          type: array
          items:
            type: string
          description: Parsed provider error field keys.
        provider_submission_id:
          type: string
          format: uuid
          description: Internal provider submission identifier.
        rfi_id:
          type:
            - string
            - 'null'
          format: uuid
          description: Linked internal RFI created for this failure.
    Metadata:
      type: object
      required:
        - request_id
        - timestamp
      properties:
        request_id:
          type: string
        timestamp:
          type: string
          format: date-time
    DistributeEntityFailedFieldLineage:
      type: object
      required:
        - field_key
        - source_paths_tried
        - rejection_reasons
      properties:
        field_key:
          type: string
        rejection_reasons:
          type: array
          items:
            type: string
        selected_path:
          type:
            - string
            - 'null'
        source_paths_tried:
          type: array
          items:
            type: string
        suggested_fix:
          type:
            - string
            - 'null'
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: Your Grid API key from the Grid Dashboard

````