REST
The Paksign REST API has three endpoints;
Upload document
post
https://app.paksign.pk/api/documents/upload
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 |
Learn more about this endpoint on the upload document flow.
Send document
post
https://app.paksign.pk/api/documents/send
| Field | Description | Type | Required |
|---|---|---|---|
workspaceId | Your workspace id | number | Yes |
title | Document title | string | Yes |
slug | Document slug from upload | string | Yes |
source | Document source key from upload | string | Yes |
files | Document assets from upload | Asset[] | Yes |
signers | Document signers | Signer[] | Yes |
elements | Signer elements | Element[] | Yes |
meta | Document metadata | object | No |
Response
| Field | Description | Type |
|---|---|---|
document | Document object | Document |
Learn more about this endpoint on the send document flow.
Download document
This endpoint is used by signers (not Paksign users) to download documents after they've signed them. Workspace members can download documents from your dashboard.
get
https://app.paksign.pk/api/documents/download
Request
| Field | Description | Type | Required |
|---|---|---|---|
code | Token code | string | Yes |