Segment Configuration
Segment analytics integration settings.
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
Returns the Segment configuration
application/json
backendWriteKeystringRequiredExample:
Backend Segment write key for server-side analytics (masked)
xoxb********flushIntervalMsnumberRequiredExample:
Segment flush interval in milliseconds
1000isEnabledbooleanRequiredExample:
Whether Segment analytics is enabled
true404
Segment configuration not found
get/tenants/{tenantId}/integrations/segment
GET /apis/v2/tenants/{tenantId}/integrations/segment HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"backendWriteKey": "xoxb********",
"flushIntervalMs": 1000,
"isEnabled": true
}patch
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
backendWriteKeystringOptionalExample:
Backend Segment write key for server-side analytics (masked)
xoxb********flushIntervalMsnumberOptionalExample:
Segment flush interval in milliseconds
1000Responses
200
Returns the updated Segment configuration
application/json
backendWriteKeystringRequiredExample:
Backend Segment write key for server-side analytics (masked)
xoxb********flushIntervalMsnumberRequiredExample:
Segment flush interval in milliseconds
1000isEnabledbooleanRequiredExample:
Whether Segment analytics is enabled
true422
Returns an ErrorDto in case of validation errors or failures.
patch/tenants/{tenantId}/integrations/segment
PATCH /apis/v2/tenants/{tenantId}/integrations/segment HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"backendWriteKey": "xoxb********",
"flushIntervalMs": 1000
}{
"backendWriteKey": "xoxb********",
"flushIntervalMs": 1000,
"isEnabled": true
}Last updated
Was this helpful?

