For the complete documentation index, see llms.txt. This page is also available as Markdown.

Event Sinks

Event sinks are event alert destinations. You can create, read, update, and delete event sinks with the Scanner API.

Create a new event sink

POST /v1/event_sink

Create a new event sink with the specified data.

Body

Name
Type
Description

tenant_id required

string

Unique identifier for the tenant

name required

string

Name of the event sink

description required

string

Description of the event sink

event_sink_args required

See Create event sink arguments

Event sink details

Create event sink arguments

To create a Slack event sink, we need the channel ID and the Scanner Slack integration ID, e.g.

{ 
    "Slack": {
        "channel_id": "C12345678",
        "slack_integration_id": "00000000-0000-0000-0000-000000000001",
    }
}

Note: the API still supports the channel parameter (with a channel name), but channel is deprecated in favor of channel_id.

To create a webhook event sink, we need the url, e.g.

To create a PagerDuty event sink, we need the Events API V2 integration key, e.g.

Example

Response

Returns the newly created event sink.

List event sinks

GET /v1/event_sink

List all event sinks for a tenant.

Query parameters

Name
Type
Description

tenant_id required

string

Unique identifier for the tenant

pagination[page_size]

number

Maximum number of results to return in a page. Defaults to 50.

pagination[page_token]

string

Cursor for pagination. Pass back the next_page_token returned in a previous response's pagination. If omitted, paging starts at the beginning of the list.

Example

Response

Returns a paginated envelope whose data.event_sinks is a list of event sink objects. The pagination object carries the next_page_token to pass as the next request's pagination[page_token]; next_page_token is null when there are no more pages.

Get an event sink

GET /v1/event_sink/{id}

Get the event sink with the given id.

Example

Response

Returns the event sink object.

Update an event sink

PUT /v1/event_sink/{id}

Update the event sink with the given id.

Body

Name
Type
Description

id required

string

Unique identifier for the event sink

name

string

Update the name of the event sink

description

string

Update the description of the event sink

event_sink_args

See Update event sink arguments

Update the event sink details

Update event sink arguments

To update a Slack event sink, we need the new channel ID, e.g.

Note: the API still supports the channel parameter (with a channel name), but channel is deprecated in favor of channel_id.

To update a webhook event sink, we need the new url, e.g.

To update a PagerDuty event sink, we need the new Events API V2 integration key, e.g.

Example

Response

Returns the updated event sink object.

Delete an event sink

DELETE /v1/event_sink/{id}

Delete the event sink with the given id.

Example

Response

Returns the id and tenant_id for the deleted event sink.

Last updated

Was this helpful?