Segments (Beta)
Segment management endpoints
Returns the fields that can be used in segment filter expressions. Call /segments/filters/ for valid values within the provider scope.
Cloud provider (aws, azure, gcp)
awsPossible values: OK
Bad request
Unauthorized
Forbidden
Not found
Method not allowed
Conflict
Unprocessable Content
Internal server error
Default error response
GET /beta/v1/org/{org_id}/segments/filters?provider=aws HTTP/1.1
Accept: */*
[
{
"name": "text",
"field": "text",
"type": "boolean"
}
]Returns the distinct values for a given segment filter field, scoped to the provider, org, current attribution, and active integrations.
Cloud provider (aws, azure, gcp)
awsPossible values: OK
Bad request
Unauthorized
Forbidden
Not found
Method not allowed
Conflict
Unprocessable Content
Internal server error
Default error response
GET /beta/v1/org/{org_id}/segments/filters/{field}?provider=aws HTTP/1.1
Accept: */*
{
"name": "text",
"field": "text",
"type": "boolean",
"filters": [
{
"field": "text",
"value": "text",
"op": "="
}
]
}Returns all segments for the specified provider with pre-aggregated monthly metrics.
Cloud provider (aws, azure, gcp)
awsPossible values: OK
Unique segment identifier
Segment name
Cloud provider (aws, azure, gcp)
True if this segment was created automatically by the system (e.g. the provider-resources default segment). Describes origin, not role — system-generated segments are immutable.
Human-readable description of the segment
Segment status: 'new' means the segment was just created and metrics data is not yet available; 'completed' means data has been populated and the segment can be used with daily metrics endpoints.
The segment's filter configuration, in the same format accepted by create_segment. Excludes the provider filter (already shown in the provider field).
User-defined monthly spend budget for this segment, in USD. Null if no budget has been set.
Bad request
Unauthorized
Forbidden
Not found
Method not allowed
Conflict
Unprocessable Content
Internal server error
Default error response
GET /beta/v1/org/{org_id}/segments?provider=aws HTTP/1.1
Accept: */*
[
{
"id": "text",
"name": "text",
"provider": "aws",
"is_system_generated": true,
"description": "text",
"status": "new",
"filters": null,
"monthly_budget": 1
}
]Creates a new segment with the specified filter configuration. The provider filter is injected automatically — only include filters for resource attributes you want to narrow on.
Segment name
Cloud provider (aws, azure, gcp)
Human-readable description
nullCreated
Unique segment identifier
Segment name
Cloud provider (aws, azure, gcp)
True if this segment was created automatically by the system (e.g. the provider-resources default segment). Describes origin, not role — system-generated segments are immutable.
Human-readable description of the segment
Segment status: 'new' means the segment was just created and metrics data is not yet available; 'completed' means data has been populated and the segment can be used with daily metrics endpoints.
The segment's filter configuration, in the same format accepted by create_segment. Excludes the provider filter (already shown in the provider field).
User-defined monthly spend budget for this segment, in USD. Null if no budget has been set.
Bad request
Unauthorized
Forbidden
Not found
Method not allowed
Conflict
Unprocessable Content
Internal server error
Default error response
POST /beta/v1/org/{org_id}/segments HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 102
{
"name": "text",
"provider": "aws",
"filters": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"description": "text"
}{
"id": "text",
"name": "text",
"provider": "aws",
"is_system_generated": true,
"description": "text",
"status": "new",
"filters": null,
"monthly_budget": 1
}Returns details for a single segment including monthly metrics.
OK
Unique segment identifier
Segment name
Cloud provider (aws, azure, gcp)
True if this segment was created automatically by the system (e.g. the provider-resources default segment). Describes origin, not role — system-generated segments are immutable.
Human-readable description of the segment
Segment status: 'new' means the segment was just created and metrics data is not yet available; 'completed' means data has been populated and the segment can be used with daily metrics endpoints.
The segment's filter configuration, in the same format accepted by create_segment. Excludes the provider filter (already shown in the provider field).
User-defined monthly spend budget for this segment, in USD. Null if no budget has been set.
Bad request
Unauthorized
Forbidden
Not found
Method not allowed
Conflict
Internal server error
Default error response
GET /beta/v1/org/{org_id}/segments/{segment_id} HTTP/1.1
Accept: */*
{
"id": "text",
"name": "text",
"provider": "aws",
"is_system_generated": true,
"description": "text",
"status": "new",
"filters": null,
"monthly_budget": 1
}Last updated
Was this helpful?

