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>'
{
  "links": {},
  "accrued_at": "2023-09-05+00:00",
  "amount": "4.25",
  "currency": "USD",
  "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",
  "tag": "production",
  "tags": [
    ""
  ],
  "cost_category": "Data Transfer",
  "cost_subcategory": "DataTransfer-Regional-Bytes"
}

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
integer<int32>
required

Response

Cost model

accrued_at
string

The date the cost was accrued. ISO 8601 Formatted.

Example:

"2023-09-05+00:00"

amount
string

The amount of the cost.

Example:

"4.25"

currency
string

The currency of the cost.

Example:

"USD"

usage
object

The usage amount and unit incurred by the cost.

provider
enum<string>

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
Example:

"aws"

billing_account_id
string

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

Example:

"9109237192"

account_id
string

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

Example:

"9109237192"

service
string

The service which incurred the cost.

Example:

"Amazon Elastic Compute Cloud - Compute"

region
string

The region which incurred the cost.

Example:

"us-east-1"

resource_id
string

The resource id which incurred the cost.

Example:

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

tag
string

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

Example:

"production"

tags
string[]

The tag pairs attached to the cost that was incurred.

cost_category
string

The category for the cost.

Example:

"Data Transfer"

cost_subcategory
string

The subcategory for the cost.

Example:

"DataTransfer-Regional-Bytes"