Skip to main content
POST
/
cost-insights
/
shared-filters
Create shared filter
curl --request POST \
  --url https://api.cloudcapital.co/v1/cost-insights/shared-filters \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "organizationId": "550e8400-e29b-41d4-a716-446655440000",
  "filterConfiguration": {
    "filters": {
      "inclusions": {
        "accountIds": [
          "123456789012",
          "987654321098"
        ]
      }
    },
    "groupBy": {
      "dimension": "service",
      "dateGrouping": "monthly"
    }
  }
}
'
{
  "filterId": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Generate an API key from your Cloud Capital dashboard under Settings > API keys. Include it in the Authorization header as a Bearer token.

Body

application/json
organizationId
string
required

The organization ID to store the filter under

filterConfiguration
object
required

Response

Shared filter created successfully

filterId
string

Unique identifier for the created shared filter