The token can only be generated by using Domain Administrator role.
Create the token in Xledger UI
- To generate a token using domain admin role, please navigate to the following page (Administration/System Access/GraphQL/API tokens) and click generate token :
- Create a name for the token (it can be anything and is only for information purposes), select appropriate read and write rights and generate (expanding the headers will show you the queries under each, if you are not sure select all) :
- A token will be displayed, please save it, and share with your developers.
You will be able to see the user ID that has generated the original token in the Administration > System Access > GraghQL > API token.
Tokens and environments
Tokens follow the same logic as the rest of the data in Xledger environments this means :
- A token created in demo will only be usable in demo and be overwritten (deleted) at next refesh
- A token created in live will be useable only in live until the next refresh where it will be also useable in demo.
Once a token in live has been populated to all environments you can switch between environments via the API endpoint :
- Demo : https://demo.xledger.net/graphql
- Live : https://www.xledger.net/graphql