Rowsafe API

Rowsafe API as documented publicly: 20 operations. Contract generated from the documentation by API Evangelist (2026-11-24); not the provider's own document.

GitHub OpenAPI

Operations 20

GET /metrics Prometheus metrics for a server running Rowsafe on its own #
POST /v1/ask Ask a question #
DELETE /v1/ask/conversations Deletes every conversation (audited) #
GET /v1/ask/conversations The organization's conversations, newest first #
DELETE /v1/ask/conversations/{id} Deletes one conversation #
GET /v1/ask/conversations/{id} One conversation with its messages, sources and actions #
DELETE /v1/ask/key Removes the stored provider key #
PUT /v1/ask/key Set the provider key for Ask Rowsafe #
POST /v1/ask/messages/{id}/feedback Submit feedback for a message #
GET /v1/ask/settings On or off, answer source (builtin, own_key or none), models, this month's usage, who handles a question #
PUT /v1/ask/settings Turns Ask Rowsafe on or off #
GET /v1/ask/suggestions Up to four questions worth asking now, from current findings and alerts #
POST /v1/databases/{ref}/fixes Apply a fix returned by the Ask API #
GET /v1/databases/{ref}/logs Logs API and log forwarding #
GET /v1/databases/{ref}/logs/groups Logs API and log forwarding #
GET /v1/databases/{ref}/logs/overview Logs API and log forwarding #
PATCH /v1/databases/{ref}/logs/settings Logs API and log forwarding #
POST /v1/log-destinations Logs API and log forwarding #
DELETE /v1/log-destinations/{id} Logs API and log forwarding #
POST /v1/log-destinations/{id}/test Logs API and log forwarding #

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/rowsafe-sh:rowsafe-sh-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

rowsafe-sh-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Rowsafe API
  version: '2026-11-24'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-24: 20 operation(s) read from 6 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Rowsafe has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 0
    documentation: 20
    pages-with-code: 2
    pages-read: 6
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-24'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://rowsafe.sh/docs/reference/ask
  - https://rowsafe.sh/docs/reference/log-forwarding
  - https://rowsafe.sh/llms.mdx/docs/reference/ask.md
  - https://rowsafe.sh/llms.mdx/docs/reference/cli.md
  - https://rowsafe.sh/docs/reference/agent-configuration
  - https://rowsafe.sh/llms.mdx/docs/reference/log-forwarding.md
