letmepost

v0.2.1
io.github.rosekamallove/letmepost Checked 1 hour ago Published 5 months ago

MCP server for letmepost.dev.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

post_v1_posts

Publish or schedule a multi-target post Publish a single body to up to 25 connected accounts in one call, or schedule the whole batch for a future time. - **Multi-target only:** the v1 wire shape requires `targets[]`. The legacy `account: {}` single-target shape is no longer accepted. - **Idempotent:** include `Idempotency-Key`. Replays within 24 hours return the original response. - **Preflight:** every documented platform constraint runs locally before the upstream call. Cheap shape preflight is atomic across the batch — if any target fails the synchronous checks the whole call is reject…

ParameterTypeDescription
targets *array
firstCommentobjectAuto-posted reply to the published post. Bluesky-only today; ignored on platforms that don't support it.
mediaarrayDefault media applied to any target that omits its own `media`.
profileIdstringProfile scope for this batch. Use to target a specific workspace when the API key or OAuth token is org-wide. Forbidden when the key is already scoped to a different profile (rule `profile.scope_misma…
publishNowbooleanExplicit immediate-publish mode. Mutually exclusive with `scheduledAt` (`mode_conflict`). When neither is set the request publishes immediately.
scheduledAtstringISO-8601 timestamp at least 1 second in the future. When set, every target row is queued and the response is 202. Scheduled posts currently accept text only — media and firstComment require an immed…
textstringDefault text applied to any target that omits its own `text`.

get_v1_posts

List posts (post log) Cursor-paginated post log scoped to the caller's organization (and profile, when the key is profile-scoped). Filters compose. Array filters (`platform`, `status`, `errorCode`) accept either repeated query params or comma-separated single values.

ParameterTypeDescription
afterstringISO-8601 lower bound on `createdAt` (exclusive).
beforestringISO-8601 upper bound on `createdAt` (exclusive).
cursorstring
errorCodearray
limitinteger
platformarray
profileIdstring
statusarray

get_v1_posts_by_id

Fetch a single post with its publish attempts Returns the post row plus every publish attempt (start/finish, success flag, upstream response, error code). Use the `postId` returned in `CreatePostResponse.results[]` as `{id}`.

ParameterTypeDescription
id *string

patch_v1_posts_by_id

Reschedule a queued post Move a scheduled post to a new firing time. Only allowed when `status=queued` AND `scheduledAt` is still in the future — once a post enters `publishing` or any terminal state, the window closes and the request returns `409`. The operation is atomic: the API replaces the BullMQ job (removes the old delayed job, enqueues a new one at the updated delay) and only persists the new `scheduledAt` if the queue swap succeeded. A `post.rescheduled` webhook fires on success, carrying both the old and new timestamps.

ParameterTypeDescription
id *string
scheduledAt *stringISO-8601 timestamp with timezone. Must be at least 1 second in the future.

delete_v1_posts_by_id

Cancel a queued scheduled post Cancel a scheduled post before it fires. Only allowed when `status=queued` AND `scheduledAt` is still in the future — same window as `PATCH`. Removes the BullMQ job and transitions the row to `status=canceled`. A `post.canceled` webhook fires on success. If a worker is already processing the job when cancellation lands, the worker's conditional `UPDATE … WHERE status IN ('queued','validated')` short-circuits and the publish never happens.

ParameterTypeDescription
id *string

get_v1_media

List uploaded media Cursor-paginated. Scoped to the caller's organization, and (when the key is profile-scoped) to that profile. Org-wide keys may narrow with `?profileId=`.

ParameterTypeDescription
cursorstring
limitinteger
profileIdstring

get_v1_accounts

List connected accounts Lists every connected platform account in the caller's organization. No secrets ever leak — display name, platform identifiers, and lifecycle timestamps only.

ParameterTypeDescription
profileIdstringNarrow to a single profile. Malformed values match nothing rather than 400 (preserves the dashboard's profile-switcher contract).

get_v1_accounts_by_id

Fetch a connected account

ParameterTypeDescription
id *string

delete_v1_accounts_by_id

Disconnect (hard delete) Dashboard session only — programmatic keys cannot disconnect accounts. Hard delete: the platform_accounts row is removed and any persisted token is destroyed.

ParameterTypeDescription
id *string

post_v1_accounts_connect_by_platform

Start a connect flow Dashboard session only. Returns a `ConnectDescriptor` describing how to finish the connect — an OAuth authorization URL for OAuth platforms, or a credentials form schema for Bluesky. Programmatic API keys cannot mint OAuth state.

ParameterTypeDescription
platform *stringSupported platforms. `tiktok` is currently in App Review — connect requests return `platform_not_enabled` until approval lands.
profileIdstringLand the resulting account in this profile. Falls back to the org's default profile when omitted.

post_v1_accounts_connect_by_platform_complete

Finish a connect flow Dashboard session only. Completes the handshake started by `POST /v1/accounts/connect/{platform}` — for OAuth platforms this is invoked from the redirect callback flow; for credentials platforms (Bluesky) it carries the credentials in the body. Upserts the platform_accounts row (re-connecting the same account rotates the stored token rather than 409-ing).

ParameterTypeDescription
platform *stringSupported platforms. `tiktok` is currently in App Review — connect requests return `platform_not_enabled` until approval lands.
profileIdstring

get_v1_accounts_by_id_pinterest_boards

List Pinterest boards on a connected account Proxy to Pinterest's `/v5/boards` using the stored token. Used by the dashboard's default-board picker so a user can see their actual boards.

ParameterTypeDescription
id *string

post_v1_accounts_by_id_pinterest_boards

Create a Pinterest board Creates a board on the user's Pinterest account without sending them off-site. Optional `setAsDefault` lifts the new board id into the account's default in one round-trip. Optional `upsert: true` returns the existing board (with `existing: true`) on duplicate-name instead of 409-ing.

ParameterTypeDescription
id *string
name *string
descriptionstring
privacystring
setAsDefaultbooleanLift the new board id into `tokenMetadata.defaultBoardId`.
upsertbooleanWhen true, a duplicate-name response from Pinterest resolves to a 200 with the existing board (`existing: true`) instead of a `platform_rejected` failure.

patch_v1_accounts_by_id_pinterest_default_board

Set the default Pinterest board for publishes Persists the supplied `boardId` as the account's default — used when a `POST /v1/posts` body omits `options.boardId` for a Pinterest target. The board is validated against the account's own boards list before persisting.

ParameterTypeDescription
boardId *string
id *string

post_v1_api_keys

Mint an API key Dashboard session only. The plaintext `key` is returned **once** in this response and never again — store it securely. Optional `profileId` pins the key to a single profile; cross-profile reads/writes 404 under that key.

ParameterTypeDescription
name *string
prefixstring
profileIdstring | nullOptional profile scope. When set, the key only authenticates requests targeting that profile; cross-profile reads/writes 404.
scopesarray

get_v1_api_keys

List API keys Dashboard session only. Plaintext is never returned again — only `last4` and metadata.

delete_v1_api_keys_by_id

Revoke an API key Soft-revoke. The key is invalidated immediately; the row stays for audit. Already-revoked keys 404.

ParameterTypeDescription
id *string

post_v1_webhook_endpoints

Register a webhook endpoint Dashboard session only. The `signingSecret` is returned **once** at creation — used to verify the HMAC-SHA256 `X-Letmepost-Signature` header on every delivery. An empty `events` array subscribes to every event type.

ParameterTypeDescription
url *string
descriptionstring
eventsarrayEmpty array subscribes the endpoint to every event type.

get_v1_webhook_endpoints

List webhook endpoints

get_v1_webhook_endpoints_by_id

Fetch a webhook endpoint

ParameterTypeDescription
id *string

patch_v1_webhook_endpoints_by_id

Update a webhook endpoint Partial update. Setting `active: false` pauses delivery without losing the endpoint; flipping back to `true` re-enables it.

ParameterTypeDescription
id *string
activeboolean
descriptionstring | null
eventsarray
urlstring

delete_v1_webhook_endpoints_by_id

Delete a webhook endpoint Hard delete — the row is removed. Use `PATCH … { active: false }` instead if you want to pause delivery while preserving history.

ParameterTypeDescription
id *string

post_v1_webhook_endpoints_by_id_test

Send a synthetic test delivery Fires a synthetic event at the endpoint URL synchronously and returns what the consumer responded — bypasses the BullMQ delivery queue on purpose so operators get immediate feedback. The real signing secret is used; the consumer's HMAC verification path is identical to production.

ParameterTypeDescription
id *string
data
typestring