Skip to main content
POST
On-demand metrics refresh for an agent

Authorizations

Authorization
string
header
required

User-bound credential carrying an identity: either a session JWT or a user access token (at:*) generated from the user settings UI. Send as Authorization: Bearer <token>. Org API keys (iak_*) are not accepted here - they carry no user identity. Use the x-prismeai-api-key header instead (see OrgApiKeyAuth).

Path Parameters

agentId
string
required
Maximum string length: 64

Query Parameters

hours_back
string

Legacy fallback - number of hours back from now (max 168).

Body

application/json
period_start
string

ISO timestamp - start of the refresh window.

period_end
string

ISO timestamp - end of the refresh window (exclusive).

granularity
enum<string>

Aggregation granularity. Default hourly.

Available options:
5m,
hourly,
daily

Response

Refresh result.

status
string
Example:

"refreshed"

agent_id
string
granularity
enum<string>
Available options:
5m,
hourly,
daily
period_start
string
period_end
string
entries_written
integer
error
string

Set if a partial failure occurred during aggregation.