Upload document
Endpoint
post
https://app.paksign.pk/api/documents/upload
Overview
Uploading a document and preparing for sending is very simple.
You make a POST request with multipart/form-data to the endpoint above with your file and workspaceId and get Asset[] in response. The returned data will be important for the send document flow.
Limits
- Allowed types PDF
- Max size 10MB
Request
| Field | Description | Type | Required |
|---|---|---|---|
file | Your document | File | Yes |
workspaceId | Your workspace id | string | Yes |
Response
| Field | Description | Type |
|---|---|---|
files | Array of Asset, one for every page of your document | Asset[] |
slug | Unique slug for your document | string |
source | Source asset key | string |
Example
This example is written in TypeScript and assumes you're using axios.