API
Saluran pipa (resep)
Satu pekerjaan menghubungkan beberapa langkah tool_id pada file server sementara yang sama. Bidang tool_id dalam permintaan Anda harus cocok dengan langkah alur pertama.
Webhook: buat kunci API (POST /v1/api-keys dengan header admin), konfigurasikan PATCH /v1/api-keys/me/webhook, lalu kirim pekerjaan dengan Otorisasi: Bearer sk_…. Tanda Tangan: Header X-PulsConv-Signature dan X-PulsConv-Timestamp (HMAC-SHA256 dari badan JSON).
Contoh JSON (POST /v1/pekerjaan)
PDF: kompres lalu lindungi
{
"tool_id": "tool_pdf_compress",
"upload_keys": ["uploads/xxx.pdf"],
"options": { "quality": "ebook" },
"pipeline": [
{ "tool_id": "tool_pdf_compress", "options": { "quality": "ebook" } },
{ "tool_id": "tool_pdf_protect", "options": { "password": "secret" } }
]
}Gambar: ubah ukuran lalu optimalkan web
{
"tool_id": "tool_image_resize",
"upload_keys": ["uploads/photo.jpg"],
"options": { "width": 1200, "height": 1200, "mode": "contain" },
"pipeline": [
{ "tool_id": "tool_image_resize", "options": { "width": 1200, "height": 1200, "mode": "contain" } },
{ "tool_id": "tool_image_optimize_web", "options": { "max_width": 1200, "quality": 82 } }
]
}cURL example (POST /api/v1/jobs)
curl -sS -X POST "$API/api/v1/jobs" \
-H "Content-Type: application/json" \
-d '{
"tool_id": "tool_pdf_compress",
"upload_keys": ["uploads/mon.pdf"],
"options": { "quality": "ebook" }
}'n8n — HTTP node
HTTP Request node → Method POST → URL {{$env.PULSCONV_API}}/api/v1/jobs
Body (JSON) : même objet que les exemples ci-dessus.
Réponse : { "id": "...", "status": "queued" }For a webhook delivery log: keep traces on your endpoint (n8n, Zapier, your API); PulsConv can sign callbacks when you configure a secret.
