Where the cost of the memory of a project goes
GET/v1/memory/spend
Answers the conversations, the turns, the calls and the cost of the memory of the project in a window, the change against the window before it, and the cost of each model and of each call type. The spend is the project's: a usage event carries no end user and no scope, so subject narrows only the conversations, and a scope is refused.
Request
Responses
- 200
- 400
- 401
- 500
- 503
The spend of the window, its change and its splits.
days is not 1 to 90, view is not summary or patterns, or the call named a scope (bad_request).
The bearer virtual key is missing (missing_key), or it is not valid or it is revoked (invalid_key).
A database or event store query failed (query_failed).
The key store or the limits store is not available (keystore_unavailable, limits_unavailable), or the gateway has no database (no_db).