Export Storage Bucket
API Contract
REST
/api/v1/export-storage
4 endpoints
GET
/api/v1/export-storage/api/v1/export-storage/:org_id
List all stored export files for an org
Public
Request Example
{}
Response Example
{
"data": [
{
"report_id": "rpt_20250101_region07_pdf",
"org_id": "org_482",
"mime_type": "application/pdf",
"size_bytes": 204800,
"created_at": "2026-03-26T10:22:00Z"
},
{
"report_id": "rpt_20240101_region07_csv",
"org_id": "org_482",
"mime_type": "text/csv",
"size_bytes": 4096,
"created_at": "2025-03-15T08:10:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 7
}
}
POST
/api/v1/export-storage/api/v1/export-storage/:org_id
Upload an export file to storage
Public
Request Example
{
"report_id": "rpt_20250101_region07_pdf",
"bytes_base64": "JVBERi0xLjQKJ...",
"mime_type": "application/pdf"
}
Response Example
{
"org_id": "org_482",
"report_id": "rpt_20250101_region07_pdf",
"storage_path": "exports/org_482/rpt_20250101_region07_pdf.pdf",
"size_bytes": 204800,
"uploaded_at": "2026-03-26T10:22:00Z"
}
GET
/api/v1/export-storage/api/v1/export-storage/:org_id/:report_id/signed-url
Get a time-limited signed download URL for an export file
Public
Request Example
{}
Response Example
{
"org_id": "org_482",
"report_id": "rpt_20250101_region07_pdf",
"signed_url": "https://storage.example.no/exports/org_482/rpt_20250101_region07_pdf.pdf?token=tok_signed_xyz&expires=1743010800",
"expires_in": 3600,
"expires_at": "2026-03-26T11:22:00Z"
}
DELETE
/api/v1/export-storage/api/v1/export-storage/:org_id/:report_id
Delete an export file from storage
Public
Request Example
{}
Response Example
{
"org_id": "org_482",
"report_id": "rpt_20250101_region07_pdf",
"deleted": true,
"deleted_at": "2026-03-26T10:40:00Z"
}