Part 3: Send agreement with a form and merge data
In part 3, dynamically create agreements.
View details on how to dynamically create agreements
First, you need to establish access. With Acrobat Sign, there are two ways to connect via API. OAuth Tokens & Integration Keys. Unless you have a very specific reason to use OAuth with your application, you should explore Integration Keys first.
-
Select Integration Key on the API Information menu under the Account tab in Acrobat Sign.
Now that you have access and can interact with the API, see what you can do with the API.
-
Navigate to the Acrobat Sign REST API Version 6 Methods.
-
Use the token as a “bearer” value.
To send your first agreement it’s best to understand how to use the API.
- Create a Transient Doc and send it.
After sending an agreement for the first time, you’re ready to add the logic. It’s always a good idea to establish some helpers to minimize repetition. Here are some examples:
Validation
Headers/Auth
Base URI
Be aware of where Transient docs land within the grand scheme of the Sign ecosystem.
Transient -> Agreement
Transient -> Template -> Agreement
Transient -> Widget -> Agreement
This example uses a template as our document source. This is usually the best route, unless you have a solid reason to dynamically generate documents for signature (e.g., legacy code or document generation).
The code is fairly straightforward; it uses a library document (template) for the document source. The first and second signers are dynamically assigned. The IN_PROCESS
state means that the document is being sent immediately. Also, mergeFieldInfo
is leveraged to dynamically fill fields.
Part 4: Embed signing experience, redirects, and more
In many scenarios, you may want to allow the triggering participant to immediately sign an agreement. This is useful for customer-facing applications and kiosks.
View details on how to embed the signing experience
If you don’t want the first sending email to trigger, an easy way is to manage the behavior is with a modification to the API call.
Here’s how to control the post-signing redirect:
After updating the agreement creation process, the final step is generating the signing URL. This call is also pretty straightforward and generates a URL that a signer may use to access their part of the signing process.
When everything is put together, the solution is pretty straightforward. You’re making an agreement and then generating a signing URL for the signer to click on and begin the signing ritual.
Additional topics
-
Webhook Events
-
Custom Reminders
-
With the initial creation
-
Or add one in-flight
-