Getting Started

Here is an overview of how to get the Text Editor SDK up and running in your app in just a few steps.

Create an application

From My Appsopen in new window, create an application and give it a name, such as "Grammarbot" or "Grammarbot Development." You can edit your application name any time, and set a public display name later if you’re allowing users to connect their Grammarly accounts.

When you create an app, you'll automatically be taken to the App Console. Here, you can manage your app and add web or desktop clients.

Install the Text Editor SDK

In the App Console, you'll see a quick start guide for the Text Editor SDK. The guide contains client-specific installation commands and code snippets you can copy. With just a few lines of code, you can add the Grammarly Text Editor Plugin to the desired HTML elements in your app.

In the following docs, you’ll find more installation and usage options for each client platform we support:

Before testing the SDK in your application, make sure to turn off the Grammarly Extension in your browser.

Set up credentials

Below the quick start guide, you'll find the client credentials. The client ID is the unique public identifieropen in new window for your application. You will need it when initializing the Text Editor SDK in your application. The code samples in the quick start already contain this client ID.

Additionally, for web clients, you can configure the allowed origins. For desktop clients, you can provide redirect URIs, which are required for the connected accounts OAuth flow on desktop.

Preparing for production

Before making your app available in a production environment, please take note of the recommendations in Securing your App.

Last Updated: 11/29/2022, 1:11:24 AM