Galileo Technologies logstream-insights API

The logstream-insights API from Galileo Technologies — 19 operation(s) for logstream-insights.

Operations 21

DELETE /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights Delete Logstream Insights #
GET /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights Get Logstream Insights #
PUT /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights Create Or Update Logstream Insights #
POST /experimental/projects/{project_id}/experiments/{experiment_id}/insights/create_insights_job Create Experiment Insights Job #
GET /experimental/projects/{project_id}/experiments/{experiment_id}/insights/job_status Get Experiment Insights Job Status #
GET /experimental/projects/{project_id}/experiments/{experiment_id}/insights Get Experiment Insights #
GET /experimental/projects/{project_id}/experiments/{experiment_id}/insights/job_statuses Get Experiment Job Statuses #
POST /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/create_insights_job Create Insights Job #
GET /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/job_status Get Log Stream Insights Job Status #
GET /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/job_statuses Get Job Statuses #
GET /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/trace_notes Get Trace Notes #
GET /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/trace_notes/{trace_id} Get Trace Notes For Trace #
GET /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/session_notes Get Session Notes #
GET /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/session_notes/{session_id} Get Session Notes For Session #
GET /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/session_titles Get Session Titles #
GET /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/session_titles/{session_id} Get Session Titles For Session #
GET /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/trace_titles Get Trace Titles #
GET /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/trace_titles/{trace_id} Get Trace Titles For Trace #
POST /projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/token_usage Get Logstream Insights Token Usages #
POST /v2/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/token_usage Get Logstream Insights Token Usages #
POST /public/v2/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/token_usage Get Logstream Insights Token Usages #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/galileo-technologies-logstream-insights-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

galileo-technologies-logstream-insights-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Galileo API Server annotation Logstream Insights API
  version: 1.1085.0
servers:
- url: https://api.galileo.ai
  description: Galileo API Server - galileo-v2
