code
that can be exchanged for a Firm API Token. You’ll then store this token in your database to use in subsequent requests to manage the Firm through the API.
Let’s get started.
First we need to configure some settings in the Partner portal. Login to the portal and go to Settings > Connect.
state
search parameter to this URL that will be threaded through the process and returned back to you at your Callback URL. This state
parameter can be any string.
https://your_app.com/callback?code=connect_code&state=your_state
You can exchange the code
for a Firm API Token using the exchangeCodeForFirmApiToken
mutation and your Partner API Token. You can use the state
param for anything you like. For example, maybe you want to pass through the userId
of the user who started the connect session.