REST API›Identity›Know Your Business (KYB)

PATCH

Update the status of a file after it has been uploaded to the presigned URL. This endpoint is called by the client after successful upload.

Path Params

  • documentId string uuid required
    Unique identifier for the document
  • fileId string required
    Unique identifier for the file

Body Params

object

Request body for updating file status
  • status string enum required
    File upload status. Use requiresManualReview when the user chooses to submit a previously-rejected file.
    uploadedrequiresManualReview
  • triggerLiveScreeningAsync boolean
    When true, triggers async AI live screening on this upload. Defaults to false.
  • kybIdentity object
    Structured KYB identity data for the entity being screened. Forwarded to the live screening workflow when the LIVE_SCREENING_KYB_IDENTITY_ENABLED flag is on.
    kybIdentity object
    • entityName string
    • registeredAddress string
    • registrationNumber string
    • legalStructure string
    • jurisdiction string
    • identityId string
    • transactionId string
    • ubos array of objects
      ubos object
      • name string required

        at least 1 characters

      • ownershipPercentage number
    • associatedPersons array of objects
      associatedPersons object
      • name string required

        at least 1 characters

      • role string

Responses

200
200

Response Body

object

Response after updating file status
  • id string required
    Unique identifier for the file
  • view string enum
    View or side of the document file
    frontbackfull
  • uploadUrl string uri required
    Presigned URL for file upload (legacy; may be stale post-upload)
  • status string enum required
    Current status of the file upload. uploaded means bytes are stored and is terminal when screening is not required. screening means an AI screening decision is in flight. requiresManualReview is a terminal state set when the customer submits a rejected file anyway (or on leftover auto-lock rows); the file is locked and Trust ops resolves it manually.
    awaitingUploaduploadedscreeningacceptedrejectedrequiresManualReview
  • fileName string
    Original filename of the uploaded file
  • rejectionReason string
    Human-readable reason populated when status is rejected (e.g. illegible scan, wrong document type)
400
400

Response Body

object

Generic error response
  • code string required
    Error code
  • message string required
    Error message
  • details map of objects
    Additional error details
    details object
    • <key> object nullable
401
401

Response Body

object

Generic error response
  • code string required
    Error code
  • message string required
    Error message
  • details map of objects
    Additional error details
    details object
    • <key> object nullable
403
403

Response Body

object

Generic error response
  • code string required
    Error code
  • message string required
    Error message
  • details map of objects
    Additional error details
    details object
    • <key> object nullable
404
404

Response Body

object

Generic error response
  • code string required
    Error code
  • message string required
    Error message
  • details map of objects
    Additional error details
    details object
    • <key> object nullable
500
500

Response Body

object

Generic error response
  • code string required
    Error code
  • message string required
    Error message
  • details map of objects
    Additional error details
    details object
    • <key> object nullable