Skip to main content

Should I use the GraphQL API or the SDK?

This guide is for developers deciding between using the GraphQL API or the SDK for integrating with Legalesign. It provides insights into the capabilities of each option and helps you choose the best approach for your project.

Advanced developers or developers with a currently no-SDK tech stack (such as .Net or GOLANG) have the choice of using the GraphQL or REST APIs directly. For many, the REST API is a tried and tested approach, however, our new GraphQL API has a far broader scope, everything that you can achieve in the Console web application can be automated and actioned with the GraphQL API. In fact, you can expand on what is presently in the Console and make dedicated, custom interfaces of your very own.

Using Both the GraphQL API and SDK

Yes. Very much, yes. If you have a Node or JavaScript compatible runtime then you can use the SDK to do most of the heavy lifting for you and only issue custom GraphQL calls when you need to. Why work harder than necessary?

Feature Comparison

FeatureGraphQL APISDK
Ease of UseRequires knowledge of GraphQL queriesSimplifies common tasks
FlexibilityFull control over queries and mutationsPre-built methods for common use cases
CompatibilityWorks with any tech stackRequires Node.js or JavaScript runtime

Exploring the Schema

There are two main ways.

  1. Check out what the Console application shows you in its network requests and pick and choose what you want or,
  2. look through the queries and mutations available from the API in the GraphQL Explorer.

In summary, the GraphQL API is ideal for developers who need full control and flexibility, while the SDK is perfect for those looking for a quick and easy integration. If you're unsure, consider starting with the SDK and using the GraphQL API for advanced customizations.