# Spend Timeseries

> Daily spend for the top groups, the rest folded into Other.

Canonical URL: https://docs.botyard.io/docs/api/spend/spend_timeseries_v1_orgs__org_id__spend_timeseries_post

`POST /v1/orgs/{org_id}/spend/timeseries`

Daily spend for the top groups, the rest folded into Other.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `org_id` | path | yes | string |  |

## Request body

`application/json`: SpendTimeseriesRequest (required)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `from` | string (date-time) | yes | Inclusive range start |
| `to` | string (date-time) | yes | Exclusive range end |
| `where` | FilterNode_SpendFilterField_ \| null | no | Filter DSL tree, ANDed on top of the org and the range. See FilterNode for the condition / and / or shape. |
| `group_by` | SpendDimension | yes |  |
| `top` | integer | no | Named series, by spend over the whole range; the rest fold into Other |

## Responses

| Status | Description | Body |
| --- | --- | --- |
| `200` | Successful Response | SpendTimeseriesResponse |
| `default` | RFC 9457 Problem Details error response | ProblemDetails |

Full schemas: operation `spend_timeseries_v1_orgs__org_id__spend_timeseries_post` in the OpenAPI spec at https://api.botyard.io/openapi.json.
