DocuSign eSignature v2.1
https://demo.docusign.net (demo) or https://<base_uri> from /oauth/userinfo (prod)Sends the offer letter for e-signature and tracks completion.
- Auth
- JWT Grant (RS256). Build a JWT signed with your RSA private key, exchange it at /oauth/token for a 1-hour access_token, then send Authorization: Bearer <token> on every call. Cache the token until ~5 minutes before it expires.
- Rate limits + retry
- 3,000 calls/hour/account; burst 500/30s. Retry on 429, 500, 502, 503, 504 with exponential backoff. Do NOT retry 400, 401, 403, 404.
- Webhooks
- DocuSign Connect — attach an `eventNotification` block to the envelope when creating it. Subscribe to envelope-completed, envelope-declined, envelope-voided. Strongly preferred over polling in production.
Calls the agent makes
Send the offer letter
POST /restapi/v2.1/accounts/{accountId}/envelopes
Request
{ "emailSubject": "Please sign your offer letter", "documents": [{ "documentBase64": "JVBERi0xLjQK...", "name": "OfferLetter.pdf", "fileExtension": "pdf", "documentId": "1" }], "recipients": { "signers": [{ "email": "jane.doe@example.com", "name": "Jane Doe", "recipientId": "1", "tabs": { "signHereTabs": [{ "anchorString": "/sig1/", "anchorUnits": "pixels" }] } }] }, "status": "sent" }Response
{ "envelopeId": "44c846ef-9d10-4c2d-b9e8-...", "status": "sent", "statusDateTime": "2026-04-18T14:03:11Z" }How the agent uses it: Agent persists the envelopeId so it can poll status. The 'sent' status means DocuSign emailed the candidate — no further action until polling shows progress.
Poll envelope status
GET /restapi/v2.1/accounts/{accountId}/envelopes/{envelopeId}
Request
(no body)
Response
{ "envelopeId": "44c846ef-...", "status": "completed", "sentDateTime": "2026-04-18T14:03:11Z", "completedDateTime": "2026-04-18T14:21:02Z" }How the agent uses it: Agent reads `status`. "sent" or "delivered" → poll again. "completed" → candidate signed; advance to background check. "declined" or "voided" → escalate to a human (hard stop).