Create an alert
Create a threshold alert in a project the authenticated user can write to.
Requires MEMBER role or higher in the project's workspace (the write service decides). Strict create — alerts have no unique name, so every call inserts and created is always true on success.
Args: request (Request): Incoming request (rate-limit plumbing). response (Response): Outgoing response (rate-limit plumbing). auth (AccountStampedAuth): Account-scope user auth (session token or CLI access JWT); its resolved user_id becomes the actor. payload (CreateAlertRequest): The alert rule to create. _live (None): Write-path liveness gate (blocks a revoked JWT session).
Returns: CreateAlertResponse: The created alert with its full rule.
Request
- Base URLhttps://app.traceroot.ai
- URLhttps://app.traceroot.ai/api/v1/public/alerts
- AuthHTTP bearer
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.