Get asset

Serve an asset from R2 storage with proper headers. Public assets served immediately; private assets require signed URL.

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

orgIdstringRequired
assetIdstringRequired

Query parameters

sigstringOptional

HMAC-SHA256 signature for private assets

expstringOptional
Expiration timestamp for signed URL

Response

Asset content. The Content-Type reflects the stored asset (e.g. image/png, image/jpeg), defaulting to application/octet-stream.

Errors

403
Forbidden Error
404
Not Found Error
500
Internal Server Error
503
Service Unavailable Error