Merge PDF
Upload two PDFs and download them as one file, in that order. Free merge PDF on devices you connect.
API संदर्भ
REST से सबमिट करें
अपने टूल से इस वर्कलोड के लिए जॉब बनाने हेतु अपनी व्यक्तिगत API कुंजी (msk_…) का उपयोग करें। इस तरह शुरू किए गए जॉब उन्हीं डिवाइस पर चलते हैं जिन्हें आपने आपके डिवाइस पर कनेक्ट किया है — कम से कम एक का ऑनलाइन होना ज़रूरी है।
https://cp.meshlabs.cloud/v1/organizations/jobsX-Organization-Api-Key: msk_your_personal_api_key से प्रमाणित करें। हेडर का नाम ऑर्ग कुंजियों जैसा ही है; व्यक्तिगत कुंजियाँ उसी एंडपॉइंट का उपयोग करती हैं।
POST https://cp.meshlabs.cloud/v1/organizations/job-inputs/presign को कॉल करें, लौटाए गए upload_url पर अपनी फ़ाइल अपलोड करें, फिर download_url को job_spec में पास करें (उदाहरण के लिए input_image_url के रूप में)।अनुरोध बॉडी
{
"workload_type": "merge-pdf",
"job_spec": {
"input_pdf_url": "https://…/your-input.png",
"second_pdf_url": "https://…/your-input.png"
}
}job_spec फ़ील्ड
| फ़ील्ड | आवश्यक | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
input_pdf_url | हाँ | — | The PDF whose pages come first. Up to 20 MB. |
second_pdf_url | हाँ | — | The PDF whose pages come after the first. Up to 20 MB. |
cURL
curl -X POST https://cp.meshlabs.cloud/v1/organizations/jobs \
-H "X-Organization-Api-Key: msk_your_personal_api_key" \
-H "Content-Type: application/json" \
-d '{
"workload_type": "merge-pdf",
"job_spec": {
"input_pdf_url": "https://…/your-input.png",
"second_pdf_url": "https://…/your-input.png"
}
}'https://cp.meshlabs.cloud/v1/organizations/jobs/{job_id}उसी API कुंजी से तब तक पोल करें जब तक status अंतिम स्थिति (COMPLETED, FAILED, CANCELED या MODERATION_BLOCKED) में न पहुँच जाए। जब सामग्री मॉडरेशन सक्षम होता है, तो कंप्यूट कतार में जाने से पहले जॉब MODERATION_PENDING में शुरू हो सकते हैं। पूरे हुए जॉब में हर आउटपुट पर presigned download_url मान होते हैं।
Create प्रतिक्रिया
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"workload_type": "merge-pdf",
"status": "PENDING",
"job_spec_json": {
"input_pdf_url": "https://…/your-input.png",
"second_pdf_url": "https://…/your-input.png"
},
"work_units": [],
"outputs": [],
"created_at": "2026-06-08T12:00:00Z",
"updated_at": "2026-06-08T12:00:00Z"
}Completed प्रतिक्रिया
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"workload_type": "merge-pdf",
"status": "COMPLETED",
"job_spec_json": {
"input_pdf_url": "https://…/your-input.png",
"second_pdf_url": "https://…/your-input.png"
},
"work_units": [
{
"id": "…",
"index": 0,
"status": "COMPLETED"
}
],
"outputs": [
{
"id": "…",
"output_type": "<output type>",
"filename": "<output filename>",
"size_bytes": 524288,
"download_url": "<presigned output download URL>"
}
],
"created_at": "2026-06-08T12:00:00Z",
"updated_at": "<completion timestamp>"
}Merge PDF joins two PDFs into one file, in the order you give them. Each file can be up to 20 MB, and the two together can have up to 30 pages. An encrypted PDF is refused. The work runs on a device you connect.