Skip to main content
POST
/
v1
/
trust-portal
/
documents
/
{documentId}
/
delete
Delete (deactivate) a trust portal document
curl --request POST \
  --url http://localhost:3333/v1/trust-portal/documents/{documentId}/delete \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "organizationId": "org_6914cd0e16e4c7dccbb54426"
}
'
{
  "success": true
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Headers

X-Organization-Id
string

Organization ID (required for session auth, optional for API key auth)

Path Parameters

documentId
string
required

Body

application/json
organizationId
string
required

Organization ID that owns the document

Example:

"org_6914cd0e16e4c7dccbb54426"

Response

200 - application/json

Document deleted successfully

success
boolean