Overview
Quickstart
Send your first document for signature with SignatureAPI: create a test envelope with curl, sign it as the recipient, and download the signed PDF.
Introduction
In this quickstart, we’ll walk you through sending a sample service agreement to Jane Doe (at jane.doe@example.com) for her signature.
Get your API key
To get started, sign up for a free test API key. This test API key allows you to create test envelopes without any legal effect and at no cost.
Copy your test API key (it starts with key_test_) and store it in an environment variable named SIGNATUREAPI_KEY in your terminal, so the commands below can read it.
Create your first envelope
An envelope is a container that holds the documents you need to send for signing. Each envelope can include one or more documents and can be sent to one or multiple signers.
In this quickstart, we will create an envelope with one document, one recipient, and a single signing place. We’ll use curl and the command line for this example. Paste this command into your terminal:
curl -X POST https://api.signatureapi.com/v1/envelopes \
-H "X-API-Key: $SIGNATUREAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Service Agreement",
"message": "Please review and sign the Service Agreement.",
"documents": [
{
"url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/service-agreement.pdf",
"format": "pdf",
"places": [
{
"key": "client_signature",
"type": "signature",
"recipient_key": "client"
}
],
"fixed_positions": [
{
"place_key": "client_signature",
"page": 1,
"top": 270,
"left": 72
}
]
}
],
"recipients": [
{
"key": "client",
"type": "signer",
"name": "Jane Doe",
"email": "jane.doe@example.com"
}
]
}'Explain the request
Explain the request
This request creates an envelope titled Service Agreement with a message that is included in the emails sent to the recipient.
The envelope has one recipient, identified by the key client. This recipient is a signer named Jane Doe, with the email jane.doe@example.com.
The envelope contains one document, a sample PDF hosted at https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/service-agreement.pdf.
The document includes a place for the recipient client to sign. The place is of type signature, and fixed_positions puts it on page 1, with its bottom-left corner 270 points from the top and 72 points from the left edge.
Once you’ve sent the request, you should see a 201 Created response like this one. Copy the envelope id from it: you need it later.
The envelope starts in processing and moves to in_progress once SignatureAPI has prepared the document and sent the signing request.
Check the sent email
Although test API keys don’t send real emails, you can view the email that would be sent in the Dashboard.
- Log in to your Dashboard.
- Navigate to the Envelopes list and select your newly created envelope.
In the envelope details, scroll down to the Emails section and click on the email sent to Jane Doe.
You’ll be able to preview the email and see how it would appear if it were sent to the recipient. In test mode, however, emails are not actually sent to recipients.
Click the View and Sign button in the email preview to go to the signing ceremony as Jane.
Sign the envelope as Jane
Now, you’ll step into Jane Doe’s shoes as the signer. Go through the signing ceremony and sign the document as Jane would.
Check the envelope in the API
Once Jane has signed the document, check the status of the envelope and its recipient. Replace ENVELOPE_ID with the envelope id from the first response:
curl https://api.signatureapi.com/v1/envelopes/ENVELOPE_ID \
-H "X-API-Key: $SIGNATUREAPI_KEY"The response is the same envelope, now completed:
Here’s what to check:
- Recipient Status: Inside the
recipientsarray, the status should be marked ascompleted. This confirms Jane signed the document. - Envelope Status: The envelope (root) object’s status should also be set to
completed, meaning the envelope process is finished as all the recipients signed the envelope. - Deliverable Status: The deliverable object may initially show a
processingstatus, which indicates SignatureAPI is still generating the final signed document. This can take up to two minutes. You can repeat the GET request to check when it’s ready.
Once it’s ready, the deliverable status changes to generated, and its url is a download link for the signed PDF:
Check the envelope in the Dashboard
The deliverable is also sent to the recipients. In this case, Jane. To view the email Jane received with the completed document, follow these steps:
- Go to the envelope page in your Dashboard.
- Verify that the envelope is marked as completed.
- In the Emails section, you’ll see all the emails related to this envelope. Look for the one sent to Jane titled “Completed: Service Agreement”.
You’ll also notice that two additional notifications were sent to the account owner. These notify you that Jane signed the envelope and that the envelope process is fully completed.
From the envelope page, you can download the signed document (the deliverable) by clicking the Download button.
What’s Next
You’ve just scratched the surface of what SignatureAPI can do. Here are a few features to explore next:
- Add multiple documents and recipients to a single envelope for more complex workflows.
- Customize envelope branding with your company logo, colors, and email customizations for a professional experience.
- Embed the signing interface directly into your web or mobile application, so users sign without leaving it.
- Generate documents from templates with customizable fields and conditional logic for dynamic document creation.
- Upload documents and templates to SignatureAPI, so you don’t have to host them yourself.
- Add signatures, dates, or text fields to documents using either placeholders or fixed positions for precise placement.
- Use webhooks to receive real-time notifications in your application when events happen.
- Customize the language of recipient interfaces and emails to match your audience.
- Adjust the timestamp formats and time zones to suit your location and preferences.