Ingest
Ingest APIs
Two APIs take data in: custom metric points and log lines. They are separate from the REST API: a different host,
https://api.watchtower15.com, and a different credential. Each takes its own source’s token, never an API key: a
metric source’s token (wt15ms_…) on metric ingest and a log source’s token (wt15ls_…) on log ingest, each sent as
Authorization: Bearer <token>. A token belongs to one source and works on that source’s operations only.
| API | Calls | Token | Guide |
|---|---|---|---|
| Metric ingest | POST /api/metric-sources/ingest, GET /api/metric-sources/ingest |
The metric source’s, wt15ms_… |
Metrics ingest |
| Log ingest | POST /api/log-sources/ingest |
The log source’s, wt15ls_… |
Logs ingest |
Every answer, a failure too, is the same envelope: status, status_code, data, request_id and timestamp, with
message and errors where they apply.
Both APIs are described by one OpenAPI document, ingest.json, rendered in the
Ingest reference and listed with its fingerprint on Specifications. Both calls are also in the Postman collection. A source and its
token are created in the console: see metric sources and
log sources in the product documentation.