Skip to main content
GET
/
v1
/
consumption
Get a breakdown of your credit consumption for flat-rated products
curl --request GET \
  --url https://eu1.api.matillion.com/dpc/v1/consumption \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "consumedFrom": "2024-01-01T00:00:00.000Z",
      "consumedBefore": "2024-01-02T00:00:00.000Z",
      "consumption": [
        {
          "consumptionType": "etl-compute",
          "dimensions": {
            "installationId": "0121a3f9-1234-1234-ea930df94"
          },
          "credits": 24
        },
        {
          "consumptionType": "orchestration",
          "dimensions": {},
          "credits": 16.2
        },
        {
          "consumptionType": "transformation",
          "dimensions": {},
          "credits": 9.6
        },
        {
          "consumptionType": "streaming",
          "dimensions": {},
          "credits": 9.6
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

a valid bearer token

Query Parameters

consumedFrom
string<date>
required

First calendar date to include in results (inclusive)

consumedBefore
string<date>
required

Calendar date before which results should be included (exclusive)

Response

Successful

results
object[]

An array of date periods, each containing the consumption for that period

Example:
[
{
"consumedFrom": "2024-01-01T00:00:00.000Z",
"consumedBefore": "2024-01-02T00:00:00.000Z",
"consumption": [
{
"consumptionType": "etl-compute",
"dimensions": {
"installationId": "0121a3f9-1234-1234-ea930df94"
},
"credits": 24
},
{
"consumptionType": "orchestration",
"dimensions": {},
"credits": 16.2
},
{
"consumptionType": "transformation",
"dimensions": {},
"credits": 9.6
},
{
"consumptionType": "streaming",
"dimensions": {},
"credits": 9.6
}
]
}
]