Authorization
Base URLFor on-premise instances
For on-premise instances
.authenticate with the Paragon SDK. See examples in Installing the SDK.
Pagination
Many list and search actions in ActionKit accept apaginationParameters object as part of the request parameters. When the result set exceeds a single page, the response includes a pageCursor (or equivalent token) that you pass in the next request to retrieve the following page.
A typical pagination flow looks like this:
- Call an action without any pagination parameters to get the first page.
- Check the response for a pagination cursor or token (e.g.
nextPageCursor). - If a cursor is present, call the action again with the cursor in
paginationParameters. - Repeat until no cursor is returned.
Example: Paginating Asana projects
| Parameter type | Description | Fields | Example integrations |
|---|---|---|---|
| Cursor-based | Receive nextPageCursor or nextPageToken and pass that field to paginationParameters in the next call. | pageCursor or pageToken | Asana, Confluence, Slack |
| Offset-based | Count the number of records received in a page and add it to a running offset parameter passed to paginationParameters in the next call. | offset or skip | Mailchimp, Sage Intacct, Zoho CRM |
| Page number | For each page, add 1 to a running pageOffset parameter passed to paginationParameters in the next call. | page, pageNo, pageNumber, or pageOffset | Dropbox Sign, ServiceNow, Xero |
paginationParameters in their input schema.
File Uploads
Actions that accept afile input to upload a file to an integration (for example, Google Drive: Save File and Box: Save File) will need to be encoded as part of the JSON payload provided when the Action is run.
- Hex-encode the file With the file contents you want to upload, hex-encode of the bytes file that you intend to upload.
-
Construct a File object
A File object is a JSON object that represents a File to upload. You must provide three standard fields:
File object
Examples
Here are some end-to-end examples of uploading a file with ActionKit in a few different client languages:Limitations
ActionKit limits incoming request body payloads to 10 MB. Because of the required hex encoding, uploaded files are effectively limited to 5 MB. For larger file sizes, use the Proxy API to upload to the integration directly.Using Multi-Account Authorization
Multi-Account Authorization is a set of SDK options that enables you to connect multiple accounts of the same integration type for a Connected User. You can use Multi-Account Authorization with ActionKit by specifying a credential with a header ofX-Paragon-Credential.
REST API