GraphQL API & Authentication
Describes how to authenticate to our GraphQL API.
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.
This authentication method is different than the API key authentication method used for other TSG Global services, and the TNID service.
You can generate a Bearer token to access our GraphQL API using the username and password you use to access our Customer Portal. This token lasts for 7 days.
post
https://api.portal.tsgglobal.world/account/login
Generate Bearer Token
When you query the API, you will want to pass your credentials in the header, with the header name "Authorization" and the value as "Bearer <token>".
If you are missing these credentials, please email us at: [email protected]
You can test various features and view additional documentation in the GraphiQL interface we provide here: https://api.portal.tsgglobal.world/graphiql
Please use: https://api.portal.tsgglobal.world/graphql (note this is different than the GraphiQL UI).
Last modified 1mo ago