Skip to main content
POST
Create an Observer Agent and get its key (shown once) with install commands

Authorizations

Authorization
string
header
required

An organization API key (obs_pub_…) sent as Authorization: Bearer <key>. Each key carries scopes; an endpoint lists the scope it needs.

Body

application/json
name
string
required

Agent name. Config documents name the agent a metric runs on by this, so keep it unique in the organization (not enforced, as in the console).

Required string length: 1 - 120
description
string
Maximum string length: 500
prometheus_url
string<uri>

Prometheus base URL the agent will query, if it reads PromQL metrics. Omit for an agent that only runs probes (HTTP, TCP, DNS, database, ...).

Response

created

agent
object
required

The agent, without its placeholder install and env (the ones below carry the key).

agent_key
string
required

The agent key (obs_live_…). Returned only in this response; Observer stores a hash and cannot show it again.

install
object
required

Install snippets, one per target: docker (docker run), compose, kubernetes (Secret + Deployment manifest), systemd and binary. Without prometheus_url they are for a probes-only agent. The agent key is filled in.

env
object
required

The agent's environment as NAME: value (AGENT_KEY, CLOUD_SERVER_URL, and PROMETHEUS_SERVER_URL for a Prometheus agent), for installs the snippets do not cover, such as an existing Compose file or Helm values. The agent key is filled in.