Bifrost Bifrost
POSThttps://api.dev.bifrostgaming.com/v1/graphql

guildGetAPIStatus

v1

Returns API usage statistics, error rates, and per-operation breakdowns for your guild. Data covers a rolling 4-hour window.

Operation Type

Query

Rate Limit: 1 request per 5 minutes per guild

If rate limited, the response includes success: false with retry delay in the error field.

Code Examples

curl -X POST https://api.dev.bifrostgaming.com/v1/graphql \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "{ guildGetAPIStatus { success totalRequests totalErrors overallErrorRate avgDurationMs dataWindowHours operationStats { operationName operationType requestCount errorCount errorRate avgDurationMs maxDurationMs lastRequestTime } recentErrors { requestTime operationName errorCode errorMessage durationMs } hourlyUsage { hour requestCount errorCount } error timestamp } }"
  }'

Postman Collection

Download a ready-to-use Postman collection for this endpoint. Import it into Postman to start testing immediately.

How to import into Postman
  1. Open Postman and click Import (top-left)
  2. Drag and drop the downloaded .json file, or click Upload Files and select it
  3. Click Import to confirm
  4. The collection appears in your sidebar — expand it and select the request
  5. In the Body tab, update the placeholder values (your-partner-id, etc.) with your actual credentials
  6. Click Send

The collection uses Postman's GraphQL body type, which provides syntax highlighting and variable editing. Make sure your Postman version is 7.2+ for GraphQL support.

Success Response200

{
  "data": {
    "guildGetApiStatus": {
      "status": "operational",
      "uptime": "99.97%",
      "version": "1.0.0",
      "servers": [
        {
          "serverId": "server-abc-123",
          "serverName": "My Community Server #1",
          "status": "online",
          "lastPing": "2025-01-15T12:34:50Z"
        }
      ],
      "timestamp": "2025-01-15T12:34:56.789Z"
    }
  }
}

Error Responses

Response Fields

FieldTypeRequiredDescription
totalRequestsIntOptionalTotal API requests within the data window
totalErrorsIntOptionalTotal requests that returned errors
overallErrorRateFloatOptionalError rate as a percentage (e.g., 2.5 = 2.5%)
avgDurationMsFloatOptionalWeighted average response time in milliseconds
dataWindowHoursFloatOptionalHow many hours of data is available (4-hour TTL)
operationStatsArrayOptionalPer-operation breakdown with requestCount, errorCount, errorRate, avgDurationMs, maxDurationMs, lastRequestTime
recentErrorsArrayOptionalLast 25 error responses with requestTime, operationName, errorCode, errorMessage, durationMs
hourlyUsageArrayOptionalHourly request and error counts for trend analysis

In partnership with

Brilliant game servers for communities large and small.

Get yours today!

Shrapnelworks Logo

A Shrapnelworks product