Integration API
Create file requests from your systems. Connect submissions to NetSuite records.
Your integration names the DocLayer installation and the target NetSuite record, creates a secure collection request for an external recipient, then queries the request’s submission and file processing states.
- Scoped credentials for background systems
- Bound to one saved record
- Idempotent retries
How a request flows
Your system
Calls the API with a scoped credential
A background job names the installation, record type and record ID.
DocLayer
Collection request
Bound to the exact record and creating credential. The secure link is returned once.
External recipient
Submission
Files upload directly to private storage, then are verified and malware-scanned.
NetSuite
Target record
Files reported as AVAILABLE can be used in the record workspace.
API example
One call creates a record-bound collection request.
The request names its target record, the recipient and what to collect. This is the complete example from the Quick Start, with placeholders in place of real IDs and credentials.
Target record
- installationId
- The installation’s UUID, from the authenticated Setup Center.
- recordType
- An enabled record type, such as PURCHASE_ORDER. Registered custom record types work too.
- recordId
- The internal ID of a saved record.
Recipient and request
- recipientEmail
- Receives the invitation automatically.
- title
- The request’s title.
The payload also sets the message, requested document categories, expiry and upload limits. The API reference defines every field.
{ "target": { "installationId": "<installation UUID>", "recordType": "PURCHASE_ORDER", "recordId": "<saved record internal ID>" }, "title": "Please submit supporting documents", "message": "Submit the requested documents using this secure link.", "recipientEmail": "recipient@example.com", "requestedCategoryIds": [ "<category UUID>" ], "expiresAt": "<future ISO 8601 UTC timestamp>", "maximumFiles": 10, "maximumBytes": 104857600, "requireEmailOtp": true, "uploadOnly": true, "allowViewOwnUploads": true}
Save as request.json and replace each <placeholder>. Keep the same payload and idempotency key when retrying.
The response returnsView complete example
The link is returned once. Request creation and invitation delivery are reported separately, so check invitationStatus as well as the HTTP status.
How it works
Three steps from credential to collected files.
Step 1: Create a scoped credential
An installation administrator signs in and opens Developer / API to create a credential limited by installation, operation scopes, record types and, optionally, record IDs.
Step 2: Create a collection request
Specify a saved, enabled target record, the recipient and the document requirements. The recipient receives an invitation with a private link.
Step 3: Check submissions
Query the request and its file processing states. Files become available only after verification and malware scanning.
Available capabilities
What the Integration API does today.
Every call is scoped to the exact target record and the credential that created the request.
Create collection requests
Bind a request to one installation and one saved record.
POST /v1/integrations/upload-requests
List and read requests
List with the same target parameters and page with limit and nextCursor.
GET /v1/integrations/upload-requests/{id}
Query processing states
The files array reports each file’s processing state. AVAILABLE means ready to use.
files[] · AVAILABLE
Revoke requests
Stop guest submissions to a request. Accepted documents and audit history are kept.
DELETE /v1/integrations/upload-requests/{id}
Regenerate request links
Issue a new link when the original response was lost. The old link stops working.
POST /v1/integrations/upload-requests/{id}/link
Retry safely
Resend with the same Idempotency-Key and unchanged payload to get the original request back.
Idempotency-Key header
Scope of this API. It covers collection requests only. It doesn’t include webhooks, SDKs, bulk imports, a direct file-upload endpoint, or record field and line attachment. Poll the request to follow submissions. Other DocLayer features are used in the product, not through this API.
Access controls and reliability
Built for background systems, checked on every call.
An administrator delegates narrow access to one integration. DocLayer still checks the record and policy each time a request is created.
Server-side credentials
API credentials are for background systems. Keep them in a server-side secret manager, never in a browser or app.
Restricted and revocable
Limit each credential’s operations, record types and record IDs, and revoke it at any time.
Separate installations
Production, Sandbox and Release Preview are separate installations. Use a credential for each.
Authorized target records
The record must exist, be saved with an enabled type, and pass authorization checks.
Private, scanned files
Files upload to private storage and become available after verification and malware scanning.
Separate delivery status
Request creation and invitation delivery report separate statuses, so a failed email never hides a created request.
Documentation
Start with the docs.
The API reference is the source for complete endpoint definitions and parameters.
API reference
/docs/apiEndpoints, parameters, responses and error codes.
Open API referenceQuick start
/docs/quickstartCreate a credential, send your first request and query its submissions.
Open quick start Sign in requiredManage credentials
Developer / APICreate, scope and revoke API credentials for an installation.
Sign in to manageMachine-readable spec: OpenAPI JSON
Related feature
Prefer to create requests from NetSuite?
Business users can create collection requests manually from the record workspace, with no integration required.
How does an integration authenticate?
With a Bearer API key in the Authorization header. An installation Administrator creates it in Developer / API and selects its operation scopes, enabled record types and optional record IDs. The key is shown once: store it in your server’s secret manager, and use a separate credential for each installation and integration.
Are Production, Sandbox and Release Preview isolated?
Yes. Each is a separate installation with its own installation ID. Create credentials in each one you integrate with.
How is the target record authorized?
Every request names installationId, recordType and recordId. The record must already be saved and its type enabled. DocLayer checks the credential’s scopes, the current local role policy, and verifies the record through the trusted NetSuite callback. A 403 means one of these checks failed.
How do I retry safely?
Send an Idempotency-Key with each create. After a transport failure or a 5xx, retry with the same key and unchanged payload. A replay returns the original request ID with the link set to null. A 409 IDEMPOTENCY_KEY_REUSED means the payload changed, and a 429 means wait for Retry-After. If you lost the original link, regenerate it.
How do I know when files are ready?
Read the request with its target parameters. The files array reports each file’s processing state, and AVAILABLE means the file can be used in the record workspace. Files only become available after verification and malware scanning. There are no webhooks, so poll the request.
What if the invitation email isn’t delivered?
Invitation status is reported separately from request creation. FAILED means the request exists and its returned link can still be shared with the specified recipient. Regenerated links aren’t emailed automatically.
What happens when I revoke a credential?
It stops future integration calls. Requests it created stay open until you revoke them separately, which stops guest submissions.
Connect your workflow to record-bound file collection.
Read the docs, then have an installation administrator create a scoped credential.