Get Graph Usage
/v1/graphs/{graph_id}/usagePart of Usage.
Time ranges: 24h, 7d, 30d, current_month, last_month. Toggle storage, credits, performance, and events sections via query params.
Authentication
Authenticate in any one of these ways — not all of them:
- API key in the
X-API-Keyheader. - Bearer token in the
Authorizationheader.
Path parameters
| Name | Type | Description |
|---|---|---|
graph_idrequired | string | Graph Id |
Query parameters
| Name | Type | Description |
|---|---|---|
time_rangeoptional | string | Time range: 24h, 7d, 30d, current_month, last_month Default: |
include_storageoptional | boolean | Include storage usage summary Default: |
include_creditsoptional | boolean | Include credit consumption summary Default: |
include_performanceoptional | boolean | Include performance insights (may be slower) Default: |
include_eventsoptional | boolean | Include recent usage events Default: |
Example request
curl -X GET "https://api.robosystems.ai/v1/graphs/{graph_id}/usage" \
-H "X-API-Key: $ROBOSYSTEMS_API_KEY"Responses
200 Successful Response
| Field | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
graph_idrequired | string | Graph database identifier | ||||||||||||||||||||||||
time_rangerequired | string | Time range for usage data | ||||||||||||||||||||||||
storage_summaryoptional | StorageSummary | Storage usage summary StorageSummary fields
| ||||||||||||||||||||||||
credit_summaryoptional | CreditSummary | Credit consumption summary CreditSummary fields
| ||||||||||||||||||||||||
performance_insightsoptional | PerformanceInsights | Performance analytics PerformanceInsights fields
| ||||||||||||||||||||||||
recent_eventsoptional | object[] | Recent usage events | ||||||||||||||||||||||||
timestamprequired | string | Usage collection timestamp |
| Status | Meaning |
|---|---|
| 400 | Invalid request |
| 401 | Authentication required |
| 403 | Access denied |
| 404 | Resource not found |
| 422 | Validation Error |
| 429 | Rate limit exceeded |
| 500 | Internal server error |