tags:
- name: logstream-insights
paths:
  /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights:
    delete:
      tags:
      - logstream-insights
      summary: Delete Logstream Insights
      description: Delete logstream insights for a specific project and log stream.
      operationId: delete_logstream_insights_experimental_projects__project_id__log_streams__log_stream_id__logstream_insights_delete
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmptyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - logstream-insights
      summary: Get Logstream Insights
      description: Get logstream insights for a specific project and log stream.
      operationId: get_logstream_insights_experimental_projects__project_id__log_streams__log_stream_id__logstream_insights_get
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogstreamInsightsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - logstream-insights
      summary: Create Or Update Logstream Insights
      description: Create or update logstream insights for a specific project and run.
      operationId: create_or_update_logstream_insights_experimental_projects__project_id__log_streams__log_stream_id__logstream_insights_put
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LogstreamInsightsCreateOrUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmptyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/experiments/{experiment_id}/insights/create_insights_job:
    post:
      tags:
      - logstream-insights
      summary: Create Experiment Insights Job
      description: 'Create an insights job for an experiment.

        Endpoint: POST /experimental/projects/{project_id}/experiments/{experiment_id}/insights/create_insights_job'
      operationId: create_experiment_insights_job_experimental_projects__project_id__experiments__experiment_id__insights_create_insights_job_post
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: experiment_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Experiment Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/LogstreamInsightsCreateJobRequest'
              - type: 'null'
              title: Request
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogstreamInsightsResponseCreateJobResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/experiments/{experiment_id}/insights/job_status:
    get:
      tags:
      - logstream-insights
      summary: Get Experiment Insights Job Status
      description: Get the latest insights job status for an experiment.
      operationId: get_experiment_insights_job_status_experimental_projects__project_id__experiments__experiment_id__insights_job_status_get
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: experiment_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Experiment Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InsightsJobStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/experiments/{experiment_id}/insights:
    get:
      tags:
      - logstream-insights
      summary: Get Experiment Insights
      description: Get insights for a specific experiment.
      operationId: get_experiment_insights_experimental_projects__project_id__experiments__experiment_id__insights_get
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: experiment_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Experiment Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogstreamInsightsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/experiments/{experiment_id}/insights/job_statuses:
    get:
      tags:
      - logstream-insights
      summary: Get Experiment Job Statuses
      description: Get job statuses for a specific experiment, optionally filtered by status.
      operationId: get_experiment_job_statuses_experimental_projects__project_id__experiments__experiment_id__insights_job_statuses_get
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: experiment_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Experiment Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - $ref: '#/components/schemas/JobStatus'
          - type: 'null'
          title: Status
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/InsightsJobStatusResponse'
                title: Response Get Experiment Job Statuses Experimental Projects  Project Id  Experiments  Experiment Id  Insights Job Statuses Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/create_insights_job:
    post:
      tags:
      - logstream-insights
      summary: Create Insights Job
      description: Create an insights job for a specific project and log stream.
      operationId: create_insights_job_experimental_projects__project_id__log_streams__log_stream_id__logstream_insights_create_insights_job_post
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/LogstreamInsightsCreateJobRequest'
              - type: 'null'
              title: Request
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogstreamInsightsResponseCreateJobResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/job_status:
    get:
      tags:
      - logstream-insights
      summary: Get Log Stream Insights Job Status
      description: Get the latest insights job status for a logstream.
      operationId: get_log_stream_insights_job_status_experimental_projects__project_id__log_streams__log_stream_id__logstream_insights_job_status_get
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InsightsJobStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/job_statuses:
    get:
      tags:
      - logstream-insights
      summary: Get Job Statuses
      description: Get job statuses for a specific project and log stream, optionally filtered by status.
      operationId: get_job_statuses_experimental_projects__project_id__log_streams__log_stream_id__logstream_insights_job_statuses_get
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      - name: status
        in: query
        required: false
        schema:
          anyOf:
          - $ref: '#/components/schemas/JobStatus'
          - type: 'null'
          title: Status
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/InsightsJobStatusResponse'
                title: Response Get Job Statuses Experimental Projects  Project Id  Log Streams  Log Stream Id  Logstream Insights Job Statuses Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/trace_notes:
    get:
      tags:
      - logstream-insights
      summary: Get Trace Notes
      description: Get trace notes for a specific project and log stream.
      operationId: get_trace_notes_experimental_projects__project_id__log_streams__log_stream_id__logstream_insights_trace_notes_get
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TraceNotesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/trace_notes/{trace_id}:
    get:
      tags:
      - logstream-insights
      summary: Get Trace Notes For Trace
      description: Get trace notes for a specific trace in a project and log stream.
      operationId: get_trace_notes_for_trace_experimental_projects__project_id__log_streams__log_stream_id__logstream_insights_trace_notes__trace_id__get
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: trace_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Trace Id
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TraceNotesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/session_notes:
    get:
      tags:
      - logstream-insights
      summary: Get Session Notes
      description: Get session notes for a specific project and log stream.
      operationId: get_session_notes_experimental_projects__project_id__log_streams__log_stream_id__logstream_insights_session_notes_get
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionNotesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/session_notes/{session_id}:
    get:
      tags:
      - logstream-insights
      summary: Get Session Notes For Session
      description: Get session notes for a specific session in a project and log stream.
      operationId: get_session_notes_for_session_experimental_projects__project_id__log_streams__log_stream_id__logstream_insights_session_notes__session_id__get
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Session Id
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionNotesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/session_titles:
    get:
      tags:
      - logstream-insights
      summary: Get Session Titles
      description: Get session titles for a specific project and log stream.
      operationId: get_session_titles_experimental_projects__project_id__log_streams__log_stream_id__logstream_insights_session_titles_get
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionTitlesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/session_titles/{session_id}:
    get:
      tags:
      - logstream-insights
      summary: Get Session Titles For Session
      description: Get session titles for a specific session in a project and log stream.
      operationId: get_session_titles_for_session_experimental_projects__project_id__log_streams__log_stream_id__logstream_insights_session_titles__session_id__get
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: session_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Session Id
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionTitlesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/trace_titles:
    get:
      tags:
      - logstream-insights
      summary: Get Trace Titles
      description: Get trace titles for a specific project and log stream.
      operationId: get_trace_titles_experimental_projects__project_id__log_streams__log_stream_id__logstream_insights_trace_titles_get
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TraceTitlesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /experimental/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/trace_titles/{trace_id}:
    get:
      tags:
      - logstream-insights
      summary: Get Trace Titles For Trace
      description: Get trace titles for a specific trace in a project and log stream.
      operationId: get_trace_titles_for_trace_experimental_projects__project_id__log_streams__log_stream_id__logstream_insights_trace_titles__trace_id__get
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: trace_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Trace Id
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TraceTitlesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/token_usage:
    post:
      tags:
      - logstream-insights
      summary: Get Logstream Insights Token Usages
      description: Get token usage records for a logstream insight.
      operationId: get_logstream_insights_token_usages_projects__project_id__log_streams__log_stream_id__logstream_insights_token_usage_post
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LogstreamInsightTokenUsageRequest'
              default:
                starting_token: 0
                limit: 100
                filters: []
                sort:
                  name: created_at
                  ascending: false
                  sort_type: column
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogstreamInsightTokenUsageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v2/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/token_usage:
    post:
      tags:
      - logstream-insights
      summary: Get Logstream Insights Token Usages
      description: Get token usage records for a logstream insight.
      operationId: get_logstream_insights_token_usages_v2_projects__project_id__log_streams__log_stream_id__logstream_insights_token_usage_post
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LogstreamInsightTokenUsageRequest'
              default:
                starting_token: 0
                limit: 100
                filters: []
                sort:
                  name: created_at
                  ascending: false
                  sort_type: column
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogstreamInsightTokenUsageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /public/v2/projects/{project_id}/log_streams/{log_stream_id}/logstream_insights/token_usage:
    post:
      tags:
      - logstream-insights
      summary: Get Logstream Insights Token Usages
      description: Get token usage records for a logstream insight.
      operationId: get_logstream_insights_token_usages_public_v2_projects__project_id__log_streams__log_stream_id__logstream_insights_token_usage_post
      security:
      - ClassicAPIKeyHeader: []
      - APIKeyHeader: []
      - OAuth2PasswordBearer: []
      - HTTPBasic: []
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Project Id
      - name: log_stream_id
        in: path
        required: true
        schema:
          type: string
          format: uuid4
          title: Log Stream Id
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LogstreamInsightTokenUsageRequest'
              default:
                starting_token: 0
                limit: 100
                filters: []
                sort:
                  name: created_at
                  ascending: false
                  sort_type: column
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogstreamInsightTokenUsageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TokenUsage:
      properties:
        input_tokens:
          anyOf:
          - type: integer
          - type: 'null'
          title: Input Tokens
        output_tokens:
          anyOf:
          - type: integer
          - type: 'null'
          title: Output Tokens
        cache_read_input_tokens:
          anyOf:
          - type: integer
          - type: 'null'
          title: Cache Read Input Tokens
        cache_creation_input_tokens:
          anyOf:
          - type: integer
          - type: 'null'
          title: Cache Creation Input Tokens
      type: object
      title: TokenUsage
      description: Token usage information for insights generation.
    TraceTitlesResponse:
      properties:
        trace_id_to_trace_title:
          anyOf:
          - additionalProperties:
              type: string
            propertyNames:
              format: uuid4
            type: object
          - type: 'null'
          title: Trace Id To Trace Title
      type: object
      title: TraceTitlesResponse
    LogstreamInsightsCreateOrUpdate:
      properties:
        insights:
          anyOf:
          - items:
              $ref: '#/components/schemas/InsightDBV2'
            type: array
          - items:
              $ref: '#/components/schemas/InsightDB'
            type: array
          title: Insights
      type: object
      required:
      - insights
      title: LogstreamInsightsCreateOrUpdate
    InsightsJobStatusResponse:
      properties:
        id:
          type: string
          format: uuid4
          title: Id
        status:
          anyOf:
          - $ref: '#/components/schemas/JobStatus'
          - type: 'null'
        is_update_job:
          type: boolean
          title: Is Update Job
        updated_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Updated At
        job_run_summary:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Job Run Summary
      type: object
      required:
      - id
      - status
      - is_update_job
      - updated_at
      title: InsightsJobStatusResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          ty

# --- truncated at 32 KB (47 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/galileo-technologies/refs/heads/main/openapi/galileo-technologies-logstream-insights-api-openapi.yml