API: your monitoring data in your own scripts and tools

A programming interface for data, configuration and automation. Keys are managed in the app, exports run as a command, and AI assistants connect through an MCP endpoint.

Log export with filters, preview, formats and a command and API option
MCP endpoint for AI assistants, secured with an API key
Audit log with people and keys as actors
Authentication
API keys, created and removed in settings
Exports
Command and API with curl, CSV, TXT, JSON or YAML
AI access
MCP endpoint, JSON-RPC 2.0 over HTTP, read-only
Traceability
Audit log lists keys as actors
Product tour

How your team works with API

Exports, the MCP endpoint, API keys, the audit log and workflows: these views come straight from the Obseria app and show where programmatic access starts and where it is recorded.
01 / 05

Test the filter, then automate it

Choose a time range, services, levels and a search, check the preview and download, or run the same export as a command with curl and an API key.

  • Up to 30 days per export
  • CSV, TXT, JSON or YAML
  • Command and API option
Learn more
Test the filter, then automate it
02 / 05

Connect assistants in three steps

Create a key, paste the snippet into Claude, Cursor or another MCP client and watch for the first call. The endpoint uses JSON-RPC 2.0 over HTTP.

  • Bearer token in the Authorization header
  • Read-only tools
  • Key usage and last call visible
Learn more
Connect assistants in three steps
03 / 05

Keys next to users and roles

API keys live in the settings, next to user management, access management and authentication domains, so machine access follows the same rules as people.

  • Create and remove keys
  • Shown once at creation
  • Developer area in settings
Learn more
Keys next to users and roles
04 / 05

Traceable calls, people and keys

Every action is recorded with time, resource, actor and result. Refused and failed requests are counted, so a broken integration stands out.

  • Keys as actors
  • Refused and failed counts
  • Changes over time
Learn more
Traceable calls, people and keys
05 / 05

When a workflow is enough

Not every automation needs a script. Workflows run on a schedule or on events, for example to create a ticket or send a message.

  • Cron schedules
  • Templates by category
  • Last and next run
When a workflow is enough
Capabilities

Programmatic access, under your control

API keys, exports, the MCP endpoint and an audit log: the pieces you need to connect Obseria to your own tools.
API

API

Programming interface for data, configuration and automation.

MCP server for AI agents

MCP server for AI agents

Provides your data to AI assistants via the Model Context Protocol.

Learn more →
  • Data export (CSV/JSON, API)
  • Access control and SSO
How it works

From a question to a script that answers it every day

Five steps from a manual check in the app to an automated job with its own key.
    • Filter tested in the app
    • Preview: 1,240 rows
    • Format: JSON
    01

    Try it in the app

    Build the filter in the log explorer, query builder or export first, and check the result with a preview.

  1. Key
    export-nightlyShown once – copy it now
    New API key
    02

    Create a key

    Create an API key for this one job in the settings. It is shown once; store it in your secret manager.

  2. Illustrative call
    03

    Call the API

    Run the export as a command with curl and the key, or connect an AI assistant to the MCP endpoint.

  3. Nightly job · 30 of 30 runs OK
    04

    Automate

    Schedule the script in your CI system or a cron job, or let a workflow or webhook react to events.

  4. export-nightly30
    mcp-claude17
    ci-check6
    Actions per key · audit log
    05

    Review

    Check in the audit log what the key did, and remove keys that are no longer used.

In depth

How API works

API keys

One key per job, managed in the app

Programmatic access to Obseria starts with an API key. Keys are created and removed in the settings of your organization. A new key is shown only once, so copy it straight into a secret manager or the protected variables of your CI system.

Use one key per script, export or assistant and give it a clear name. If an integration is retired or a key may have leaked, you remove exactly that key and nothing else breaks.

Keys are part of access control: the same settings area also manages users, roles and sign-in with your company login.

  • Create and remove keys in settings
  • Key shown only once at creation
  • One key per integration
  • Managed next to users and roles
Exports via API

The same export by hand or as a command

