# 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](https://developer.watchtower15.com/ingest/metrics/) |
| Log ingest | `POST /api/log-sources/ingest` | The log source’s, `wt15ls_…` | [Logs ingest](https://developer.watchtower15.com/ingest/logs/) |

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`](https://developer.watchtower15.com/openapi/ingest.json), rendered in the [Ingest reference](https://developer.watchtower15.com/ingest/reference/) and listed with its fingerprint on [Specifications](https://developer.watchtower15.com/specs/). Both calls are also in the [Postman collection](https://developer.watchtower15.com/specs/#postman). A source and its token are created in the console: see [metric sources](https://docs.watchtower15.com/metrics/sources/) and [log sources](https://docs.watchtower15.com/logs/custom-sources/) in the product documentation.

Source: https://developer.watchtower15.com/ingest/
