osmAPI OsmAPI Health API API

The OsmAPI Health API API from osmAPI — 1 operation(s) for osmapi health api.

OpenAPI Specification

osmapi-osmapi-health-api-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: osmAPI Anthropic Messages Chat OsmAPI Health API API
  description: Anthropic-compatible messages endpoint routed through osmAPI's unified AI gateway. Supports the native Anthropic message format including system prompts, extended thinking, tool use, and streaming.
  version: 1.0.0
  contact:
    name: osmAPI
    url: https://www.osmapi.com/
servers:
- url: https://api.osmapi.com/v1
  description: Production
security:
- bearerAuth: []
tags:
- name: OsmAPI Health API
paths:
  /:
    get:
      operationId: healthCheck
      summary: Health check
      description: Returns the health status of the osmAPI service including connectivity to Redis and database dependencies.
      parameters:
      - name: skip
        in: query
        schema:
          type: string
        description: Comma-separated list of health checks to skip (redis, database)
      responses:
        '200':
          description: Service is healthy
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthResponse'
        '503':
          description: Service is unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthResponse'
      tags:
      - OsmAPI Health API
components:
  schemas:
    HealthResponse:
      type: object
      properties:
        message:
          type: string
        version:
          type: string
        health:
          type: object
          properties:
            status:
              type: string
            redis:
              type: object
              properties:
                connected:
                  type: boolean
                error:
                  type: string
            database:
              type: object
              properties:
                connected:
                  type: boolean
                error:
                  type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer token using osmAPI key (osmint_XXXXXXXXXXXXXXXX)