curl --request GET \
--url https://api.pelanor.io/v1/segments/{id} \
--header 'Authorization: Bearer <token>'
{
"bulk_creation_relational_filters": [
{
"filters": [
{
"operator": "Equals",
"property": {
"type": "Region"
},
"values": [
"<string>"
]
}
]
}
],
"cost_timeseries": [
{
"timestamp": "<string>",
"value": 123
}
],
"created_at": "<string>",
"dimension_id": "<string>",
"dimension_name": "<string>",
"id": "<string>",
"is_custom": true,
"last_30_days_cost": 123,
"manual_relational_filters": [
{
"filters": [
{
"operator": "Equals",
"property": {
"type": "Region"
},
"values": [
"<string>"
]
}
]
}
],
"name": "<string>",
"priority": 123,
"properties_values": [
{
"property_id": "<string>",
"values": [
"<string>"
]
}
],
"workspace_id": "<string>",
"workspace_name": "<string>"
}
Get a specific segment by ID. This API returns the details of a specific segment.
curl --request GET \
--url https://api.pelanor.io/v1/segments/{id} \
--header 'Authorization: Bearer <token>'
{
"bulk_creation_relational_filters": [
{
"filters": [
{
"operator": "Equals",
"property": {
"type": "Region"
},
"values": [
"<string>"
]
}
]
}
],
"cost_timeseries": [
{
"timestamp": "<string>",
"value": 123
}
],
"created_at": "<string>",
"dimension_id": "<string>",
"dimension_name": "<string>",
"id": "<string>",
"is_custom": true,
"last_30_days_cost": 123,
"manual_relational_filters": [
{
"filters": [
{
"operator": "Equals",
"property": {
"type": "Region"
},
"values": [
"<string>"
]
}
]
}
],
"name": "<string>",
"priority": 123,
"properties_values": [
{
"property_id": "<string>",
"values": [
"<string>"
]
}
],
"workspace_id": "<string>",
"workspace_name": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.