REST API · v1
API Documentation
Integrate iLoveToolkit's PDF, image, and Word processing into your own apps. All endpoints return JSON and accept multipart/form-data.
POST/pdf/split
Split PDF
Split a PDF into multiple files by page ranges.
Request body
ParameterTypeRequiredDescription
filefileYesThe PDF file to split.
rangesstringYesComma-separated page ranges, e.g. `1-3,4-6,7`.
Request
Language
bash
curl -X POST https://api.ilovetoolkit.com/v1/pdf/split \ -H "Authorization: Bearer <token>" \ -F "file=@document.pdf" \ -F "ranges=1-5,6-10"
Response
json
{
"job_id": "job_03l7zmr5d1",
"status": "completed",
"output": [
{
"url": "https://cdn.ilovetoolkit.com/output/job_03l7zmr5d1_1.pdf",
"filename": "document_pages_1-5.pdf",
"page_count": 5
},
{
"url": "https://cdn.ilovetoolkit.com/output/job_03l7zmr5d1_2.pdf",
"filename": "document_pages_6-10.pdf",
"page_count": 5
}
],
"expires_at": "2026-08-10T10:32:00Z"
}Ready to build?
Get your API key and start integrating in minutes.