Create a prospective log destination within the plan allowance
POST /v1/log_streams: Create a prospective log destination within the plan allowance.
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
Request body
Section titled “Request body”typestring Requiredone of
datadog,splunk_hec,http,s3
HTTPS URL without user information, query or fragment. Redirects are refused.endpointstringmax length 2048
tokenstringmin length 1 · max length 4096
regionstringmax length 64
bucketstringmax length 63
prefixstringmax length 256
access_key_idstringmax length 128
secret_access_keystringmax length 4096
session_tokenstringmax length 4096
Responses
Section titled “Responses”- 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"}'const response = await fetch("https://api.ohauthcat.com/v1/log_streams", { method: "POST", headers: { Authorization: `Bearer ${process.env.OHAUTHCAT_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "type": "datadog" }),});const data = await response.json();import osimport requests
response = requests.post( "https://api.ohauthcat.com/v1/log_streams", headers={"Authorization": f"Bearer {os.environ['OHAUTHCAT_API_KEY']}"}, json={ "type": "datadog", },)data = response.json(){ "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"}