Properties
| Name | Type | Description |
|---|---|---|
| object | string | |
| request_id | string | |
| timestamp | stringnull | |
| endpoint | stringnull | |
| model_requested | stringnull | |
| model | stringnull | |
| provider | stringnull | |
| tokens | object | |
| cost_cents | numbernull | |
| metered_cost_cents | numbernull | |
| latency_ms | numbernull | |
| ttfb_ms | numbernull | |
| status_code | integernull | |
| retries | integernull | |
| error_code | stringnull | |
| routing | objectnull |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/ninjachat-ai/json-schema/ninjachat-ai-request-record-response-schema.json",
"title": "RequestRecordResponse",
"x-generated": "2026-11-19",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/ninjachat-ai-openapi.json#/components/schemas/RequestRecordResponse",
"type": "object",
"properties": {
"object": {
"type": "string",
"enum": [
"request"
]
},
"request_id": {
"type": "string"
},
"timestamp": {
"type": [
"string",
"null"
]
},
"endpoint": {
"type": [
"string",
"null"
]
},
"model_requested": {
"type": [
"string",
"null"
]
},
"model": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"tokens": {
"type": "object",
"properties": {
"input": {
"type": [
"number",
"null"
]
},
"output": {
"type": [
"number",
"null"
]
},
"reasoning": {
"type": [
"number",
"null"
]
},
"cached": {
"type": [
"number",
"null"
]
},
"cache_write": {
"type": [
"number",
"null"
]
}
},
"required": [
"input",
"output",
"reasoning",
"cached",
"cache_write"
],
"additionalProperties": false
},
"cost_cents": {
"type": [
"number",
"null"
]
},
"metered_cost_cents": {
"type": [
"number",
"null"
]
},
"latency_ms": {
"type": [
"number",
"null"
]
},
"ttfb_ms": {
"type": [
"number",
"null"
]
},
"status_code": {
"type": [
"integer",
"null"
]
},
"retries": {
"type": [
"integer",
"null"
]
},
"error_code": {
"type": [
"string",
"null"
]
},
"routing": {
"type": [
"object",
"null"
],
"properties": {
"requested_models": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
},
"policy": {
"type": [
"object",
"null"
],
"properties": {
"strategy": {
"type": "string",
"enum": [
"balanced",
"cost",
"latency",
"quality"
]
},
"data_policy": {
"type": "string",
"enum": [
"default",
"no_training",
"zero_retention"
]
},
"caching": {
"type": "string",
"enum": [
"auto"
]
},
"source": {
"type": "string",
"enum": [
"request",
"project",
"default"
]
},
"allow_fallbacks": {
"type": "boolean"
},
"require_parameters": {
"type": "boolean"
},
"providers": {
"type": "object",
"properties": {
"only": {
"type": "array",
"items": {
"type": "string"
}
},
"exclude": {
"type": "array",
"items": {
"type": "string"
}
},
"order": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"max_cost_usd": {
"type": "number",
"exclusiveMinimum": 0
}
},
"required": [
"strategy",
"data_policy",
"source",
"allow_fallbacks",
"require_parameters",
"providers"
],
"additionalProperties": false
},
"ordering": {
"type": "string",
"enum": [
"breaker",
"perf",
"static"
]
},
"considered": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 160
}
},
"excluded": {
"type": "array",
"items": {
"type": "object",
"properties": {
"model": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"stage": {
"type": "string"
},
"reason": {
"type": "string"
}
},
"required": [
"model",
"stage",
"reason"
],
"additionalProperties": false
}
},
"attempts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"model": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"outcome": {
"type": "string",
"enum": [
"ok",
"error",
"timeout",
"aborted"
]
},
"error_code": {
"type": [
"string",
"null"
]
},
"latency_ms": {
"type": "number",
"minimum": 0
},
"retry_budget_consumed": {
"type": "boolean"
}
},
"required": [
"model",
"outcome",
"error_code",
"latency_ms",
"retry_budget_consumed"
],
"additionalProperties": false
}
},
"served_by": {
"type": [
"object",
"null"
],
"properties": {
"model": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"provider": {
"type": [
"string",
"null"
]
},
"attempt_index": {
"type": "integer",
"minimum": 0
}
},
"required": [
"model",
"provider",
"attempt_index"
],
"additionalProperties": false
}
},
"required": [
"requested_models",
"policy",
"ordering",
"considered",
"excluded",
"attempts",
"served_by"
],
"additionalProperties": false
}
},
"required": [
"object",
"request_id",
"timestamp",
"endpoint",
"model_requested",
"model",
"provider",
"tokens",
"cost_cents",
"metered_cost_cents",
"latency_ms",
"ttfb_ms",
"status_code",
"retries",
"error_code",
"routing"
],
"additionalProperties": false
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/ninjachat-ai-request-record-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.