Skip to main content
GET
/
generation
Look up a past generation
curl --request GET \
  --url https://api.ai-stats.phaseo.app/v1/generation \
  --header 'Authorization: Bearer <token>'
{
  "request_id": "<string>",
  "team_id": "<string>",
  "endpoint": "<string>",
  "success": true,
  "app_id": "<string>",
  "app_title": "<string>",
  "referer": "<string>",
  "model_id": "<string>",
  "provider": "<string>",
  "native_response_id": "<string>",
  "stream": true,
  "byok": true,
  "status_code": 123,
  "error_code": "<string>",
  "error_message": "<string>",
  "before": {},
  "execute": {},
  "latency_ms": 123,
  "generation_ms": 123,
  "usage": {},
  "cost_nanos": 123,
  "currency": "<string>",
  "pricing_lines": [
    {}
  ]
}
Fetches the stored audit record for a given request_id that belongs to your team. Provide id as a query parameter to retrieve the stored generation record.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

id
string
required

The request_id returned by a previous gateway response.

Response

Generation record located.

request_id
string
required
team_id
string
required
endpoint
string
required
success
boolean
required
app_id
string | null
app_title
string | null
referer
string | null
model_id
string | null
provider
string | null
native_response_id
string | null
stream
boolean
byok
boolean
status_code
integer | null
error_code
string | null
error_message
string | null
before
object
execute
object
latency_ms
number | null
generation_ms
number | null
usage
object
cost_nanos
integer | null
currency
string | null
pricing_lines
object[]