Skip to main content

Two kinds of credential

Every request carries a bearer token: Authorization: Bearer <credential> Which credential depends on who is calling. Configure applications with an ingest key. A session token also works on POST /v1/ingest, which is convenient for trying the API by hand, but it expires with your session and carries every permission you have.

Creating an ingest key

  1. Open API Keys in the left sidebar (organisation admins).
  2. New key, type Ingest. Optionally pin it to one project, and give it an expiry.
  3. Copy the key: it is shown exactly once.
Put it in the SDK as apiKey / api_key, or in the STREAMLOGIA_API_KEY environment variable. Revoking the key on the same page stops it immediately.

Source keys

A source key is created on the Sources page when you connect a host or a collector, and is what the agent installer asks for. It is bound to that source and is not interchangeable with an ingest key.