Sentrial Events API

Track events within agent sessions.

Operations 1

POST /api/sdk/events Create an event #

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/sentrial-events-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

sentrial-events-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sentrial SDK Events API
  version: '1.0'
  description: Sentrial is an AI agent observability platform. The SDK/ingestion REST API lets you create and manage agent sessions and record the events (tool calls, LLM decisions, state changes, errors) that happen inside them, so Sentrial can detect issues, diagnose root causes, and help you fix them in code. This specification was generated by API Evangelist from Sentrial's published documentation (https://www.sentrial.com/docs/api/*) — every field, request, response, and error is transcribed from the docs, not inferred.
  contact:
    name: Sentrial
    url: https://sentrial.com
  x-apievangelist-generated: true
  x-apievangelist-source: https://www.sentrial.com/docs/api/sessions.md, https://www.sentrial.com/docs/api/events.md, https://www.sentrial.com/docs/api/auth.md
servers:
- url: https://api.sentrial.com
  description: Production
security:
- bearerAuth: []
tags:
- name: Events
  description: Track events within agent sessions.
paths:
  /api/sdk/events:
    post:
      operationId: createEvent
      summary: Create an event
      description: Record an event (tool call, LLM decision, state change, or error) within an agent session.
      tags:
      - Events
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateEventRequest'
            example:
              sessionId: sess_abc123def456
              eventType: tool_call
              toolName: search_kb
              toolInput:
                query: password reset
              toolOutput:
                results:
                - KB-001
                - KB-002
              reasoning: User needs password help
              estimatedCost: 0.001
      responses:
        '200':
          description: Event created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Event'
              example:
                id: evt_xyz789
                sessionId: sess_abc123def456
                eventType: tool_call
                toolName: search_kb
                createdAt: '2025-01-12T10:30:01Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Short error code/title.
        message:
          type: string
          description: Human-readable explanation.
      example:
        error: Unauthorized
        message: Invalid or missing API key
    CreateEventRequest:
      type: object
      required:
      - sessionId
      - eventType
      properties:
        sessionId:
          type: string
          description: ID of the parent session.
        eventType:
          type: string
          enum:
          - tool_call
          - llm_decision
          - state_change
          - error
          description: The type of event being recorded.
        toolName:
          type: string
          description: Name of the tool called (for tool_call events).
        toolInput:
          type: object
          additionalProperties: true
          description: Input passed to the tool.
        toolOutput:
          type: object
          additionalProperties: true
          description: Output returned by the tool.
        reasoning:
          type: string
          description: Agent's reasoning for this action.
        alternativesConsidered:
          type: array
          items:
            type: string
          description: Other options the agent considered.
        confidence:
          type: number
          description: Confidence score (0.0 to 1.0).
        estimatedCost:
          type: number
          description: Cost for this event in USD.
    Event:
      type: object
      properties:
        id:
          type: string
          description: Event ID (prefix evt_).
        sessionId:
          type: string
        eventType:
          type: string
          enum:
          - tool_call
          - llm_decision
          - state_change
          - error
        toolName:
          type: string
        createdAt:
          type: string
          format: date-time
  responses:
    ServerError:
      description: Server error, please retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Invalid or missing API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Missing required fields or invalid data.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Session ID not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key passed as a Bearer token in the Authorization header. Keys follow the format sentrial_live_xxxxxxxxxxxxx and are created in organization Settings -> API Keys.