Complete reference for the StateSet API - Build powerful autonomous business applications
https://api.stateset.com/v1
GraphQL Endpoint: https://api.stateset.com/graphql
WebSocket URL: wss://api.stateset.com/v1/ws
API Version: 2024-01-01
(latest)Get Your API Key
Make Your First Call
Explore Resources
Authorization
header using the Bearer
scheme.
X-RateLimit-Limit
: Maximum requests allowed in current windowX-RateLimit-Remaining
: Requests remaining in current windowX-RateLimit-Reset
: Unix timestamp when limit resetsX-RateLimit-Retry-After
: Seconds to wait before retrying (when limited)429 Too Many Requests
response:
Code | Meaning |
---|---|
200 | OK - Request succeeded |
201 | Created - Resource created successfully |
400 | Bad Request - Invalid request parameters |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Resource doesn’t exist |
409 | Conflict - Resource already exists or constraint violation |
422 | Unprocessable Entity - Validation errors |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error - Something went wrong on our end |
Authentication Errors
INVALID_API_KEY
: API key is invalid or expiredMISSING_API_KEY
: No API key providedINSUFFICIENT_PERMISSIONS
: API key doesn’t have required permissionsValidation Errors
VALIDATION_ERROR
: Request data failed validationMISSING_REQUIRED_FIELD
: Required field not providedINVALID_FIELD_FORMAT
: Field format is incorrectResource Errors
RESOURCE_NOT_FOUND
: Requested resource doesn’t existRESOURCE_ALREADY_EXISTS
: Resource with same identifier existsRESOURCE_CONFLICT
: Operation conflicts with current resource stateOrder Events
order.created
order.updated
order.shipped
order.delivered
order.cancelled