# Costory Documentation - [Welcome to Costory](https://docs.costory.io/get-started/welcome.md): Cloud cost reporting for DevOps: connect AWS, GCP, and Azure billing, use Costory MCP with Claude or Cursor, and automate FinOps updates. - [Quickstart: How to set up automated cloud cost reporting in 30 minutes](https://docs.costory.io/get-started/quickstart.md): Step-by-step guide to connect AWS, GCP, Azure and Datadog to Costory. Set up automated FinOps Slack & Teams cost reports in 30 minutes, free trial included. - [Plans and fair use](https://docs.costory.io/get-started/plans.md): Costory plans (Starter, Team, Business, Custom), what each includes, how fair use on app usage and AI works, and how spend bands act as a guardrail. - [Billing Data](https://docs.costory.io/setup/billing.md): Set up cloud billing data sources in Costory via Terraform or manual configuration. Supports AWS CUR 2.0, GCP BigQuery, Azure Cost Management, Oracle Cloud, Snowflake, Scaleway, Cloudflare, and SaaS providers. - [Aiven Billing Setup](https://docs.costory.io/setup/billing/aiven.md): Connect Aiven billing data to Costory via the Aiven Billing API. - [Anthropic Billing Setup](https://docs.costory.io/setup/billing/anthropic.md): Connect Anthropic Claude Console API usage and claude.ai Enterprise costs to Costory. Choose the right connector and key type. - [AWS Billing Setup](https://docs.costory.io/setup/billing/aws.md): Connect AWS CUR 2.0 billing data to Costory via CloudFormation, manual setup, or Terraform. - [Azure Billing Setup](https://docs.costory.io/setup/billing/azure.md): Connect Azure Cost Management exports to Costory via Terraform or manual setup. - [BytePlus Billing Setup](https://docs.costory.io/setup/billing/byteplus.md): Connect BytePlus Platform billing to Costory with an IAM Access Key. Import account bill details, including Seedance and ModelArk, into Explorer next to AWS, GCP, and Azure. - [ClickHouse Billing Setup](https://docs.costory.io/setup/billing/clickhouse.md): Connect ClickHouse Cloud billing data to Costory to analyze compute, storage, and data transfer costs. - [Cloudflare Billing Setup](https://docs.costory.io/setup/billing/cloudflare.md): Connect Cloudflare PayGo billing to Costory with an API token and Account ID. Self-serve usage only, not enterprise contract billing. - [Confluent Billing Setup](https://docs.costory.io/setup/billing/confluent.md): Connect Confluent Cloud billing data to Costory. - [Cursor Billing Setup](https://docs.costory.io/setup/billing/cursor.md): Connect Cursor usage and billing data to Costory via Admin API key or Terraform. - [Databricks Billing Setup](https://docs.costory.io/setup/billing/databricks.md): Connect Databricks DBU billing and full workload cost (DBUs plus cloud VMs) in Costory. Level 2 ties each instance to the cluster and job that ran on it. - [Custom Billing Format (FOCUS) in BigQuery](https://docs.costory.io/setup/billing/focus.md): Import any FOCUS-compliant billing data from a BigQuery table into Costory. - [Datadog Billing Setup](https://docs.costory.io/setup/billing/datadog.md): Connect Datadog usage and billing estimates to Costory. - [Elastic Cloud Billing Setup](https://docs.costory.io/setup/billing/elastic-cloud.md): Connect Elastic Cloud organization billing to Costory with an Organization API key. Covers setup, historical sync, and what cost grain and dimensions you get in Explorer. - [ElevenLabs Billing Setup](https://docs.costory.io/setup/billing/elevenlabs.md): Connect ElevenLabs workspace usage to Costory with a workspace API key. Import voice and audio spend into Explorer next to AWS, GCP, and Azure. - [GCP Billing Setup](https://docs.costory.io/setup/billing/gcp.md): Connect GCP BigQuery billing export with detailed usage costs to Costory via Terraform or manual setup. - [GCP CUD Metadata](https://docs.costory.io/setup/billing/gcp-cud-metadata.md): Import GCP Committed Use Discount metadata from BigQuery into Costory. - [Kling AI Billing Setup](https://docs.costory.io/setup/billing/kling-ai.md): Connect Kling AI Open Platform pack usage and wallet charges to Costory with a Bearer API key. Import video-generation spend into Explorer next to AWS, GCP, and Azure. - [OpenAI Billing Setup](https://docs.costory.io/setup/billing/openai.md): Connect OpenAI organization costs to Costory with a read-only Admin API key. Import Platform API usage into Explorer next to AWS, GCP, and Azure. - [OpenRouter Billing Setup](https://docs.costory.io/setup/billing/openrouter.md): Connect OpenRouter billing to Costory with a Management API key. Import organization costs into Explorer next to AWS, GCP, Azure, and other LLM providers. - [Oracle Cloud Infrastructure Billing Setup](https://docs.costory.io/setup/billing/oci.md): Connect OCI native cost reports to Costory with an API signing key. Import Oracle Cloud spend into Explorer next to AWS, GCP, and Azure. - [Scaleway Billing Setup](https://docs.costory.io/setup/billing/scaleway.md): Connect Scaleway cloud billing to Costory with an IAM secret key and Organization ID. Import consumption by category, product, and project. - [Snowflake Billing Setup](https://docs.costory.io/setup/billing/snowflake.md): Connect Snowflake account usage and billing data to Costory using key-pair authentication and a reusable Snowflake integration. - [Correlate your costs with technical or business metrics](https://docs.costory.io/setup/usage-metrics.md): Connect external metrics in Costory Integrations, then query usage metrics next to cloud cost in Advanced Explorer. - [Amplitude](https://docs.costory.io/setup/usage-metrics/amplitude.md): Query Amplitude active users, new users, WAU, and MAU live in Costory Advanced Explorer. No time series is synced to BigQuery. - [AWS CloudWatch](https://docs.costory.io/setup/usage-metrics/aws-cloudwatch.md): Connect AWS CloudWatch as an external metric in Costory. Attach a CloudWatch read policy and trust policy, then query metrics in Advanced Explorer. - [BigQuery](https://docs.costory.io/setup/usage-metrics/bigquery.md): Query BigQuery tables live as external metrics in Costory Advanced Explorer. Grant dataset access, validate the project, then pick a table. - [BigQuery jobs](https://docs.costory.io/setup/usage-metrics/bigquery-jobs.md): Beta: attach BigQuery job metadata to GCP cost, reallocate slots to the user who ran each query, and see on-demand and reservation spend in one view. - [GCP Cloud Monitoring](https://docs.costory.io/setup/usage-metrics/gcp-cloud-monitoring.md): Connect Google Cloud Monitoring as a live external metric in Costory. Grant Monitoring Viewer, validate a project, then query GCP metrics in Advanced Explorer. - [Custom Metrics Push](https://docs.costory.io/setup/usage-metrics/custom-metrics-push.md): Push hourly custom metrics to Costory over HTTP with an organization API key, then query them in Advanced Explorer, MCP, and virtual dimensions. - [Datadog](https://docs.costory.io/setup/usage-metrics/datadog.md): Connect Datadog in Costory Integrations for billing, standard metrics, and CI visibility. Query standard metrics with rollups in Advanced Explorer. - [Datadog CI Visibility](https://docs.costory.io/setup/usage-metrics/datadog-ci.md): Connect Datadog CI Visibility from the same Costory Integrations page as Datadog billing and standard metrics. - [GCS Inventory (Parquet)](https://docs.costory.io/setup/usage-metrics/gcs-inventory.md): GCS Inventory is not on the Costory Add integration External metric grid. Query warehouse-native metrics with BigQuery instead. - [Google Sheets](https://docs.costory.io/setup/usage-metrics/google-sheet.md): Connect numeric metrics from a Google spreadsheet in Costory and query them as external metrics in Advanced Explorer. - [S3 metrics](https://docs.costory.io/setup/usage-metrics/s3-parquet.md): Connect Parquet files from AWS S3 as external metrics in Costory. Scan a bucket prefix, then query discovered metrics in Advanced Explorer. - [Snowflake Metrics](https://docs.costory.io/setup/usage-metrics/snowflake.md): Query Snowflake tables as live external metrics in Costory. Reuse the billing integration, grant one database, then pick tables in Advanced Explorer. - [Tsuga](https://docs.costory.io/setup/usage-metrics/tsuga.md): Connect Tsuga live cluster metrics to Costory with an Operation API key, then query them in Advanced Explorer. - [BigQuery Data Exports](https://docs.costory.io/setup/destinations/bigquery.md): Set up BigQuery data exports in Costory so analysts can query dashboard widget data from Looker, notebooks, dbt, and custom SQL. - [Connect Engineering Events to Costory (GitHub, CI/CD, Custom API)](https://docs.costory.io/setup/events.md): Save the cause of a cost change as an event linked to a dashboard, and push deploy events from CI/CD so Costory's AI analysis knows what you shipped. - [Connect GitHub Events](https://docs.costory.io/setup/events/github.md): Use the GitHub integration to capture deploys, PR merges, and releases as event markers in Costory. - [Send Events from CI/CD Pipelines](https://docs.costory.io/setup/events/ci-cd.md): Post build and deploy events from your CI/CD pipelines to Costory using the Events API. - [Send Custom Events via API](https://docs.costory.io/setup/events/custom-api.md): Send any event that explains cloud spend to Costory using the Events API and Python. - [Provider Events](https://docs.costory.io/setup/events/provider.md): Automatically track AWS Savings Plans, Reserved Instances, marketplace renewals, and SKU price changes in Costory. - [Slack](https://docs.costory.io/setup/collaboration/slack.md): Configure the Costory Slack integration to send scheduled cost reports and alerts to your Slack channels. - [Microsoft Teams](https://docs.costory.io/setup/collaboration/teams.md): Configure the Costory Microsoft Teams integration to send scheduled reports and alerts to Teams channels. - [Email](https://docs.costory.io/setup/collaboration/email.md): Configure email delivery in Costory for scheduled cloud cost reports and alert notifications. - [FinOps MCP: Cloud Cost Automation for AI Assistants and Slack](https://docs.costory.io/features/mcp.md): Use the Costory FinOps MCP to query AWS, GCP, and Azure spend from Claude, Cursor, or VS Code. Investigate cost spikes, create alerts, and send Cost Reports via Model Context Protocol. - [Explorer](https://docs.costory.io/features/cost-explorer.md): Use Costory Explorer to query AWS, GCP, and Azure costs with filters, group-bys, comparison periods, and saved context before turning the result into dashboards, alerts, reports, or MCP prompts. - [Cloud Cost Dashboards](https://docs.costory.io/features/dashboards.md): Build cloud cost dashboards from Explorer queries to monitor AWS, GCP, and Azure spend, usage metrics, budgets, events, and FinOps KPIs in one place. - [Create and Organize Dashboards](https://docs.costory.io/features/dashboards/create-dashboard.md): Create cloud cost dashboards from Explorer queries, add widgets manually, duplicate widgets, and organize dashboards with tags and teams. - [Dashboard Templates](https://docs.costory.io/features/dashboards/templates.md): Use pre-built FinOps dashboard templates for executive cloud cost reporting, team showback, Savings Plan coverage, Kubernetes cost allocation, network costs, and storage optimization. - [Dashboard Widgets and Chart Types](https://docs.costory.io/features/dashboards/widgets.md): Choose dashboard widgets and chart types for cloud cost dashboards, including bar charts, line charts, waterfall charts, doughnut charts, tables, KPI cards, budget trackers, and BigQuery SQL export. - [Events](https://docs.costory.io/features/events.md): Overlay deploy events, Savings Plan purchases, provider changes, and saved business context on Costory cost charts to explain cloud cost changes. - [Unit Economics](https://docs.costory.io/features/unit-economics.md): Build cloud unit economics in Costory Explorer by combining cloud cost metrics, usage metrics, and formulas such as cost per user, cost per API call, or ROI. - [Tag & Allocate Cloud Costs](https://docs.costory.io/features/tagging.md): FinOps cost allocation made simple. Create dimensions, allocate untagged resources, and split shared costs across AWS, GCP, and Azure without touching your cloud console. - [Dimensions](https://docs.costory.io/features/tagging/dimensions.md): Create cloud cost allocation dimensions that merge native AWS, GCP, and Azure tags, normalize values, and define rule-based virtual dimensions for team, product, or environment reporting. - [Split Shared Infrastructure Costs Across Teams](https://docs.costory.io/features/tagging/shared-cost-allocation.md): Allocate shared cloud infrastructure costs like Cloud SQL, RDS, or network to teams based on actual usage metrics from any External metric source: Datadog, Datadog CI Visibility, Amplitude, BigQuery, Google Sheets, Tsuga, CloudWatch, S3, Snowflake, or Custom metrics. - [Enrichments](https://docs.costory.io/features/tagging/enrichments.md): Beta lookup files that fill business columns from a billing column. Publish static values or a dynamic split from a BigQuery usage table. - [Share cost views](https://docs.costory.io/features/sharing.md): Share a Costory Explorer view or cloud cost dashboard with a link, a public PNG snapshot, a PDF, or per-user Reader, Editor, and Can manage permissions. - [Cost Reports](https://docs.costory.io/v2/Automate/reports.md): Schedule recurring cloud cost reports to Slack, Microsoft Teams, or email from a dashboard, widget, or Explorer view, in the UI, from chat, or via the API. - [Cost Digest: automate your FinOps reporting](https://docs.costory.io/features/digest.md): Automatically surface and triage the cloud cost changes that matter for FinOps reporting. Digest ranks every significant cost shift by dollar impact and generates AI incident reports with root cause analysis. - [Alerts](https://docs.costory.io/features/alerts.md): Monitor cloud spend and custom formulas against a single trigger condition. Build alerts in the UI or through the Costory MCP with the same condition string, then get notified in Slack, Teams, or email. - [Teams](https://docs.costory.io/features/teams.md): Scope cloud costs, default metrics, and dashboards per team so every stakeholder sees the data that matters to them. - [Cloud Cost Budgets and Budget Alerts](https://docs.costory.io/features/budgets.md): Create monthly cloud cost budgets by team, track versions, and trigger Slack or email budget alerts before overruns. - [Cost Metrics](https://docs.costory.io/docs/cost-metrics.md): How we compute the different metrics on top of your billing data - [Contracted Cost vs Billed Cost: Savings Plan discount sharing issues](https://docs.costory.io/docs/savings-plan-cost-fluctuation.md): Learn why Contracted Cost gives platform and engineering teams a stable, usage-driven view of AWS and GCP cloud spending, avoiding misleading Savings Plan cost fluctuations. - [Cloud Cost Currency Conversion](https://docs.costory.io/docs/currency-conversion.md): Cloud cost currency conversion and reporting currency rules for AWS, GCP, Azure, and Datadog in Costory. - [Standard Columns](https://docs.costory.io/docs/standard-columns.md): Costory normalizes billing data from AWS, GCP, Azure, Datadog, and Elastic Cloud into a unified schema. Here is how each column is populated per provider. - [Billing Data Refresh Schedule and Cloud Cost Data Freshness](https://docs.costory.io/docs/data-refresh.md): Costory's billing data refresh schedule, including the monthly refresh window and AWS/GCP billing data freshness. - [Settings](https://docs.costory.io/get-started/settings.md): Invite users as an Admin from the account name in the left sidebar. Find Costory settings, organization Invites, Teams, data integrations, API keys, plans, and invoices. - [Identity and Access](https://docs.costory.io/docs/sso-access-control.md): Compare Costory identity and access options across Starter, Team, Business and Custom, including auto-join, single sign-on, directory sync, role-based access control, and security scope. - [Glossary](https://docs.costory.io/docs/glossary.md): Definitions for FinOps, cloud billing, and Costory-specific terms used throughout this documentation - [Overview](https://docs.costory.io/use-cases/overview.md): Explore practical guides to get the most out of Costory - [LLM Cost Allocation: Track AI Spend by Team, Feature, and Customer](https://docs.costory.io/use-cases/llm-ai-cost.md): Allocate and track LLM costs from Anthropic, OpenAI, Azure OpenAI, AWS Bedrock, GCP Vertex, and Mistral across teams and features. Learn cost per token attribution, showback, and chargeback strategies for shared API keys. - [Hourly Granularity for Bursty Workloads](https://docs.costory.io/use-cases/hourly-cost-granularity.md): Use hourly cloud cost granularity to measure bursty workloads, price each event, and connect optimization work to per-event cost. - [AWS EKS Cost Allocation](https://docs.costory.io/use-cases/eks-cost-allocation.md): Compare EKS cost allocation methods for Kubernetes cost visibility, including AWS Split Cost Allocation, AWS-managed usage metrics, and Kubecost or OpenCost. - [Kubernetes Cost Visibility: Measure Waste, Allocate Costs, Reduce Over-Provisioning](https://docs.costory.io/use-cases/k8s_waste/visibility.md): Kubernetes cost visibility for granular insight into waste, over-provisioned resources, and cost reallocation across teams - [Increase visibility on your BigQuery costs with dbt](https://docs.costory.io/use-cases/dbt_bigquery_visibility/increase_visibility.md): Track and allocate BigQuery processing and storage costs at the dbt model level using labels, then visualize them in Costory. - [Split Shared API Costs Across Teams Using Usage Metrics](https://docs.costory.io/use-cases/reallocate_api_costs.md): Allocate untagged or shared API costs to the right teams based on actual usage data. This guide walks you through usage-based shared cost allocation with Costory, from connecting an external metric to building a reusable chargeback model. - [Allocate the cost of a shared Cloud SQL database to the teams using it](https://docs.costory.io/use-cases/allocate_shared_cloud_sql_database/allocate.md): Use Costory's virtual dimensions and usage metrics to split a shared Cloud SQL database cost across consuming teams, based on actual storage or compute usage. - [Automated env allocation](https://docs.costory.io/use-cases/automated_env_allocation/visibility.md): How to easily allocate your costs per environment using all the metadatas available in your billing data - [Event Correlations](https://docs.costory.io/automate-reporting/event-correlation.md): Connect cost spikes to the events that caused them - [Correlate Cloud Costs with Active Users Using Amplitude](https://docs.costory.io/use-cases/amplitude/cost_per_active_users.md): Understand whether your cloud costs scale with your business. Connect Amplitude active users to Costory and track cost per thousand users over time. - [Track Unit Economics to Justify Cloud Cost Increases](https://docs.costory.io/automate-reporting/unit-economics.md): Link cloud cost increases to business growth by connecting external metrics in Costory and building unit economics formulas. Defend scaling decisions with data. - [Cloud budget management: define and automate cloud budgets](https://docs.costory.io/use-cases/automate_budget.md): Learn how to set up cloud budget management per team with automated alerts, monthly reports, and FinOps budgeting best practices. - [Share the correct cost for each persona](https://docs.costory.io/use-cases/show_the_correct_cost_metric_to_each_persona.md): Learn how to share the correct cost for each persona - [Show the correct metrics to your exec team](https://docs.costory.io/use-cases/what_your_exec_team_wants/value.md): Learn how to show the correct metrics to your exec team - [Automate Monthly Cloud Cost Reporting](https://docs.costory.io/automate-reporting/monthly-reviews.md): Stop spending hours building monthly cloud cost reports. Use a Cost digest inside Costory Reports to generate executive summaries, root-cause analyses, and shareable Slack or email digests. - [Decentralize FinOps with Per-Team Cost Reports](https://docs.costory.io/automate-reporting/decentralize-finops.md): Scale cost visibility across engineering teams by scoping automated reports to each squad. Deliver cloud cost insights via Slack, Teams, or email, no billing console access needed. - [API overview](https://docs.costory.io/api-reference/overview.md): Authenticate and call the Costory HTTP API. Use a bearer token from the Costory app for every request. - [Query Costs API](https://docs.costory.io/api-reference/queries/overview.md): Run Costory Explorer cost queries over HTTP. Filter with CEL, group by dimensions, compare periods, and pull the same series the app and MCP use. - [Run a cost query](https://docs.costory.io/api-reference/queries/run-a-cost-query.md): Executes a CEL query and returns either a time series (`kind: series`) or a period-over-period comparison (`kind: comparison`) when `compare.enabled` is true. Organization comes from the authenticated principal (Clerk session JWT or `ak_*` API key). When `datePreset` is sent alongside `from`/`to`, t… - [Run a cost-change diff tree](https://docs.costory.io/api-reference/queries/run-a-cost-change-diff-tree.md): Returns a `GROUP BY ROLLUP` tree of current vs previous cost per node for exactly one `cost` or `usage` series. Requires an enabled comparison period, a non-hourly `aggBy`, and at least one `groupBy` axis on that series. Pre-condition failures return `400 INVALID_QUERY` with today's message in `reas… - [List queryable dimensions](https://docs.costory.io/api-reference/queries/list-queryable-dimensions.md): Group-by axes and their values accepted by `groupBy` on cost/usage/metric series. Strict public shape — no react-querybuilder filter-widget fields. - [List business metrics](https://docs.costory.io/api-reference/queries/list-business-metrics.md): Business `metricId` values accepted by `metric` series, grouped by datasource. `status` is a stored value and is not refreshed on read for API-key callers. - [List usage metrics](https://docs.costory.io/api-reference/queries/list-usage-metrics.md): Usage `metricId` values (and units) accepted by `usage` series. - [Reports API](https://docs.costory.io/api-reference/reports/overview.md): Create, schedule, preview, and run Costory cost reports over HTTP. The same API powers scheduling from the UI and from chat via the Costory MCP. - [Create a report](https://docs.costory.io/api-reference/reports/create-a-report.md): Creates a report. Rules not captured by the field types: at least one `destinations` entry is required; when `scheduledPeriod` is `WEEKLY`, `scheduledWeekday` (0=Sunday…6=Saturday) is required; EMAIL destinations must be a valid address (or `ALL_ACTIVE_USERS`); and a DIGEST widget rendered as a `tab… - [List reports](https://docs.costory.io/api-reference/reports/list-reports.md): Returns reports visible to the authenticated user. Optional `recentExecutionsLimit` embeds recent execution rows per report. - [Get a report](https://docs.costory.io/api-reference/reports/get-a-report.md) - [Update a report](https://docs.costory.io/api-reference/reports/update-a-report.md): Partially updates a report; omitted fields are left unchanged. `widgets` and `destinations`, when provided, replace the existing lists wholesale. Same conditional rules as create apply: a WEEKLY cadence needs a `scheduledWeekday` (from this body or already stored), EMAIL destinations must be valid a… - [Duplicate a report](https://docs.costory.io/api-reference/reports/duplicate-a-report.md) - [Archive a report](https://docs.costory.io/api-reference/reports/archive-a-report.md): Soft-archives the report (sets `archivedAt`). - [Run a report now](https://docs.costory.io/api-reference/reports/run-a-report-now.md): Enqueues and synchronously runs pending executions for every destination. - [Send a test report](https://docs.costory.io/api-reference/reports/send-a-test-report.md) - [Preview a report widget](https://docs.costory.io/api-reference/reports/preview-a-report-widget.md) - [Enrichments API](https://docs.costory.io/api-reference/enrichments/overview.md): Upload, test, and publish Costory enrichment lookup files over HTTP. Store drafts, publish the set in one call, and trace a billed row before the next billing update. - [List live enrichments](https://docs.costory.io/api-reference/enrichments/list-live-enrichments.md): Live enrichment documents as summaries, sorted by priority then name. `entries` and `conditions` are omitted; read one document with `GET /enrichments/{name}`. Any member. - [Get one live enrichment document](https://docs.costory.io/api-reference/enrichments/get-an-enrichment.md): One live document in the JSON form of the YAML file. A response saved unmodified is a valid `PUT` body. `conditions` is the stored CEL and is omitted when unset. Any member. - [Store an enrichment document as a draft](https://docs.costory.io/api-reference/enrichments/store-an-enrichment-draft.md): Stores the document as a draft. Publish makes it live. A body equal to the live document drops its draft and returns `unchanged`. - [Draft the removal of an enrichment](https://docs.costory.io/api-reference/enrichments/draft-an-enrichment-removal.md): Drafts the removal of a live document, or drops the draft of a document that is not live yet. `404` when there is neither. Org admin only. - [Get pending enrichment drafts](https://docs.costory.io/api-reference/enrichments/get-enrichment-drafts.md): The live set with every draft applied. The body is `null` when there is nothing to publish. `errors` is empty when the pending set compiles. Org admin only. - [Discard pending enrichment drafts](https://docs.costory.io/api-reference/enrichments/discard-enrichment-drafts.md): Deletes every pending enrichment draft. Org admin only. - [Publish pending enrichment drafts](https://docs.costory.io/api-reference/enrichments/publish-enrichment-drafts.md): Compiles the live set with every draft applied and, when it compiles, stores that set in one transaction and starts the update workflow. - [List columns needed to trace a row](https://docs.costory.io/api-reference/enrichments/list-enrichment-trace-inputs.md): Billing columns to fill in order to trace one row, with the entry keys the mappings list. `draft` is null when there are no drafts. Org admin only. - [Trace one row through the enrichments](https://docs.costory.io/api-reference/enrichments/trace-an-enrichment-row.md): Runs one billed row through the live set with the drafts applied. `published` is the same trace on the live set alone and is present when drafts exist. Org admin only. - [List cost and budget alerts](https://docs.costory.io/api-reference/alerts-v2/list-cost-and-budget-alerts.md): Returns the current Alerts V2 table payload. This camelCase route is the supported application contract; canonical public resource naming is a separate follow-up. - [List alert templates](https://docs.costory.io/api-reference/alerts-v2/list-alert-templates.md) - [Get an alert template](https://docs.costory.io/api-reference/alerts-v2/get-an-alert-template.md) - [List budgets eligible for alerts](https://docs.costory.io/api-reference/alerts-v2/list-budgets-eligible-for-alerts.md) - [Snooze an alert](https://docs.costory.io/api-reference/alerts-v2/snooze-an-alert.md) - [Unsnooze an alert](https://docs.costory.io/api-reference/alerts-v2/unsnooze-an-alert.md) - [Archive an alert](https://docs.costory.io/api-reference/alerts-v2/archive-an-alert.md) - [Restore an alert](https://docs.costory.io/api-reference/alerts-v2/restore-an-alert.md) - [Delete an archived alert](https://docs.costory.io/api-reference/alerts-v2/delete-an-archived-alert.md) - [List cost alerts](https://docs.costory.io/api-reference/alerts-v2/list-cost-alerts.md) - [Create a cost alert](https://docs.costory.io/api-reference/alerts-v2/create-a-cost-alert.md): Creates either a condition-based alert (`condition` plus `dedup`) or a legacy threshold-based alert. The example monitors production AWS compute spend using Costory dimensions. - [Get cost alert destination options](https://docs.costory.io/api-reference/alerts-v2/get-cost-alert-destination-options.md) - [Duplicate a cost alert](https://docs.costory.io/api-reference/alerts-v2/duplicate-a-cost-alert.md) - [Get cost alert editor data](https://docs.costory.io/api-reference/alerts-v2/get-cost-alert-editor-data.md) - [Send a cost alert test notification](https://docs.costory.io/api-reference/alerts-v2/send-a-cost-alert-test-notification.md) - [Bulk update cost alert metadata](https://docs.costory.io/api-reference/alerts-v2/bulk-update-cost-alert-metadata.md): Metadata-only patch of visibility, owner, team, and tags for cost alerts. Any id missing or not editable returns 403 for the whole batch. - [Bulk archive cost alerts](https://docs.costory.io/api-reference/alerts-v2/bulk-archive-cost-alerts.md) - [Bulk restore cost alerts](https://docs.costory.io/api-reference/alerts-v2/bulk-restore-cost-alerts.md) - [Update cost alert metadata](https://docs.costory.io/api-reference/alerts-v2/update-cost-alert-metadata.md): Metadata-only patch (visibility, owner, team, tags). Does not rewrite thresholds or condition. - [Update a cost alert](https://docs.costory.io/api-reference/alerts-v2/update-a-cost-alert.md) - [Get cost alert widget data](https://docs.costory.io/api-reference/alerts-v2/get-cost-alert-widget-data.md) - [Get cost alert firing history](https://docs.costory.io/api-reference/alerts-v2/get-cost-alert-firing-history.md) - [Create a budget alert](https://docs.costory.io/api-reference/alerts-v2/create-a-budget-alert.md): Creates an alert for budget lines visible to the caller. Threshold percentages are ordered from highest severity to lowest. - [Get budget alert destination options](https://docs.costory.io/api-reference/alerts-v2/get-budget-alert-destination-options.md) - [Update a budget alert](https://docs.costory.io/api-reference/alerts-v2/update-a-budget-alert.md) - [Send a budget alert test notification](https://docs.costory.io/api-reference/alerts-v2/send-a-budget-alert-test-notification.md) - [List queryable dimensions](https://docs.costory.io/api-reference/dimensions/list-queryable-dimensions.md): Returns every dimension available to filter and group by today, with its values and supported operators. Served from the cached dimension list refreshed by the compute pipeline, so a dimension published moments ago may not appear yet. - [Search dimension values](https://docs.costory.io/api-reference/dimensions/search-dimension-values.md): Full-text search across dimension names and their values. Unlike `GET /dimensions` this queries the billing warehouse live, so it is slower and costlier — use it for type-ahead, not to enumerate dimensions. - [List label keys that could become dimensions](https://docs.costory.io/api-reference/dimensions/list-label-keys-that-could-become-dimensions.md): Label keys found in the billing data with the cost-allocation stats used to judge whether promoting them is worthwhile: the share of cost carrying the key, its values, a per-month cost series, and the month-over-month change. Property names are snake_case because they come straight from the billing… - [Get published label transformations](https://docs.costory.io/api-reference/dimensions/get-published-label-transformations.md): The currently published label configuration: which source columns are merged into each engineered dimension and how their values are mapped. This is the live configuration, not a draft — the client holds label edits until it calls `POST /dimensions/publish`. `computeByName` is the per-label billing… - [Publish pending dimension changes](https://docs.costory.io/api-reference/dimensions/publish-pending-dimension-changes.md): Promotes pending dimension changes: the label configuration supplied inline in `labels`, and every pending virtual-dimension draft in the organization. `scope` narrows the publish to labels or virtual dimensions only. - [Restrict label dimensions to org admins](https://docs.costory.io/api-reference/dimensions/restrict-label-dimensions-to-org-admins.md): Sets whether only org admins can add, edit, delete, and publish label dimensions. Virtual dimensions stay open to every member. Org admin only. - [List usage metrics](https://docs.costory.io/api-reference/metrics/list-usage-metrics.md): Consumed units available for usage-based queries, with the services that report each unit. - [List live enrichments](https://docs.costory.io/api-reference/enrichments/list-live-enrichments.md): Live enrichment documents as summaries, sorted by priority then name. `entries` and `conditions` are omitted; read one document with `GET /enrichments/{name}`. Any member. - [Get pending enrichment drafts](https://docs.costory.io/api-reference/enrichments/get-pending-enrichment-drafts.md): The live set with every draft applied. The body is `null` when there is nothing to publish. `errors` is empty when the pending set compiles. Org admin only. - [Discard pending enrichment drafts](https://docs.costory.io/api-reference/enrichments/discard-pending-enrichment-drafts.md): Deletes every pending enrichment draft. Org admin only. - [Publish pending enrichment drafts](https://docs.costory.io/api-reference/enrichments/publish-pending-enrichment-drafts.md): Compiles the live set with every draft applied and, when it compiles, stores that set in one transaction and starts the update workflow. - [List columns needed to trace a row](https://docs.costory.io/api-reference/enrichments/list-columns-needed-to-trace-a-row.md): Billing columns to fill in order to trace one row, with the entry keys the mappings list. `draft` is null when there are no drafts. Org admin only. - [Trace one row through the enrichments](https://docs.costory.io/api-reference/enrichments/trace-one-row-through-the-enrichments.md): Runs one billed row through the live set with the drafts applied. `published` is the same trace on the live set alone and is present when drafts exist. Org admin only. - [Get one live enrichment document](https://docs.costory.io/api-reference/enrichments/get-one-live-enrichment-document.md): One live document in the JSON form of the YAML file. A response saved unmodified is a valid `PUT` body. `conditions` is the stored CEL and is omitted when unset. Any member. - [Store an enrichment document as a draft](https://docs.costory.io/api-reference/enrichments/store-an-enrichment-document-as-a-draft.md): Stores the document as a draft. Publish makes it live. A body equal to the live document drops its draft and returns `unchanged`. - [Draft the removal of an enrichment](https://docs.costory.io/api-reference/enrichments/draft-the-removal-of-an-enrichment.md): Drafts the removal of a live document, or drops the draft of a document that is not live yet. `404` when there is neither. Org admin only. - [List dashboards](https://docs.costory.io/api-reference/dashboards/list-dashboards.md): Returns dashboards visible to the caller, newest updated first. Optional `search` filters by name (case-insensitive contains). - [List recently updated dashboards](https://docs.costory.io/api-reference/dashboards/list-recently-updated-dashboards.md) - [List popular dashboards by view count](https://docs.costory.io/api-reference/dashboards/list-popular-dashboards-by-view-count.md) - [Get a dashboard](https://docs.costory.io/api-reference/dashboards/get-a-dashboard.md): Returns the full dashboard including widgets. Increments the caller's view stats (except for templates) and emits opened analytics. - [List saved dashboard versions](https://docs.costory.io/api-reference/dashboards/list-saved-dashboard-versions.md): Newest first. Requires the same read access as GET dashboard (Share Reader or Editor). Each row includes optional `name` (null when untitled). The first row is the current version. - [Get a dashboard version hydrate payload](https://docs.costory.io/api-reference/dashboards/get-a-dashboard-version-hydrate-payload.md): Version createdAt + context + widgets only (no shell identity). Requires the same read access as GET dashboard. Unknown or foreign version ids return 404. - [Rename a saved dashboard version](https://docs.costory.io/api-reference/dashboards/rename-a-saved-dashboard-version.md): Updates only `name` on that version row (empty string becomes null). Max 80 characters. Does not insert a new version. The current version may be renamed. Unknown or foreign version ids return 404. - [Copy an old dashboard version into a new dashboard](https://docs.costory.io/api-reference/dashboards/copy-an-old-dashboard-version-into-a-new-dashboard.md): Creates a private copy owned by the caller from that saved version. Requires the same read access as Duplicate. - [Create a dashboard](https://docs.costory.io/api-reference/dashboards/create-a-dashboard.md): Creates a DashboardV2 from a bulk-save payload (metadata + widgets with explicit grid positions). Team/scope assignment is validated against membership. - [Publish a dashboard](https://docs.costory.io/api-reference/dashboards/publish-a-dashboard.md): Inserts a new saved version (context + widgets) and updates shell metadata. Prefer metadata-only PATCH when widgets are unchanged. - [Delete a dashboard](https://docs.costory.io/api-reference/dashboards/delete-a-dashboard.md) - [Update dashboard metadata](https://docs.costory.io/api-reference/dashboards/update-dashboard-metadata.md): Metadata-only patch (name, visibility, team, scope, tags, context). Does not rewrite widgets. - [Bulk update dashboard metadata](https://docs.costory.io/api-reference/dashboards/bulk-update-dashboard-metadata.md) - [Bulk delete dashboards](https://docs.costory.io/api-reference/dashboards/bulk-delete-dashboards.md) - [List dashboard templates](https://docs.costory.io/api-reference/dashboards/list-dashboard-templates.md) - [Clone a dashboard template](https://docs.costory.io/api-reference/dashboards/clone-a-dashboard-template.md) - [Duplicate a dashboard](https://docs.costory.io/api-reference/dashboards/duplicate-a-dashboard.md) - [Publish a dashboard as a Costory template](https://docs.costory.io/api-reference/dashboards/publish-a-dashboard-as-a-costory-template.md): Costory-staff only. Creates a TEMPLATE row under COSTORY_ORG_ID. - [Create a dashboard with an AI-generated title](https://docs.costory.io/api-reference/dashboards/create-a-dashboard-with-an-ai-generated-title.md): SPA assist flow: generates a title from `intent` or `dashboardContext`, then creates the dashboard from the bulk-save payload. - [Resolve a legacy id to a DashboardV2 id](https://docs.costory.io/api-reference/dashboards/resolve-a-legacy-id-to-a-dashboardv2-id.md): Exactly one of `legacyDashboardId`, `savedViewId`, or `savedAdvancedExplorerId` must be provided. - [List reports](https://docs.costory.io/api-reference/reports/list-reports.md): Returns reports visible to the authenticated user. Optional `recentExecutionsLimit` embeds recent execution rows per report. - [Create a report](https://docs.costory.io/api-reference/reports/create-a-report.md): Creates a report. Rules not captured by the field types: at least one `destinations` entry is required; when `scheduledPeriod` is `WEEKLY`, `scheduledWeekday` (0=Sunday…6=Saturday) is required; EMAIL destinations must be a valid address (or `ALL_ACTIVE_USERS`); and a DIGEST widget rendered as a `tab… - [Get a report](https://docs.costory.io/api-reference/reports/get-a-report.md) - [Archive a report](https://docs.costory.io/api-reference/reports/archive-a-report.md): Soft-archives the report (sets `archivedAt`). - [Update a report](https://docs.costory.io/api-reference/reports/update-a-report.md): Partially updates a report; omitted fields are left unchanged. `widgets` and `destinations`, when provided, replace the existing lists wholesale. Same conditional rules as create apply: a WEEKLY cadence needs a `scheduledWeekday` (from this body or already stored), EMAIL destinations must be valid a… - [Bulk update report metadata](https://docs.costory.io/api-reference/reports/bulk-update-report-metadata.md): Metadata-only patch of visibility, owner, team, and tags for reports. Any id missing or not editable returns 403 for the whole batch. - [Bulk archive reports](https://docs.costory.io/api-reference/reports/bulk-archive-reports.md): Soft-archives reports (sets `archivedAt`). - [Update report metadata](https://docs.costory.io/api-reference/reports/update-report-metadata.md): Metadata-only patch (visibility, owner, team, tags). Does not rewrite widgets or destinations. - [Duplicate a report](https://docs.costory.io/api-reference/reports/duplicate-a-report.md) - [Run a report now](https://docs.costory.io/api-reference/reports/run-a-report-now.md): Enqueues and synchronously runs pending executions for every destination. - [Get a report execution](https://docs.costory.io/api-reference/reports/get-a-report-execution.md) - [Retry a failed report execution](https://docs.costory.io/api-reference/reports/retry-a-failed-report-execution.md) - [Transfer a rendered execution to new destinations](https://docs.costory.io/api-reference/reports/transfer-a-rendered-execution-to-new-destinations.md) - [Send a test report delivery](https://docs.costory.io/api-reference/reports/send-a-test-report-delivery.md) - [Preview a report widget](https://docs.costory.io/api-reference/reports/preview-a-report-widget.md) - [Preview digest summary markdown](https://docs.costory.io/api-reference/reports/preview-digest-summary-markdown.md) - [Run a cost query](https://docs.costory.io/api-reference/query-costs/run-a-cost-query.md): Executes a CEL query and returns either a time series (`kind: series`) or a period-over-period comparison (`kind: comparison`) when `compare.enabled` is true. Organization comes from the authenticated principal (Clerk session JWT or `ak_*` API key). When `datePreset` is sent alongside `from`/`to`, t… - [Run a cost-change diff tree](https://docs.costory.io/api-reference/query-costs/run-a-cost-change-diff-tree.md): Returns a `GROUP BY ROLLUP` tree of current vs previous cost per node for exactly one `cost` or `usage` series. Requires an enabled comparison period, a non-hourly `aggBy`, and at least one `groupBy` axis on that series. Pre-condition failures return `400 INVALID_QUERY` with today's message in `reas… - [List queryable dimensions](https://docs.costory.io/api-reference/query-costs/list-queryable-dimensions.md): Group-by axes and their values accepted by `groupBy` on cost/usage/metric series. Strict public shape — no react-querybuilder filter-widget fields. - [List usage metrics](https://docs.costory.io/api-reference/query-costs/list-usage-metrics.md): Usage `metricId` values (and units) accepted by `usage` series. - [List business metrics](https://docs.costory.io/api-reference/query-costs/list-business-metrics.md): Business `metricId` values accepted by `metric` series, grouped by datasource. `status` is a stored value and is not refreshed on read for API-key callers. - [Create a new event](https://docs.costory.io/api-reference/events/create-a-new-event.md): Endpoint to create a new event using public API. - [Get event tags](https://docs.costory.io/api-reference/events/get-event-tags.md) - [Get an event by ID](https://docs.costory.io/api-reference/events/get-an-event-by-id.md) - [Update an event](https://docs.costory.io/api-reference/events/update-an-event.md) - [Delete an event](https://docs.costory.io/api-reference/events/delete-an-event.md) - [Aggregate events](https://docs.costory.io/api-reference/events/aggregate-events.md) - [Create a new event](https://docs.costory.io/api-reference/events/create-a-new-event-1.md): Endpoint to create a new event from the internal API. - [Get service account details](https://docs.costory.io/api-reference/admin/get-service-account-details.md): Returns service account information for the Admin API. - [Create a billing datasource](https://docs.costory.io/api-reference/admin-billing-datasources/create-a-billing-datasource.md) - [Get a billing datasource](https://docs.costory.io/api-reference/admin-billing-datasources/get-a-billing-datasource.md) - [Archive a billing datasource](https://docs.costory.io/api-reference/admin-billing-datasources/archive-a-billing-datasource.md) - [Validate billing datasource configuration](https://docs.costory.io/api-reference/admin-billing-datasources/validate-billing-datasource-configuration.md) - [List teams in the organization via Admin API](https://docs.costory.io/api-reference/admin-teams/list-teams-in-the-organization-via-admin-api.md): Returns all non-archived teams for the authenticated organization (admin IAM — same list service as SPA `/teams`). - [Create a team via Admin API](https://docs.costory.io/api-reference/admin-teams/create-a-team-via-admin-api.md) - [Get a team via Admin API](https://docs.costory.io/api-reference/admin-teams/get-a-team-via-admin-api.md): The path parameter may be the team id or the team name (case-insensitive). Returns full team detail including members (with user) and pending invites. - [Archive a team via Admin API](https://docs.costory.io/api-reference/admin-teams/archive-a-team-via-admin-api.md): The path parameter may be the team id or the team name (case-insensitive). - [Update a team via Admin API](https://docs.costory.io/api-reference/admin-teams/update-a-team-via-admin-api.md): The path parameter may be the team id or the team name (case-insensitive). - [Add a member to a team via Admin API](https://docs.costory.io/api-reference/admin-teams/add-a-member-to-a-team-via-admin-api.md): The path parameter may be the team id or the team name (case-insensitive). - [Remove a member from a team via Admin API](https://docs.costory.io/api-reference/admin-teams/remove-a-member-from-a-team-via-admin-api.md): The path parameter may be the team id or the team name (case-insensitive). - [Sync all members of a team via Admin API](https://docs.costory.io/api-reference/admin-teams/sync-all-members-of-a-team-via-admin-api.md): Replaces the full member list of a team. Existing members not in the payload are removed, new ones are added or invited. The path parameter may be the team id or the team name (case-insensitive). - [Push custom metric points](https://docs.costory.io/api-reference/custom-metrics/push-custom-metric-points.md): Stream hourly metric points into a Custom Metrics Push integration. Authenticate with a Clerk organization API key (`ak_*`, subject `org_*`). Session JWTs and user API keys are rejected. Timestamps are truncated to the hour in UTC; the last write for the same metric, hour, and tags wins. - [Get object access grants](https://docs.costory.io/api-reference/access/get-object-access-grants.md) - [Replace object access grants](https://docs.costory.io/api-reference/access/replace-object-access-grants.md) - [Changelog](https://docs.costory.io/changelog.md): Product updates and announcements - [ ](https://docs.costory.io/docs/finops-memes.md) ## OpenAPI Specs - [openapi](https://app-api.costory.io/docs/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.