v14

latestOpenAPI 3.0.32026-08-04377889.4 MB
logDrains

Creates a Configurable Log Drain (deprecated)

Creates a configurable log drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed)

post/v1/log-drains

Query parameters

teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l

The Team identifier to perform the request on behalf of.

slugstring
Example:my-team-url-slug

The Team slug to perform the request on behalf of.

Request body

deliveryFormat'json' | 'ndjson' required

The delivery log format

urlstring uri required

The log drain url

headersobject

Headers to be sent together with the request

projectIdsstring[]
sourcesstring[] required
environmentsstring[]
secretstring

Custom secret of log drain

samplingRatenumber

The sampling rate for this log drain. It should be a percentage rate between 0 and 100. With max 2 decimal points

namestring

The custom name of this log drain.

Example request

{
  "deliveryFormat": "json"
}

Response

object required