GetAccept ACTION
Create Document
Create a document to be able to send it to a recipient. See the documentation
- Action
- Writes data
- OAuth
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's GetAccept account once, then configure and run Create Document from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "getaccept-create-document",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
getaccept: { authProvisionId: "apn_xxxxxxx" },
name: "Name",
type: "Type",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "getaccept-create-document",
"configured_props": {
"getaccept": { "authProvisionId": "apn_xxxxxxx" },
"name": "Name",
"type": "Type"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "getaccept",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "getaccept-create-document",
arguments: {
name: "Name",
type: "Type",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
name Name | string | The name of the document. Required |
type Type | string | Document type is used to set default values and look of a document. Optional |
value Value | string | Monetary value of document in entity currency. Optional |
fileIds File Ids | string[] | File Ids to previusly uploaded files, see section "Upload document(s)" here. Optional |
fileName File Name | string | Sending a file, you must to type the filename of the document, with the extension. This will be helpful for converting different file-types. Optional |
fileURL File URL | string | Url to document file. Documents must be public available for download. Optional |
recipients Recipients | string[] | A list of valid JSON of recipients you're sending the document to. Every object must contain first_name, last_name (or fullname) and email fields. The 'role' field is optional. If not set, a person will be assigned the role signer. See the object here. Optional |
isSigning Is Signing | boolean | Should the document be enabled for e-signing. Optional |
isSigningOrder Is Signing Order | boolean | Use specific order for signers. Optional |
isSigningBiometric Is Signing Biometric | boolean | Drawn signature when signing. Optional |
isSigningInitials Is Signing Initials | boolean | Initials are set as default sign method. Optional |
isSelfsign Is Self-sign | boolean | Should the sender also sign the document. Optional |
expirationDate Expiration Date | string | Default value from entity settings but can be overrided by setting a date. Accepted formats: yyyy-MM-dd, dd-MM-yyyy, MM/dd/yyyy, yyyy-MM-ddTHH:mm:ss.SSSZ, Unix timestamp in seconds Optional |
isReminderSending Is Reminder Sending | boolean | Should the system automatically send reminders based on the entity sending settings? Optional |
isSigningForward Is Signing Forward | boolean | Should a recipient be able to forward the signing rights to someone else? Optional |
isIdentifyRecipient Is Identify Recipient | boolean | Enable identification of new recipients by cookie. Optional |
isSMSSending Is SMS Sending | boolean | Should the sending automatically include an SMS message to recipients with valid mobile numbers? Optional |
isAutomaticSending Is Automatic Sending | boolean | Used to send documents immediately. Requires a file-parameter to import and send. true: Send immediately and false: Status draft. Optional |
isScheduledSending Is Scheduled Sending | boolean | If the automatic sending should be scheduled. Optional |
scheduledSendingTime Scheduled Sending Time | string | Date and time when document will be sent if scheduled. Optional |
videoId Video Id | string | Specify a video to be presented before the document is opened. Optional |
templateId Template Id | string | Use this to specify a template to be used for the document. Optional |
replacePages Replace Pages | boolean | True to replace pages in template. Optional |
keepFields Keep Fields | boolean | True to keep form fields in template. Optional |
senderEmail Sender Email | string | Use this to specify the sender user/owner by email to be used for the document. Optional Dynamic |
communicationTemplateId Communication Template Id | string | Use this to specify the communication template to be used for the document. Optional |
emailSendSubject Email Send Subject | string | Use this to specify the subject line used to send out the document. Optional |
emailSendMessage Email Send Message | string | Use this to specify a message to the recipient(s) when sending out the document. Optional |
customFields Custom Fields | object | Enter custom data to be used identifying the field either by name or id. Optional |
attachments Attachments | string[] | A list of attachments to include with the document. Every attachment must contain a type and a title. If the type is file, it must have the Id field, if the type is external, it must have url field. See the object here. Optional |
customPricingTables Custom Pricing Tables | string[] | A list of pricing-table objects. See the object here. Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- getaccept-create-document
- Version
- 0.0.2
- App
- GetAccept
- Authentication
- OAuth
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