Skip to main content

Read files and object storage

Read public branding assets without credentials, KYC and asset documents via domain routes, and private files as a platform administrator.

Overview

Backend integrations read and write DALP files through domain routes that accept X-Api-Key: asset documents under /api/v2/tokens/{assetId}/documents and the KYC document routes. Public branding assets are served unauthenticated from /dalp/*. The /dalp/private/* route serves stored private files to a platform administrator's signed-in Console session only and refuses API keys.

Choose public or private

Public assets require no credentials and carry a one-year immutable cache header. Private files require authentication and forbid caching. Store KYC evidence and confidential documents privately.

Deleting or moving a public asset cannot recall copies already downloaded or cached by intermediaries. Treat any exposed sensitive file as outside DALP control.

Tenancy in object storage

Object storage uses one bucket per deployment. Organisation-scoped files (including public branding) carry the org_{organizationId}/ prefix, such as org_{organizationId}/logos/.... KYC documents (kyc/{participantId}/...) and platform-reserved keys (platform/...) sit outside that prefix, and their serving routes enforce access control.

One storage contract sits in front of S3, GCP Cloud Storage, Azure Blob Storage, S3-compatible stores, and self-hosted filesystem storage, so upload and download flows stay identical across deployments.

Public assets

GET /dalp/* and HEAD /dalp/* serve public branding assets without authentication under an optional org_{organizationId}/ prefix followed by logos/, auth/, backgrounds/, favicons/, or icons/. No other public prefixes exist.

curl "$DALP_API_URL/dalp/org_{organizationId}/logos/light/{id}-icon.svg"

Keys outside those prefixes, paths with . or .. segments, images over 5 MB, files whose bytes do not match their declared image type, and SVGs containing scripts or event handlers return 404 Not Found. DALP deletes invalid objects on first request.

Responses set Cache-Control: public, max-age=31536000, immutable (plus ETag and Last-Modified when available), so avoid storing sensitive or mutable files under public keys.

Private files

GET /dalp/private/* and HEAD /dalp/private/* serve private keys (requiring at least two path segments, such as kyc/{participantId}/...) to platform administrators (admin platform role) only. Signed-in callers without admin receive 403 Forbidden regardless of whether the key exists. All other callers use resource routes:

File
Route
KYC document
Investor statement
GET /api/v2/reporting/statements/{statementId}/download (checks wallet ownership)
Asset document
Asset document routes (checks organisation and visibility)

admin is a platform-wide session role separate from organisation memberships and grants read access to every organisation's private files and KYC documents. Grant it deliberately.

curl "$DALP_API_URL/dalp/private/kyc/user_123/passport.pdf" \
  -H "Cookie: {sessionCookie}"

Private file responses always set Cache-Control: no-cache, no-store, must-revalidate, Pragma: no-cache, and Expires: 0. Never cache them in shared caches or CDNs.

Read a KYC document through its domain route

Do not build /dalp/private/kyc/... URLs in backend integrations. Call the KYC document download endpoint (POST) with X-Api-Key to mint a one-hour scoped link:

{
  "data": {
    "downloadUrl": "/api/v2/kyc-profile-versions/{versionId}/documents/{documentId}/download",
    "fileName": "proof-of-address.pdf",
    "mimeType": "application/pdf",
    "expiresAt": "2027-01-05T15:05:00.000Z"
  },
  "links": { "self": "/api/v2/kyc-profile-versions/{versionId}/documents/{documentId}/downloads" }
}

downloadUrl is always a relative /api/v2/... path requiring your session or API key on fetch. expiresAt bounds the link (one hour), not your credential. Unencrypted pre-3.2 v1 KYC documents are encrypted in place by a background job and served through the same authenticated /api/v2/... path meanwhile. Request a fresh link if one expires.

API keys are refused on private file routes

Sending only X-Api-Key to /dalp/private/* without a session cookie returns 401 Unauthorized (identical to sending no credential). Use the resource-specific domain routes for API-key integrations.

Upload with a presigned URL

Asset and token document uploads use a two-step presigned flow:

  1. Request an upload link. DALP returns a PUT URL, objectKey, headers, and a 15-minute expiresAt.
  2. PUT the raw bytes directly to that URL with every returned header verbatim (such as x-ms-blob-type: BlockBlob on Azure, plus a write-once precondition: If-None-Match: * or x-goog-if-generation-match: 0 on GCP).
  3. Confirm the upload with the returned objectKey so DALP validates and attaches it.

Write-once preconditions prevent overwriting a confirmed object: storage rejects missing headers and second uploads to the same URL. Request a new upload URL for a different file or after expiry.

KYC document uploads

V2 KYC uploads do not use presigned URLs. Send documentType, fileName, fileSize, mimeType, and base64 fileData directly to POST /api/v2/kyc-profile-versions/{versionId}/documents so DALP validates and encrypts the file before writing to storage.

V2 KYC uploads support Idempotency-Key scoped to the organisation, version, calling user, and key for the lifetime of the stored document, with no 24-hour expiry and freed once the document is deleted. Replaying with the same file returns the stored document record. Replaying with a different file, name, size, or media type returns 400 naming Idempotency-Key in data.errors.

The v1 KYC presigned upload still accepts unencrypted uploads to a /upload key on draft versions, validates size (up to 25 MiB) and file bytes at confirm, encrypts the file, and deletes the unencrypted upload object (or deletes unconfirmed uploads after 30 minutes). Prefer v2 so unencrypted KYC files never touch object storage.

How a download is served

Downloads never execute as pages on the DALP origin. Files served through DALP (/dalp/* or filesystem storage) return X-Content-Type-Options: nosniff and Content-Security-Policy: default-src 'none'; sandbox, with Content-Disposition: inline for PDF, JPEG, PNG, WebP, GIF, and AVIF and attachment for all other types (including HTML and SVG).

Signed URLs to S3, GCP, Azure, or S3-compatible stores always return Content-Disposition: attachment. Asset, sale, and governance proposal downloads also set the sanitised stored filename (filename in ASCII and filename* in UTF-8) and declared Content-Type across every backend.

Asset documents

Asset documents (prospectuses, term sheets, holder notices) use the presigned upload flow. See Asset documents and holder notices for the Console screens.

Step
Route
Who can call it
List documents
GET /api/v2/tokens/{assetId}/documents
Caller in the issuing organisation (filtered by visibility).
Request upload link
POST /api/v2/tokens/{assetId}/document-uploads
Wallet with the governance role on the asset.
Confirm upload
POST /api/v2/tokens/{assetId}/documents
Wallet with the governance role on the asset.
Request download link
POST /api/v2/tokens/{assetId}/documents/{documentId}/downloads
Caller in the issuing organisation matching document visibility.
Delete version
DELETE /api/v2/tokens/{assetId}/documents/{documentId}
Wallet with the governance role on the asset.

Upload links expire in 15 minutes and download links in one hour. Standard documents allow up to 50 MiB (52,428,800 bytes) in PDF, JPEG, PNG, WebP, DOCX, XLSX, or CSV. brand_logo documents allow up to 5 MiB (5,242,880 bytes) in PNG, JPEG, or WebP, up to 2048 pixels per side, and are always stored as public. Invalid types or sizes fail upload-link requests with 400 REQUEST_INVALID (DALP-14261).

Confirm requests specify objectKey, filename, size, media type, documentType (valid for the asset type), visibility (public, holders, or restricted), and optional title, description, or replaceGroupId (which must match documentType, otherwise 404 DALP-0322). DALP reads the stored bytes back, deletes mismatched files, records the SHA-256 digest, and emits token.document.published for holders documents.

Visibility scopes reads within the issuing organisation (or system-owning organisation): everyone reads public, asset holders, active primary-offering participants, and asset role holders read holders, and governance or admin role holders read restricted. Higher-visibility, superseded, deleted, and missing documents all return 404 DALP-9486.

Status
Error ID
Code
Meaning
400
DALP-0324
TOKEN_DOCUMENTS_DOCUMENT_TYPE_NOT_VALID_ASSET
Document type is invalid for this asset type.
400
DALP-0327
TOKEN_DOCUMENTS_INVALID_OBJECT_KEY
objectKey does not belong to this asset.
403
DALP-9485
TOKEN_ACCESS_UNAUTHORIZED
Executing wallet lacks the asset governance role (including on delete regardless of existence).
404
DALP-0322
TOKEN_DOCUMENTS_DOCUMENT_GROUP_NOT_FOUND_REPLACEMENT
replaceGroupId matches no document of that documentType on this asset.
404
DALP-0326
TOKEN_DOCUMENTS_FILE_NOT_FOUND_STORAGE_UPLOAD_FAILED
Stored object unreadable. Re-upload on confirm, or retry on download.
404
DALP-9486
TOKEN_DOCUMENTS_READ_DOCUMENT_NOT_FOUND
Document missing, superseded, deleted, or above caller visibility.
404
DALP-0323
TOKEN_DOCUMENTS_DOCUMENT_NOT_FOUND
No live version to delete on this asset.
422
DALP-0321
TOKEN_DOCUMENTS_DECLARED_FILE_SIZE_DOES_NOT_MATCH_ACTUAL_STORAGE
Stored size differs from declared size. DALP deletes the object so you can re-upload.
422
DALP-20532
TOKEN_DOCUMENTS_DECLARED_FILE_TYPE_DOES_NOT_MATCH_CONTENT
Stored bytes do not match declared mimeType. DALP deletes the object so you can re-upload.
422
DALP-12131
TOKEN_BRAND_LOGO_REJECTED
brand_logo size, bytes, or dimensions over 2048 px invalid (object deleted).
503
DALP-9267
TOKEN_WRITE_PERSISTENCE_FAILED
Retryable persistence failure. Retry confirm after recovery.

Status codes

/dalp/* and /dalp/private/* return short plain-text error bodies with no DALP JSON envelope, so branch on HTTP status. Neither path has a per-key rate limit.

Status
Meaning
200
Object exists and caller is permitted to read it.
400
Path could not be parsed into an object key.
401
No signed-in session on the request.
403
Caller lacks platform admin, or key has ., .., or fewer than two segments.
404
Object missing, or public key outside allowed prefixes.
405
Method other than GET or HEAD.
500
Unclassified storage failure (no retry guarantee).
503
Object storage unreachable. Retry once recovered.

Tell a session problem from a scope problem

401 means no valid session cookie was found. 403 means the session is valid, but the user lacks the platform admin role or the key format is invalid (checked before reading storage).

Organisation owners without platform admin still receive 403 on /dalp/private/*, including for their own organisation's keys. Use the KYC, statement, or asset document domain routes instead.

Next steps

Was this page helpful?