Skip to main content
DELETE
/
integrations
/
{integration_token}
/
costs
/
{user_costs_upload_token}
Delete user costs upload
curl --request DELETE \
  --url https://api.vantage.sh/v2/integrations/{integration_token}/costs/{user_costs_upload_token} \
  --header 'Authorization: Bearer <token>'
{
  "accrued_at": "2023-09-05+00:00",
  "amount": "4.25",
  "currency": "USD",
  "links": {
    "self": "<string>",
    "first": "<string>",
    "next": "<string>",
    "last": "<string>",
    "prev": "<string>"
  },
  "usage": {},
  "provider": "aws",
  "billing_account_id": "9109237192",
  "account_id": "9109237192",
  "service": "Amazon Elastic Compute Cloud - Compute",
  "region": "us-east-1",
  "resource_id": "arn:aws:ec2:us-east-1:123456789012:instance/i-1234567890abcdef0",
  "resource_name": "claude_code_key_name",
  "tag": "production",
  "tags": [
    ""
  ],
  "cost_category": "Data Transfer",
  "cost_subcategory": "DataTransfer-Regional-Bytes",
  "segment": "Engineering"
}

Documentation Index

Fetch the complete documentation index at: https://docs.vantage.sh/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

integration_token
string
required
user_costs_upload_token
string
required

Token of the UserCostsUpload to delete.

Response

Cost model

accrued_at
string
required

The date the cost was accrued. ISO 8601 Formatted.

Example:

"2023-09-05+00:00"

amount
string
required

The amount of the cost.

Example:

"4.25"

currency
string
required

The currency of the cost.

Example:

"USD"

usage
object

The usage amount and unit incurred by the cost.

provider
enum<string> | null

The cost provider which incurred the cost.

Available options:
aws,
azure,
gcp,
snowflake,
databricks,
mongo,
datadog,
fastly,
new_relic,
opencost,
open_ai,
oracle,
confluent,
planetscale,
coralogix,
kubernetes,
custom_provider,
github,
linode,
grafana,
clickhouse,
temporal,
twilio,
azure_csp,
kubernetes_agent,
anthropic,
anyscale,
cursor,
elastic,
vercel,
redis_cloud,
circle_ci
Example:

"aws"

billing_account_id
string | null

The cost provider's billing account id that incurred the cost.

Example:

"9109237192"

account_id
string | null

The cost provider's account id that incurred the cost.

Example:

"9109237192"

service
string | null

The service which incurred the cost.

Example:

"Amazon Elastic Compute Cloud - Compute"

region
string | null

The region which incurred the cost.

Example:

"us-east-1"

resource_id
string | null

The resource id which incurred the cost.

Example:

"arn:aws:ec2:us-east-1:123456789012:instance/i-1234567890abcdef0"

resource_name
string | null

The human-readable resource name when Vantage can enrich the resource id.

Example:

"claude_code_key_name"

tag
string | null

The tag attached to the cost that was incurred. DEPRECATED: does not support multiple tags.

Example:

"production"

tags
string[] | null

The tag pairs attached to the cost that was incurred.

cost_category
string | null

The category for the cost.

Example:

"Data Transfer"

cost_subcategory
string | null

The subcategory for the cost.

Example:

"DataTransfer-Regional-Bytes"

segment
string | null

The segment name for segment report costs.

Example:

"Engineering"