The log export in Obseria takes a time range of up to 30 days, a list of services, log levels and a full-text search in the log body. A preview shows how many rows match before you download them as CSV, TXT, JSON or YAML, with a row limit per export.

Next to the download, the export offers a command and API option that uses curl with an API key. That turns a filter you tested in the app into a job that runs every night without anyone clicking.

Keep large jobs within the limits: split long periods into several smaller exports instead of asking for everything at once.

  • Time range, services, levels and search
  • Preview before download
  • CSV, TXT, JSON or YAML
  • Command and API with curl and a key
MCP endpoint

AI assistants without a custom integration

For AI assistants, Obseria provides an MCP endpoint. Clients such as Claude, Cursor or GitHub Copilot connect using JSON-RPC 2.0 over HTTP and an API key in the Authorization header. You create the key, paste a configuration snippet into the client and test the connection in the app.

The MCP tools only read data and do not change anything. The setup page shows whether keys exist, whether they have been used and when the last call happened.

For many questions this replaces a hand-written integration: instead of coding a query, you ask the assistant, and it fetches the data through the endpoint.

  • JSON-RPC 2.0 over HTTP
  • API key as bearer token
  • Read-only tools
  • Connection test and last use in the app
Audit log & webhooks

Every call traceable, and events pushed to you

The audit log records actions with time, action, resource, actor and result. Keys appear as actors next to people, and refused or failed requests are counted separately. That makes it easy to see which integration did what, and to spot a key that suddenly gets refused.

Not every integration has to poll. Notification channels can call any system through a webhook when an alert fires, and workflow automation runs steps on a schedule or on events.

Together this covers both directions: your scripts ask Obseria, and Obseria tells your systems when something happens.

  • Keys listed as actors in the audit log
  • Refused and failed requests visible
  • Webhooks as notification channel
  • Workflows on schedules or events
Integrations

Connect your own tools and assistants

Call Obseria from scripts in any language, connect AI clients through the MCP endpoint, and receive alerts in your own systems through a webhook.
  • Obseria MCP
  • Claude
  • Cursor
  • GitHub Copilot
  • Python
  • Node.js
  • Go
  • { }Webhook
Guide

Monitoring APIs explained: keys, exports and automation

What an observability API is

An observability API is the programming interface of a monitoring platform. Instead of clicking through the web interface, scripts and other systems talk to the platform over HTTP: they read data, change configuration or trigger actions. Almost every team reaches the point where the user interface is not enough on its own. Someone wants last night's error logs in a spreadsheet, a deployment pipeline should check a service before it continues, or an internal portal should show the health of the services it lists.

An API turns the platform from a place people look at into a building block other tools can use. That is also why access to it needs the same care as access to the user interface.

Typical use cases for a monitoring API

  • Exporting data: pull logs or query results as CSV or JSON into a spreadsheet, a data warehouse or a report, on demand or on a schedule.
  • Automation: let a script or a CI/CD job read the state of a service or create something in the platform as part of a larger process.
  • Configuration: keep recurring setup steps in scripts so that new environments or teams get the same configuration every time.
  • Integrations: connect internal tools, portals or chat bots that need monitoring data.
  • AI assistants: give an assistant controlled access to production data, increasingly through the Model Context Protocol (MCP) rather than a hand-written integration.

Authentication with API keys

Most monitoring APIs use API keys for authentication. The key is sent with each request, usually in the Authorization header as a bearer token. A few rules keep this safe:

  1. One key per integration. A nightly export, a CI job and an AI assistant each get their own key, so you can remove one without breaking the others.
  2. Never in code. Keep keys in a secret manager or in the protected variables of your CI system, not in a repository.
  3. Name keys clearly. A name like export-nightly tells a reviewer what a key is for months later.
  4. Rotate and remove. Replace keys when people with access leave, and delete keys of retired integrations.
  5. Watch usage. An audit log that lists keys as actors shows what each key did and whether it is still in use.

API, export or MCP: which one to use

