Skip to content

Connections

Which destinations each source's events go to. Authentication, errors and limits are on the overview.

List connections

GET /api/v1/projects/{project_id}/environments/{environment_id}/connections

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
source_idquerystringOnly this source's connections (src_ ID).
destination_idquerystringOnly this destination's connections (dst_ ID).

Responses

StatusDescriptionBody
200Oldest firstConnection[]
401No API key, or it is invalid or revokedProblem
404No such environment, or no accessProblem
422A malformed filter IDProblem
429Over the key's rate limit; Retry-After says when to try againProblem

Create connection

POST /api/v1/projects/{project_id}/environments/{environment_id}/connections

Sends the source's next events to the destination too.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID

Request body

JSON, CreateConnection.

FieldTypeDescription
destination_id requiredstring
filterobject | nullAs in Connection; every event when left out.
source_id requiredstring
transformationobject[] | nullAs in Connection; the body as stored when left out.

Responses

StatusDescriptionBody
201CreatedConnection
401No API key, or it is invalid or revokedProblem
404No such environment, or no accessProblem
409Already connectedProblem
422No such source or destination in the environment, or an invalid filter or transformationProblem
429Over the key's rate limit; Retry-After says when to try againProblem

Delete connection

DELETE /api/v1/projects/{project_id}/environments/{environment_id}/connections/{connection_id}

The source's next events stop going to the destination.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
connection_id requiredpathstringcon_ ID

Responses

StatusDescriptionBody
204Deleted
401No API key, or it is invalid or revokedProblem
404No such connection, or no accessProblem
429Over the key's rate limit; Retry-After says when to try againProblem

Get connection

GET /api/v1/projects/{project_id}/environments/{environment_id}/connections/{connection_id}

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
connection_id requiredpathstringcon_ ID

Responses

StatusDescriptionBody
200The connectionConnection
401No API key, or it is invalid or revokedProblem
404No such connection, or no accessProblem
429Over the key's rate limit; Retry-After says when to try againProblem

Update connection

PATCH /api/v1/projects/{project_id}/environments/{environment_id}/connections/{connection_id}

Pause or resume it, or change its filter or transformation.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
connection_id requiredpathstringcon_ ID

Request body

JSON, UpdateConnection.

FieldTypeDescription
filterobject | null
pausedboolean | null
transformationobject[] | null

Responses

StatusDescriptionBody
200UpdatedConnection
401No API key, or it is invalid or revokedProblem
404No such connection, or no accessProblem
422Invalid filter or transformationProblem
429Over the key's rate limit; Retry-After says when to try againProblem

Test rules

POST /api/v1/projects/{project_id}/environments/{environment_id}/rule-tests

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID

Request body

JSON, TestRules.

FieldTypeDescription
connection_idstring | nullcon_ ID: its current filter and transformation, instead of the two above.
event_idsstring[]1 to 50 evt_ IDs.
filterobject | nullA connection filter (P3-03); none passes every event.
transformationobject[] | nullA connection transformation's steps (P2-38); none keeps the body.

Responses

StatusDescriptionBody
200What each event would doRuleTestResults
401No API key, or it is invalid or revokedProblem
404No such connection, or no accessProblem
422An invalid filter, transformation or list of eventsProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem