Organization analytics
const url = 'https://api.yggy.tech/api/v1/analytics?bucket=minute';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.yggy.tech/api/v1/analytics?bucket=minute' \ --header 'Authorization: Bearer <token>'Returns time-series analytics for documents, token usage, and knowledge graph growth.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Lookback in days when from/to are omitted (default 30, max 365)
Lookback in days when from/to are omitted (default 30, max 365)
Inclusive start (YYYY-MM-DD or ISO-8601 datetime)
Inclusive start (YYYY-MM-DD or ISO-8601 datetime)
Inclusive end (YYYY-MM-DD or ISO-8601 datetime)
Inclusive end (YYYY-MM-DD or ISO-8601 datetime)
Bucket interval (minute, hour, day)
Bucket interval (minute, hour, day)
Comma-separated sections: documents, graphTotals, graphSeries, tokens, storage (default: all)
Comma-separated sections: documents, graphTotals, graphSeries, tokens, storage (default: all)
Responses
Section titled “ Responses ”Analytics data
object
object
object
Saved without analysis, waiting for credits
Percentage 0-100
object
object
object
object
ISO date string (YYYY-MM-DD)
object
ISO date string (YYYY-MM-DD)
object
ISO date string (YYYY-MM-DD)
object
ISO date string (YYYY-MM-DD)
object
ISO date string (YYYY-MM-DD)
object
object
ISO date string (YYYY-MM-DD)
object
ISO date string (YYYY-MM-DD)
object
ISO date string (YYYY-MM-DD)
object
ISO date string (YYYY-MM-DD)
object
Organization Graph Intelligence tokens-per-minute cap
TPM cap expressed as tokens per UTC day
Total tokens consumed in period
Peak 1-minute rate observed in period
Total rate breaches observed in period
object
Total tokens used in this bucket
TPM rate limit cap
Peak 1-minute tokens/minute rate in this bucket
Number of minutes in this bucket exceeding the TPM cap
Hot vs. cold triple split (point-in-time estimates)
object
Estimated triples in the live graph
Triples in cold object storage (manifest count)
Triples currently promoting back to hot
Distinct cold archive blobs backing this scope
Summed blob bytes (partial when bytesTruncated)
True when blobBytes hit the stat cap and is partial
Per-project split (org endpoint only, capped)
object
Effective storage policy: hot-first or cold-first
Estimated triples in the live graph
Triples in cold object storage (manifest count)
Triples currently promoting back to hot
True when byProject hit the project cap
Sibling fetches that timed out or failed; corresponding fields may be partial or estimated
Example generated
{ "period": { "from": "example", "to": "example", "days": 1 }, "documents": { "total": 1, "completed": 1, "failed": 1, "pending": 1, "processing": 1, "stored": 1, "successRate": 1, "avgProcessingTimeMs": 1, "byContentType": { "additionalProperty": 1 }, "byExtractionTier": { "additionalProperty": 1 }, "byExtractionMode": { "additionalProperty": 1 }, "overTime": [ { "date": "example", "count": 1 } ], "completedOverTime": [ { "date": "example", "count": 1 } ], "failedOverTime": [ { "date": "example", "count": 1 } ], "forecast": [ { "date": "example", "value": 1, "upper": 1, "lower": 1 } ], "failedForecast": [ { "date": "example", "value": 1, "upper": 1, "lower": 1 } ] }, "graph": { "totalEntities": 1, "totalTriples": 1, "triplesOverTime": [ { "date": "example", "count": 1 } ], "triplesForecast": [ { "date": "example", "value": 1, "upper": 1, "lower": 1 } ], "entitiesOverTime": [ { "date": "example", "count": 1 } ], "entitiesForecast": [ { "date": "example", "value": 1, "upper": 1, "lower": 1 } ] }, "tokens": { "tpmCap": 1, "dailyCap": 1, "total": 1, "peakTpm": 1, "totalBreaches": 1, "overTime": [ { "date": "example", "used": 1, "cap": 1, "peakTpm": 1, "tpmBreaches": 1 } ] }, "storage": { "hotTriples": 1, "coldTriples": 1, "hydratingTriples": 1, "blobObjects": 1, "blobBytes": 1, "bytesTruncated": true, "byProject": [ { "projectExternalId": "example", "mode": "example", "hotTriples": 1, "coldTriples": 1, "hydratingTriples": 1 } ], "projectsTruncated": true }, "degradedSections": [ "example" ]}Bad request
object
Example generated
{ "error": "example"}Unauthorized
object
Example generated
{ "error": "example"}Internal server error
object
Example generated
{ "error": "example"}