Before you begin, create a free Docusign developer account.
Optional: ✨Install the Docusign Developer AI Assistant for VS Code (Beta) to get AI-powered answers to your questions along the way. You can use the assistant to ask Docusign-related questions, create integration keys, and generate code.
For your first task, you'll need to build a Maestro Workflow in the Docusign UI.
Follow the steps below to build your workflow:
- In your developer account, select the Agreements tab. Then navigate to Maestro Workflows in the left menu.
 - Select Create Workflow.
 - Use the New Canvas option to create a workflow from scratch, or try one of the other options to create a workflow from a template.
 - Select a start method for your workflow. Choose From an API call if you plan to complete Lab 2.
 - Build out your workflow with the agreement process steps that fit your desired use case. Your workflow can be as simple or complex as you like. Feel free to get creative!
- Upload the SampleESignTemplate.json file from this repo to your account to create a new eSignature template that you can use in your workflow.
 - Upload the SampleWebFormConfig.json file from this repo to your account to create a new web form that you can use in your workflow.
 
 - Review and publish your workflow.
 
Try using a workflow template to get some inspiration and speed up the workflow configuration process.
Once your workflow has been published, you’re ready to test it out. Navigate to Maestro Workflows under the Agreements tab where you began the lab. Select the three-dot menu for your published workflow and choose Run Workflow. Complete the workflow steps and show your work to the lab staff or proceed to lab 2!
After publishing your workflow, use the Maestro API to trigger it.
The skeleton code in this repo gives you a place to start using a Bash shell script and curl to make the API calls. To run this code, you will need to be able to run a bash script, and use either PHP or Python for authentication.
Prefer to work in another environment or programming language? Feel free to write your own code, or use Postman, to call the Maestro API and trigger a workflow.
Check out this how-to guide to understand the API calls needed to trigger a workflow.
To run the example program, follow the steps below:
- Clone this GitHub repository.
 - Log into your developer account and create a new integration key (IK) on the Apps and Keys page.
 - Configure your IK and config file by following the steps below:
- Copy the settings.example.txt file into a new file named 
settings.txt. - Update the value of 
INTEGRATION_KEYwith the value of your new integration key, with double quotes around the key. - Update the value of 
SECRET_KEYwith the value of the secret key in your IK. - Copy your API Account ID from the apps and keys page and paste it into the value of 
TARGET_ACCOUNT_ID. - Add the following redirect URI to your IK: 
http://localhost:8080/authorization-code/callback. 
 - Copy the settings.example.txt file into a new file named 
 - Copy the ID of your workflow into the variable in the 
TriggerWorkflow.shfile on line 26. - Look for the 
TODOcomments in theTriggerWorkflow.shfile indicating which API calls need to be filled in. Check the Maestro API reference to determine which API calls you need. Getting stuck? Ask the Docusign Developer AI Assistant or check the hint above. - Navigate to the cloned repo and run the program with the following command: 
bash launcher.sh. 
If you used our skeleton code: If your program is running correctly, a browser window should open with your workflow embedded in it. The API responses should print in the terminal, including a response with an instance_url property. Go to that URL to see the workflow instance in a new browser tab.
Show this browser to the lab staff!
If you chose another method: If you chose not to use the example code and made the API calls through another method, you should have received a response including the instance_url property. Go to that URL to see the workflow instance in a new browser tab.
Show your API response to the lab staff!