Precog Log API

The Log API from Precog — 1 operation(s) for log.

Operations 1

POST /log Log a message #

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/precog-log-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

precog-log-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: http-api Admin Log API
  version: '1.0'
  summary: The Precog admin HTTP REST API.
  description: The Precog admin HTTP REST API.
  contact:
    url: https://precog.com
    email: support@precog.com
servers:
- url: http://localhost:30000
security:
- BearerAuth: []
tags:
- name: Log
paths:
  /log:
    post:
      summary: Log a message
      tags:
      - Log
      operationId: post-log
      responses:
        '204':
          description: No Content - logged
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error-message'
        '401':
          description: Unauthorized
      description: Log a message
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/log-message'
components:
  schemas:
    log-message:
      title: log-message
      type: object
      properties:
        level:
          type: string
          enum:
          - error
          - warn
          - info
          - debug
          - trace
        message:
          type: string
      required:
      - level
      - message
      examples: []
    error-message:
      title: error-message
      type: object
      properties:
        error:
          type: object
          required:
          - type
          - details
          properties:
            type:
              type: string
              minLength: 1
            details:
              type: string
      required:
      - error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer