Skip to main content
Queries define GraphQL operations which retrieve data from the server. They return only the data you specify, based on the fields which you provide in a query. If an object is returned, then you must specify the fields of that object which you want to return. The final result of the query must only return scalars. At the start of every query operation, ensure that you specify query before the field(s).
Query VariablesWe use variables throughout our example requests. We do this in order to mirror real-world application practices whereby you would most likely want dynamic values for your arguments. Take a look at this guide if you’re unfamiliar with how variables work in GraphQL.

feature

Retrieve a Feature.

Arguments

Returns

Examples

Request Body

Request Query Variables

Response Body

features

List all Features.

Returns

Examples

Request Body

Response Body

canUseFeature

Understand if a User is able to use a particular Feature. The returned access boolean is true when the user has access (for Binary features), has enough of a feature remaining to be used (for Consumable features), or has overage enabled (for Consumable features).

Arguments

Returns

Examples

Request Body

Request Query Variables

Response Body

showUsage

Retrieve both the current and historical usage of a Feature for a User.
Why can I only see the current usage through the SDKs?We’re in the process of returning past usage of a feature via our SDKs. Let us know if you’d love to see it and we’ll keep you posted on when it’s launched!

Arguments

Returns

Examples

Request Body

Request Query Variables

Response Body

package

Retrieve a Package.

Arguments

Returns

Examples

Request Body

Request Query Variables

Response Body

packages

List all Packages.

Arguments

Returns

Examples

Request Body

Request Query Variables

Response Body

user

Retrieve a User.

Arguments

Returns

Examples

Request Body

Request Query Variables

Response JSON

users

List all Users.

Returns

Examples

Request Body

Response JSON

subscription

Retrieve a PackageSubscription.

Arguments

Returns

Examples

Request Body

Request Query Variables

Response JSON

subscriptions

List all PackageSubscriptions, or all PackageSubscriptions associated to a User.

Arguments

Returns

Examples

Request Body

Request Query Variables

Response JSON