Skip to content

List log sinks

GET
/api/v1/log-sinks
curl --request GET \
--url https://osctrl.net/api/v1/log-sinks \
--header 'Authorization: <Authorization>'

Returns log sink rows, optionally filtered by environment. Secrets are redacted unless reveal=1 is passed by an admin.

env
integer

Environment ID; omit to list all environments

reveal
integer

Pass 1 to include secret fields in the config (admin only)

OK

Media typeapplication/json
Array<object>
object
bytes_sent
integer
config
Array<integer>
created_at
string
enabled
boolean
environment_id
integer
exports_count
integer
id
integer
info
string
name
string
order
integer
source
string
type
string
updated_at
string
Examplegenerated
[
{
"bytes_sent": 1,
"config": [
1
],
"created_at": "example",
"enabled": true,
"environment_id": 1,
"exports_count": 1,
"id": 1,
"info": "example",
"name": "example",
"order": 1,
"source": "example",
"type": "example",
"updated_at": "example"
}
]

Unauthorized

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Forbidden

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Internal server error

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}