---
title: "Synthetic Monitor"
method: POST
path: "/api/tasks/synthetic-monitor"
tags: ["Tasks"]
---

# Synthetic Monitor

`POST /api/tasks/synthetic-monitor`

## Request

- Base URL: `https://api.primetime.media` (the document declares no server; this is the origin it was published from)
- URL: `https://api.primetime.media/api/tasks/synthetic-monitor`
- Auth: none declared
- TypeScript: <https://skmtc.dev/primetime/apis/primetime-media-api/docs/api/tasks/synthetic-monitor/post.ts> (a function with typed inputs; its response is checked against the schema)

Synthetic production monitor — runs read-only assertions against
critical endpoints + DB queries. Returns 200 if every check passes,
500 with details if anything fails. Wired to a Cloud Scheduler job
at */15 * * * *. Non-200 responses trigger the primetime-synthetic-
monitor-failure log-based metric and alert policy.

## Headers

- `x-cloudscheduler-secret` string, nullable
- `x-scheduler-secret` string, nullable
- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `401`: Unauthorized
- `422`: Validation Error
- `500`: Internal Server Error

---

[API](https://skmtc.dev/primetime/apis/primetime-media-api.md) - [All operations](https://skmtc.dev/primetime/apis/primetime-media-api/llms.txt) - [OpenAPI document](https://skmtc.dev/primetime/apis/primetime-media-api/revisions/5e268fd807eb?raw)
