feat(docusign): add DocuSign e-signature integration#3661
feat(docusign): add DocuSign e-signature integration#3661waleedlatif1 merged 5 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Introduces a new internal endpoint Wires DocuSign into OAuth configuration (new env vars, provider/service registration, scopes, token endpoint settings), adds Written by Cursor Bugbot for commit b0fe286. Configure here. |
Greptile SummaryThis PR adds a full DocuSign e-signature integration with 8 tools (send envelope, create from template, get/list/void envelope, download document, list templates, list recipients), an internal API route that resolves per-account base URIs, OAuth provider registration in BetterAuth, and documentation. Key findings:
Confidence Score: 2/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Agent as Sim Agent
participant Tool as Tool Layer
participant Route as /api/tools/docusign
participant UserInfo as DocuSign /oauth/userinfo
participant API as DocuSign REST API
Agent->>Tool: invoke docusign_<operation>
Tool->>Route: POST { accessToken, operation, ...params }
Route->>UserInfo: GET /oauth/userinfo (Bearer token)
UserInfo-->>Route: { accounts: [{ account_id, base_uri }] }
Route->>Route: build apiBase from base_uri + account_id
alt operation = send_envelope
Route->>Route: parse file → base64
Route->>API: POST /envelopes (with document + recipient tabs)
else operation = create_from_template
Route->>API: POST /envelopes (templateId + templateRoles)
else operation = get/list/void/download/list_templates/list_recipients
Route->>API: GET or PUT on /envelopes endpoint
end
API-->>Route: response JSON / binary
Route-->>Tool: NextResponse.json(data)
Tool-->>Agent: transformed output
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
|
@greptile |
3e315ea to
2e1e6a5
Compare
|
@greptile |
Addressing latest review feedbackP0 — Non-deterministic user ID ( P1 — Empty P2 — @greptile |
…cs generation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Summary
Type of Change
Testing
Tested manually
Checklist