# Flaghand social media scheduling for AI agents

Flaghand lets AI agents schedule, move and unschedule future social media posts through MCP, HTTP or CLI on enabled, connected networks.

An active plan or card is required. The owner confirms the first publishing plan, by-hand posts,
TikTok/YouTube/Pinterest posting choices and every email campaign; gated networks stay gated.
Agents cannot post now, start waiting jobs or send DMs.

When posts go out, how to wait without polling, and how to report what happened: jobs, post links, the live check
and how the posts did. This page is complete on its own; drafting is in [drafting](https://app.flaghand.com/docs/drafting.md).

Posts scheduled by you or your agent publish at their time. A time on a draft is a proposal until it's scheduled.
Immediate posting is owner-only: the owner confirms it in Flaghand with their passkey. Agents cannot start it.

## Agent scheduling

Use `getOperation` to load [schedulePost](https://app.flaghand.com/docs/api/schedulePost.md),
[updateScheduledPost](https://app.flaghand.com/docs/api/updateScheduledPost.md) or
[unschedulePost](https://app.flaghand.com/docs/api/unschedulePost.md), then invoke it with
`callWriteOperation`. All three use the `drafts` scope and the token's workspace. The same operations are available
through HTTP and the CLI. Scheduling needs an active plan or card, sets aside the credits the post can spend, and
runs the normal platform checks. A new workspace's first post goes to the owner once: add a card with your first post.

1. Create a draft with `createDraft`, choosing its `connection_id`. Read `getDraft` for its current `rev`.
2. Call `schedulePost` with `draft_id`, `rev` and an ISO `post_at` at least one minute ahead. The response contains the
   checked job and current draft.
3. Read `listJobs` with `state: "scheduled"` to see scheduled posts across every connected account. Call
   `updateScheduledPost` with its job `id`, current draft `rev`, and a new `post_at` to move it. Include `body`, `title`
   or `connection_id` to edit it or choose another account on that network. Omitted fields stay unchanged.
4. To insert or reorder, send `before_job_id` or `after_job_id` instead of `post_at`. Flaghand chooses the open interval
   beside that scheduled post. It never moves another post silently.
5. Call `unschedulePost` with the job `id` and current draft `rev` to cancel its future posting. The content remains.

For example, after loading each operation's schema:

```json
{"operation_id":"schedulePost","arguments":{"draft_id":"drf_…","rev":1,"post_at":"2026-11-07T18:00:00Z"}}
{"operation_id":"updateScheduledPost","arguments":{"id":"job_…","rev":2,"before_job_id":"job_other…"}}
{"operation_id":"unschedulePost","arguments":{"id":"job_replacement…","rev":3}}
```

Use the returned draft revision and replacement job ID after each change. A concurrent edit or posting race refuses
the change; read the job and draft again. Posts originally scheduled by the owner can be managed through these tools too,
except TikTok uploads and YouTube videos, and each Pinterest Pin: their posting-screen choices belong to the owner.
The owner must choose each Pin. Use `createPost` or `requestApproval`
and give the owner `approval_url`; only their passkey confirmation schedules that exact snapshot. Direct scheduling
and edits through `updateScheduledPost` are refused, even with choices from an earlier approval. To change the time,
content or account, unschedule, edit and request confirmation again. The old job stays canceled until the owner confirms
a new schedule.
Agents may still unschedule these posts without posting anything.
Email campaigns require the owner’s passkey for each exact snapshot. Use `createPost` to request it; direct `schedulePost` refuses email campaigns. An email edit or move cancels its previous send and returns a new approval link. See [email campaigns](https://app.flaghand.com/docs/drafting.md#email-campaigns).

`mode: "post_now"`, past times and times less than a minute ahead return `post_now_forbidden` (403). Agents cannot
post right now, start a waiting job or send a DM. To post right now, ask the owner; they confirm with one passkey tap.

At the end of each hour with agent schedule changes, current workspace owners receive one email with every affected
post, its old and new times, full content, native preview and image or video still. Repeated changes to one post are
combined. No changes means no email. Delivery retries preserve the same message and provider key.

## Proposing a time

- `post_at` on a draft: ISO 8601 with `Z` or an offset (`2026-11-03T09:30:00-08:00`), at least 2 minutes and at most
  90 days ahead; a time without an offset is refused. Schedule it with `mode: "schedule"`. Without a time, `post_now`
  asks the owner to post it right now; it posts once they confirm.
- **Weekly posting slots:** `setConnectionSlots` (`PUT …/connections/{id}/slots`, `drafts` scope) with
  `{"zone": "America/New_York", "slots": [{"day": 1, "time": "09:00"}, {"day": 3, "time": "14:30"}]}` (`day` 0 is
  Sunday; `time` is local `HH:MM`). Then a **new** draft in `createPost` or `createDraft` can send
  `"post_at": "next_slot"` with its `connection_id` to take that account's next open time.
  `getNextConnectionSlots` previews the next open times without reserving them.
- **Best times:** `getBestTimes` (`GET …/best-times?platform=x`, `read` scope) suggests the next good times, learned
  from the X account's own posts (LinkedIn: `platform=linkedin`, published research). For an X account with stale learning it makes billed
  X reads first, so MCP runs it with `callWriteOperation`.
- **Start or refresh X learning:** `refreshBestTimes` (`POST …/best-times/refresh`, `drafts` scope or owner session,
  active plan) exposes the same Insights refresh, including `full: true` to reread its history. CLI:
  `flaghand best-times refresh --full true --json`. Existing credit and automation checks remain; it starts billed
  learning reads, not a publishing job. Read-only tokens cannot refresh. [Settings for agents](https://app.flaghand.com/docs/agent-settings).
- **Still hot:** for an X account that learns, `getBestTimes` and `getNextConnectionSlots` return `still_hot`: each post
  of the account still gaining views faster than 3 in 4 of its posts did at that age, how it's doing against the
  account's median (`score`), `cools_at` (when it's down to a usual post's pace at 3 hours old, if it slows the way the
  account's posts usually do) and `first_time_after`, the first of the returned times after that. An open suggestion
  in `listSuggestions` carries the same `still_hot` when its proposed time comes before a hot post cools. It's a hint
  only: no time is moved, held or refused because of it. `[]` means nothing is hot;
  `null` means the account has no stored reads (it doesn't learn, or isn't X).
- **Time zone:** best times and slots use the workspace's `time_zone` (`renameWorkspace`, `PATCH …/workspaces/{workspace}`
  with `{"time_zone": "Europe/London"}`, `drafts` scope). `post_at` and jobs are exact instants.

Use `updateScheduledPost` to move a scheduled post.

## What scheduling starts

A scheduled post becomes a **job**; a post-now ask becomes one when the owner confirms it. A job's `state` is one of:

| state | means |
|---|---|
| `scheduled` | waiting for its time |
| `waiting` | a hand-first thread waiting for post 1, or a Patreon handoff waiting for the person to publish and for confirmation |
| `posting` | being sent now |
| `processing` | the platform is still processing it (TikTok, or a LinkedIn video or document) |
| `posted` | live; `result` has the links and the live check |
| `inbox` | TikTok put it in the creator's TikTok inbox as a draft: not published |
| `held` | stopped before sending, still scheduled: `x_credits_exhausted`, `connection_login_expired`, `posting_paused` (the operator's pause under the Terms) or a platform refusing the app (`x_app_restricted`, `linkedin_app_restricted`, `tiktok_app_restricted`). The owner retries in the app once it's fixed or lifted. A [review cut](https://app.flaghand.com/docs/approvals#review-cuts-approve-once-attach-the-final) waits here too, as `final_pending` or `final_differs`, and goes out when its final is released, not on a retry |
| `failed` | not posted; `error_code` and `error` say why |
| `canceled` | canceled before posting |

A job posts at most 2 hours late; past that it fails rather than post something stale. A job whose time comes while
the workspace's plan isn't active fails with `workspace_inactive`, and nothing is posted.

A platform's HTTP 429 refusal while preparing or sending a post ends the job as `failed` with
`platform_rate_limited`, rather than silently retrying at a later time. The error includes a reset hint when the
platform supplies one; it isn't a promise of capacity. Schedule it again at a new time.
Any already-live X thread parts stay live and are reused, not posted twice. The existing failure notifications apply.
A 429 during X live read-back does **not** fail or resend the successful post: `result.check` explains that the check
is delayed. Once TikTok has accepted a `publish_id`, a status-query refusal keeps the job `processing` and never
starts a second publication. If TikTok rate-limits the separate video-byte upload after issuing its publish id, the
upload stops and the failure asks the owner to check TikTok and its inbox before trying again.

## Waiting without polling

Don't call a tool every minute in the conversation. In order of preference:

1. **A signed webhook**, if you have an HTTPS receiver and the `webhooks` scope (the owner adds it):
   `createWebhook` (`POST …/webhooks`) with
   `{"endpoint_url": "https://your-agent.example/events", "actions": ["job.posted", "job.failed", "job.held"]}`.
   Register it **before** scheduling: it receives only future events. Its signing secret is in that answer
   only; keep it in the receiver's secret store. Verifying signatures: the
   [agents guide](https://app.flaghand.com/docs/agents.md#signed-webhooks).
2. **The CLI**, where it's installed: `flaghand drafts wait drf_…` waits quietly and answers once the draft is
   posted or failed.
3. **Otherwise**, when the person comes back: `getDraft` for each draft, or `listEvents` (`GET …/events`) with
   `after` (start at `0`) and `draft_id`, following `next_after` and the `Retry-After` hint between turns.

Never claim a subscription or background wait exists when it doesn't.

## Reading the calendar

`listCalendarEntries` (`GET …/calendar`, `read` scope) answers "what's planned or published between these two times?"
from stored data only. It makes no platform read, costs nothing, and works on a lapsed plan. It has no window of
recent posts: any range returns every entry, however old.

```sh
flaghand calendar list --from 2026-11-01T00:00:00-07:00 --until 2026-11-08T00:00:00-08:00 --json
```

- `from` and `until` are required RFC 3339 times with `Z` or an offset. The range includes `from` and excludes
  `until`, and has no maximum span. Send the offsets the person's calendar days actually have; the two can differ across
  a daylight saving change.
- Filter with `connection_id`, `platform`, `label` and a comma-separated `state`. Filters apply before pages, so a sparse
  match is still complete. `limit` sets the page size (100 by default).
- Entries come ordered by `display_at`, then `entry_id`. Follow `next_cursor`, with the same filters, until it's `null`.
  A `rev_conflict` answer means the calendar changed between pages: start the read again from the first page, so
  no entry is skipped or repeated.

`plan_id` is the request that scheduled the post, and it stays with the post through results. Entries with the same
`plan_id` were scheduled together, so you can show one plan's destinations together. Keep each destination's own time,
state and result: a plan can succeed in one place and fail in another. It's `null` when no request covered the post,
including posts from before this field. Never infer a plan from matching text or times.

`display_at` is the time to show: when it went live for `posted` and `inbox`, when YouTube will publish a video it's
scheduled to publish itself, and otherwise the job's run time or the draft's proposed time. `time_zone` is the
workspace's own, for showing times.

`source` is `job` for a scheduled attempt and `draft` for a proposal. Each `job_id` and each timed draft appears once.
A draft that's been scheduled into a job shows the job, not a second card, except that a failed job leaves its draft as
a separate, editable proposal once the draft changes. `current` is `false` for history that a newer attempt or edit
replaced. Canceled jobs return only when you ask for them with `state=canceled`. Archiving a draft removes its unposted
proposal; its jobs stay, marked `draft_archived`.

`state` is a job state from [the table above](https://app.flaghand.com/docs/schedule-and-results#what-scheduling-starts), or for a draft `planned`, `needs_approval`,
`changes_requested` or `approved`. `by_hand` says whether the owner posts it by hand. A thread is one entry, and a
partly posted one reports `results.parts`.

A job's `caption_excerpt`, `media`, `thumbnail` and `account` come from what was scheduled, so later draft edits and
account renames don't change them. `account.source` says whether the identity is the scheduled one (`approved`) or the
`saved` connection. An excerpt is at most 280 characters with `caption_truncated` set; read the whole text with `getDraft` or
`getJob`. An edit made to a live post after posting is in `live_edit`, separately. This read can't schedule, move or
post anything. Each entry's `review_url` opens it on the schedule.

## Reporting the result

Find the job with `getDraft` (its `job`) or `listJobs` with `draft_id`, then `getJob` (`GET …/jobs/{id}`). Report only
what the job says.

- `posted`: give the person the post links, `result.urls`. For X, also `result.check`: Flaghand read the posts back
  from X and compared text, hidden reply mentions, media, alt text, the reply chain and the quote with what was
  scheduled. `verifyJob` reads it back again.
- Patreon is **BY HAND**, never automatic publishing. A due handoff is not a posted job. Only a unique matching
  campaign post published after the handoff confirms it, from Patreon's signed webhook or campaign-post reads.
  For image posts, report "Posted; images not verifiable via Patreon API". An unmatched handoff after a day says
  "Not posted yet", never posted. [Patreon results](https://app.flaghand.com/docs/patreon.md#confirmation-and-honest-results).
- LinkedIn posts can't be read back with the app's current permissions: `result.check.available` is `false`
  (`linkedin_readback_unavailable`). Report the link, never that the live post matches.
- TikTok: `inbox` means it's in the creator's TikTok inbox, not published; `processing` means TikTok is still working
  on it. `checkJobStatus` asks TikTok again.
- `failed` or `held`: report `error_code` and `error` as they are. Never say it posted. `duplicate_post` means the
  platform refused repeated text; schedule a new draft with new wording.

## Cancel or correct

- `cancelJob` (`POST …/jobs/{id}/cancel`, `cancel` scope) stops a waiting, scheduled, held or failed job. It never
  deletes a live post; taking a live post down is the owner's, in the app.
- A posted LinkedIn post's text can be corrected: `requestLiveEdit` (`PUT …/jobs/{id}/edit-request`, `drafts` and
  `request-approval`) with `{"text": "…", "note": "why"}` answers a `review_url` for the owner. X posts can't be
  edited.

## Add a link to a live post

Use `requestLiveLink` (`POST …/jobs/{id}/add-link`, `drafts` and `request-approval` scopes) rather than starting a
separate editing or reply flow. Send `link_url`, an optional plain-text `label` before it, and an optional `note` for
the owner. Use an `Idempotency-Key`; retry a lost answer with the same key and body.

```json
{"link_url":"https://example.com/try","label":"Try it here:","note":"The launch post was missing its product link."}
```

- **LinkedIn:** `action: "linkedin_edit"` appends a blank line and the link line to the latest accepted or recorded
  text and returns the edit request in `job.edit.request`. Existing mentions, media and link cards stay as posted.
  Give the owner `review_url`; the edit changes the post **in place**, not a new post. Only posts Flaghand
  published can be edited through LinkedIn's API. Afterwards read `job.edit.last`:
  `accepted` is LinkedIn's acceptance, not read-back proof; a refusal includes LinkedIn's reason in its error.
- **X:** `action: "x_reply"` creates a self-reply draft on the same account under the original post (post 1 of a
  thread). `post` is the complete `createPost` answer, including checks and saved drafts. If `post.ok` is true,
  give the owner `review_url`. If false, `review_url` is null: fix its saved draft using the returned `draft_id` and
  `rev` and `createPost`; nothing was requested or posted. Follow the reply draft's job for its live URL and check.

```sh
flaghand jobs request-live-link job_… --link-url https://example.com/try --label "Try it here:" --json
```

In MCP, load `requestLiveLink` with `getOperation`, then use `callWriteOperation` with `operation_id:
"requestLiveLink"` and `arguments: {id, link_url, label, note}`. WebMCP offers `flaghand.requestLiveLink` with the
same fields. These only ask the owner; no agent tool sends the LinkedIn update or X reply directly. In the app, a live
post offers the same as **Add a link**, and a live LinkedIn post **I edited it on LinkedIn** (recordLiveEdit).

## Record an outside LinkedIn edit

If the owner edits a live post directly on LinkedIn, use `recordLiveEdit` (`POST …/jobs/{id}/record-live-edit`,
`drafts` scope), including for a post recorded with `posted-by-hand`. Pass the complete current `text` and, if mention
destinations changed, `tags`; `note` can explain the outside edit. Do not PATCH a locked draft or put the new copy in
metadata. This never calls LinkedIn: it trusts the submitted text and stores it as the current live copy at
`job.edit.text` with `source: "recorded"`, recorder and note. The original post record and draft stay unchanged. An
in-app edit updates that same current copy itself with source `approved`.

```sh
flaghand jobs record-live-edit job_… --text "The complete text now live on LinkedIn." --note "Edited on LinkedIn." --json
flaghand jobs get job_… --json
flaghand jobs list-live-edits job_… --json
```

`listLiveEdits` (`GET …/jobs/{id}/live-edits`, `read` scope) returns `edits` newest first with before/after text,
mention maps, source, recorder and time; follow `next_before` with `before` for older history. MCP uses
`callWriteOperation` for `recordLiveEdit`, `callReadOperation` for `listLiveEdits`; WebMCP offers both named tools.
A record cancels a waiting edit request, so no edit lands on stale text. A provider send still in
flight must settle first; recording an outside edit never turns an uncertain provider write into permission to
send another one. LinkedIn cannot be read back with the current scopes, so report this as **recorded**, not verified.

## How the posts did

From the hourly reads Flaghand already makes for an X account that learns best times (8 days per post), so these
read nothing new from X and cost nothing:

- `listJobResults` (`GET …/job-results?posted_after=2026-10-19T00:00:00Z`): each posted X job's latest views, likes,
  reposts, replies, quotes and bookmarks.
- `listJobMetrics` (`GET …/jobs/{id}/metrics`): one job's records.
- `listTopPosts` (`GET …/top-posts?days=7&by=replies&limit=5`): the best posts of the last days by `views`, `likes` or
  `replies`. Learn from openings, length and topics; don't copy a post or quote its numbers as results.

An account that doesn't learn answers `not_measured` with nulls, never zeros.

### Score against the owner's median

Every posted X job's `x.score` (in `listJobResults`, `listJobMetrics`, `getMonthlyReport` and `getWeeklyReport`, as
`score` in `listTopPosts`, and as `posted.score` on a posted suggestion in `listSuggestions`) compares post 1 with the
same account's own posts **at the same age**, since views keep climbing for days:

- A post last read at 3 hours old is compared with what the account's other posts had at 3 hours, from their stored
  hourly reads: linear between the two reads around that age (at most 2 hours apart, or a third of the age if longer),
  from 0 at posting, never extrapolated past a post's last read.
- The usual is the **median** of the 30 original posts nearest in posting time that have a read at that age, so the
  account's growth or slump isn't counted for or against a post (Best times uses the same running median).
- From 7 days old, when views have nearly stopped, it compares the latest numbers with other posts' latest numbers
  read at 7 days or later. That also covers the history learning read back before its hourly reads began.
- Fewer than 5 comparable posts: `status: "too_few_posts"`, with no median or ratio rather than a noisy one.

`ratio` is views over the median views (2 is twice the usual at that age); `label` is `above` (better than 3 in 4 of
those posts), `below` (worse than 3 in 4) or `usual`. `metrics` gives views, engagements, likes and replies each with
its `value`, `median`, `ratio`, `percentile` and how many `posts` it was compared with; likes and replies at the same
age come from reads since late October 2026, so older posts may give fewer of them. `method` is `same_age_median`, and
`note` says the comparison in one sentence. A post under 7 days old is still read hourly, so its score can change.
An account that doesn't learn, or a post with no stored numbers, answers `not_measured` with nulls, never zeros.
`listTopPosts?by=score` ranks by the ratio, so a new post isn't ranked below older ones only for being new.

## Weekly results

`getWeeklyReport` (`GET …/weekly-report`, `read` scope) covers the 7 days before `until` (now when left out): each
posted X job with its text, numbers and score, `worked` and `flopped` (the job ids that scored above and below, best
and worst first), and the suggestions created, decided or posted that week: which were picked, edited before
scheduling, dismissed by a person or withdrawn by an agent, and how the picked ones did (`summary.picked_posted`
beside `summary.other_posts`). It reads stored data only, makes no X reads or model calls, and **sends nothing**: no
email, push or message. It's there when the person or their agent asks.

```sh
flaghand reports get-weekly --json
flaghand reports get-weekly --format markdown --out week.md
flaghand reports get-weekly --until 2026-10-26T00:00:00Z --format csv --out week.csv
```

In MCP, use `getOperation` for `getWeeklyReport`, then `callReadOperation` with
`{"operation_id":"getWeeklyReport","arguments":{}}`; add `"format":"markdown"` or `"format":"csv"` inside `arguments`
for text. How a post did is the audience's response, not the owner's preference: the `learn_voice` recipe reads this
report and proposes lessons only when several posted suggestions agree. Flaghand never makes a lesson from scores
by itself.

## Monthly results

For a client update or a vault note, `getMonthlyReport` (`GET …/reports/{month}`, `read` scope) combines published jobs
and links across networks, the X numbers already stored and each agent's draft counts. In the app, open
**Reports** to read a month or the last 7 days; `?month=` and `?week=` open any other.

```sh
flaghand reports get-monthly 2026-10 --json
flaghand reports get-monthly 2026-10 --format markdown --out results-2026-10.md
flaghand reports get-monthly 2026-10 --format csv --out results-2026-10.csv
```

In MCP, use `getOperation` for `getMonthlyReport`, then `callReadOperation` with
`{"operation_id":"getMonthlyReport","arguments":{"month":"2026-10"}}`; add `"format":"markdown"` or
`"format":"csv"` inside `arguments` for text. This reads stored data only, makes no provider reads or refreshes, and
works in any plan state. The month is UTC, independent of the workspace's display time zone.

Read the returned `notes`: only completed posted jobs count (including recorded by-hand posts), not partial threads,
waiting jobs or TikTok inbox drafts. Posting times are completion/recording times. X numbers are the latest stored
reads, **not month-end snapshots**; missing numbers are null/empty, not zero. LinkedIn has links and times but **no post
numbers**, because `r_member_social` isn't granted. Agent counts use drafts **created that
month**, with outcomes as of generation, not only monthly events. CSV is rectangular: filter its `section` before
aggregating, so job totals and post rows aren't double-counted.
[Full counting and download details](https://app.flaghand.com/docs/agents.md#monthly-results).

## Operations on this page

The operation id is also the MCP tool's name; MCP says how to call it (`listed`: a default tool).

| Operation | HTTP | CLI | MCP | Scopes | Does |
| --- | --- | --- | --- | --- | --- |
| [`attachFinal`](https://app.flaghand.com/docs/api/attachFinal.md) | `POST /workspaces/{workspace}/jobs/{id}/final` | `flaghand jobs attach-final` | `callWriteOperation` | `drafts` | Attach the final render to an approved review cut |
| [`getFinal`](https://app.flaghand.com/docs/api/getFinal.md) | `GET /workspaces/{workspace}/jobs/{id}/final` | `flaghand jobs get-final` | `callReadOperation` | `read` | A review cut's final: status and match result |
| [`startFinalApproval`](https://app.flaghand.com/docs/api/startFinalApproval.md) | `POST /workspaces/{workspace}/jobs/{id}/final/options` | `flaghand jobs start-final-approval` | not for agents | owner's passkey | Owner: prepare a passkey approval of a final that didn't verify |
| [`approveFinal`](https://app.flaghand.com/docs/api/approveFinal.md) | `POST /workspaces/{workspace}/jobs/{id}/final/approve` | `flaghand jobs approve-final` | not for agents | owner's passkey | Owner: release a final that didn't verify, with a fresh passkey |
| [`setConnectionSlots`](https://app.flaghand.com/docs/api/setConnectionSlots.md) | `PUT /workspaces/{workspace}/connections/{id}/slots` | `flaghand connections set-slots` | `callWriteOperation` | `drafts` | Replace the weekly proposed times; never moves a draft, approval or job |
| [`getNextConnectionSlots`](https://app.flaghand.com/docs/api/getNextConnectionSlots.md) | `GET /workspaces/{workspace}/connections/{id}/slots/next` | `flaghand connections get-next-slots` | `callReadOperation` | `read` | Preview the next open exact times; does not reserve or schedule them |
| [`getBestTimes`](https://app.flaghand.com/docs/api/getBestTimes.md) | `GET /workspaces/{workspace}/best-times` | `flaghand best-times get` | `callWriteOperation` | `read` | The next best times to post, learned from the account's X history (LinkedIn: published research) |
| [`renameWorkspace`](https://app.flaghand.com/docs/api/renameWorkspace.md) | `PATCH /workspaces/{workspace}` | `flaghand workspaces rename` | `callWriteOperation` | `drafts` | Update a workspace's time zone (drafts scope), or its name (owner session only) |
| [`createWebhook`](https://app.flaghand.com/docs/api/createWebhook.md) | `POST /workspaces/{workspace}/webhooks` | `flaghand webhooks create` | `callWriteOperation` | `webhooks` | Register a signed JSON receiver or Slack/Discord incoming-webhook alerts |
| [`listEvents`](https://app.flaghand.com/docs/api/listEvents.md) | `GET /workspaces/{workspace}/events` | `flaghand events list` | `callReadOperation` | `read` | The audit log: who did what; after follows new events in order |
| [`getDraft`](https://app.flaghand.com/docs/api/getDraft.md) | `GET /workspaces/{workspace}/drafts/{id}` | `flaghand drafts get` | listed | `read` | One draft, with its current approval and latest job |
| [`listCalendarEntries`](https://app.flaghand.com/docs/api/listCalendarEntries.md) | `GET /workspaces/{workspace}/calendar` | `flaghand calendar list` | `callReadOperation` | `read` | Every planned and published post in a date range, oldest first |
| [`listJobs`](https://app.flaghand.com/docs/api/listJobs.md) | `GET /workspaces/{workspace}/jobs` | `flaghand jobs list` | listed | `read` | Jobs, newest first |
| [`getJob`](https://app.flaghand.com/docs/api/getJob.md) | `GET /workspaces/{workspace}/jobs/{id}` | `flaghand jobs get` | `callReadOperation` | `read` | One job |
| [`verifyJob`](https://app.flaghand.com/docs/api/verifyJob.md) | `POST /workspaces/{workspace}/jobs/{id}/verify` | `flaghand jobs verify` | `callWriteOperation` | `read` | Read back a published job and report what can be verified |
| [`checkJobStatus`](https://app.flaghand.com/docs/api/checkJobStatus.md) | `POST /workspaces/{workspace}/jobs/{id}/status` | `flaghand jobs check-status` | `callWriteOperation` | `read` | Read TikTok processing status, or check for a published Patreon handoff; never sends a post |
| [`cancelJob`](https://app.flaghand.com/docs/api/cancelJob.md) | `POST /workspaces/{workspace}/jobs/{id}/cancel` | `flaghand jobs cancel` | `callWriteOperation` | `cancel` | Cancel a waiting, scheduled, held or failed job, a processing LinkedIn video, or a posted job's plug or repost that hasn't gone out (the original stays live) |
| [`requestLiveEdit`](https://app.flaghand.com/docs/api/requestLiveEdit.md) | `PUT /workspaces/{workspace}/jobs/{id}/edit-request` | `flaghand jobs request-live-edit` | `callWriteOperation` | `drafts` and `request-approval` | LinkedIn: ask the owner to approve new text for a posted post; nothing changes on LinkedIn until they approve it with their passkey |
| [`requestLiveLink`](https://app.flaghand.com/docs/api/requestLiveLink.md) | `POST /workspaces/{workspace}/jobs/{id}/add-link` | `flaghand jobs request-live-link` | `callWriteOperation` | `drafts` and `request-approval` | Add a link to a live post: request a LinkedIn edit or an X self-reply for the owner's passkey approval |
| [`recordLiveEdit`](https://app.flaghand.com/docs/api/recordLiveEdit.md) | `POST /workspaces/{workspace}/jobs/{id}/record-live-edit` | `flaghand jobs record-live-edit` | `callWriteOperation` | `drafts` | Record a LinkedIn post's complete live text after an outside edit; never changes LinkedIn |
| [`listLiveEdits`](https://app.flaghand.com/docs/api/listLiveEdits.md) | `GET /workspaces/{workspace}/jobs/{id}/live-edits` | `flaghand jobs list-live-edits` | `callReadOperation` | `read` | Read accepted LinkedIn edits and recorded outside edits, newest first |
| [`listJobResults`](https://app.flaghand.com/docs/api/listJobResults.md) | `GET /workspaces/{workspace}/job-results` | `flaghand jobs list-results` | `callReadOperation` | `read` | How posted X jobs did: each post's latest views, likes, reposts, replies, quotes and bookmarks, newest first |
| [`listJobMetrics`](https://app.flaghand.com/docs/api/listJobMetrics.md) | `GET /workspaces/{workspace}/jobs/{id}/metrics` | `flaghand jobs list-metrics` | `callReadOperation` | `read` | How a posted job performed: every record, newest first, with rates, and for X its numbers from X |
| [`listTopPosts`](https://app.flaghand.com/docs/api/listTopPosts.md) | `GET /workspaces/{workspace}/top-posts` | `flaghand jobs list-top-posts` | `callReadOperation` | `read` | The workspace's best X posts of the last days, ranked by views, likes or replies, with their text |
| [`getWeeklyReport`](https://app.flaghand.com/docs/api/getWeeklyReport.md) | `GET /workspaces/{workspace}/weekly-report` | `flaghand reports get-weekly` | `callReadOperation` | `read` | The last 7 days on X: each post against the account's median at the same age, what worked and what flopped, and the suggestions picked, edited or dismissed |
| [`getMonthlyReport`](https://app.flaghand.com/docs/api/getMonthlyReport.md) | `GET /workspaces/{workspace}/reports/{month}` | `flaghand reports get-monthly` | `callReadOperation` | `read` | Monthly results: published posts, stored X numbers, approvals, send-backs and each agent's drafts |

Also complete on their own: [set up and connect](https://app.flaghand.com/docs/setup.md),
[drafting](https://app.flaghand.com/docs/drafting.md), [media and threads](https://app.flaghand.com/docs/media-and-threads.md),
[billing](https://app.flaghand.com/docs/billing.md) and [errors](https://app.flaghand.com/docs/errors.md).
