複数PDF非同期生成
POST /file/async/multiple エンドポイントは、指定されたデザインと複数のパラメータから複数のPDFファイルを非同期的に生成します。
エンドポイント情報
- URL:
https://api.re-port-flow.com/v1/file/async/multiple - メソッド:
POST - 認証:
appkeyヘッダーが必要 - タイムアウト: なし(非同期処理)
- リクエストサイズ上限: 50MB(Base64エンコード後、実質約37MB相当)
使用例
cURL
curl -X POST https://api.re-port-flow.com/v1/file/async/multiple \
-H "appkey: your-application-key" \
-H "Content-Type: application/json" \
-d '{
"designId": "550e8400-e29b-41d4-a716-446655440000",
"version": 1,
"contents": [
{
"fileName": "invoice_001.pdf",
"shareType": "workspace",
"passcodeEnabled": false,
"params": { "customerName": "山田太郎", "invoiceNumber": "INV-001" }
},
{
"fileName": "invoice_002.pdf",
"shareType": "workspace",
"passcodeEnabled": false,
"params": { "customerName": "佐藤花子", "invoiceNumber": "INV-002" }
}
]
}'
リクエストパラメータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
designId | string (UUID) | ✓ | デザインID |
version | integer | ✓ | バージョン番号 |
contents | array | ✓ | ContentDtoの配列(最小1件) |
contents[].fileName | string | ✓ | ファイル名(/ \\ : * ? " < > | および制御文字以外は使用可能。配列内で一意であること(大文字・小 文字は区別しない)) |
contents[].shareType | string | - | 共有タイプ(workspace / invited / public、デフォルト: workspace) |
contents[].passcodeEnabled | boolean | - | パスコード保護(デフォルト: false) |
contents[].passthrough | object | - | レスポンスの files[].passthrough に透過する任意のメタデータ(例: { "pageId": "abc123" }) |
contents[].params | object | ✓ | パラメータ(デザインパラメータ取得APIで構造を確認可能) |
レスポンス
成功時 (202 Accepted)
{
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"url": "https://api.re-port-flow.com/v1/file/download/{requestId}",
"files": [
{
"fileName": "invoice_001.pdf",
"fileId": "aaa111",
"passthrough": { "pageId": "abc123" },
"share": {
"shareType": "workspace",
"url": "https://app.re-port-flow.com/file/{requestId}/aaa111",
"passcodeEnabled": false
}
},
{
"fileName": "invoice_002.pdf",
"fileId": "bbb222",
"share": {
"shareType": "workspace",
"url": "https://app.re-port-flow.com/file/{requestId}/bbb222",
"passcodeEnabled": false
}
}
]
}
| フィールド | 型 | 説明 |
|---|---|---|
requestId | string (UUID) | リクエストID(ZIPダウンロードエンドポイントで使用) |
url | string (URI) | ZIPダウンロードURL |
files | array | 各PDFファイルの情報 |
files[].fileName | string | PDFファイル名 |
files[].fileId | string | 個別ファイルID(個別ダウンロードエンドポイントで使用) |
files[].passthrough | object | リクエスト時に指定した contents[].passthrough の値(指定時のみ) |
files[].share.shareType | string | 共有タイプ(workspace / invited / public) |
files[].share.url | string | ファイル表示URL |
files[].share.passcodeEnabled | boolean | パスコード有効フラグ |
files[].share.passcode | string | サーバー生成パスコード(passcodeEnabled=true かつ生成直後のみ) |