Skip to main content
POST
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

POST /catalog/export Description: Resolves template from the registry, validates options against that template’s own schema, and either:
  • streams the rendered file directly (row estimate ≤ 5000, the common case for most tenants) with a Content-Disposition attachment header, or
  • creates a Download record and queues an async render job, responding 202 with a downloadId to poll via the existing GET /download/{id}/status endpoint (row estimate > 5000).
Catalog exports share the Download model with royalty/accounting reports (type: report, tagged metadata.exportKind: catalog), so they also appear in GET /download/list. Authorization:
  • Required role: admin or higher
Method: POST

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
template
string
required

Registered export template id (see GET /catalog/export/templates)

Example:

"assets"

options
object

Per-template options — unknown/irrelevant keys are ignored by the resolved template's own options schema.

Response

Rendered file streamed synchronously (row estimate at or below the sync threshold)

The response is of type file.