paths:
  /metrics:
    get:
      operationId: get_metrics
      tags:
      - Metrics
      summary: Prometheus metrics for a server running Rowsafe on its own
      x-source: https://rowsafe.sh/docs/reference/agent-configuration
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/ask:
    post:
      operationId: post_v1_ask
      tags:
      - Ask
      summary: Ask a question
      x-source: https://rowsafe.sh/docs/reference/ask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1AskRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1AskResponse'
      x-evidence:
        kind: documentation
  /v1/ask/conversations:
    delete:
      operationId: delete_v1_ask_conversations
      tags:
      - Ask
      summary: Deletes every conversation (audited)
      x-source: https://rowsafe.sh/docs/reference/ask
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    get:
      operationId: get_v1_ask_conversations
      tags:
      - Ask
      summary: The organization's conversations, newest first
      x-source: https://rowsafe.sh/docs/reference/ask
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/ask/conversations/{id}:
    delete:
      operationId: delete_v1_ask_conversations_id
      tags:
      - Ask
      summary: Deletes one conversation
      x-source: https://rowsafe.sh/docs/reference/ask
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    get:
      operationId: get_v1_ask_conversations_id
      tags:
      - Ask
      summary: One conversation with its messages, sources and actions
      x-source: https://rowsafe.sh/docs/reference/ask
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/ask/key:
    delete:
      operationId: delete_v1_ask_key
      tags:
      - Ask
      summary: Removes the stored provider key
      x-source: https://rowsafe.sh/docs/reference/ask
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    put:
      operationId: put_v1_ask_key
      tags:
      - Ask
      summary: Set the provider key for Ask Rowsafe
      x-source: https://rowsafe.sh/docs/reference/ask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutV1AskKeyRequest'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/ask/messages/{id}/feedback:
    post:
      operationId: post_v1_ask_messages_id_feedback
      tags:
      - Ask
      summary: Submit feedback for a message
      x-source: https://rowsafe.sh/docs/reference/ask
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1AskMessagesIdFeedbackRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/ask/settings:
    get:
      operationId: get_v1_ask_settings
      tags:
      - Ask
      summary: On or off, answer source (builtin, own_key or none), models, this month's usage, who handles a question
      x-source: https://rowsafe.sh/docs/reference/ask
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    put:
      operationId: put_v1_ask_settings
      tags:
      - Ask
      summary: Turns Ask Rowsafe on or off
      x-source: https://rowsafe.sh/docs/reference/ask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutV1AskSettingsRequest'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/ask/suggestions:
    get:
      operationId: get_v1_ask_suggestions
      tags:
      - Ask
      summary: Up to four questions worth asking now, from current findings and alerts
      x-source: https://rowsafe.sh/docs/reference/ask
      parameters:
      - name: database
        in: query
        required: false
        schema:
          type: string
        description: Database to scope suggestions.
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/databases/{ref}/fixes:
    post:
      operationId: post_v1_databases_ref_fixes
      tags:
      - Databases
      summary: Apply a fix returned by the Ask API
      x-source: https://rowsafe.sh/docs/reference/ask
      parameters:
      - name: ref
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/databases/{ref}/logs:
    get:
      operationId: get_v1_databases_ref_logs
      tags:
      - Databases
      summary: Logs API and log forwarding
      x-source: https://rowsafe.sh/docs/reference/log-forwarding
      parameters:
      - name: ref
        in: path
        required: true
        schema:
          type: string
      - name: kind
        in: query
        required: false
        schema:
          type: string
        description: a kind, or errors , locks , maintenance
      - name: q
        in: query
        required: false
        schema:
          type: string
        description: search
      - name: group
        in: query
        required: false
        schema:
          type: string
      - name: from
        in: query
        required: false
        schema:
          type: string
      - name: to
        in: query
        required: false
        schema:
          type: string
      - name: before
        in: query
        required: false
        schema:
          type: string
      - name: after
        in: query
        required: false
        schema:
          type: string
        description: line IDs
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: up to 500
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1DatabasesRefLogsResponse'
      x-evidence:
        kind: documentation
  /v1/databases/{ref}/logs/groups:
    get:
      operationId: get_v1_databases_ref_logs_groups
      tags:
      - Databases
      summary: Logs API and log forwarding
      x-source: https://rowsafe.sh/docs/reference/log-forwarding
      parameters:
      - name: ref
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1DatabasesRefLogsGroupsResponse'
      x-evidence:
        kind: documentation
  /v1/databases/{ref}/logs/overview:
    get:
      operationId: get_v1_databases_ref_logs_overview
      tags:
      - Databases
      summary: Logs API and log forwarding
      x-source: https://rowsafe.sh/docs/reference/log-forwarding
      parameters:
      - name: ref
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1DatabasesRefLogsOverviewResponse'
      x-evidence:
        kind: documentation
  /v1/databases/{ref}/logs/settings:
    patch:
      operationId: patch_v1_databases_ref_logs_settings
      tags:
      - Databases
      summary: Logs API and log forwarding
      x-source: https://rowsafe.sh/docs/reference/log-forwarding
      parameters:
      - name: ref
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchV1DatabasesRefLogsSettingsRequest'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/log-destinations:
    post:
      operationId: post_v1_log_destinations
      tags:
      - Log Destinations
      summary: Logs API and log forwarding
      x-source: https://rowsafe.sh/docs/reference/log-forwarding
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1LogDestinationsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/log-destinations/{id}:
    delete:
      operationId: delete_v1_log_destinations_id
      tags:
      - Log Destinations
      summary: Logs API and log forwarding
      x-source: https://rowsafe.sh/docs/reference/log-forwarding
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/log-destinations/{id}/test:
    post:
      operationId: post_v1_log_destinations_id_test
      tags:
      - Log Destinations
      summary: Logs API and log forwarding
      x-source: https://rowsafe.sh/docs/reference/log-forwarding
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1LogDestinationsIdTestResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    PostV1AskRequest:
      type: object
      properties:
        question:
          type: string
          description: 1 to 2,000 characters.
        database:
          type: string
          description: Scope to one database.
        conversation_id:
          type: string
          description: Continue a conversation (keeps its database).
        deep:
          type: boolean
          description: Use the stronger model.
        about:
          type: object
          description: 'The item an Explain button was pressed on: finding (finding id and database), alert (alert id), or query (query id and
            database).'
      required:
      - question
    PostV1AskResponse:
      type: object
      properties:
        type:
          type: string
          description: Event name.
        data:
          type: object
          description: Event payload, varies by type (e.g., start, message_id, tool, text, source, action, done, error).
    PutV1AskKeyRequest:
      type: object
      properties:
        provider:
          type: string
          description: openrouter | anthropic | openai
        api_key:
          type: string
          description: Provider API key.
        fast_model:
          type: string
          description: Fast model identifier.
        deep_model:
          type: string
          description: Deep model identifier.
      required:
      - provider
      - api_key
    PostV1AskMessagesIdFeedbackRequest:
      type: object
      properties:
        rating:
          type: string
          description: up | down | (empty)
      required:
      - rating
    PutV1AskSettingsRequest:
      type: object
      properties:
        enabled:
          type: boolean
          description: true to turn on, false to turn off.
      required:
      - enabled
    GetV1DatabasesRefLogsResponse:
      type: object
      properties:
        lines:
          type: array
          description: Log lines, newest first
    GetV1DatabasesRefLogsGroupsResponse:
      type: object
      properties:
        groups:
          type: array
          description: Repeated messages with count, first and last time, newest line
    GetV1DatabasesRefLogsOverviewResponse:
      type: object
      properties:
        settings:
          type: object
          description: Agent log reading settings
        counts_per_kind:
          type: object
          description: Counts per kind in 24 hours
        retention:
          type: string
        today_usage:
          type: string
    PatchV1DatabasesRefLogsSettingsRequest:
      type: object
      properties:
        enabled:
          type: boolean
        full_text:
          type: boolean
    PostV1LogDestinationsRequest:
      type: object
      properties:
        type:
          type: string
        name:
          type: string
        config:
          type: object
          description: site (Datadog), url, host and port (syslog, Papertrail), username, index
        filter:
          type: object
          description: '{"kinds": ["errors", "auth_failure"], "database_ids": []}'
        secret:
          type: string
      required:
      - type
      - name
      - config
    PostV1LogDestinationsIdTestResponse:
      type: object
      properties:
        ok:
          type: boolean
        error:
          type: string
          description: present when ok is false
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
security:
- apiKey: []
tags:
- name: Ask
- name: Databases
- name: Log Destinations
- name: Metrics