Server quickstart
Create your first Eazip job from a backend, script, or serverless function.
Use the HTTP API when file selection, source URLs, or authorization should stay on your server. This quickstart creates one job and downloads its ZIP.
Create an API key
Sign up for Eazip,
then open API Keys
and select Create key. Copy the zk_... value before closing the dialog.
Keep secret keys on the server
Never expose a secret API key in browser code or a public repository. For a frontend integration, use the browser quickstart.
Create a job
Send the files that should be included in the ZIP:
curl -X POST https://api.eazip.io/jobs \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"files": [
{
"url": "https://example.com/invoice.pdf",
"filename": "invoice.pdf"
},
{
"url": "https://example.com/photo.jpg"
}
]
}'Eazip returns the new job ID:
{
"success": true,
"job_id": "550e8400-e29b-41d4-a716-446655440000"
}Wait for completion
Poll the job until its status is completed:
curl https://api.eazip.io/jobs/550e8400-e29b-41d4-a716-446655440000 \
-H "X-API-Key: YOUR_API_KEY"The completed response includes the ZIP download:
{
"success": true,
"job": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "completed",
"zips": [
{
"filename": "archive-550e8400.zip",
"download_url": "https://api.eazip.io/download/eyJ..."
}
]
}
}Download the ZIP
Download the returned signed URL. It does not require your API key:
curl -O "https://api.eazip.io/download/eyJ..."Next steps
- Review the complete Jobs API.
- Use webhooks instead of polling.
- Or create jobs from the browser.