API Playground
Interact with Stigg’s GraphQL API directly from your browser.
Endpoint
Authentication
All requests require an API key in theX-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 thefilter parameter:
Sorting
Sort results using thesorting parameter:
Error Handling
Errors are returned in theerrors array:
Common Error Codes
Subscriptions (Real-time)
The API supports GraphQL subscriptions for real-time updates:entitlementsUpdated- Customer entitlement changesusageUpdated- Usage updates- Credit balance changes (deprecated — usecreditBalanceUpdatedusageUpdatedinstead)packagePublished- Package publication events
