Skip to content
Dashboard
Theme
Theme

Create a prospective log destination within the plan allowance

POST /v1/log_streams: Create a prospective log destination within the plan allowance.

View Markdown

POST /v1/log_streams

Credentials are encrypted and never returned. Existing destinations continue after a plan downgrade. Provider acceptance does not establish indexing or exactly-once external delivery.

Scope
log_streams:write
Auth
Secret key (sk_…)
Since
1.0
  • type string Required

    one of datadog, splunk_hec, http, s3

  • endpoint string

    HTTPS URL without user information, query or fragment. Redirects are refused.

    max length 2048

  • token string

    min length 1 · max length 4096

  • region string

    max length 64

  • bucket string

    max length 63

  • prefix string

    max length 256

  • access_key_id string

    max length 128

  • secret_access_key string

    max length 4096

  • session_token string

    max length 4096

  • 201 Created LogStream
  • default Any other error, including internal_error. Every code is in the error catalogue. Error

Errors share one shape; see the error code catalogue.

curl -X POST \
"https://api.ohauthcat.com/v1/log_streams" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "datadog"
}'
Response 201
{
"id": "lst_01J9ZQ4M7K2X8V3N5B6C1D0E9F",
"object": "log_stream",
"type": "datadog",
"created_at": "2026-01-15T09:30:00Z",
"endpoint": "https://app.acme.com/callback",
"region": "example_region",
"bucket": "example_bucket",
"prefix": "sk_test",
"organization": "org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"usage_month": "example_usage_month",
"delivered_bytes": "example_delivered_bytes"
}