POST /v1/log-drains

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

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Query parameters

Name Type Required Description
teamId String No

The Team identifier to perform the request on behalf of.

slug String No

The Team slug to perform the request on behalf of.

Request body fields

Name Type Required Description
projectIds[] Array No
environments[] Array No
sources[] Array Yes
samplingRate Number No

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

name String No

The custom name of this log drain.

url String Yes

The log drain url

deliveryFormat String Yes

The delivery log format

Valid values:

  • "ndjson"
  • "json"
headers Object No

Headers to be sent together with the request

secret String No

Custom secret of log drain

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.