API ReferenceProviders

Get provider spending timeline

GET
/api/v1/providers/{provider_id}/spending/timeline

Authorization

BearerAuth
AuthorizationBearer <token>

API key with l4_live_ or l4_test_ prefix

In: header

Path Parameters

provider_id*string

Query Parameters

start?|

Start date in ISO 8601 format

end?|

End date in ISO 8601 format

granularity?string

Granularity: 'daily' or 'monthly'

Default"daily"
Match^(daily|monthly)$

Header Parameters

authorization*string

Response Body

application/json

application/json

curl -X GET "https://api.levelfour.ai/api/v1/providers/string/spending/timeline" \  -H "authorization: string"
{
  "success": true,
  "timestamp": "2019-08-24T14:15:22Z",
  "data": {
    "provider_id": "string",
    "provider_name": "string",
    "granularity": "string",
    "start_date": "string",
    "end_date": "string",
    "data_points": [
      {
        "date": "string",
        "amount": 0
      }
    ],
    "total": 0
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}