# API  Overview

GraphQL is a query language for our API. It's beneficial for large datasets as it allows for selecting specific objects and fields rather than committing to all data returned by a REST API endpoint. GraphQL is very beneficial for large datasets as it provides for greater flexibility and higher performance API endpoints. Send a GraphQL query to our API and get exactly what you need. GraphQL queries always return predictable results.&#x20;

Additionally, it allows us to evolve our API without the need for versioning.&#x20;

If you're not familiar with GraphQL, we suggest that you check it out from the link below.&#x20;

{% embed url="<https://graphql.org/>" %}

### GraphQL Endpoint

While typical REST APIs require loading from multiple URLs, GraphQL APIs get all the data your app needs in a single request. Apps using GraphQL can be quick even on slow mobile network connections.

Our GraphQL API is located at:

```
https://app.threatrix.io/graphql
```

Our GraphQL is self-documenting. As such, documentation is provided from our GraphQL Explorer endpoint that allows for exploration, documentation, and live queries testing against our API.&#x20;

Visit our GraphQL Explorer tool here:&#x20;

```
https://app.threatrix.io/graphiql
```

### Authentication

Our GraphQL API endpoint requires authentication with an API token.&#x20;

Generate user API token

[Generate Admin API token](https://docs.threatrix.io/administration/organization-settings/integration/api-keys)

Example Queries
