Master and user tokens


All endpoints require either a master token or a user token passed as a bearer.

When using a Master token, you are the one taking actions (getting connectors, getting operation schemas etc.).

When using a user token, your end users are performing the actions (creating an auth, calling a connector etc.)

User tokens are generated using the Create User token mutation

Your master token is generated in the Tokens section under Settings in your dashboard (requires Tray Embededd admin/owner access):

master token

The following table gives a breakdown of what tokens are used for the various API endpoints:

S.No.In-App OperationTrigger (When is the API operation called)Token
1GET existing end-usersApp user lands on the pagemaster-token
2Create new end-userUser fills the form to create new usermaster-token
3Create end-user tokenUser selects an end usermaster-token
4GET end user authenticationsUser selects an end useruser-token
5GET connectorsUser lands up on the pagemaster-token
6GET connector operationsUser selects the connector and versionuser-token
7Create new authUser clicks on the button to ‘create new auth’master-token
8Call connectorUser hits the form submituser-token

Was this page helpful?