Getmasterkeysspendtrend
Per-day spend trend for the workspace, optionally scoped to one master key.
Success data: { "window", "rows": [{ "bucket", "cost_sum", "request_count", ... }] }
Authentication
AuthorizationBearer
Bearer credential containing a JWT, Virtual Key, or PAT.
Headers
X-Workspace-Id
Required for a normal JWT, Virtual Key, or PAT. A JWT may instead send X-Openmodel-User-Id. Not used by the public health endpoint.
X-Openmodel-User-Id
JWT-only alternative to X-Workspace-Id. Must be a UUID equal to the JWT subject; the server uses it as the workspace id. Not valid as the sole workspace header for Virtual Key or PAT authentication.
Query parameters
preset
Calendar preset; default 30d without start+end.
start
YYYY-MM-DD with end.
end
YYYY-MM-DD with start.
masterKeyId
Optional UUID. If sent non-empty it must be valid; filters to that key. Omit for workspace-wide trend.
Response
code
message
data