> You are reading the Docusign Developer Documentation. For clean Markdown of any page, append .md to the page URL.
>
> Documentation indexes by section:
> - APIs and SDKs: https://docusign.docs.buildwithfern.com/docs/llms.txt
> - Platform 101: https://docusign.docs.buildwithfern.com/platform/llms.txt
> - Extension Apps: https://docusign.docs.buildwithfern.com/extension-apps/llms.txt
> - Docusign CLI: https://docusign.docs.buildwithfern.com/docusign-cli/llms.txt
>
> Authentication (OAuth, JWT Grant, M2M): https://docusign.docs.buildwithfern.com/platform/auth
> Webhooks and Connect: https://docusign.docs.buildwithfern.com/platform/webhooks
>
> OpenAPI specifications: https://docusign.docs.buildwithfern.com/openapi.json
> MCP server: https://docusign.docs.buildwithfern.com/_mcp/server

# Comparing Apex Toolkit classes with Docusign APIs

## Comparing Apex Toolkit classes with Docusign APIs

The Apex Toolkit allows you to integrate Docusign into your Salesforce apps and processes with a set of Apex objects and methods that provide Docusign functionality. The Apex Toolkit is similar to an SDK in that it allows you to make calls to the Docusign eSignature REST API, but it is important to understand that the Toolkit does not function exactly like an SDK.There are a few specific differences that make the Apex Toolkit unique.

First, while the Apex Toolkit does act as a wrapper around the eSignature REST API, it does not have all of the same functionality. The functionality of the Apex Toolkit is limited to that of the eight classes it provides: [AccountService](/docs/salesforce/apex-toolkit-reference/accountservice.html), [BulkSendService](/docs/salesforce/apex-toolkit-reference/bulksendservice.html), [DocumentService](/docs/salesforce/apex-toolkit-reference/documentservice.html), [EnvelopeService](/docs/salesforce/apex-toolkit-reference/envelopeservice.html), [RecipientService](/docs/salesforce/apex-toolkit-reference/recipientservice.html), [SigningService](/docs/salesforce/apex-toolkit-reference/signingservice.html), [StatusService](/docs/salesforce/apex-toolkit-reference/statusservice.html), and [TemplateService](/docs/salesforce/apex-toolkit-reference/templateservice.html). See the [Apex Toolkit reference documentation](/docs/salesforce/apex-toolkit-reference/index.html) for details on the methods within each class provided by the Apex Toolkit.

The most important difference between the Apex Toolkit and an SDK is that not all of the Apex Toolkit’s methods make API calls. Unlike the SDKs for other languages that utilize the eSignature API in all of their methods, the Apex Toolkit confines some of its actions within Salesforce. While some of the Apex Toolkit methods make calls to the Docusign eSignature REST API, other methods perform data manipulation language (DML) operations that are confined within Salesforce. This is because the Docusign eSignature for Salesforce package provides functionality that can be completed within Salesforce. The Apex Toolkit only makes API calls when necessary, instead performing operations within Salesforce when possible.

For example, if you wanted to create an envelope using the eSignature REST API, you would use the [Envelopes: create](/docs/esign-rest-api/reference/envelopes/envelopes/create) method. With an SDK, there might be an Envelope class with a createEnvelope method that would call the [Envelopes: create](/docs/esign-rest-api/reference/envelopes/envelopes/create) method for you. To do the same thing with the Apex Toolkit, you would use the [EnvelopeService.createEnvelope](/docs/salesforce/apex-toolkit-reference/envelopeservice.html) method, but that method does not actually call the eSignature REST API. Instead it invokes a DML operation that creates an envelope object on the Salesforce side. The call to the Docusign eSignature API is made when you call the [EnvelopeService.sendEnvelope](/docs/salesforce/apex-toolkit-reference/envelopeservice.html) method that takes the envelope created within Salesforce and sends it using Docusign. When you are working with Apex code in Salesforce, it is not always obvious whether an Apex Toolkit method is making an API call or not. To learn more about whether a particular method makes an API call, see the [Apex Toolkit reference documentation](/docs/salesforce/apex-toolkit-reference/index.html).