Exploring the APIs | Twingate
Exploring the APIs
The official APIs supported by Twingate are GraphQL APIs: GraphQL is a powerful design for APIs because it allows users to craft very specific queries and only retrieve the information needed for a given operation with no extra fluff.
The common challenge with GraphQL though is that it tends to be a bit more complex to figure out and is a bit less intuitive than your typical Rest APIs.
The good news is that the following video walkthroughs should get you started with our GraphQL APIs even if you are completely unfamiliar with GraphQL as a whole.
All videos on this page leverage our template Postman collection
If you don’t have Postman yet, download and install it (it’s free). If you don’t have our Postman collection, right click on this link, click “Save Link As” to download the JSON file, and import it into your environment. The file contains many examples of API requests including the ones below.
part 1 getting started with the graphql apis permalink Part 1 - Getting Started with the GraphQL APIs
What you will learn in the following video:
- Generate an API Token
- Navigate the Postman Collection
- Exploring available Queries
Watch
part 2 using nesting with the apis permalink Part 2 - Using Nesting with the APIs
What you will learn in the following video:
- Exploring more advanced Queries
- Figuring out how to nest Queries
Watch
part 3 working with mutations permalink Part 3 - Working with Mutations
What you will learn in the following video:
- Working with Mutations
- Exploring Mutations
- Use Variables in Queries and Mutations
Watch
bonus content 1 exploring queries using introspection permalink Bonus Content 1 - Exploring Queries using Introspection
If you want to explore the APIs and figure out new Queries using Introspection on your own, check out the guide below:
Watch
bonus content 2 exploring mutations using introspection permalink Bonus Content 2 - Exploring Mutations using Introspection
If you want to explore the APIs and figure out new Mutations using Introspection on your own, check out the guide below:
Watch
Last updated 5 months ago