OpenObserve Docs
User GuideAccount & AdministrationIdentity and access management

Ingestion Tokens

Updated View MarkdownOpen in ChatGPTOpen in Claude

This guide explains how to create, manage, and use organization-level ingestion tokens. These tokens decouple ingestion credentials from individual user accounts, ensuring your data pipelines keep working even when users leave the organization.

Overview

Organization-level ingestion tokens provide a stable, org-scoped credential for sending data into OpenObserve. Unlike user-bound tokens, org-level tokens:

  • Are not tied to a specific user — they survive user removal or role changes.
  • Can only be used on ingestion endpoints — they are rejected on any other API path.
  • Are prefixed with o2oi_ for fast identification.
  • Support multiple named tokens per organization, each independently enabled or disabled.

A default token is created automatically when a new organization is provisioned.

Managing ingestion tokens

Navigate to IAM > Ingestion Tokens to view and manage org-level tokens.

IAM Ingestion Tokens list with the default and docs-ingest tokens

The page lists all tokens for the current organization with these columns:

  • Name — the token name you assign at creation.
  • Authorization — the ready-to-use Basic Authorization header for the token, with a copy button.
  • Splunk HEC token — the token's Splunk HEC token, or Not enabled.
  • Status — whether the token is enabled.
  • Created by — the user who created the token.
  • Actions — generate or revoke the Splunk HEC token, and enable or disable the token. Disabled tokens cannot be used for ingestion.

Create a token

  1. On the Ingestion Tokens page, click Create New Token.
  2. In the dialog, enter:
    • Name (required) — alphanumeric characters, hyphens (-), and underscores (_) only. Maximum 256 characters.
    • Description (optional) — free-text notes about the token's purpose.
    • Also create a Splunk HEC token (optional) — lets Splunk forwarders and HEC clients send data to this organization.
  3. Click Create.

Create Token dialog with name, description and the Splunk HEC option

After creation, the New Token Generated dialog shows the Authorization header (ready to use). Use Copy Authorization header to copy the header value, or Copy raw token to copy only the token. The token list keeps the Authorization header available for copying later.

New Token Generated dialog with the ready-to-use Authorization header

Enable or disable a token

Click the Disable/Enable button in the Actions column to disable or enable a token. Disabled tokens are immediately rejected on ingestion endpoints. Enabling a token restores its functionality.

Using tokens on the Ingestion page

When you visit the Data sources page, a token selector dropdown appears above the curl examples. The dropdown lists all enabled org-level ingestion tokens for the current organization. Select a token to populate the curl commands with that credential.

Data sources page with the token selector and Manage Tokens button

Click Manage Tokens next to the selector to jump directly to the IAM > Ingestion Tokens page.

Sending data with an org token

Use the token as the password in your ingestion requests. For example, with curl:

curl -i https://your-instance/api/default/_json \
  -u "my-token:o2oi_xxxx" \
  -d '[{"timestamp": "2026-06-24T12:00:00Z", "level": "info", "message": "hello"}]'

The password is the token value (prefixed with o2oi_). The Authorization header shown on the Ingestion Tokens page uses the token name as the username.

The default token

Every organization gets a default ingestion token named default, created automatically when the organization is provisioned. The default token:

  • Appears at the top of the token list.
  • Works like any other token — you can enable or disable it.
  • Is returned by the passcode API endpoint (GET /{org_id}/passcode), replacing the old user-bound token.

Permissions

  • List, create, enable, disable: Requires the Admin or Root role. In Enterprise deployments with RBAC enabled, a role can also be granted this access.
Was this page helpful?

On this page