Not every task needs custom code. A good rule of thumb:

  • One-off question: use the query builder or log explorer in the app.
  • A file for someone else: use the export with a preview and download it as CSV, TXT, JSON or YAML.
  • The same file every day: run the export as a command or API call with a key, for example from a scheduled job.
  • Questions in natural language: connect an AI assistant through the MCP server instead of writing an integration.
  • A reaction to an alert: use a webhook as a notification channel, so Obseria calls your system when something happens.

Good practice for scripts against monitoring data

  • Filter early. Ask for the time range, services and levels you need. Smaller requests are faster and easier to check.
  • Respect limits. Exports have a maximum time range and number of rows. Split large jobs into smaller periods rather than fighting the limit.
  • Handle errors. Treat refused and failed requests as signals. A refused request often means a missing permission or an expired key.
  • Keep personal data out. If logs contain email or IP addresses, mask them at ingest so exports and scripts never see them.
  • Document ownership. Every script that uses a key should have an owner who knows what it does.

Common mistakes with monitoring APIs

  • One key for everything. When a single key is shared by every script, revoking it breaks all of them, so nobody ever does.
  • Polling too often. A script that asks for the same data every few seconds creates load and rarely adds value. Use webhooks for events and sensible intervals for reports.
  • Silent failures. A nightly export that fails without anyone noticing is worse than none. Log the result of each run and alert on repeated failures.
  • Personal data in exports. Exported files are easily forwarded. Mask what you do not need before it is stored.

The Obseria API in practice

Obseria offers a programming interface for data, configuration and automation. What is visible in the app today:

  • API keys are created and removed in the settings. A key is shown only once at creation, so store it in a secret manager right away.
  • Exports via API: the log export offers a command and API option that uses curl with an API key, next to the download with preview in the app.
  • MCP endpoint: AI assistants such as Claude, Cursor or GitHub Copilot connect to Obseria through an MCP endpoint, using JSON-RPC 2.0 over HTTP and an API key in the Authorization header. The MCP tools only read data.
  • Audit log: actions are recorded with actor, resource and result, and keys appear as actors next to people.
  • Webhooks: for the opposite direction, notification channels can call any system through a webhook when an alert fires.

Which data and settings are available through the API, and how to call them, is documented for customers. If your use case depends on a specific endpoint, ask us before you build on it.

FAQ

Questions about API

Answers on features, setup and what is not included yet.
Contact us

API FAQ

Read data, work with configuration and automate recurring steps from your own scripts and tools. Typical uses are scheduled exports, checks from a CI/CD pipeline and connecting internal tools or AI assistants.

With an API key that you create in the settings. The key is shown only once at creation. The MCP endpoint expects it in the Authorization header as a bearer token.

Yes. The log export offers a command and API option that uses curl with an API key. The same filters apply as in the app: time range, services, log levels and a full-text search, with limits on time range and rows.

The MCP server is a separate endpoint for AI assistants. It uses JSON-RPC 2.0 over HTTP and the same kind of API key. Its tools only read data. The MCP integration is currently marked as beta.

Yes, through a webhook configured as a notification channel. When an alert fires, Obseria sends the notification to your endpoint. Workflow automation can also run steps on a schedule or on events.

The audit log lists actions with actor, resource and result. Keys appear as actors next to people, so you can filter for one integration.

The available data, settings and calls are documented for customers. If your project depends on a specific endpoint, contact us before you build on it and we will confirm what is available.

This page does not promise specific endpoints. Configuration as code through a Terraform provider is not part of Obseria today, and the MCP tools are read-only, so assistants cannot change settings. If you need something beyond exports, the MCP endpoint and webhooks, tell us about your use case.

Contact

See API in action

In 30 minutes we show you how Obseria works in your environment and answer your questions on setup, privacy and pricing.

  • No obligation, free of charge
  • Usually answered within one business day
  • Data in the EU
Your contact
Your contactObseria team

* Required field. By submitting, you agree to the processing of your details as described in our Privacy Notice