# Cloudflare Daily Action API

Generated: 2026-06-11

Worker:

https://jordyn-hail-watch.thepriceco-account.workers.dev

Protected endpoints:

- `GET /daily-actions?days=3`
- `GET /daily-actions?from=2026-06-11&days=7`
- `GET /daily-actions?status=manual_post_ready&days=30`
- `POST /daily-actions/complete`
- `GET /status`

Authentication:

- Use the Worker `ACCESS_KEY` through the `x-key` header or `?key=...`.
- Do not place the key in public pages or email links.

Completion payload:

```json
{
  "action_key": "appraisal-2026-06-11-facebook-priceco",
  "note": "Posted manually to Facebook"
}
```

Completion behavior:

- Marks the action `completed_manual`.
- Writes `completed_at`.
- Adds an `activity_log` row with `event_type=daily_appraisal_action_completed`.

Current public fallback:

- Today brief: https://jordyn-daily-appraisal.pages.dev/today-action-brief.md
- Calendar CSV: https://jordyn-daily-appraisal.pages.dev/30-day-appraisal-calendar.csv
- Manual completion log: https://jordyn-daily-appraisal.pages.dev/manual-post-completion-log.md

Publisher status:

- Facebook, LinkedIn, Instagram, and Google Business Profile publishers are implemented in `jordyn-hail-watch`.
- They remain blocked until the matching Cloudflare secrets are installed.
- Instagram also requires a public `INSTAGRAM_IMAGE_URL` for the campaign image.
- Google Business Profile requires either `GOOGLE_BUSINESS_PROFILE_LOCATION_NAME` or both `GOOGLE_BUSINESS_PROFILE_ACCOUNT_ID` and `GOOGLE_BUSINESS_PROFILE_LOCATION_ID`.
- Until those secrets exist, the manual posting board remains the safe fallback.
