Skip to content

Mint a short-TTL signed download URL for an asset

Requires VIEWER. Returns a 5-minute signed URL under /api/email-assets/download.

projectId
required
string

Tenant project id (row-level isolation on every query).

id
required
string

Resource id.

Signed URL + expiry (ms epoch).

Media typeapplication/json
object
url
string
exp
integer

Not authenticated (no valid session/principal).

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}

Authenticated but lacks the required project role.

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}

Resource not found (or belongs to another project — indistinguishable).

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}

EMAIL_ASSET_SIGNING_KEY not configured.

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}