Download OpenAPI specification:Download
The Pagination API is an easy way to create a document.
From a structured data file and a specific layout, the API returns a link to download the document (PDF and InDesign format).
The process is asynchronous.
The base URL for all endpoints is: https://api.pagination.com/vpc
If you'd like to get started now, try out our demo project introduction!
That is a nice place also if you'd like to look deeper into the process workflow and the process requisites (e.g. datafile structure).
The method creates a new project from a chosen project_class template and returns the unique project_id that is needed to launch the pagination process.
project_class required | string The layout name for the document. |
project_name required | string The name of the project document. |
email required | string The email of the project's owner. |
customer | string Just a label for the customer; it groups users together (e.g. "Company XYZ"). |
webhook | string Push notifications are sent to this URL (POST messages). |
OK
email=email%40gmail.com&project_class=demo&project_name=netsuite-demo&customer=Company%20XYZ
{- "status": "creation complete",
- "project_id": "netuiste-demo-23",
- "project_class": "demo",
- "project_name": "netsuite-demo",
- "customer": "Company XYZ"
}
This method launches a pagination process to create a new document.
user_id required | string The "user_id" parameter returned in response of the "createProject" endpoint. |
The body is a multipart/form-data request type. The datafile is the binary file.
project_id required | string The id of the project that is returned in the response of the Create project method. |
datafile required | string <binary> The API supports the data file in CSV or XLSX format. See the Data File section to read how to create a new one or download a sample. |
coverTitle | string The title printed on the cover page of the document. |
coverSubtitle | string The subtitle printed on the cover page of the document, underneath the title. |
tocTitle | string The title printed on the Table of contents page. |
companyLogo | string The URL of the company logo to add to the document. The URL must be public. |
coverColor | string The principal color of the document. The process can accept only a hexadecimal color code. |
doOnlyValidation | boolean If |
OK - requst accepted
[ { "companyLogo": "https://hotpink.s3-eu-west-1.amazonaws.com/pro3Images/Pagination.png" }, { "coverColor": "#0067B9" }, { "tocTitle": "Table of contents" }, { "datafile": "<file goes here>", "format": "binary" }, { "coverSubtitle": "Subtitle1" }, { "project_id": "projectName_pro3Test_pro3_id-1" }, { "coverTitle": "Title1" }, { "doOnlyValidation": false } ]
{- "fileName": "mainDataFile_test.csv",
- "message": "Pagination started!",
- "reqId": "07215d06-11ed-4cb4-b992-5b5ccac6bfe4"
}
Delete a project based on project id. Also, update user information contextually.
project_id required | string The id of the project that is returned from the response of the Create project method. |
user_id required | string |
webhook | string The URL to receive the notifications. |
OK
{- "webhook": "string"
}
{- "message": "Deletion complete."
}
Modify the editable properties of a project.
project_id required | string The id of the project that is returned from the response of the Create project method. |
webhook | string The URL to receive the notifications. |
OK
{- "message": "Update complete for project_id myCompany_myProject_demo_id-1."
}
project_id | any the id of the project you'd like to get the status of. |
reqId | string The id of the request that is returned by the Launch pagination api. |
user_id required | string the user_id of the user attached to the project (e.g. the owner). |
OK
[- {
- "status": "string",
- "origin": "string",
- "reqId": "string",
- "paginationDate": "string",
- "signedUrl": "string",
- "expireDate": "string",
- "project_id": "string",
- "remainingEstimated": 100000.555,
- "progress": 100
}
]
Stop an ongoing process by its request Id (reqId).
reqId required | string The reqId is returned from the response of the Launch project method. |
project_id required | string The id of the project that is returned from the response of the Create project method. |
OK
{- "message": "Process stopped."
}
Retrieve user info from our database.
Check current subscription, attached projects and default user email.
user_id required | string the user_id of the user attached to the project (e.g. the owner). |
userinfo_id required | string The user_id of the user to retrieve the information. |
OK
{- "user_id": "pagination-pagination-default",
- "subscription_id": "BASIC",
- "attached_projects": [
- {
- "project_class": "demo",
- "project_id": "MyCompany_MyProject_demo_id-1"
}
]
}
Modify editable user information.
user_id required | string the user_id of the user attached to the project (e.g. the owner). |
userinfo_id required | string The user_id of the user to retrieve the information. |
project_ids | array The list of project_ids to attach to a user. |
OK
{- "message": "Update complete for user myCompany_myProject_demo_id-1."
}