Get a session
GET/v1/projects/:project_id/sessions/:session_id
Returns details of a single session, including a usage roll-up of what its generations cost. The listing omits usage; for a window, a split by day or model, or one end user across every session, narrow GET /v1/projects/{project_id}/usage with session_id / actor_id instead.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
Session details
The request was malformed or failed validation.
Missing or invalid credentials.
The credential is scoped to a different project, or the caller's role in the project does not carry this action.
The resource does not exist (existence is not leaked).
QUOTA_EXCEEDED — a requests quota on the calling API key or its project is spent for the window; Retry-After says when it reopens
Response Headers
Seconds until the quota window admits a request again
Unexpected server error — INTERNAL_ERROR, with the raw message never forwarded