Create an agent
Creates the agent record and its key. agent_key is returned only in this response; Observer stores a hash and cannot show it again (rotate the key to get a new one). install holds ready-to-run snippets with the key filled in. Names need not be unique: list with name first to reuse an agent instead of creating a duplicate. Each agent counts toward the organization’s plan limit.
Authorizations
An organization API key (obs_pub_…) sent as Authorization: Bearer <key>. Each key carries scopes; an endpoint lists the scope it needs.
Body
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).
1 - 120500Prometheus 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
The agent, without its placeholder install and env (the ones below carry the key).
The agent key (obs_live_…). Returned only in this response; Observer stores a hash and cannot show it again.
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.
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.

