Skip to main content
The Stigg GraphQL API provides comprehensive access to pricing, entitlement, and subscription management functionality. This guide covers everything you need to get started.

API Playground

Interact with Stigg’s GraphQL API directly from your browser.

Endpoint

Authentication

All requests require an API key in the X-API-Key header:

GraphQL Basics

Queries

Queries are used to fetch data without side effects:

Mutations

Mutations create, update, or delete data:

Variables

Pass variables separately from the query:

Common Patterns

Pagination

List queries use cursor-based pagination:

Filtering

Filter results using the filter parameter:

Sorting

Sort results using the sorting parameter:

Error Handling

Errors are returned in the errors array:

Common Error Codes

Subscriptions (Real-time)

The API supports GraphQL subscriptions for real-time updates:
Available subscriptions:
  • entitlementsUpdated - Customer entitlement changes
  • usageUpdated - Usage updates
  • creditBalanceUpdated - Credit balance changes (deprecated — use usageUpdated instead)
  • packagePublished - Package publication events