Log Sources

Create a log source

Changed on

Create a log source. Native mode takes vendor credentials in metadata, validates them, and provisions delivery behind the log source. Manual mode mints the log source plus a keyed log stream and returns the intake key and endpoint card(s) to point the sender at.

post/log-sources

Request

  • Base URL: https://api.sazabi.com/v1
  • URL: https://api.sazabi.com/v1/log-sources
  • Auth: none declared

Request body

projectIdstring uuid

Project to create the log source in. Auto-filled from SDK context when omitted.

provider'vercel' | 'cloudflare' | 'railway' | 'render' | 'fly_io' | 'netlify' | 'supabase' | 'digital_ocean' | 'inngest' | 'trigger_dev' | 'temporal' | 'mastra' | 'neon' | 'langchain' | 'daytona' | 'e2b' | 'cloudwatch' | 'convex' | 'datadog' | 'sentry' | 'sentry_platform' | 'openrouter' | 'posthog' | 'posthog_sdk' | 'gcp' | 'otel' | 'otel_metrics' | 'fluent_bit' | 'vector' | 'grafana_alloy' | 'otel_collector' | 'cloudflare_workers' | 'elastic_cloud' | 'porter' | 'respan' | 'plain' | 'prometheus' | 'webhook_events' | 'claude_code' | 'codex' | 'sazabi_browser_sdk' | 'oh_my_pi' | 'unkey' | 'evlog' | 'otel_traces' required

Log source provider identifier.

mode'native' | 'manual'

Setup mode: native or manual. Defaults to native when metadata is provided, otherwise manual. Must be a mode the provider supports (see modes on the provider catalog).

metadataobject

Vendor credentials and configuration for native setup. Fields vary by provider (see metadataFields on the provider catalog). Required for native mode; must be omitted for manual mode.

Response

OK

streamIdstring uuid

ID of the log stream created alongside the log source. Present for manual log sources (which always mint their keyed log stream) and for native providers that auto-provision a default log stream.

publicKeystring

Intake key minted for the log source. Store this securely — it is only shown once. Present for manual log sources and for native providers that ingest through a Sazabi endpoint.

Changes

    • warning

      added the new otel_traces enum value to the / response property for the response status

    • info

      added the new otel_traces enum value to the request property

    • warning

      added the new evlog enum value to the / response property for the response status

    • info

      added the new evlog enum value to the request property