---
canonical_url: "https://docs.composio.dev/toolkits/mymarky_mcp"
markdown_url: "https://docs.composio.dev/toolkits/mymarky_mcp.md"
product: "platform"
version: null
last_updated: null
---

# Marky MCP

Create, schedule, queue and publish social media posts, manage workspaces, topics, media and posting schedules, and read post and account analytics through Marky's official hosted MCP server.

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 35
- **Triggers:** 0
- **Slug:** `MYMARKY_MCP`
- **Version:** 00000000_00

## Tools

### Append base64 media chunk

**Slug:** `MYMARKY_MCP_APPEND_BASE64_MEDIA_CHUNK`

Append a base64 media chunk

Send one base64-encoded chunk of a file started with `start_base64_media_upload`.

Chunks may arrive in any order. Resending an index replaces that chunk, so retrying
after a timeout is safe. When every chunk is sent, call `finish_base64_media_upload`.

Errors:
    400 INVALID_BASE64: data_base64 is not valid base64, or is empty.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    404 resource_not_found: No upload with this upload_id for your org.
    409 UPLOAD_ALREADY_FINISHED: This upload is finished; its file is already in the library.
    410 UPLOAD_EXPIRED: The upload was started over 6 hours ago. Start a new one.
    413 FILE_TOO_LARGE: The chunk is over 4 MiB decoded, or the index is past the last one allowed.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "upload_id": "Upload Id",
  "index": 1,
  "bytes": 1,
  "chunks_received": 1
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `index` | integer | Yes | This chunk's position, starting at 0. Resending an index replaces that chunk. |
| `upload_id` | string | Yes | The upload_id that start_base64_media_upload returned. |
| `data_base64` | string | Yes | This chunk's bytes, base64-encoded (standard alphabet). At most 4 MiB before encoding (about 5.6 million base64 characters). |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `bytes` | integer | Yes | Decoded size of this chunk. |
| `index` | integer | Yes | The chunk index that was stored. |
| `upload_id` | string | Yes | The upload this chunk belongs to. |
| `chunks_received` | integer | Yes | How many distinct chunks this upload holds so far. |

### Create media upload

**Slug:** `MYMARKY_MCP_CREATE_MEDIA_UPLOAD`

Create media upload URL

Create a short-lived URL to upload a local file into a workspace's MEDIA library.

USE THIS when the file is on a device or sandbox disk and has no public URL
(media already on the web goes through `upload_media_from_url` instead).
PUT the raw bytes to the returned `upload_url` (see `instructions` for the exact
curl command); the PUT response is the created media asset, whose `original_url`
feeds `create_post` and the rest of the API. From a hosted Claude client, run the
curl in the code-execution sandbox — the user's chat attachment is on its disk.

PREFER letting Marky FETCH the image over pushing it: if the image has any URL
(a generated-image output URL, a web image, a host-provided download URL), skip
this tool and use `upload_media_from_url` or pass the URL to `create_post` in
`media_urls` — Marky downloads it server-side, so it works even when your sandbox
blocks outbound network. Only use this PUT flow when the image is local-only AND
your runtime can make outbound web requests. On ChatGPT, prefer
`upload_media_from_reference` (ChatGPT fills the file automatically and Marky fetches
it server-side, so the sandbox never makes the outbound upload). If the PUT fails
with a connection error, or a 403 from your sandbox's proxy, your sandbox is
blocking egress: don't retry. This holds for video too. FALLBACK: send the file
through the MCP itself with `start_base64_media_upload` →
`append_base64_media_chunk` → `finish_base64_media_upload` (base64 in chunks, up to
50 MB), or put it at a public URL and call `upload_media_from_url`. If neither
works, tell the user it couldn't be attached (don't post `media_urls: null`).

The URL expires after 1 hour and is bound to this workspace. Re-PUTting the same
bytes safely returns the original asset; different bytes on the same URL are
rejected.

Errors:
    400 invalid_value: The business_id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    422 IDEMPOTENCY_KEY_CONFLICT: The Idempotency-Key was reused with a different body.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**201**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "upload_id": "Upload Id",
  "upload_url": "Upload Url",
  "expires_in": 1,
  "max_bytes": 1,
  "instructions": "Instructions"
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `source` | string | No | Set only by Marky's own agent for media it generated, so the library can tell it apart from the workspace's uploads. Leave unset for a real upload. |
| `alt_text` | string | No | Optional hint about the media: an address, a name, anything the picture can't show. Stored as `source_alt_text`; `alt_text` is written by looking at the image itself shortly after upload. |
| `filename` | string | No | Original filename, e.g. 'photo.jpg'. Helps detect videos by extension. |
| `source_id` | string | No | Set only by Marky's own agent, next to `source`: which piece of work this file belongs to. Leave unset. |
| `business_id` | string | No | The workspace to upload into, under its old field name. Deprecated: send workspace_id instead. |
| `content_type` | string | No | MIME type, e.g. 'image/jpeg' or 'video/mp4'. The PUT request's Content-Type header takes precedence. |
| `workspace_id` | string | No | UUID of the workspace to upload the media into. Get it from `list_workspaces`. Must belong to the API key's org. |
| `idempotency_key` | string | No | Makes a retry safe. Send a unique value (e.g. a UUID); if the call times out, resend it with the same key and body and you get the original result back instead of a duplicate. Kept 24h. The same key with a different body is a 422 IDEMPOTENCY_KEY_CONFLICT. Same as the Idempotency-Key header, which wins if both are sent. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `max_bytes` | integer | Yes | Size cap: 20 MB for images, 500 MB for video. |
| `upload_id` | string | Yes | Unique id for this upload. |
| `expires_in` | integer | Yes | Seconds until the upload_url stops working. |
| `upload_url` | string | Yes | PUT the raw file bytes here. Valid for expires_in seconds. |
| `instructions` | string | Yes | Copy-paste curl command that performs the upload and prints the created media as JSON. |

### Create post

**Slug:** `MYMARKY_MCP_CREATE_POST`

Create post

Create a post directly without using the generation pipeline.

Use this when you generate content externally (e.g. with your own AI agent)
and want to push it in for scheduling and publishing.

To make a retry safe, send a unique `idempotency_key` (or `Idempotency-Key`
header): a resend with the same key and body returns the original post
instead of a duplicate.

Errors:
    400 missing_field: status is SCHEDULED but scheduled_publish_time was not given.
    400 PLATFORM_RULE_VIOLATION: status is SCHEDULED and a platform in publish_to would refuse the post. Nothing is created; `violations` lists each broken rule.
    400 invalid_request: scheduled_publish_time is not in the future.
    400 invalid_value: The business_id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    409 NO_CONNECTED_SOCIALS: status is SCHEDULED but no connected, working account can publish the post (none on its platforms, or each one needs reconnecting). Nothing is created; `missing_platforms` lists what to connect.
    422 IDEMPOTENCY_KEY_CONFLICT: The Idempotency-Key was reused with a different body.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**201**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "id": "Id",
  "business_id": "Business Id",
  "publish_results": [
    {
      "platform": "Platform",
      "status": "Status"
    }
  ],
  "created_at": "Created At",
  "warnings": [
    {
      "field": "Field",
      "level": "Level",
      "message": "Message"
    }
  ],
  "url": "Url"
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `link` | string | No | Destination URL for Facebook link posts, the Google Business CTA button and the Pinterest pin. Other platforms ignore it; put links in the caption. Must be http(s). |
| `status` | string ("NEW" | "SCHEDULED") | No | Initial post status |
| `caption` | string | No | Post caption text. This is the caption every channel publishes unless it has its own in platform_overrides. |
| `graphic` | boolean | No | True when this post should be a designed graphic (a headline on the workspace's photo, or on its brand colour when no photo is given). The server writes the words from caption_brief and draws it a moment after the save, so do not call create_photo_design for this post. Leave false for a plain photo, a video or text only. Max and Marky's own apps only: an API key or OAuth token gets a 403. |
| `metadata` | string | No | Up to 50 string key/value pairs for your own analytics dimensions (e.g. {'media_type': 'animated-video', 'format': 'talking-head', 'style': 'data-take', 'hook': 'question', 'topic': 'automate-with-ai'}). Keys <=40 chars, values <=500 chars. Numbers and booleans are stored as their string form (3 -> '3', true -> 'true'). Returned verbatim on every read; Marky never interprets them. |
| `media_ids` | string | No | Marky media ids to attach, in order: an image you just generated (its `media_id`), an upload, a library result, or a file's `f:` handle. Prefer this over media_urls for anything already in Marky. Not with media_urls. SEVERAL ids on ONE post IS a carousel, published as one multi-image post in this order; never split slides across posts. |
| `signature` | string | No | Which caption ending to append to the caption and platform_overrides captions: omit or 'default' for the workspace's caption ending (none if it has none or it is switched off), 'none' for no ending. It is added once, at create, and the response caption already includes it (signature_id names it). Never type it yourself. |
| `text_only` | boolean | No | True when the owner asked for text only ("text only", "no photos", "no pictures"). The server then never adds a library or stock photo to this post, now or after Max edits it. Leave false otherwise. |
| `media_urls` | string | No | URLs of images or videos NOT already in Marky (otherwise use media_ids). They are fetched and copied at save time, so each must be public and exact. Not with media_ids. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |
| `caption_brief` | string | No | What the post is about: facts, what the media shows, the owner's words. Send it instead of `caption` (leave caption out) and Marky writes the caption a few seconds later (metadata.marky_caption_status 'writing'). Drafts only; Max and the app only. |
| `cover_media_id` | string | No | Marky media id of an IMAGE for this video's cover; upload the still first. Used by Instagram, Facebook, Pinterest and YouTube (verified channels); TikTok uses `video_cover_timestamp_ms`. Ignored without a video. Replacing the media does NOT clear the cover. |
| `idempotency_key` | string | No | Makes a retry safe. Send a unique value (e.g. a UUID); if the call times out, resend it with the same key and body and you get the original result back instead of a duplicate. Kept 24h. The same key with a different body is a 422 IDEMPOTENCY_KEY_CONFLICT. Same as the Idempotency-Key header, which wins if both are sent. |
| `strategy_idea_id` | string | No | Saved idea this post is made from (list_ideas id). |
| `allow_media_reuse` | boolean | No | Leave false unless the user asked to repost a specific photo. |
| `platform_overrides` | string | No | Per-platform variants of this post — one entry per platform you want to tailor. Unset fields fall back to the post's own values. Strongly recommended whenever a post targets more than one platform: a caption that fits Instagram is usually wrong for X/Twitter (280 chars) and LinkedIn (no hashtag walls). |
| `restrict_publish_to` | string | No | Restrict publishing to these platforms (e.g. instagram, facebook, linkedIn). Case-insensitive. Omit or set null to publish to ALL connected platforms. Not with restrict_publish_to_integration_ids. |
| `append_caption_suffix` | boolean | No | True adds the workspace's caption suffix once, and drops its hashtags from the body. It is the same text as the default signature, so with both the ending is in the returned caption once and nothing more is appended at publish. Never type the suffix. |
| `scheduled_publish_time` | string | No | The exact time to publish (ISO 8601). Required if status is SCHEDULED; must be in the future. Send an offset or `Z` (e.g. `2026-09-23T09:10:00Z`) for an exact instant. A time with NO offset (e.g. `2026-09-23T09:10:00`) is read as the workspace's local time in its calendar timezone (UTC if it has none), daylight saving included. |
| `suggested_publish_time` | string | No | For a post kept in review: when the owner wants it out. Saved as its date; publishes nothing. |
| `video_cover_timestamp_ms` | string | No | Which frame TikTok uses as its cover, in ms from the start. Defaults to 1000. Other platforms ignore it. |
| `restrict_publish_to_integration_ids` | string | No | Restrict publishing to these exact connected accounts (ids from list_connected_social_accounts), for a workspace with several accounts on one platform. Omit for platform-level targeting. Not with restrict_publish_to. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Post ID |
| `url` | string | Yes | Link to view this post in the Marky app (openable/shareable — show it to the user). This is where the post lives in Marky; `link` is the outbound URL published with the post. |
| `link` | string | No | Destination URL for Facebook link posts, the Google Business CTA button and the Pinterest pin. Other platforms ignore it; put links in the caption. Must be http(s). |
| `queue` | string | No | Daily-queue placement. Present only when the post is in a recurring daily queue (status SCHEDULED with no `adhoc_publish_time`). Null for drafts, adhoc-scheduled, and published posts. |
| `status` | string | No | Post status. One of: NEW (draft awaiting your team's review, incl. freshly generated), DRAFT (approved by a reviewer on your team), REJECTED (declined by a reviewer), SCHEDULED (queued for a future time), PUBLISHED (already posted). DRAFT/REJECTED are your team's review verdicts — Marky does not gate publishing on them. Same values the `list_posts` status filter accepts. |
| `caption` | string | No | Post caption text |
| `delivery` | string | Yes | What actually reached the platforms, from publish_results: 'delivered' (every platform succeeded), 'partial' (some succeeded, some failed), 'failed' (every platform failed), 'pending' (still in progress). Null when no publish has been attempted. Prefer this over `status` to tell the user whether a post went out. |
| `metadata` | string | No | Caller-defined string key/value pairs set at create/update time — your own analytics dimensions (e.g. media_type, format, style, hook, topic). Marky returns them verbatim and never interprets them. Keys starting with `marky_` are Marky's own (e.g. the copy date below); any you send are dropped. |
| `timezone` | string | No | IANA timezone the `*_local` times are in: the workspace's calendar timezone, or "UTC" when the workspace hasn't set one (see `timezone_source`). |
| `warnings` | array | No | Non-blocking notes about this post's captions, e.g. a call-to-action with no link or phone ('cta_without_contact'), or a caption in a different language from the workspace ('language_mismatch'). Empty when there is nothing to fix. Fix them with update_post before the post publishes; they never block anything. |
| `copy_date` | string | No | The day this caption is about, read from the caption when it was written: an upcoming holiday of the workspace's country, one of the workspace's events, or an explicit date like 'September 25'. Never 'today'/'tomorrow'. Queueing never places the post after this day. Null when the caption names no date. |
| `design_id` | string | No | The design attached to this post, if any. Media is derived from this design; edit it with revise_post_design or create_design + a new link. |
| `created_at` | string | Yes | When the post was created |
| `media_urls` | string | No | Attached media URLs |
| `review_url` | string | Yes | Link to review and approve this draft in the Marky app — show it to the user so they can check the post before it is scheduled. Present while the post is a draft (status NEW or DRAFT); null otherwise (a SCHEDULED post has scheduled_posts_url instead). |
| `updated_at` | string | No | Last update time |
| `business_id` | string | Yes | Workspace this post belongs to |
| `copy_moment` | string | No | The moment the caption names, e.g. 'National Day'. Null for a plain date. |
| `revision_id` | string | No | Id of the undo record this write created. Pass it to revert_revisions to put the record back exactly as it was before this call. Set only on the response to a write; null when you read the record. |
| `published_at` | string | No | When the post was actually published (past timestamp). Null until it publishes. |
| `signature_id` | string | No | The workspace caption ending (signature, e.g. a compliance disclaimer) this post carries, or null. Informational only: its text is already in `caption` and in each platform_overrides caption, once, even when append_caption_suffix was also sent (the suffix is the same ending). Nothing is appended at publish: `caption` is what publishes, except that a social with its own version of the ending gets that version in place of the main one, and a social set to skip it gets none. A caption edit keeps the ending at the end, once; send signature: 'none' on update_post to drop it. |
| `media_details` | string | No | The same attached media as `media_urls`, in the same order, but with each item's description and transcript. Use this when analysing what content performs: the creative is usually the reason a post did well, and a URL alone tells you nothing about what was in it. |
| `cover_media_id` | string | No | Media id of the cover image shown before this post's video plays. Marky generates one from the first frame when you don't send one. |
| `repeating_cron` | string | No | If set, this post repeats: a standard 5-field cron string (e.g. '0 9 * * 1' = every Monday 9am UTC). When it publishes, Marky auto-creates the next occurrence at the next cron time. Null = a one-off post. |
| `creation_method` | string | No | Where the post was created: web, mobile, api (REST with an API key), mcp (an MCP client), max (the built-in assistant), onboarding (the first batch for a new workspace), duplicate, recurrence (the next occurrence of a recurring post), backup_fill (a backup copied into an empty queue slot), or internal. Null for posts created before 2026-10-30. |
| `publish_results` | array | No | Per-platform publish outcomes — one entry per platform this post was sent to. Poll this until every entry has a terminal status (`success` or `failed`) to know publishing is complete. |
| `timezone_source` | string | No | Where `timezone` came from: `business` (the workspace's own setting) or `unset_utc` (no timezone saved yet, so times are shown in UTC). |
| `publish_readiness` | string | No | Returned by queue, schedule and publish: which platforms this post will actually publish to, and which connected accounts won't get it and why. Null on reads. |
| `platform_overrides` | string | No | Per-platform content overrides on this post, if any. Each platform publishes its override fields where set, the post's own fields otherwise. |
| `restrict_publish_to` | string | No | Platforms this post is restricted to. Null means ALL connected platforms. |
| `scheduled_posts_url` | string | Yes | Link to the workspace's scheduled-posts list in the Marky app — where the user sees this post waiting in the lineup. Present once the post is SCHEDULED; null otherwise. |
| `scheduled_publish_time` | string | No | The exact time this post is scheduled to publish (set via `schedule`). Null for drafts, queued posts, and already-published posts. |
| `suggested_publish_time` | string | No | When to publish on `copy_date`: the time the owner set (`suggested_publish_time` on a write), else the workspace's first posting-schedule slot that day, else 10:00 local. Offer it as the post's date; schedule with `at` to use it. |
| `video_cover_timestamp_ms` | string | No | The frame (milliseconds from the start) TikTok uses as its cover. Null when nobody has chosen a cover for this post. |
| `scheduled_publish_time_local` | string | No | The same moment in the workspace's timezone, ready to show a person, e.g. "Wed Sep 23, 6:00 PM MSK". Quote it as-is instead of converting the UTC value. |
| `suggested_publish_time_local` | string | No | The same moment in the workspace's timezone, ready to show a person, e.g. "Wed Sep 23, 6:00 PM MSK". Quote it as-is instead of converting the UTC value. |
| `restrict_publish_to_integration_ids` | string | No | Exact connected accounts (integration ids) this post is restricted to. Null means targeting is platform-level (see restrict_publish_to). |

### Create topic

**Slug:** `MYMARKY_MCP_CREATE_TOPIC`

Create topic

Create a new topic for a workspace.

Errors:
    400 invalid_value: The business_id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**201**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "id": "Id",
  "business_id": "Business Id",
  "title": "Title",
  "enabled": true,
  "created_at": "Created At"
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `body` | string | No | Topic description or notes |
| `title` | string | Yes | Topic title |
| `enabled` | boolean | No | Whether the topic is active for post generation |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |
| `category_id` | string | No | Category ID to group this topic under |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Topic ID |
| `body` | string | No | Topic description or notes |
| `title` | string | Yes | Topic title |
| `enabled` | boolean | No | Whether the topic is active for generation |
| `created_at` | string | Yes | When the topic was created |
| `updated_at` | string | No | Last update time |
| `business_id` | string | Yes | Workspace this topic belongs to |
| `category_id` | string | No | Category ID |
| `revision_id` | string | No | Id of the undo record this write created. Pass it to revert_revisions to put the record back exactly as it was before this call. Set only on the response to a write; null when you read the record. |

### Create workspace

**Slug:** `MYMARKY_MCP_CREATE_WORKSPACE`

Create workspace

Create a new workspace in your organization.

Use one workspace per brand or client. Only `name` is required; `industry`,
`website` and `language` help Marky write for the brand from the first post.
Call list_workspaces first: a workspace with that name may already exist.

Send an `Idempotency-Key` header to make a retry safe (a resend with the same
key returns the original workspace instead of creating a duplicate).

Errors:
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access.
    403 WORKSPACE_LIMIT_EXCEEDED: You hit your plan's workspace limit. Carries an
        `upgrade_url` (one-click "add a workspace" screen) and `workspace_limit`.
    422 IDEMPOTENCY_KEY_CONFLICT: The Idempotency-Key was reused with a different body.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**201**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "id": "Id",
  "language": "Language",
  "events": [
    {
      "name": "Name",
      "date": "2023-01-01",
      "kind": "Kind"
    }
  ],
  "created_at": "Created At",
  "warnings": [
    {
      "field": "Field",
      "level": "Level",
      "message": "Message"
    }
  ],
  "field_budgets": [
    {
      "field": "Field",
      "limit": 1,
      "used": 1,
      "remaining": 1
    }
  ]
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Workspace name |
| `website` | string | No | Workspace website URL |
| `industry` | string | No | Industry (e.g. 'Real Estate', 'Marketing Agency') |
| `language` | string | No | Content language, as an ISO 639-1 code (e.g. 'en') or English name (e.g. 'English'). Both accepted. |
| `strategy` | string | No | Social strategy doc as MARKDOWN — the goal we're working toward, who the posts are for, the brand voice, what we're trying right now, what we won't do, cadence and mix, plus a running log of experiments and what we learned. This is the layer an agency revisits each quarter. Write plain markdown (## headings, - bullets, &#124; tables &#124;); the app renders it in a rich-text editor, so no HTML tags — they show up as literal text and spend the size budget without adding meaning. Content pillars, caption rules and calls to action go here too. How graphics look goes in design_style. SIZE: 6000 characters, and writing this field REPLACES the whole doc. A longer value is still saved, but it comes back with a warning you have to act on in the same turn — so plan the doc to the cap BEFORE you compose it, rather than writing long and compacting after. The response's `field_budgets` entry for this field tells you exactly how much room is left. |
| `description` | string | No | Workspace description |
| `design_style` | string | No | The brand's whole visual direction as markdown: the place for its colours (exact hex codes, which one leads), fonts, how type is set, logo placement and when the logo appears, imagery and whitespace. Prose at the top holds the invariants; a `## Treatments` table underneath lists named looks, one picked per post. SCOPE: it is added to the prompt for AI-GENERATED images. A template design takes only the colours it names (two or more), not its fonts or treatments, so it will not otherwise change a batch from templates. SIZE: 5000 characters, and writing this field REPLACES the whole value. Plan to the cap before composing; the response's `field_budgets` entry tells you how much room is left. |
| `brand_style_grid_url` | string | No | Image URL of four sample posts in the saved look, written by /brand-setup. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Workspace ID |
| `name` | string | No | Workspace name |
| `events` | array | No | The workspace's own dated moments: launches, openings, sales, events (e.g. {'name': 'Hope Shop opening', 'date': '2026-10-10', 'kind': 'opening'}). They show up in list_upcoming_moments, and a caption that names one is dated to it. At most 20. |
| `website` | string | No | Workspace website URL |
| `industry` | string | No | Industry category |
| `language` | string | No | Content language as an ISO 639-1 code (e.g. 'en', 'fr', 'es'). |
| `strategy` | string | No | Social strategy doc as MARKDOWN — the goal we're working toward, who the posts are for, the brand voice, what we're trying right now, what we won't do, cadence and mix, plus a running log of experiments and what we learned. This is the layer an agency revisits each quarter. Write plain markdown (## headings, - bullets, &#124; tables &#124;); the app renders it in a rich-text editor, so no HTML tags — they show up as literal text and spend the size budget without adding meaning. Content pillars, caption rules and calls to action go here too. How graphics look goes in design_style. SIZE: 6000 characters, and writing this field REPLACES the whole doc. A longer value is still saved, but it comes back with a warning you have to act on in the same turn — so plan the doc to the cap BEFORE you compose it, rather than writing long and compacting after. The response's `field_budgets` entry for this field tells you exactly how much room is left. |
| `timezone` | string | No | The workspace's IANA timezone (e.g. 'Europe/Warsaw'). Posting-schedule slots and `*_local` times use it, and holidays in moments come from its country. Null when unset: times are then UTC and holidays default to the US. Set with update_workspace. |
| `warnings` | array | Yes | Non-blocking notes about fields that need attention, empty when there is nothing to do. Act on them in the same turn you see them — that is while you still have the content in context. |
| `on_camera` | string | No | Whether the owner will be on camera. null = not answered yet: ask once and save it. With 'no', never plan posts that need them on camera. |
| `created_at` | string | Yes | When the workspace was created |
| `updated_at` | string | No | Last update time |
| `description` | string | No | Workspace description |
| `revision_id` | string | No | Id of the undo record this write created. Pass it to revert_revisions to put the record back exactly as it was before this call. Set only on the response to a write; null when you read the record. |
| `design_style` | string | No | The brand's whole visual direction as markdown: the place for its colours (exact hex codes, which one leads), fonts, how type is set, logo placement and when the logo appears, imagery and whitespace. Prose at the top holds the invariants; a `## Treatments` table underneath lists named looks, one picked per post. SCOPE: it is added to the prompt for AI-GENERATED images. A template design takes only the colours it names (two or more), not its fonts or treatments, so it will not otherwise change a batch from templates. SIZE: 5000 characters, and writing this field REPLACES the whole value. Plan to the cap before composing; the response's `field_budgets` entry tells you how much room is left. |
| `field_budgets` | array | Yes | Size ceilings for the fields that get pasted into the prompt for every generated post. READ THIS BEFORE COMPOSING a value for one of these fields — `remaining` is the room you have, and a budgeted field is REPLACED whole on write, so `limit` is the real target. Over-budget writes are accepted, not rejected, but they cost a full rewrite to fix. |
| `weekly_time_budget` | string | No | How much time the owner can give social media each week. null = not answered yet: ask the owner once when planning posts, then save it. |
| `design_style_source` | string | No | Where `design_style` came from. `website`: extracted automatically from the workspace's website, so treat it as a starting guess and prefer the user's own brand guidelines when they differ. `user`: set by the user (in the app, or through update_workspace or create_workspace). A website re-extraction never replaces a `user` value. Null when the value predates this field or was never set. |
| `brand_style_grid_url` | string | No | Image URL of four sample posts in the saved look, written by /brand-setup. |
| `design_style_updated_at` | string | No | When `design_style` last changed. Null if it hasn't changed since this field was added. |
| `platform_writing_instructions` | string | No | The user's customized per-platform caption-writing instructions (empty when none set). Keys are canonical platform names (e.g. 'instagram', 'linkedIn') plus 'common' (applies to all platforms). Follow the matching entry when writing a caption or platform_overrides caption — the user's instructions ALWAYS outrank generic platform best practices. Update via PATCH (merge semantics). Returned by get_workspace only, not the list endpoint. |

### Delete post

**Slug:** `MYMARKY_MCP_DELETE_POST`

Delete post

Delete a post (moves it to Trash).

Moves the post to Trash, the same as Delete in the app. It stays there for 30
days and is then deleted for good. To bring it back before then, call
update_post with status DRAFT. Use this to discard a draft you no longer want
or to clear a scheduled/queued post so it does not publish. Deleting a post
that is already in Trash changes nothing. This does NOT delete anything
already posted to a social platform — to keep that history intact, a post
that has already been published cannot be deleted.

Errors:
    400 invalid_request: The post is already published, so it can't be deleted.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No post with that ID exists, or it is not in this workspace.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "status": "Status"
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `post_id` | string | Yes | A UUID identifier. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `status` | string | Yes | Operation result (e.g. 'deleted', 'revoked') |

### Disconnect social account

**Slug:** `MYMARKY_MCP_DISCONNECT_SOCIAL_ACCOUNT`

Disconnect a connected social account

Disconnect one connected social account from this workspace, the same as Disconnect in the Marky app.

Pass an `id` from list_connected_social_accounts. Marky stops publishing to
that account: posts already scheduled or queued skip it from then on. Nothing
is deleted on the social platform, and the user can connect the account again
in the app.

Disconnecting an Instagram connection also disconnects the Instagram Story
connection for the same account, as the app does; `disconnected_ids` lists
both. An Instagram Story connection whose `parent_integration_id` is null has
lost its Instagram connection and is not shown anywhere in the app; this is
the way to remove it.

This cannot be undone through the API. Confirm the account (platform and
username) with the user before calling it.

Errors:
    400 invalid_value: The integration_id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No connection with that ID is connected to this workspace (it may already be disconnected).
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "disconnected_ids": [
    "string"
  ]
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |
| `integration_id` | string | Yes | A UUID identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `disconnected_ids` | array | Yes | Every connection this call removed: the one you named, plus the Instagram Story connection for the same account when you disconnect an Instagram connection. |

### Finish base64 media upload

**Slug:** `MYMARKY_MCP_FINISH_BASE64_MEDIA_UPLOAD`

Finish a base64 media upload

Join the chunks and add the file to the workspace's MEDIA library.

Returns the media asset, the same as the other upload tools: its `original_url`
feeds `create_post`. Calling this again for the same upload returns the same asset,
so a retry never makes a duplicate.

Errors:
    400 UPLOAD_INCOMPLETE: Chunks are missing; `missing_chunks` lists the indexes to resend.
    400 CHECKSUM_MISMATCH: The joined file does not match `sha256`. Resend the chunks.
    400 INVALID_FILE_TYPE: The bytes are not a photo or video we store (a PDF, for example).
    401 authentication_required: API key or token is missing, invalid, or revoked.
    404 resource_not_found: No upload with this upload_id for your org.
    410 UPLOAD_EXPIRED: The upload was started over 6 hours ago. Start a new one.
    413 FILE_TOO_LARGE: The file is over 50 MB (or an image over 20 MB).
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**201**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "id": "Id",
  "business_id": "Business Id",
  "created_at": "Created At",
  "hidden": true,
  "warnings": [
    {
      "field": "Field",
      "level": "Level",
      "message": "Message"
    }
  ]
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `sha256` | string | No | Optional SHA-256 (hex) of the whole file, checked after the chunks are joined. |
| `upload_id` | string | Yes | The upload_id that start_base64_media_upload returned. |
| `chunk_count` | string | No | How many chunks you sent. Recommended: if any are missing, the call says which. Left out, the chunks from 0 to the highest index you sent are used. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Media ID |
| `type` | string | No | Media type: image, video, or audio |
| `width` | string | No | Width in pixels |
| `height` | string | No | Height in pixels |
| `hidden` | boolean | Yes | True when search leaves this file out unless include_hidden=true. |
| `source` | string | No | Media origin (e.g. upload, unsplash) |
| `alt_text` | string | No | Alt text description |
| `warnings` | array | Yes | Non-blocking notes about this media, empty when there is nothing to say. `low_resolution` means the long edge is under 1080px, so it will look soft on most feeds; tell the user and prefer a larger copy. |
| `created_at` | string | Yes | When the media was uploaded |
| `business_id` | string | Yes | Workspace this media belongs to |
| `original_url` | string | No | Media URL |
| `hidden_reason` | string | No | Why search hides this file, null when it does not: 'graphic' has words on it, 'low_resolution' is too small, 'switched_off' is off in the Library, 'not_in_library' was never added to it (API uploads start out of it). |
| `source_alt_text` | string | No | The alt_text you sent, kept as a hint. `alt_text` is written a few seconds after upload by looking at the image itself, so it is empty in this response. Search results show that description. |

### Get integration stats

**Slug:** `MYMARKY_MCP_GET_INTEGRATION_STATS`

Get integration account stats

Fetch account/page analytics for a single connected integration.

Returns the normalized `AccountStats` model (followers, impressions,
reach, profile_views, plus a timeseries `metrics` array) for the
integration's platform — Facebook, Instagram, LinkedIn, Twitter/X,
TikTok, Pinterest, or YouTube. The integration_id is an `id` from
list_connected_social_accounts.

Some accounts have no account-level analytics to give — a LinkedIn personal
profile, or a platform whose reads we have turned off on cost grounds.
Those return 200 with a populated `unavailable_reason` and null metrics,
NOT an error. Null there means "not available", not zero.

Errors:
    400 invalid_value: The integration_id is not a valid UUID.
    400 invalid_request: A date, period, or metric value was rejected, or the date range is longer than the platform allows (Instagram: 30 days).
    401 authentication_required: API key or token is missing, invalid, or revoked.
    401 SOCIAL_TOKEN_EXPIRED: The connected account's token expired and could not be refreshed — the response's reconnect_url points to where to reconnect.
    403 permission_denied: Your plan does not include API access.
    404 resource_not_found: No integration with that ID exists, or it is not in your org.
    429 rate_limit_exceeded: You sent too many requests this minute.
    502 UPSTREAM_PROVIDER_ERROR: The social platform returned an error while fetching stats.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "fetched_at": "2023-01-01T00:00:00Z",
  "metrics": [
    {
      "name": "Name",
      "values": [
        {}
      ]
    }
  ],
  "raw_metrics": {},
  "post_stats_hint": "Post Stats Hint"
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `since` | string | No | Start date (YYYY-MM-DD). Defaults to 30 days ago. Instagram allows at most 30 days between since and until. |
| `until` | string | No | End date (YYYY-MM-DD). Defaults to today. |
| `period` | string | No | Aggregation period: day, week, days_28, lifetime |
| `metrics` | string | No | Comma-separated metric names (platform-specific). Omit for defaults. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |
| `integration_id` | string | Yes | A UUID identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `reach` | string | No | Unique accounts that saw the account's content in the window. Null when not reported. |
| `metrics` | array | No | Every account metric the platform returned, as time series. |
| `page_id` | string | No | The Facebook Page or LinkedIn Company Page ID. Null on other platforms. |
| `platform` | string | No | Platform, e.g. 'instagram', 'linkedin'. |
| `followers` | string | No | Current follower count. Null when not reported. |
| `following` | string | No | Accounts this account follows. Null when not reported. |
| `account_id` | string | No | The account's ID on the platform. |
| `fetched_at` | string | No | When these numbers were read from the platform (UTC). |
| `impressions` | string | No | Times the account's content was shown in the window. Null when not reported; per-post numbers may still exist (see post_stats_hint). |
| `posts_count` | string | No | Total posts or videos on the account. Null when not reported. |
| `raw_metrics` | object | No | Metric slug -> its latest value, for platform-specific metrics. |
| `profile_views` | string | No | Visits to the profile itself, not views of its content. Do not compare with reach. |
| `website_clicks` | string | No | Clicks on the profile's website link. Null when not reported. |
| `post_stats_hint` | string | No | Where to get per-post numbers when these account totals are sparse. |
| `audience_age_pct` | string | No | Age bucket -> share of audience (0.0-1.0). IG, YT, LinkedIn, Pinterest. |
| `audience_city_pct` | string | No | City name -> share. IG only. |
| `unavailable_reason` | string | No | Non-null when the platform does not support account-level analytics for this account type (e.g. LinkedIn personal profiles). When set, the numeric fields being null means 'not supported by provider', not 'zero' or 'no data'. |
| `audience_gender_pct` | string | No | Gender ('FEMALE'/'MALE'/'UNKNOWN') -> share. IG, YT, LinkedIn, Pinterest. |
| `audience_country_pct` | string | No | ISO country code -> share. IG, YT, LinkedIn. |
| `audience_function_pct` | string | No | LinkedIn-only: job function -> share. |
| `audience_industry_pct` | string | No | LinkedIn-only: industry name -> share. |
| `audience_seniority_pct` | string | No | LinkedIn-only: seniority bucket -> share. |

### Get platform rules

**Slug:** `MYMARKY_MCP_GET_PLATFORM_RULES`

Get platform rules

Get what each platform accepts in a post: caption and title limits, media, buttons, link and first comment.

`post_settings_schema` is the shape of that platform's `platform_overrides`
entry. Scheduling refuses a post only where a rule's outcome is `rejected`
or required media is missing (400 PLATFORM_RULE_VIOLATION); anything else
comes back as a warning, because the post still publishes.

Errors:
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "platforms": [
    {
      "rules": {
        "platform": "Platform",
        "caption": {
          "supported": true,
          "required": true
        },
        "title": {
          "supported": true,
          "required": true
        },
        "media": {
          "required": true,
          "accepts": [
            "string"
          ],
          "mixes_images_and_video": true
        },
        "cta": {
          "supported": true,
          "allowed_values": [
            "string"
          ]
        },
        "link_supported": true,
        "first_comment_supported": true,
        "thread_supported": true,
        "requires_selected_page": true,
        "mentions_stay_plain_text": true,
        "notes": [
          "string"
        ]
      },
      "post_settings_schema": {}
    }
  ]
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `platform` | string | No | Only these platforms. Omit for all of them. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `platforms` | array | Yes | One entry per platform asked for, or every platform when none was named. |

### Get post

**Slug:** `MYMARKY_MCP_GET_POST`

Get post

Get a single post by ID, including per-platform publish results.

The post's workspace must belong to your org. `publish_results` is a list
of outcomes — one per platform this post was sent to — with the external
`publish_id` you'll need to fetch live stats. Poll this endpoint until
every entry has a terminal status (`success` or `failed`) to know
publishing finished.

Errors:
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No post with that ID exists, or it is not in this workspace.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "id": "Id",
  "business_id": "Business Id",
  "publish_results": [
    {
      "platform": "Platform",
      "status": "Status"
    }
  ],
  "created_at": "Created At",
  "warnings": [
    {
      "field": "Field",
      "level": "Level",
      "message": "Message"
    }
  ],
  "url": "Url"
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `post_id` | string | Yes | A UUID identifier. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Post ID |
| `url` | string | Yes | Link to view this post in the Marky app (openable/shareable — show it to the user). This is where the post lives in Marky; `link` is the outbound URL published with the post. |
| `link` | string | No | Destination URL for Facebook link posts, the Google Business CTA button and the Pinterest pin. Other platforms ignore it; put links in the caption. Must be http(s). |
| `queue` | string | No | Daily-queue placement. Present only when the post is in a recurring daily queue (status SCHEDULED with no `adhoc_publish_time`). Null for drafts, adhoc-scheduled, and published posts. |
| `status` | string | No | Post status. One of: NEW (draft awaiting your team's review, incl. freshly generated), DRAFT (approved by a reviewer on your team), REJECTED (declined by a reviewer), SCHEDULED (queued for a future time), PUBLISHED (already posted). DRAFT/REJECTED are your team's review verdicts — Marky does not gate publishing on them. Same values the `list_posts` status filter accepts. |
| `caption` | string | No | Post caption text |
| `delivery` | string | Yes | What actually reached the platforms, from publish_results: 'delivered' (every platform succeeded), 'partial' (some succeeded, some failed), 'failed' (every platform failed), 'pending' (still in progress). Null when no publish has been attempted. Prefer this over `status` to tell the user whether a post went out. |
| `metadata` | string | No | Caller-defined string key/value pairs set at create/update time — your own analytics dimensions (e.g. media_type, format, style, hook, topic). Marky returns them verbatim and never interprets them. Keys starting with `marky_` are Marky's own (e.g. the copy date below); any you send are dropped. |
| `timezone` | string | No | IANA timezone the `*_local` times are in: the workspace's calendar timezone, or "UTC" when the workspace hasn't set one (see `timezone_source`). |
| `warnings` | array | No | Non-blocking notes about this post's captions, e.g. a call-to-action with no link or phone ('cta_without_contact'), or a caption in a different language from the workspace ('language_mismatch'). Empty when there is nothing to fix. Fix them with update_post before the post publishes; they never block anything. |
| `copy_date` | string | No | The day this caption is about, read from the caption when it was written: an upcoming holiday of the workspace's country, one of the workspace's events, or an explicit date like 'September 25'. Never 'today'/'tomorrow'. Queueing never places the post after this day. Null when the caption names no date. |
| `design_id` | string | No | The design attached to this post, if any. Media is derived from this design; edit it with revise_post_design or create_design + a new link. |
| `created_at` | string | Yes | When the post was created |
| `media_urls` | string | No | Attached media URLs |
| `review_url` | string | Yes | Link to review and approve this draft in the Marky app — show it to the user so they can check the post before it is scheduled. Present while the post is a draft (status NEW or DRAFT); null otherwise (a SCHEDULED post has scheduled_posts_url instead). |
| `updated_at` | string | No | Last update time |
| `business_id` | string | Yes | Workspace this post belongs to |
| `copy_moment` | string | No | The moment the caption names, e.g. 'National Day'. Null for a plain date. |
| `revision_id` | string | No | Id of the undo record this write created. Pass it to revert_revisions to put the record back exactly as it was before this call. Set only on the response to a write; null when you read the record. |
| `published_at` | string | No | When the post was actually published (past timestamp). Null until it publishes. |
| `signature_id` | string | No | The workspace caption ending (signature, e.g. a compliance disclaimer) this post carries, or null. Informational only: its text is already in `caption` and in each platform_overrides caption, once, even when append_caption_suffix was also sent (the suffix is the same ending). Nothing is appended at publish: `caption` is what publishes, except that a social with its own version of the ending gets that version in place of the main one, and a social set to skip it gets none. A caption edit keeps the ending at the end, once; send signature: 'none' on update_post to drop it. |
| `media_details` | string | No | The same attached media as `media_urls`, in the same order, but with each item's description and transcript. Use this when analysing what content performs: the creative is usually the reason a post did well, and a URL alone tells you nothing about what was in it. |
| `cover_media_id` | string | No | Media id of the cover image shown before this post's video plays. Marky generates one from the first frame when you don't send one. |
| `repeating_cron` | string | No | If set, this post repeats: a standard 5-field cron string (e.g. '0 9 * * 1' = every Monday 9am UTC). When it publishes, Marky auto-creates the next occurrence at the next cron time. Null = a one-off post. |
| `creation_method` | string | No | Where the post was created: web, mobile, api (REST with an API key), mcp (an MCP client), max (the built-in assistant), onboarding (the first batch for a new workspace), duplicate, recurrence (the next occurrence of a recurring post), backup_fill (a backup copied into an empty queue slot), or internal. Null for posts created before 2026-10-30. |
| `publish_results` | array | No | Per-platform publish outcomes — one entry per platform this post was sent to. Poll this until every entry has a terminal status (`success` or `failed`) to know publishing is complete. |
| `timezone_source` | string | No | Where `timezone` came from: `business` (the workspace's own setting) or `unset_utc` (no timezone saved yet, so times are shown in UTC). |
| `publish_readiness` | string | No | Returned by queue, schedule and publish: which platforms this post will actually publish to, and which connected accounts won't get it and why. Null on reads. |
| `platform_overrides` | string | No | Per-platform content overrides on this post, if any. Each platform publishes its override fields where set, the post's own fields otherwise. |
| `restrict_publish_to` | string | No | Platforms this post is restricted to. Null means ALL connected platforms. |
| `scheduled_posts_url` | string | Yes | Link to the workspace's scheduled-posts list in the Marky app — where the user sees this post waiting in the lineup. Present once the post is SCHEDULED; null otherwise. |
| `scheduled_publish_time` | string | No | The exact time this post is scheduled to publish (set via `schedule`). Null for drafts, queued posts, and already-published posts. |
| `suggested_publish_time` | string | No | When to publish on `copy_date`: the time the owner set (`suggested_publish_time` on a write), else the workspace's first posting-schedule slot that day, else 10:00 local. Offer it as the post's date; schedule with `at` to use it. |
| `video_cover_timestamp_ms` | string | No | The frame (milliseconds from the start) TikTok uses as its cover. Null when nobody has chosen a cover for this post. |
| `scheduled_publish_time_local` | string | No | The same moment in the workspace's timezone, ready to show a person, e.g. "Wed Sep 23, 6:00 PM MSK". Quote it as-is instead of converting the UTC value. |
| `suggested_publish_time_local` | string | No | The same moment in the workspace's timezone, ready to show a person, e.g. "Wed Sep 23, 6:00 PM MSK". Quote it as-is instead of converting the UTC value. |
| `restrict_publish_to_integration_ids` | string | No | Exact connected accounts (integration ids) this post is restricted to. Null means targeting is platform-level (see restrict_publish_to). |

### Get posting schedule

**Slug:** `MYMARKY_MCP_GET_POSTING_SCHEDULE`

Get posting schedule

Get a workspace's recurring posting schedule.

Returns the weekly timeslots (e.g. `["MON 15:00", "FRI 09:30"]`) that drive
the daily auto-publish queue. A post added to the queue (`queue_post`)
publishes at the next upcoming slot. If the workspace has no schedule yet, a
default daily schedule is created and returned.

`free_slots_local` lists the next slots no post holds yet (up to 90 days
out, so a fully booked month still gets answers), and `taken_slots_local`
every time a scheduled post holds in the next 14 days. When you pick a time
yourself, never pick a taken one or a day that already has a post: use a
free slot, and if there are not enough, a day in `open_days_local` (days
with no post). A time the owner gave is still used. Queued posts skip days
whose slots fixed-time posts already fill.

Errors:
    400 invalid_value: The business_id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "queue_id": "Queue Id",
  "business_id": "Business Id",
  "timeslots": [
    "string"
  ],
  "jitter_minutes": 1,
  "timeslots_local": [
    "string"
  ],
  "free_slots_local": [
    "string"
  ],
  "taken_slots_local": [
    "string"
  ],
  "open_days_local": [
    "string"
  ],
  "paused": true
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `paused` | boolean | No | True while the schedule is paused: no queued post publishes, and the timeslots and queued posts are kept as they are. |
| `queue_id` | string | Yes | ID of the publish queue backing this schedule. |
| `timezone` | string | No | IANA timezone the `*_local` times are in: the workspace's calendar timezone, or "UTC" when the workspace hasn't set one (see `timezone_source`). |
| `timeslots` | array | Yes | Weekly recurring slots in 'DAY HH:MM' 24h form, e.g. ['MON 15:00', 'FRI 09:30']. A queued post publishes at the next upcoming slot. |
| `business_id` | string | Yes | Workspace this schedule belongs to. |
| `existing_posts` | string | No | After a schedule change: what it did to the posts already scheduled. Fixed-time posts keep their times; queued posts go out at the new slots in order. |
| `jitter_minutes` | integer | Yes | Random +/- minutes applied to each slot so posts don't fire at the exact same second every day. |
| `open_days_local` | array | No | The next 14 days (from tomorrow) on the workspace's clock that hold no scheduled post; when all 14 have one, the first open days after them (up to 90 days out), e.g. 'Mon Oct 26'. Use one when the free slots run out. Never put a post on a day that is not listed here or in the free slots unless the owner named that day. |
| `timeslots_local` | array | No | `timeslots` on the workspace's clock, same order, e.g. 'MON 15:00' (UTC) is 'MON 18:00' in Moscow. The day can change when the offset crosses midnight. |
| `timezone_source` | string | No | Where `timezone` came from: `business` (the workspace's own setting) or `unset_utc` (no timezone saved yet, so times are shown in UTC). |
| `free_slots_local` | array | No | The next schedule slots no scheduled post holds yet, soonest first, on the workspace's clock, e.g. 'Fri Oct 30, 10:00 AM CDT'. Looks up to 90 days out, so when the next weeks are fully booked these start after them. A slot on a day whose slots are all used by fixed-time posts is not free. At most 14. Pick from these when you choose a time for a post. |
| `next_publish_time` | string | No | When the next queued post is due to publish, computed from the schedule. Null if not yet computed, or if the schedule is paused. |
| `taken_slots_local` | array | No | Times in the next 14 days a scheduled post already holds (fixed-time and queued), soonest first, on the workspace's clock. Another post within 30 minutes of one is a double post. |
| `next_publish_time_local` | string | No | The same moment in the workspace's timezone, ready to show a person, e.g. "Wed Sep 23, 6:00 PM MSK". Quote it as-is instead of converting the UTC value. |

### Get post analytics

**Slug:** `MYMARKY_MCP_GET_POST_ANALYTICS`

Get post stats

Fetch per-platform analytics for a post published through Marky.

Returns one entry per platform the post was successfully published to,
with metrics fetched live from each provider. Stats are normalized into a
consistent shape (`likes`, `comment_count`, `reach`, `views`, etc.) across
Facebook, Instagram, LinkedIn, Twitter, TikTok, Pinterest, and YouTube.
Platforms we can't fetch (no success result, disconnected integration,
expired token) appear in `skipped`.

Errors:
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No post with that ID exists, or it is not in this workspace.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "post_id": "Post Id",
  "platforms": [
    {
      "platform": "Platform",
      "external_post_id": "External Post Id",
      "stats": {
        "fetched_at": "2023-01-01T00:00:00Z"
      }
    }
  ],
  "skipped": [
    {
      "platform": "Platform",
      "error": "Error"
    }
  ]
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `post_id` | string | Yes | A UUID identifier. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `post_id` | string | Yes | Marky post ID |
| `skipped` | array | No | Platforms we could not fetch stats for (no success, expired token, etc.) |
| `platforms` | array | No | Per-platform stats |

### Get queue summary

**Slug:** `MYMARKY_MCP_GET_QUEUE_SUMMARY`

Get queue summary

Report how full the daily queue is and when it runs dry.

One cheap call for "do I need to top up my queue?" checks: the number of
queued posts plus the estimated publish times of the next and LAST posts in
the queue. `last_estimated_publish_time` is the projected run-out moment —
after it, nothing more publishes until new posts are queued. Times are
estimates from the queue's recurring timeslots (see the queue listing).
`covered_until` includes exact-time posts.

Errors:
    400 invalid_value: The business_id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "queued_count": 1,
  "scheduled_count": 1
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `queued_count` | integer | Yes | Number of posts waiting in the daily queue. |
| `covered_until` | string | No | When the workspace runs out of posts, queue and exact-time schedules together. Use this to decide if more content is needed. |
| `scheduled_count` | integer | No | Posts scheduled for an exact future time (not in queued_count). |
| `covered_until_local` | string | No | covered_until in the workspace's timezone. |
| `last_estimated_publish_time` | string | No | Estimated publish time of the LAST queued post — i.e. when the queue runs dry. Null when the queue is empty, no estimate can be computed, or the workspace has no connected account that can publish. |
| `next_estimated_publish_time` | string | No | Estimated publish time of the NEXT queued post. Null when the queue is empty, no estimate can be computed, or the workspace has no connected account that can publish (the slot would pass with nothing going out). |

### Get workspace

**Slug:** `MYMARKY_MCP_GET_WORKSPACE`

Get workspace

Get the FULL profile of a single workspace. Must belong to your org.

This is the detail read: it returns everything list_workspaces leaves out —
the strategy doc, the design style, the per-platform writing instructions,
events and timezone on top of the summary fields. Use list_workspaces to find a workspace id; use this to read the
workspace itself.

Errors:
    400 invalid_value: The workspace id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "id": "Id",
  "language": "Language",
  "events": [
    {
      "name": "Name",
      "date": "2023-01-01",
      "kind": "Kind"
    }
  ],
  "created_at": "Created At",
  "warnings": [
    {
      "field": "Field",
      "level": "Level",
      "message": "Message"
    }
  ],
  "field_budgets": [
    {
      "field": "Field",
      "limit": 1,
      "used": 1,
      "remaining": 1
    }
  ]
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workspace_id` | string | Yes | The workspace ID (a UUID from list_workspaces). |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Workspace ID |
| `name` | string | No | Workspace name |
| `events` | array | No | The workspace's own dated moments: launches, openings, sales, events (e.g. {'name': 'Hope Shop opening', 'date': '2026-10-10', 'kind': 'opening'}). They show up in list_upcoming_moments, and a caption that names one is dated to it. At most 20. |
| `website` | string | No | Workspace website URL |
| `industry` | string | No | Industry category |
| `language` | string | No | Content language as an ISO 639-1 code (e.g. 'en', 'fr', 'es'). |
| `strategy` | string | No | Social strategy doc as MARKDOWN — the goal we're working toward, who the posts are for, the brand voice, what we're trying right now, what we won't do, cadence and mix, plus a running log of experiments and what we learned. This is the layer an agency revisits each quarter. Write plain markdown (## headings, - bullets, &#124; tables &#124;); the app renders it in a rich-text editor, so no HTML tags — they show up as literal text and spend the size budget without adding meaning. Content pillars, caption rules and calls to action go here too. How graphics look goes in design_style. SIZE: 6000 characters, and writing this field REPLACES the whole doc. A longer value is still saved, but it comes back with a warning you have to act on in the same turn — so plan the doc to the cap BEFORE you compose it, rather than writing long and compacting after. The response's `field_budgets` entry for this field tells you exactly how much room is left. |
| `timezone` | string | No | The workspace's IANA timezone (e.g. 'Europe/Warsaw'). Posting-schedule slots and `*_local` times use it, and holidays in moments come from its country. Null when unset: times are then UTC and holidays default to the US. Set with update_workspace. |
| `warnings` | array | Yes | Non-blocking notes about fields that need attention, empty when there is nothing to do. Act on them in the same turn you see them — that is while you still have the content in context. |
| `on_camera` | string | No | Whether the owner will be on camera. null = not answered yet: ask once and save it. With 'no', never plan posts that need them on camera. |
| `created_at` | string | Yes | When the workspace was created |
| `updated_at` | string | No | Last update time |
| `description` | string | No | Workspace description |
| `revision_id` | string | No | Id of the undo record this write created. Pass it to revert_revisions to put the record back exactly as it was before this call. Set only on the response to a write; null when you read the record. |
| `design_style` | string | No | The brand's whole visual direction as markdown: the place for its colours (exact hex codes, which one leads), fonts, how type is set, logo placement and when the logo appears, imagery and whitespace. Prose at the top holds the invariants; a `## Treatments` table underneath lists named looks, one picked per post. SCOPE: it is added to the prompt for AI-GENERATED images. A template design takes only the colours it names (two or more), not its fonts or treatments, so it will not otherwise change a batch from templates. SIZE: 5000 characters, and writing this field REPLACES the whole value. Plan to the cap before composing; the response's `field_budgets` entry tells you how much room is left. |
| `field_budgets` | array | Yes | Size ceilings for the fields that get pasted into the prompt for every generated post. READ THIS BEFORE COMPOSING a value for one of these fields — `remaining` is the room you have, and a budgeted field is REPLACED whole on write, so `limit` is the real target. Over-budget writes are accepted, not rejected, but they cost a full rewrite to fix. |
| `weekly_time_budget` | string | No | How much time the owner can give social media each week. null = not answered yet: ask the owner once when planning posts, then save it. |
| `design_style_source` | string | No | Where `design_style` came from. `website`: extracted automatically from the workspace's website, so treat it as a starting guess and prefer the user's own brand guidelines when they differ. `user`: set by the user (in the app, or through update_workspace or create_workspace). A website re-extraction never replaces a `user` value. Null when the value predates this field or was never set. |
| `brand_style_grid_url` | string | No | Image URL of four sample posts in the saved look, written by /brand-setup. |
| `design_style_updated_at` | string | No | When `design_style` last changed. Null if it hasn't changed since this field was added. |
| `platform_writing_instructions` | string | No | The user's customized per-platform caption-writing instructions (empty when none set). Keys are canonical platform names (e.g. 'instagram', 'linkedIn') plus 'common' (applies to all platforms). Follow the matching entry when writing a caption or platform_overrides caption — the user's instructions ALWAYS outrank generic platform best practices. Update via PATCH (merge semantics). Returned by get_workspace only, not the list endpoint. |

### List categories

**Slug:** `MYMARKY_MCP_LIST_CATEGORIES`

List categories

List all categories for a workspace. Categories group topics.

Errors:
    400 invalid_value: The business_id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "items": [
    {
      "id": "Id",
      "business_id": "Business Id",
      "name": "Name",
      "created_at": "Created At"
    }
  ],
  "has_more": true
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Default 20, max 100. |
| `cursor` | string | No | The `next` value from the previous page's response, verbatim. Omit it for the first page. When `next` is null you have every result. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `next` | string | No | Opaque cursor for the next page; null when there are no more. Pass it back verbatim as ?cursor=. Do not construct or decode it. |
| `items` | array | Yes | This page of results. |
| `has_more` | boolean | No | True when another page exists: pass `next` back as ?cursor= to get it. False on the last page. |

### List connected social accounts

**Slug:** `MYMARKY_MCP_LIST_CONNECTED_SOCIAL_ACCOUNTS`

List connected social accounts

List the SOCIAL ACCOUNTS connected to this workspace (Facebook, Instagram, LinkedIn, TikTok, etc.) — NOT the workspace's posts or other workspaces.

Returns one entry per connected account, newest first. Use cursor for
pagination. Pass an entry's `id` to list_integration_posts for that
account's posts, or to disconnect_social_account to remove it.

An Instagram Story connection (`instagramStory`) has `parent_integration_id`,
its Instagram connection; null means that was removed and the app no longer
shows this Story connection.

Errors:
    400 invalid_value: The business_id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "items": [
    {
      "id": "Id",
      "business_id": "Business Id",
      "platform": "Platform",
      "status": "Status",
      "is_reconnect_fixable": true
    }
  ],
  "has_more": true
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Default 20, max 100. |
| `cursor` | string | No | The `next` value from the previous page's response, verbatim. Omit it for the first page. When `next` is null you have every result. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `next` | string | No | Opaque cursor for the next page; null when there are no more. Pass it back verbatim as ?cursor=. Do not construct or decode it. |
| `items` | array | Yes | This page of results. |
| `has_more` | boolean | No | True when another page exists: pass `next` back as ?cursor= to get it. False on the last page. |

### List google reviews

**Slug:** `MYMARKY_MCP_LIST_GOOGLE_REVIEWS`

List Google Business reviews

List the Google Business reviews for a workspace.

Reads reviews from the workspace's connected Google Business (Google My
Business) account: reviewer, star rating, text, timestamps, and the
workspace's public reply if it has one. Use this to surface or summarize
customer feedback (e.g. pull recent 5-star reviews). Paginate with the
returned `next_cursor` until it is null. When present, `needs_reply` marks
the reviews still waiting on the owner (3 stars or less, no reply).

READ ONLY — this endpoint never writes or replies to reviews.

Errors:
    400 invalid_value: The business_id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    401 SOCIAL_TOKEN_EXPIRED: The Google Business connection auth failed; reconnect the account.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 NO_CONNECTED_SOCIALS: No Google Business account is connected to this workspace.
    404 resource_not_found: No workspace with that ID exists.
    429 rate_limit_exceeded: You sent too many requests this minute.
    502 UPSTREAM_PROVIDER_ERROR: Google returned an error while fetching reviews.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "reviews": [
    {
      "review_id": "Review Id",
      "reviewer_name": "Reviewer Name",
      "rating": 1,
      "created_at": "Created At",
      "updated_at": "Updated At",
      "has_reply": true
    }
  ],
  "has_more": true
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Default 50, max 50. |
| `cursor` | string | No | Pagination cursor. Pass the `next_cursor` from a previous response. |
| `order_by` | string | No | Sort order: 'updateTime desc' (default), 'rating', or 'rating desc'. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `reviews` | array | Yes | The reviews on this page |
| `has_more` | boolean | No | True when another page exists: pass `next_cursor` back as ?cursor= to get it. False on the last page. |
| `next_cursor` | string | No | Cursor for the next page. Null when there are no more reviews. Pass as the `cursor` query param. |
| `average_rating` | string | No | Average star rating across all reviews (Google-reported) |
| `total_review_count` | string | No | Total number of reviews on the location (Google-reported) |

### List integration posts

**Slug:** `MYMARKY_MCP_LIST_INTEGRATION_POSTS`

List posts on a platform

List posts published to a connected platform account, with stats.

Live-fetches the most recent posts on the connected account (Marky-posted
or otherwise) plus each post's metrics. Works across Facebook, Instagram,
LinkedIn, Twitter/X, TikTok, Pinterest, and YouTube. Pagination via the
returned `next_cursor` for platforms that support it.

Some accounts cannot be listed at all — a LinkedIn personal profile, or a
platform whose reads we have turned off on cost grounds. Those return 200
with `posts: []` and a populated `unavailable_reason`, NOT an error. Read
that field before concluding the account has no posts.

Google Business posts are listed, but Google reports no metrics for them:
every stat is null (unknown, not zero) and `unavailable_reason` says so.

A date-filtered page can hold fewer than `limit` posts while `next_cursor` is
present; keep paging until `next_cursor` is null.

`unavailable_reason` is also set when the posts ARE returned but their stats
could not be: an Instagram account holding media from before it became a
workspace account gets its posts with every metric null. Null means UNKNOWN,
never zero — do not report it as no engagement.

Errors:
    400 invalid_value: The integration_id is not a valid UUID.
    400 invalid_request: The date range or pagination cursor was rejected.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    401 SOCIAL_TOKEN_EXPIRED: The connected account's token expired and could not be refreshed — the response's reconnect_url points to where to reconnect.
    403 permission_denied: Your plan does not include API access.
    404 resource_not_found: No integration with that ID exists, or it is not in your org.
    429 rate_limit_exceeded: You sent too many requests this minute.
    502 UPSTREAM_PROVIDER_ERROR: The social platform returned an error while fetching posts.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "posts": [
    {
      "publish_id": "Publish Id",
      "created_time": "Created Time",
      "caption": "Caption",
      "stats": {
        "fetched_at": "2023-01-01T00:00:00Z"
      },
      "type": "PostType"
    }
  ],
  "has_more": true
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Default 25, max 100. |
| `since` | string | No | Only posts on or after this date (ISO 8601 or Unix timestamp). Applied on every platform. |
| `until` | string | No | Only posts on or before this date (ISO 8601 or Unix timestamp). A bare date includes that whole day. Applied on every platform. |
| `cursor` | string | No | Pagination cursor. Pass the `next_cursor` from a previous response. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |
| `integration_id` | string | Yes | A UUID identifier. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `posts` | array | Yes | This page of posts. |
| `has_more` | boolean | No | True when another page exists: pass `next_cursor` back as `cursor` to get it. False on the last page. A date-filtered page can be short while this is true. |
| `next_cursor` | string | No | Pass as `cursor` to get the next page. Null when there are no more. |
| `total_count` | string | No | Total posts across all pages, when the platform reports it. |
| `unavailable_reason` | string | No | Set when the platform cannot list posts for this account at all (for example LinkedIn personal profiles). An empty `posts` list with this null means there are no posts. |

### List posts

**Slug:** `MYMARKY_MCP_LIST_POSTS`

List posts

List posts for a workspace, newest first. Use cursor for pagination.

Pass `view=summary` for a lightweight payload when auditing or de-duping a big
history: a full-view page of 100 posts can be too large for an agent's tool budget.

Errors:
    400 invalid_value: The business_id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `q` | string | No | Keyword search (case-insensitive) over caption, title, and attached media's description/transcript, so 'my dog' finds a photo of a dog the caption never names. Trashed (REJECTED) posts are left out unless `status=REJECTED`. Combines with `status` and `cursor`. |
| `view` | string ("full" | "summary") | No | `full` (default) returns each post's whole caption plus publish_results, platform_overrides, and queue placement. `summary` returns a lean row (caption PREVIEW, media count + fingerprint, status, schedule) for scanning a large history. |
| `limit` | integer | No | Default 20, max 100. |
| `cursor` | string | No | The `next` value from the previous page's response, verbatim. Omit it for the first page. When `next` is null you have every result. |
| `status` | string | No | Filter by post status. Repeat it to get several at once (`status=NEW&status=DRAFT` returns both). NEW = draft awaiting your team's review (incl. freshly generated posts), DRAFT = approved by a reviewer on your team, REJECTED = declined by a reviewer, SCHEDULED = queued for a future time, PUBLISHED = already posted. DRAFT/REJECTED are your team's review verdicts — Marky does not gate publishing on them. |
| `post_ids` | string | No | Return only these posts (up to 100; repeat the param). With the default `view=full` each item is exactly what `get_post` returns, so this is the way to read several posts in one call. Ids from another workspace are left out, not an error. Combines with `status`; cannot be combined with `q`. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |
| `include_stale` | boolean | No | Drafts (status NEW) nobody has touched for 14+ days are left out by default so a big old pile doesn't bury new work. Pass `true` to include them. Nothing is deleted. Ignored with `q` or `post_ids`. |

### List post comments

**Slug:** `MYMARKY_MCP_LIST_POST_COMMENTS`

List post comments

List your team's INTERNAL review notes on a post, newest first.

These are notes between your own team members, NOT the Facebook or Instagram
comments your audience left under the published post, and nothing here is
visible outside your team. They are the same thread the web app's review page
shows. Use them to read back WHY a
reviewer approved (DRAFT) or declined (REJECTED) a post. Use cursor for
pagination.

Errors:
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No post with that ID exists, or it is not in this workspace.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "items": [
    {
      "id": "Id",
      "body": "Body",
      "resolved": true,
      "created_at": "Created At"
    }
  ],
  "has_more": true
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Default 50, max 100. |
| `cursor` | string | No | The `next` value from the previous page's response, verbatim. Omit it for the first page. When `next` is null you have every result. |
| `post_id` | string | Yes | A UUID identifier. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `next` | string | No | Opaque cursor for the next page; null when there are no more. Pass it back verbatim as ?cursor=. Do not construct or decode it. |
| `items` | array | Yes | This page of results. |
| `has_more` | boolean | No | True when another page exists: pass `next` back as ?cursor= to get it. False on the last page. |

### List queued posts

**Slug:** `MYMARKY_MCP_LIST_QUEUED_POSTS`

List queued posts

List the POSTS currently queued into this workspace's upcoming publish slots (what's lined up to go out). Distinct from get_posting_schedule (the recurring slot template) and get_queue_summary (aggregate fullness).

Each entry shows the post's position in the queue and the estimated time it
will publish (projected from the queue's recurring timeslots — approximate,
since it ignores jitter and skipped slots). Posts scheduled for an exact time
via `schedule` (adhoc) are NOT in this list; only daily-queue posts are.
For just "how full is the queue / when does it run dry", use
get_queue_summary instead of paging this list.

Errors:
    400 invalid_value: The business_id is not a valid UUID.
    400 invalid_request: The cursor is malformed.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "items": [
    {
      "post_id": "Post Id",
      "queue_id": "Queue Id",
      "position": 1,
      "warnings": [
        {
          "field": "Field",
          "level": "Level",
          "message": "Message"
        }
      ]
    }
  ],
  "has_more": true,
  "summary": {
    "queued_count": 1,
    "scheduled_count": 1
  }
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Default 20, max 100. |
| `cursor` | string | No | The `next` value from the previous page's response, verbatim. Omit it for the first page. When `next` is null you have every result. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `next` | string | No | Opaque cursor for the next page; null when there are no more. Pass it back verbatim as ?cursor=. Do not construct or decode it. |
| `items` | array | Yes | This page of results. |
| `summary` | object | Yes | Aggregate view of a workspace's daily queue — "how full is my queue?" in one cheap call. |
| `has_more` | boolean | No | True when another page exists: pass `next` back as ?cursor= to get it. False on the last page. |

### List topics

**Slug:** `MYMARKY_MCP_LIST_TOPICS`

List topics

List all topics for a workspace.

Errors:
    400 invalid_value: The business_id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "items": [
    {
      "id": "Id",
      "business_id": "Business Id",
      "title": "Title",
      "enabled": true,
      "created_at": "Created At"
    }
  ],
  "has_more": true
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Default 20, max 100. |
| `cursor` | string | No | The `next` value from the previous page's response, verbatim. Omit it for the first page. When `next` is null you have every result. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `next` | string | No | Opaque cursor for the next page; null when there are no more. Pass it back verbatim as ?cursor=. Do not construct or decode it. |
| `items` | array | Yes | This page of results. |
| `has_more` | boolean | No | True when another page exists: pass `next` back as ?cursor= to get it. False on the last page. |

### List workspaces

**Slug:** `MYMARKY_MCP_LIST_WORKSPACES`

List workspaces

List the workspaces you can access.

An API key sees its organization's workspaces. A signed-in user sees every
workspace in an org they own or administer, plus only the specific workspaces
they were added to in an org where they are a guest.

START HERE: every other endpoint takes a workspace id (the `business_id`
parameter), and this is the tool that returns them. An agent with no workspace
id in context begins with this call. Returns SUMMARY rows only (id, name,
description, industry, website, language, timestamps), newest first. To read a
workspace's full profile (strategy doc, design style, writing instructions),
call get_workspace with the id from this list. Optional `name` narrows the list
by case-insensitive substring match. If `next` is set, keep paging with it
before concluding a workspace doesn't exist.

Errors:
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "items": [
    {
      "id": "Id",
      "language": "Language",
      "created_at": "Created At"
    }
  ],
  "has_more": true
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Filter by name, case-insensitive substring (e.g. "bakery" matches "Eli's Bakery"). |
| `limit` | integer | No | Default 100, max 100. |
| `cursor` | string | No | The `next` value from the previous page's response, verbatim. Omit it for the first page. When `next` is null you have every result. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `next` | string | No | Opaque cursor for the next page; null when there are no more. Pass it back verbatim as ?cursor=. Do not construct or decode it. |
| `items` | array | Yes | This page of results. |
| `has_more` | boolean | No | True when another page exists: pass `next` back as ?cursor= to get it. False on the last page. |

### Publish post now

**Slug:** `MYMARKY_MCP_PUBLISH_POST_NOW`

Publish post now

Publish a post immediately to its connected platforms.

Fires the publish flow in the background and returns the post right away.
get_post shows the final `status` (`PUBLISHED` once every targeted platform
is done).

Errors:
    400 invalid_request: restrict_publish_to_integration_ids names only accounts outside the post's own restrict_publish_to_integration_ids. A publish can narrow the post's accounts, never add to them; change the post with update_post first.
    400 invalid_request: A media link has no file behind it; the message names it. Not published.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    402 PAYMENT_REQUIRED: The workspace's plan doesn't include publishing. The post is NOT published and is unchanged. Tell the user publishing needs a paid plan; it can still be scheduled.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No post with that ID exists, or it is not in this workspace.
    409 CAPTION_HAS_PLACEHOLDER: The caption still has an unfilled [[placeholder]] (a fact only the owner knows). The post is NOT published and is unchanged. Fill it in with update_post, then publish it again.
    409 NO_CONNECTED_SOCIALS: No connected account can publish this post (none connected, all need a reconnect, or none can take this content). The post is NOT published and is unchanged. Follow `recovery_hint` (usually: call connect_social), then publish it again.
    429 rate_limit_exceeded: You sent too many requests this minute.

A post created with `restrict_publish_to_integration_ids` publishes to those
accounts only. The response's `publish_readiness` lists the platforms the post will
publish to and any connected account that won't get it, with the reason.
`delivery` on a later read says what actually landed.

### Responses:

**202**: Publish accepted; firing in background (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "id": "Id",
  "business_id": "Business Id",
  "publish_results": [
    {
      "platform": "Platform",
      "status": "Status"
    }
  ],
  "created_at": "Created At",
  "warnings": [
    {
      "field": "Field",
      "level": "Level",
      "message": "Message"
    }
  ],
  "url": "Url"
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `post_id` | string | Yes | A UUID identifier. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Post ID |
| `url` | string | Yes | Link to view this post in the Marky app (openable/shareable — show it to the user). This is where the post lives in Marky; `link` is the outbound URL published with the post. |
| `link` | string | No | Destination URL for Facebook link posts, the Google Business CTA button and the Pinterest pin. Other platforms ignore it; put links in the caption. Must be http(s). |
| `queue` | string | No | Daily-queue placement. Present only when the post is in a recurring daily queue (status SCHEDULED with no `adhoc_publish_time`). Null for drafts, adhoc-scheduled, and published posts. |
| `status` | string | No | Post status. One of: NEW (draft awaiting your team's review, incl. freshly generated), DRAFT (approved by a reviewer on your team), REJECTED (declined by a reviewer), SCHEDULED (queued for a future time), PUBLISHED (already posted). DRAFT/REJECTED are your team's review verdicts — Marky does not gate publishing on them. Same values the `list_posts` status filter accepts. |
| `caption` | string | No | Post caption text |
| `delivery` | string | Yes | What actually reached the platforms, from publish_results: 'delivered' (every platform succeeded), 'partial' (some succeeded, some failed), 'failed' (every platform failed), 'pending' (still in progress). Null when no publish has been attempted. Prefer this over `status` to tell the user whether a post went out. |
| `metadata` | string | No | Caller-defined string key/value pairs set at create/update time — your own analytics dimensions (e.g. media_type, format, style, hook, topic). Marky returns them verbatim and never interprets them. Keys starting with `marky_` are Marky's own (e.g. the copy date below); any you send are dropped. |
| `timezone` | string | No | IANA timezone the `*_local` times are in: the workspace's calendar timezone, or "UTC" when the workspace hasn't set one (see `timezone_source`). |
| `warnings` | array | No | Non-blocking notes about this post's captions, e.g. a call-to-action with no link or phone ('cta_without_contact'), or a caption in a different language from the workspace ('language_mismatch'). Empty when there is nothing to fix. Fix them with update_post before the post publishes; they never block anything. |
| `copy_date` | string | No | The day this caption is about, read from the caption when it was written: an upcoming holiday of the workspace's country, one of the workspace's events, or an explicit date like 'September 25'. Never 'today'/'tomorrow'. Queueing never places the post after this day. Null when the caption names no date. |
| `design_id` | string | No | The design attached to this post, if any. Media is derived from this design; edit it with revise_post_design or create_design + a new link. |
| `created_at` | string | Yes | When the post was created |
| `media_urls` | string | No | Attached media URLs |
| `review_url` | string | Yes | Link to review and approve this draft in the Marky app — show it to the user so they can check the post before it is scheduled. Present while the post is a draft (status NEW or DRAFT); null otherwise (a SCHEDULED post has scheduled_posts_url instead). |
| `updated_at` | string | No | Last update time |
| `business_id` | string | Yes | Workspace this post belongs to |
| `copy_moment` | string | No | The moment the caption names, e.g. 'National Day'. Null for a plain date. |
| `revision_id` | string | No | Id of the undo record this write created. Pass it to revert_revisions to put the record back exactly as it was before this call. Set only on the response to a write; null when you read the record. |
| `published_at` | string | No | When the post was actually published (past timestamp). Null until it publishes. |
| `signature_id` | string | No | The workspace caption ending (signature, e.g. a compliance disclaimer) this post carries, or null. Informational only: its text is already in `caption` and in each platform_overrides caption, once, even when append_caption_suffix was also sent (the suffix is the same ending). Nothing is appended at publish: `caption` is what publishes, except that a social with its own version of the ending gets that version in place of the main one, and a social set to skip it gets none. A caption edit keeps the ending at the end, once; send signature: 'none' on update_post to drop it. |
| `media_details` | string | No | The same attached media as `media_urls`, in the same order, but with each item's description and transcript. Use this when analysing what content performs: the creative is usually the reason a post did well, and a URL alone tells you nothing about what was in it. |
| `cover_media_id` | string | No | Media id of the cover image shown before this post's video plays. Marky generates one from the first frame when you don't send one. |
| `repeating_cron` | string | No | If set, this post repeats: a standard 5-field cron string (e.g. '0 9 * * 1' = every Monday 9am UTC). When it publishes, Marky auto-creates the next occurrence at the next cron time. Null = a one-off post. |
| `creation_method` | string | No | Where the post was created: web, mobile, api (REST with an API key), mcp (an MCP client), max (the built-in assistant), onboarding (the first batch for a new workspace), duplicate, recurrence (the next occurrence of a recurring post), backup_fill (a backup copied into an empty queue slot), or internal. Null for posts created before 2026-10-30. |
| `publish_results` | array | No | Per-platform publish outcomes — one entry per platform this post was sent to. Poll this until every entry has a terminal status (`success` or `failed`) to know publishing is complete. |
| `timezone_source` | string | No | Where `timezone` came from: `business` (the workspace's own setting) or `unset_utc` (no timezone saved yet, so times are shown in UTC). |
| `publish_readiness` | string | No | Returned by queue, schedule and publish: which platforms this post will actually publish to, and which connected accounts won't get it and why. Null on reads. |
| `platform_overrides` | string | No | Per-platform content overrides on this post, if any. Each platform publishes its override fields where set, the post's own fields otherwise. |
| `restrict_publish_to` | string | No | Platforms this post is restricted to. Null means ALL connected platforms. |
| `scheduled_posts_url` | string | Yes | Link to the workspace's scheduled-posts list in the Marky app — where the user sees this post waiting in the lineup. Present once the post is SCHEDULED; null otherwise. |
| `scheduled_publish_time` | string | No | The exact time this post is scheduled to publish (set via `schedule`). Null for drafts, queued posts, and already-published posts. |
| `suggested_publish_time` | string | No | When to publish on `copy_date`: the time the owner set (`suggested_publish_time` on a write), else the workspace's first posting-schedule slot that day, else 10:00 local. Offer it as the post's date; schedule with `at` to use it. |
| `video_cover_timestamp_ms` | string | No | The frame (milliseconds from the start) TikTok uses as its cover. Null when nobody has chosen a cover for this post. |
| `scheduled_publish_time_local` | string | No | The same moment in the workspace's timezone, ready to show a person, e.g. "Wed Sep 23, 6:00 PM MSK". Quote it as-is instead of converting the UTC value. |
| `suggested_publish_time_local` | string | No | The same moment in the workspace's timezone, ready to show a person, e.g. "Wed Sep 23, 6:00 PM MSK". Quote it as-is instead of converting the UTC value. |
| `restrict_publish_to_integration_ids` | string | No | Exact connected accounts (integration ids) this post is restricted to. Null means targeting is platform-level (see restrict_publish_to). |

### Queue post

**Slug:** `MYMARKY_MCP_QUEUE_POST`

Add post to queue

Add a post to the workspace's posting Queue.

Use this instead of `schedule` when you want the post to go out at the next
open slot in the workspace's posting schedule, rather than at a fixed time you
pick. The post is appended to the end of the queue and publishes
automatically when its turn comes up — the same behavior as the "Add to
queue" button in the app. If the workspace has no queue yet, a default daily
schedule is created for it. To queue several posts, use `schedule_posts`
with the ids in order: separate calls sent at once can't keep an order.

A post that already carries a future date (created with
`scheduled_publish_time` while NEW) keeps it: it is scheduled AT that date,
comes back with `scheduled_publish_time` set and `queue` null.

A post whose caption names a day (`copy_date`, e.g. National Day) never goes
into a slot after that day: it is scheduled ON the day instead (warning
SCHEDULED_ON_COPY_DATE, quote its time), or, when that day's time has passed,
refused with 409 COPY_DATE_BEFORE_NEXT_SLOT.

The post must not already be published. Otherwise, on success the post comes
back with `status` = SCHEDULED, `scheduled_publish_time` = null, and a populated `queue`
object showing its position in line and estimated publish time.

Errors:
    400 POST_ALREADY_PUBLISHED: The post is already live, so it can't be queued. Duplicate it and queue the copy. Carries `published_at`.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No post with that ID exists, or it is not in this workspace.
    400 PLATFORM_RULE_VIOLATION: A platform in publish_to would refuse the post. It is NOT queued and is unchanged; `violations` lists each broken rule.
    400 invalid_request: A media link has no file behind it; the message names it. Not queued.
    409 CAPTION_HAS_PLACEHOLDER: The caption still has an unfilled [[placeholder]] (a fact only the owner knows). The post is NOT queued and is unchanged. Fill it in with update_post, then queue it again.
    409 NO_CONNECTED_SOCIALS: No connected account can publish this post (none connected, all need a reconnect, or none can take this content). The post is NOT queued and is unchanged, and no queue is created. Follow `recovery_hint` (usually: call connect_social), then queue it again.
    409 COPY_DATE_BEFORE_NEXT_SLOT: The caption names a day (`copy_date`), the next queue slot (`next_slot_local`) is after it, and that day's posting time has passed. The post is NOT queued and is unchanged. Ask the user: publish_post_now, schedule_post at a time on or before the day, or queue again with ignore_copy_date=true.
    429 rate_limit_exceeded: You sent too many requests this minute.

On success, `publish_readiness` lists the platforms the post will publish to
and any connected account that won't get it, with the reason.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "id": "Id",
  "business_id": "Business Id",
  "publish_results": [
    {
      "platform": "Platform",
      "status": "Status"
    }
  ],
  "created_at": "Created At",
  "warnings": [
    {
      "field": "Field",
      "level": "Level",
      "message": "Message"
    }
  ],
  "url": "Url"
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `post_id` | string | Yes | A UUID identifier. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |
| `ignore_copy_date` | boolean | No | Queue it even though the slot is after the day its caption names (COPY_DATE_BEFORE_NEXT_SLOT). Only when the user said so. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Post ID |
| `url` | string | Yes | Link to view this post in the Marky app (openable/shareable — show it to the user). This is where the post lives in Marky; `link` is the outbound URL published with the post. |
| `link` | string | No | Destination URL for Facebook link posts, the Google Business CTA button and the Pinterest pin. Other platforms ignore it; put links in the caption. Must be http(s). |
| `queue` | string | No | Daily-queue placement. Present only when the post is in a recurring daily queue (status SCHEDULED with no `adhoc_publish_time`). Null for drafts, adhoc-scheduled, and published posts. |
| `status` | string | No | Post status. One of: NEW (draft awaiting your team's review, incl. freshly generated), DRAFT (approved by a reviewer on your team), REJECTED (declined by a reviewer), SCHEDULED (queued for a future time), PUBLISHED (already posted). DRAFT/REJECTED are your team's review verdicts — Marky does not gate publishing on them. Same values the `list_posts` status filter accepts. |
| `caption` | string | No | Post caption text |
| `delivery` | string | Yes | What actually reached the platforms, from publish_results: 'delivered' (every platform succeeded), 'partial' (some succeeded, some failed), 'failed' (every platform failed), 'pending' (still in progress). Null when no publish has been attempted. Prefer this over `status` to tell the user whether a post went out. |
| `metadata` | string | No | Caller-defined string key/value pairs set at create/update time — your own analytics dimensions (e.g. media_type, format, style, hook, topic). Marky returns them verbatim and never interprets them. Keys starting with `marky_` are Marky's own (e.g. the copy date below); any you send are dropped. |
| `timezone` | string | No | IANA timezone the `*_local` times are in: the workspace's calendar timezone, or "UTC" when the workspace hasn't set one (see `timezone_source`). |
| `warnings` | array | No | Non-blocking notes about this post's captions, e.g. a call-to-action with no link or phone ('cta_without_contact'), or a caption in a different language from the workspace ('language_mismatch'). Empty when there is nothing to fix. Fix them with update_post before the post publishes; they never block anything. |
| `copy_date` | string | No | The day this caption is about, read from the caption when it was written: an upcoming holiday of the workspace's country, one of the workspace's events, or an explicit date like 'September 25'. Never 'today'/'tomorrow'. Queueing never places the post after this day. Null when the caption names no date. |
| `design_id` | string | No | The design attached to this post, if any. Media is derived from this design; edit it with revise_post_design or create_design + a new link. |
| `created_at` | string | Yes | When the post was created |
| `media_urls` | string | No | Attached media URLs |
| `review_url` | string | Yes | Link to review and approve this draft in the Marky app — show it to the user so they can check the post before it is scheduled. Present while the post is a draft (status NEW or DRAFT); null otherwise (a SCHEDULED post has scheduled_posts_url instead). |
| `updated_at` | string | No | Last update time |
| `business_id` | string | Yes | Workspace this post belongs to |
| `copy_moment` | string | No | The moment the caption names, e.g. 'National Day'. Null for a plain date. |
| `revision_id` | string | No | Id of the undo record this write created. Pass it to revert_revisions to put the record back exactly as it was before this call. Set only on the response to a write; null when you read the record. |
| `published_at` | string | No | When the post was actually published (past timestamp). Null until it publishes. |
| `signature_id` | string | No | The workspace caption ending (signature, e.g. a compliance disclaimer) this post carries, or null. Informational only: its text is already in `caption` and in each platform_overrides caption, once, even when append_caption_suffix was also sent (the suffix is the same ending). Nothing is appended at publish: `caption` is what publishes, except that a social with its own version of the ending gets that version in place of the main one, and a social set to skip it gets none. A caption edit keeps the ending at the end, once; send signature: 'none' on update_post to drop it. |
| `media_details` | string | No | The same attached media as `media_urls`, in the same order, but with each item's description and transcript. Use this when analysing what content performs: the creative is usually the reason a post did well, and a URL alone tells you nothing about what was in it. |
| `cover_media_id` | string | No | Media id of the cover image shown before this post's video plays. Marky generates one from the first frame when you don't send one. |
| `repeating_cron` | string | No | If set, this post repeats: a standard 5-field cron string (e.g. '0 9 * * 1' = every Monday 9am UTC). When it publishes, Marky auto-creates the next occurrence at the next cron time. Null = a one-off post. |
| `creation_method` | string | No | Where the post was created: web, mobile, api (REST with an API key), mcp (an MCP client), max (the built-in assistant), onboarding (the first batch for a new workspace), duplicate, recurrence (the next occurrence of a recurring post), backup_fill (a backup copied into an empty queue slot), or internal. Null for posts created before 2026-10-30. |
| `publish_results` | array | No | Per-platform publish outcomes — one entry per platform this post was sent to. Poll this until every entry has a terminal status (`success` or `failed`) to know publishing is complete. |
| `timezone_source` | string | No | Where `timezone` came from: `business` (the workspace's own setting) or `unset_utc` (no timezone saved yet, so times are shown in UTC). |
| `publish_readiness` | string | No | Returned by queue, schedule and publish: which platforms this post will actually publish to, and which connected accounts won't get it and why. Null on reads. |
| `platform_overrides` | string | No | Per-platform content overrides on this post, if any. Each platform publishes its override fields where set, the post's own fields otherwise. |
| `restrict_publish_to` | string | No | Platforms this post is restricted to. Null means ALL connected platforms. |
| `scheduled_posts_url` | string | Yes | Link to the workspace's scheduled-posts list in the Marky app — where the user sees this post waiting in the lineup. Present once the post is SCHEDULED; null otherwise. |
| `scheduled_publish_time` | string | No | The exact time this post is scheduled to publish (set via `schedule`). Null for drafts, queued posts, and already-published posts. |
| `suggested_publish_time` | string | No | When to publish on `copy_date`: the time the owner set (`suggested_publish_time` on a write), else the workspace's first posting-schedule slot that day, else 10:00 local. Offer it as the post's date; schedule with `at` to use it. |
| `video_cover_timestamp_ms` | string | No | The frame (milliseconds from the start) TikTok uses as its cover. Null when nobody has chosen a cover for this post. |
| `scheduled_publish_time_local` | string | No | The same moment in the workspace's timezone, ready to show a person, e.g. "Wed Sep 23, 6:00 PM MSK". Quote it as-is instead of converting the UTC value. |
| `suggested_publish_time_local` | string | No | The same moment in the workspace's timezone, ready to show a person, e.g. "Wed Sep 23, 6:00 PM MSK". Quote it as-is instead of converting the UTC value. |
| `restrict_publish_to_integration_ids` | string | No | Exact connected accounts (integration ids) this post is restricted to. Null means targeting is platform-level (see restrict_publish_to). |

### Schedule post

**Slug:** `MYMARKY_MCP_SCHEDULE_POST`

Schedule post

Schedule a post for publishing at a specific time.

The post must be in NEW, DRAFT, or SCHEDULED status. Set `scheduled_publish_time` to a
future datetime (ISO 8601). The post will be published automatically at that
time to all connected platforms, or to specific platforms if
`restrict_publish_to` is set.

For a RECURRING / evergreen post, also set `repeating_cron` (a 5-field cron
string): `scheduled_publish_time` is the first run and Marky auto-creates the
next occurrence after each publish. This is the ONLY place recurrence is set —
re-schedule with `repeating_cron: null` to stop it. Scheduling also clears any
queue placement (a post is either queued OR fixed-time, never both).

Errors:
    400 POST_ALREADY_PUBLISHED: The post is already live, so it can't be scheduled. Duplicate it and schedule the copy. Carries `published_at`.
    400 invalid_request: The post status is not NEW, DRAFT, or SCHEDULED, or scheduled_publish_time is not in the future.
    400 PLATFORM_RULE_VIOLATION: A targeted platform would refuse the post. It is NOT scheduled and is unchanged; `violations` lists each broken rule.
    400 invalid_request: A media link has no file behind it; the message names it. Not scheduled.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No post with that ID exists, or it is not in this workspace.
    409 NO_CONNECTED_SOCIALS: No connected account can publish this post (none connected, all need a reconnect, or none can take this content). The post is NOT scheduled and is unchanged. Follow `recovery_hint` (usually: call connect_social), then schedule it again.
    429 rate_limit_exceeded: You sent too many requests this minute.

On success, `publish_readiness` lists the platforms the post will publish to
and any connected account that won't get it, with the reason.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "id": "Id",
  "business_id": "Business Id",
  "publish_results": [
    {
      "platform": "Platform",
      "status": "Status"
    }
  ],
  "created_at": "Created At",
  "warnings": [
    {
      "field": "Field",
      "level": "Level",
      "message": "Message"
    }
  ],
  "url": "Url"
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `post_id` | string | Yes | A UUID identifier. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |
| `repeating_cron` | string | No | Recurrence for this post — this endpoint is the ONLY place it's set. A standard 5-field cron string (e.g. '0 9 * * 1' = every Monday 9am UTC): scheduled_publish_time is the first run, then after each publish Marky auto-creates the next occurrence at the next cron time. Omit for a one-off post; re-schedule with repeating_cron=null to STOP an existing recurrence. |
| `restrict_publish_to` | string | No | Restrict publishing to these platforms (e.g. instagram, facebook, linkedIn). Case-insensitive. Omit or set null to publish to ALL connected platforms. Not with restrict_publish_to_integration_ids. |
| `scheduled_publish_time` | string | Yes | When to publish (ISO 8601 datetime, must be in the future). Send an offset or `Z` (e.g. `2026-09-23T09:10:00Z`) for an exact instant. A time with NO offset (e.g. `2026-09-23T09:10:00`) is read as the workspace's local time in its calendar timezone (UTC if it has none), daylight saving included. |
| `restrict_publish_to_integration_ids` | string | No | Restrict publishing to these exact connected accounts (ids from list_connected_social_accounts), for a workspace with several accounts on one platform. Omit for platform-level targeting. Not with restrict_publish_to. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Post ID |
| `url` | string | Yes | Link to view this post in the Marky app (openable/shareable — show it to the user). This is where the post lives in Marky; `link` is the outbound URL published with the post. |
| `link` | string | No | Destination URL for Facebook link posts, the Google Business CTA button and the Pinterest pin. Other platforms ignore it; put links in the caption. Must be http(s). |
| `queue` | string | No | Daily-queue placement. Present only when the post is in a recurring daily queue (status SCHEDULED with no `adhoc_publish_time`). Null for drafts, adhoc-scheduled, and published posts. |
| `status` | string | No | Post status. One of: NEW (draft awaiting your team's review, incl. freshly generated), DRAFT (approved by a reviewer on your team), REJECTED (declined by a reviewer), SCHEDULED (queued for a future time), PUBLISHED (already posted). DRAFT/REJECTED are your team's review verdicts — Marky does not gate publishing on them. Same values the `list_posts` status filter accepts. |
| `caption` | string | No | Post caption text |
| `delivery` | string | Yes | What actually reached the platforms, from publish_results: 'delivered' (every platform succeeded), 'partial' (some succeeded, some failed), 'failed' (every platform failed), 'pending' (still in progress). Null when no publish has been attempted. Prefer this over `status` to tell the user whether a post went out. |
| `metadata` | string | No | Caller-defined string key/value pairs set at create/update time — your own analytics dimensions (e.g. media_type, format, style, hook, topic). Marky returns them verbatim and never interprets them. Keys starting with `marky_` are Marky's own (e.g. the copy date below); any you send are dropped. |
| `timezone` | string | No | IANA timezone the `*_local` times are in: the workspace's calendar timezone, or "UTC" when the workspace hasn't set one (see `timezone_source`). |
| `warnings` | array | No | Non-blocking notes about this post's captions, e.g. a call-to-action with no link or phone ('cta_without_contact'), or a caption in a different language from the workspace ('language_mismatch'). Empty when there is nothing to fix. Fix them with update_post before the post publishes; they never block anything. |
| `copy_date` | string | No | The day this caption is about, read from the caption when it was written: an upcoming holiday of the workspace's country, one of the workspace's events, or an explicit date like 'September 25'. Never 'today'/'tomorrow'. Queueing never places the post after this day. Null when the caption names no date. |
| `design_id` | string | No | The design attached to this post, if any. Media is derived from this design; edit it with revise_post_design or create_design + a new link. |
| `created_at` | string | Yes | When the post was created |
| `media_urls` | string | No | Attached media URLs |
| `review_url` | string | Yes | Link to review and approve this draft in the Marky app — show it to the user so they can check the post before it is scheduled. Present while the post is a draft (status NEW or DRAFT); null otherwise (a SCHEDULED post has scheduled_posts_url instead). |
| `updated_at` | string | No | Last update time |
| `business_id` | string | Yes | Workspace this post belongs to |
| `copy_moment` | string | No | The moment the caption names, e.g. 'National Day'. Null for a plain date. |
| `revision_id` | string | No | Id of the undo record this write created. Pass it to revert_revisions to put the record back exactly as it was before this call. Set only on the response to a write; null when you read the record. |
| `published_at` | string | No | When the post was actually published (past timestamp). Null until it publishes. |
| `signature_id` | string | No | The workspace caption ending (signature, e.g. a compliance disclaimer) this post carries, or null. Informational only: its text is already in `caption` and in each platform_overrides caption, once, even when append_caption_suffix was also sent (the suffix is the same ending). Nothing is appended at publish: `caption` is what publishes, except that a social with its own version of the ending gets that version in place of the main one, and a social set to skip it gets none. A caption edit keeps the ending at the end, once; send signature: 'none' on update_post to drop it. |
| `media_details` | string | No | The same attached media as `media_urls`, in the same order, but with each item's description and transcript. Use this when analysing what content performs: the creative is usually the reason a post did well, and a URL alone tells you nothing about what was in it. |
| `cover_media_id` | string | No | Media id of the cover image shown before this post's video plays. Marky generates one from the first frame when you don't send one. |
| `repeating_cron` | string | No | If set, this post repeats: a standard 5-field cron string (e.g. '0 9 * * 1' = every Monday 9am UTC). When it publishes, Marky auto-creates the next occurrence at the next cron time. Null = a one-off post. |
| `creation_method` | string | No | Where the post was created: web, mobile, api (REST with an API key), mcp (an MCP client), max (the built-in assistant), onboarding (the first batch for a new workspace), duplicate, recurrence (the next occurrence of a recurring post), backup_fill (a backup copied into an empty queue slot), or internal. Null for posts created before 2026-10-30. |
| `publish_results` | array | No | Per-platform publish outcomes — one entry per platform this post was sent to. Poll this until every entry has a terminal status (`success` or `failed`) to know publishing is complete. |
| `timezone_source` | string | No | Where `timezone` came from: `business` (the workspace's own setting) or `unset_utc` (no timezone saved yet, so times are shown in UTC). |
| `publish_readiness` | string | No | Returned by queue, schedule and publish: which platforms this post will actually publish to, and which connected accounts won't get it and why. Null on reads. |
| `platform_overrides` | string | No | Per-platform content overrides on this post, if any. Each platform publishes its override fields where set, the post's own fields otherwise. |
| `restrict_publish_to` | string | No | Platforms this post is restricted to. Null means ALL connected platforms. |
| `scheduled_posts_url` | string | Yes | Link to the workspace's scheduled-posts list in the Marky app — where the user sees this post waiting in the lineup. Present once the post is SCHEDULED; null otherwise. |
| `scheduled_publish_time` | string | No | The exact time this post is scheduled to publish (set via `schedule`). Null for drafts, queued posts, and already-published posts. |
| `suggested_publish_time` | string | No | When to publish on `copy_date`: the time the owner set (`suggested_publish_time` on a write), else the workspace's first posting-schedule slot that day, else 10:00 local. Offer it as the post's date; schedule with `at` to use it. |
| `video_cover_timestamp_ms` | string | No | The frame (milliseconds from the start) TikTok uses as its cover. Null when nobody has chosen a cover for this post. |
| `scheduled_publish_time_local` | string | No | The same moment in the workspace's timezone, ready to show a person, e.g. "Wed Sep 23, 6:00 PM MSK". Quote it as-is instead of converting the UTC value. |
| `suggested_publish_time_local` | string | No | The same moment in the workspace's timezone, ready to show a person, e.g. "Wed Sep 23, 6:00 PM MSK". Quote it as-is instead of converting the UTC value. |
| `restrict_publish_to_integration_ids` | string | No | Exact connected accounts (integration ids) this post is restricted to. Null means targeting is platform-level (see restrict_publish_to). |

### Search media library

**Slug:** `MYMARKY_MCP_SEARCH_MEDIA_LIBRARY`

Search media library

Search a workspace's MEDIA library by meaning, returning the best matches first.

Semantic (vector) search over each image's alt-text. For a plain
reverse-chronological list use `list_library`.

By default it returns the workspace's own, unused, full-size photos (not posted
recently, not AI-generated, 600px or more on the long side). If none pass, it
returns the best matches without the recency and size filters, and each item's
`last_used_at` shows it was posted before. `unused_count` is how many unused
photos the library holds.

Results are a single ranked page (most relevant first), so `next` is always
null — raise `limit` to get more.

The owner's flyers and other pictures with their own words on them are left out. Pass
`include_flyers=true` only when the post is a plain photo with no template or headline
on top: then the ones that match the query come after the photos.

`include_hidden=true` also finds uploads search skips (see `hidden_reason`); they still
work in `media_ids`.

If meaning-based search is temporarily down, it still answers: the results
are keyword matches on alt text and file names, and `notice` says so.

Errors:
    400 invalid_value: The business_id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "items": [
    {
      "id": "Id",
      "business_id": "Business Id",
      "created_at": "Created At",
      "low_res": true,
      "hidden": true
    }
  ],
  "has_more": true,
  "unused_count": 1
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `type` | string | No | Set to 'audio' to find audio files (songs, voiceovers) by notes, name and transcript. Leave it out to find photos and videos. |
| `limit` | integer | No | Default 20, max 50. |
| `query` | string | Yes | What to look for, in plain words (e.g. 'sunset beach', 'team photo'). |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |
| `include_flyers` | boolean | No | Also return the owner's own flyers and other pictures with words on them. Set true ONLY when the post is a plain photo with no template or headline put on top; a graphic with its own words must never be used under a template. |
| `include_hidden` | boolean | No | Also return uploads search hides (flyers, logos, small pictures, files not in the Library). Set true when a file they uploaded is missing. |
| `include_generated` | boolean | No | Also return AI-generated images and rendered designs. Leave false when you want the workspace's own photos. |
| `include_recently_used` | boolean | No | Also return photos posted recently. Leave false unless the user asked to reuse a photo. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `next` | string | No | Opaque cursor for the next page; null when there are no more. Pass it back verbatim as ?cursor=. Do not construct or decode it. |
| `items` | array | Yes | This page of results. |
| `notice` | string | No | Set only when the search could not run as usual, e.g. meaning-based search is temporarily down and the results are keyword matches. Null on a normal search. |
| `has_more` | boolean | No | True when another page exists: pass `next` back as ?cursor= to get it. False on the last page. |
| `unused_count` | integer | Yes | How many photos in the whole library the default search would offer: not posted recently, not AI-generated, and at least 600px on the long side. 0 means every usable photo was posted recently, so the results are repeats (check each item's last_used_at). With type=audio, the number of audio files returned. |

### Start base64 media upload

**Slug:** `MYMARKY_MCP_START_BASE64_MEDIA_UPLOAD`

Start a base64 media upload

Start sending a local image or video to a workspace's MEDIA library through MCP calls.

USE THIS when the file is only on your disk AND your sandbox cannot reach
api.mymarky.ai (the `create_media_upload` PUT fails with a connection error or a
403 from your proxy). The bytes travel inside these tool calls, so it works wherever
the MCP works. If the file has a public URL, use `upload_media_from_url` instead;
if your sandbox can reach api.mymarky.ai, `create_media_upload` is faster.

Steps:
  1. Call this; keep the `upload_id`.
  2. Split the file into chunks of at most `chunk_max_bytes` (4 MiB) and send each,
     base64-encoded, with `append_base64_media_chunk` (index 0, 1, 2, ...). A small
     file is one chunk.
  3. Call `finish_base64_media_upload` with `chunk_count`. It returns the media asset;
     its `original_url` feeds `create_post`.

Chunk size: if your runtime calls tools from code, send up to 4 MiB per chunk. If
you write the base64 into each call yourself, keep chunks near 48 KB (64K base64
characters), so a large file takes many calls; for big videos prefer a public URL.

Limits: 50 MB per file (images 20 MB), 4 MiB per chunk, 6 hours to finish. JPEG, PNG,
WebP, GIF, MP4 and MOV; the bytes decide the type, not the name.

Errors:
    400 invalid_value: The business_id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    413 FILE_TOO_LARGE: total_bytes is over the 50 MB limit.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**201**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "upload_id": "Upload Id",
  "chunk_max_bytes": 1,
  "max_bytes": 1,
  "max_chunks": 1,
  "expires_in": 1,
  "instructions": "Instructions"
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `alt_text` | string | No | Optional hint about the media: an address, a name, anything the picture can't show. Stored as `source_alt_text`; `alt_text` is written by looking at the image itself shortly after upload. |
| `filename` | string | No | Original filename, e.g. 'render.mp4'. Becomes the library item's name. |
| `business_id` | string | No | The workspace to upload into, under its old field name. Deprecated: send workspace_id instead. |
| `total_bytes` | string | No | The file's size in bytes (before base64), if you know it. A file over the 50 MB limit is refused here, before you send any chunks. |
| `workspace_id` | string | No | UUID of the workspace to upload the media into. Get it from `list_workspaces`. Must belong to the API key's org. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `max_bytes` | integer | Yes | Most bytes the whole file may have (50 MB; images are also held to 20 MB). |
| `upload_id` | string | Yes | Pass this to append_base64_media_chunk and finish_base64_media_upload. |
| `expires_in` | integer | Yes | Seconds until this upload expires. Finish before then. |
| `max_chunks` | integer | Yes | Chunk indexes run from 0 to max_chunks - 1. |
| `instructions` | string | Yes | What to call next. |
| `chunk_max_bytes` | integer | Yes | Most bytes one chunk may hold BEFORE base64 encoding (4 MiB). |

### Submit feedback

**Slug:** `MYMARKY_MCP_SUBMIT_FEEDBACK`

Submit feedback

Submit a bug report, feature request, or general feedback.

Works from agents, scripts, or any API consumer. Feedback is stored
and routed to the support team.

Send an `Idempotency-Key` header to make a retry safe (a resend with the same
key returns the original submission instead of filing a duplicate).

Errors:
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access.
    422 IDEMPOTENCY_KEY_CONFLICT: The Idempotency-Key was reused with a different body.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**201**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "id": "Id",
  "status": "Status"
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `type` | string ("bug" | "feature" | "feedback") | Yes | Feedback type |
| `context` | string | No | Optional context (e.g. page URL, error details, environment info). |
| `message` | string | Yes | Feedback message |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Feedback record ID |
| `status` | string | No | Feedback status |

### Update post

**Slug:** `MYMARKY_MCP_UPDATE_POST`

Update post

Update a post's caption, review status, target platforms, media, or platform overrides.

`status` moves the post through YOUR TEAM's review workflow: set NEW to tell
your team the post is ready for their review (it appears on the app's review
page), DRAFT to record a reviewer's approval, REJECTED to record a decline.
Marky does not gate publishing on these — they are your team's workflow
state. Status can only change on posts currently in NEW, DRAFT, or REJECTED:
scheduling has its own endpoint, and published posts are immutable.

`platform_overrides` replaces the post's whole override set: send the full
list to keep, `[]` to clear, or omit the field to leave overrides untouched.

Errors:
    400 invalid_request: The post is already published, no fields were given to update, or status was sent for a post that is SCHEDULED, PUBLISHED, GENERATING, or FAILED.
    400 PLATFORM_RULE_VIOLATION: The post is SCHEDULED and this edit would make a platform in publish_to refuse it. Nothing is changed; `violations` lists each broken rule.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No post with that ID exists, or it is not in this workspace.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "id": "Id",
  "business_id": "Business Id",
  "publish_results": [
    {
      "platform": "Platform",
      "status": "Status"
    }
  ],
  "created_at": "Created At",
  "warnings": [
    {
      "field": "Field",
      "level": "Level",
      "message": "Message"
    }
  ],
  "url": "Url"
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `link` | string | No | Destination URL for Facebook link posts, the Google Business CTA button and the Pinterest pin. Other platforms ignore it; put links in the caption. Must be http(s). |
| `status` | string | No | Move this post through your team's review workflow. NEW = ready for your team's review (it shows on the app's review page). DRAFT = a reviewer approved it. REJECTED = a reviewer declined it. Publishing never waits on these. Only for posts in NEW, DRAFT or REJECTED. To bring a post back from Trash (REJECTED), send DRAFT: it returns to Drafts, or to Published if it ever went out. The response shows where it landed. |
| `caption` | string | No | Updated caption text. To empty a caption, send "" and no other field; omit caption to leave it. A channel in platform_overrides publishes its own caption, not this one. To change every channel, send platform_overrides in the same call with the new captions, or platform_overrides: [] to drop them. Read the post first to see which channels have one. |
| `post_id` | string | Yes | A UUID identifier. |
| `metadata` | string | No | Up to 50 string key/value pairs for your own analytics dimensions (e.g. {'media_type': 'animated-video', 'format': 'talking-head', 'style': 'data-take', 'hook': 'question', 'topic': 'automate-with-ai'}). Keys <=40 chars, values <=500 chars. Numbers and booleans are stored as their string form (3 -> '3', true -> 'true'). Returned verbatim on every read; Marky never interprets them. |
| `media_ids` | string | No | Replace the attached media, by library id. Marky media ids to attach, in order: an image you just generated (its `media_id`), an upload, a library result, or a file's `f:` handle. Prefer this over media_urls for anything already in Marky. Not with media_urls. SEVERAL ids on ONE post IS a carousel, published as one multi-image post in this order; never split slides across posts. |
| `signature` | string | No | Omit to keep the post's signature: when this update rewrites the caption or platform_overrides captions, the server puts it back at the end, once. Send 'none' only when the owner says this post must go out without it. |
| `media_urls` | string | No | Replace the attached media. URLs to images or videos. Use this to swap the image on a generated post during review. Prefer media_ids when the media is already in Marky. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |
| `caption_brief` | string | No | What the post is about, instead of `caption`; the caption is written for it. |
| `cover_media_id` | string | No | Replace this video's cover image. Marky media id of an IMAGE for this video's cover; upload the still first. Used by Instagram, Facebook, Pinterest and YouTube (verified channels); TikTok uses `video_cover_timestamp_ms`. Ignored without a video. Replacing the media does NOT clear the cover. |
| `allow_media_reuse` | boolean | No | Leave false unless the user asked to repost a specific photo. |
| `platform_overrides` | string | No | REPLACES the post's entire override set: send the full list you want to keep, send [] to clear all overrides, or omit/null to leave them unchanged. |
| `restrict_publish_to` | string | No | Restrict publishing to these platforms (e.g. instagram, facebook, linkedIn). Case-insensitive. Omit or set null to publish to ALL connected platforms. Not with restrict_publish_to_integration_ids. |
| `append_caption_suffix` | boolean | No | True with `caption` adds the workspace's caption suffix once. Never type the suffix. |
| `suggested_publish_time` | string | No | For a post kept in review: when the owner wants it out. Saved as its date; publishes nothing. |
| `video_cover_timestamp_ms` | string | No | Which frame TikTok uses as its cover, in ms from the start. Defaults to 1000. Other platforms ignore it. |
| `restrict_publish_to_integration_ids` | string | No | Restrict publishing to these exact connected accounts (ids from list_connected_social_accounts), for a workspace with several accounts on one platform. Omit for platform-level targeting. Not with restrict_publish_to. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Post ID |
| `url` | string | Yes | Link to view this post in the Marky app (openable/shareable — show it to the user). This is where the post lives in Marky; `link` is the outbound URL published with the post. |
| `link` | string | No | Destination URL for Facebook link posts, the Google Business CTA button and the Pinterest pin. Other platforms ignore it; put links in the caption. Must be http(s). |
| `queue` | string | No | Daily-queue placement. Present only when the post is in a recurring daily queue (status SCHEDULED with no `adhoc_publish_time`). Null for drafts, adhoc-scheduled, and published posts. |
| `status` | string | No | Post status. One of: NEW (draft awaiting your team's review, incl. freshly generated), DRAFT (approved by a reviewer on your team), REJECTED (declined by a reviewer), SCHEDULED (queued for a future time), PUBLISHED (already posted). DRAFT/REJECTED are your team's review verdicts — Marky does not gate publishing on them. Same values the `list_posts` status filter accepts. |
| `caption` | string | No | Post caption text |
| `delivery` | string | Yes | What actually reached the platforms, from publish_results: 'delivered' (every platform succeeded), 'partial' (some succeeded, some failed), 'failed' (every platform failed), 'pending' (still in progress). Null when no publish has been attempted. Prefer this over `status` to tell the user whether a post went out. |
| `metadata` | string | No | Caller-defined string key/value pairs set at create/update time — your own analytics dimensions (e.g. media_type, format, style, hook, topic). Marky returns them verbatim and never interprets them. Keys starting with `marky_` are Marky's own (e.g. the copy date below); any you send are dropped. |
| `timezone` | string | No | IANA timezone the `*_local` times are in: the workspace's calendar timezone, or "UTC" when the workspace hasn't set one (see `timezone_source`). |
| `warnings` | array | No | Non-blocking notes about this post's captions, e.g. a call-to-action with no link or phone ('cta_without_contact'), or a caption in a different language from the workspace ('language_mismatch'). Empty when there is nothing to fix. Fix them with update_post before the post publishes; they never block anything. |
| `copy_date` | string | No | The day this caption is about, read from the caption when it was written: an upcoming holiday of the workspace's country, one of the workspace's events, or an explicit date like 'September 25'. Never 'today'/'tomorrow'. Queueing never places the post after this day. Null when the caption names no date. |
| `design_id` | string | No | The design attached to this post, if any. Media is derived from this design; edit it with revise_post_design or create_design + a new link. |
| `created_at` | string | Yes | When the post was created |
| `media_urls` | string | No | Attached media URLs |
| `review_url` | string | Yes | Link to review and approve this draft in the Marky app — show it to the user so they can check the post before it is scheduled. Present while the post is a draft (status NEW or DRAFT); null otherwise (a SCHEDULED post has scheduled_posts_url instead). |
| `updated_at` | string | No | Last update time |
| `business_id` | string | Yes | Workspace this post belongs to |
| `copy_moment` | string | No | The moment the caption names, e.g. 'National Day'. Null for a plain date. |
| `revision_id` | string | No | Id of the undo record this write created. Pass it to revert_revisions to put the record back exactly as it was before this call. Set only on the response to a write; null when you read the record. |
| `published_at` | string | No | When the post was actually published (past timestamp). Null until it publishes. |
| `signature_id` | string | No | The workspace caption ending (signature, e.g. a compliance disclaimer) this post carries, or null. Informational only: its text is already in `caption` and in each platform_overrides caption, once, even when append_caption_suffix was also sent (the suffix is the same ending). Nothing is appended at publish: `caption` is what publishes, except that a social with its own version of the ending gets that version in place of the main one, and a social set to skip it gets none. A caption edit keeps the ending at the end, once; send signature: 'none' on update_post to drop it. |
| `media_details` | string | No | The same attached media as `media_urls`, in the same order, but with each item's description and transcript. Use this when analysing what content performs: the creative is usually the reason a post did well, and a URL alone tells you nothing about what was in it. |
| `cover_media_id` | string | No | Media id of the cover image shown before this post's video plays. Marky generates one from the first frame when you don't send one. |
| `repeating_cron` | string | No | If set, this post repeats: a standard 5-field cron string (e.g. '0 9 * * 1' = every Monday 9am UTC). When it publishes, Marky auto-creates the next occurrence at the next cron time. Null = a one-off post. |
| `creation_method` | string | No | Where the post was created: web, mobile, api (REST with an API key), mcp (an MCP client), max (the built-in assistant), onboarding (the first batch for a new workspace), duplicate, recurrence (the next occurrence of a recurring post), backup_fill (a backup copied into an empty queue slot), or internal. Null for posts created before 2026-10-30. |
| `publish_results` | array | No | Per-platform publish outcomes — one entry per platform this post was sent to. Poll this until every entry has a terminal status (`success` or `failed`) to know publishing is complete. |
| `timezone_source` | string | No | Where `timezone` came from: `business` (the workspace's own setting) or `unset_utc` (no timezone saved yet, so times are shown in UTC). |
| `publish_readiness` | string | No | Returned by queue, schedule and publish: which platforms this post will actually publish to, and which connected accounts won't get it and why. Null on reads. |
| `platform_overrides` | string | No | Per-platform content overrides on this post, if any. Each platform publishes its override fields where set, the post's own fields otherwise. |
| `restrict_publish_to` | string | No | Platforms this post is restricted to. Null means ALL connected platforms. |
| `scheduled_posts_url` | string | Yes | Link to the workspace's scheduled-posts list in the Marky app — where the user sees this post waiting in the lineup. Present once the post is SCHEDULED; null otherwise. |
| `scheduled_publish_time` | string | No | The exact time this post is scheduled to publish (set via `schedule`). Null for drafts, queued posts, and already-published posts. |
| `suggested_publish_time` | string | No | When to publish on `copy_date`: the time the owner set (`suggested_publish_time` on a write), else the workspace's first posting-schedule slot that day, else 10:00 local. Offer it as the post's date; schedule with `at` to use it. |
| `video_cover_timestamp_ms` | string | No | The frame (milliseconds from the start) TikTok uses as its cover. Null when nobody has chosen a cover for this post. |
| `scheduled_publish_time_local` | string | No | The same moment in the workspace's timezone, ready to show a person, e.g. "Wed Sep 23, 6:00 PM MSK". Quote it as-is instead of converting the UTC value. |
| `suggested_publish_time_local` | string | No | The same moment in the workspace's timezone, ready to show a person, e.g. "Wed Sep 23, 6:00 PM MSK". Quote it as-is instead of converting the UTC value. |
| `restrict_publish_to_integration_ids` | string | No | Exact connected accounts (integration ids) this post is restricted to. Null means targeting is platform-level (see restrict_publish_to). |

### Update posting schedule

**Slug:** `MYMARKY_MCP_UPDATE_POSTING_SCHEDULE`

Update posting schedule

Replace a workspace's recurring posting schedule, or pause it.

Send the full set of weekly timeslots in `DAY HH:MM` 24-hour form, either on
the workspace's own clock with `timeslots_local` (e.g. 1 PM local is
`{"timeslots_local": ["MON 13:00", "WED 13:00"]}`) or in UTC with
`timeslots` (`{"timeslots": ["MON 18:00", "WED 18:00"]}`). Send exactly one.
When the owner names a time, use `timeslots_local`: it is the hour they said.
This replaces the whole schedule (it is not a merge). The next publish time is
recomputed automatically from the new slots. Check `timeslots_local` in the
response before telling the owner what was saved. `existing_posts` says what
the change did to posts already scheduled, so they need no re-listing.

**To stop posting without losing anything, send `paused: true`** alongside the
current timeslots. Nothing publishes while a schedule is paused; the slots and
every queued post are kept, and `paused: false` resumes from the next upcoming
slot. Sending an empty `timeslots` is NOT a pause — it is a request to delete
the schedule, and it is refused.

Errors:
    400 invalid_value: The business_id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    422 invalid_request: A timeslot is not in 'DAY HH:MM' 24-hour form, or both `timeslots` and `timeslots_local` were sent.
    422 SCHEDULE_HAS_NO_TIMESLOTS: No timeslots were sent. Send `paused: true` to stop posting instead.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "queue_id": "Queue Id",
  "business_id": "Business Id",
  "timeslots": [
    "string"
  ],
  "jitter_minutes": 1,
  "timeslots_local": [
    "string"
  ],
  "free_slots_local": [
    "string"
  ],
  "taken_slots_local": [
    "string"
  ],
  "open_days_local": [
    "string"
  ],
  "paused": true
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `paused` | string | No | Stop or resume posting without changing the schedule. true pauses it: no queued post publishes, and the timeslots and every queued post are kept exactly as they are. false resumes from the next upcoming slot. Omit it to leave the pause state alone — pausing is a separate axis from the cadence, so editing the slots does not resume a schedule someone deliberately stopped. |
| `timeslots` | string | No | Weekly recurring slots in UTC, 'DAY HH:MM' 24h form, e.g. ['MON 15:00', 'FRI 09:30']. Replaces the whole schedule. These are UTC, NOT the workspace's local time: to use the hour the owner said (e.g. '1pm' in Chicago), send `timeslots_local` instead. Send exactly one of the two. |
| `business_id` | string | Yes | The workspace ID (a UUID from list_workspaces). Named business_id for backward compatibility; workspaces were called businesses. |
| `jitter_minutes` | integer | No | Random +/- minutes applied to each slot (0-720). Defaults to 0. |
| `timeslots_local` | string | No | The same weekly slots on the workspace's own clock, 'DAY HH:MM' 24h form, e.g. ['MON 13:00'] for 1 PM local. Prefer this when the owner names a time: it is converted to UTC for you, and the response's `timeslots_local` echoes it back. Replaces the whole schedule. Send exactly one of `timeslots` / `timeslots_local`. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `paused` | boolean | No | True while the schedule is paused: no queued post publishes, and the timeslots and queued posts are kept as they are. |
| `queue_id` | string | Yes | ID of the publish queue backing this schedule. |
| `timezone` | string | No | IANA timezone the `*_local` times are in: the workspace's calendar timezone, or "UTC" when the workspace hasn't set one (see `timezone_source`). |
| `timeslots` | array | Yes | Weekly recurring slots in 'DAY HH:MM' 24h form, e.g. ['MON 15:00', 'FRI 09:30']. A queued post publishes at the next upcoming slot. |
| `business_id` | string | Yes | Workspace this schedule belongs to. |
| `existing_posts` | string | No | After a schedule change: what it did to the posts already scheduled. Fixed-time posts keep their times; queued posts go out at the new slots in order. |
| `jitter_minutes` | integer | Yes | Random +/- minutes applied to each slot so posts don't fire at the exact same second every day. |
| `open_days_local` | array | No | The next 14 days (from tomorrow) on the workspace's clock that hold no scheduled post; when all 14 have one, the first open days after them (up to 90 days out), e.g. 'Mon Oct 26'. Use one when the free slots run out. Never put a post on a day that is not listed here or in the free slots unless the owner named that day. |
| `timeslots_local` | array | No | `timeslots` on the workspace's clock, same order, e.g. 'MON 15:00' (UTC) is 'MON 18:00' in Moscow. The day can change when the offset crosses midnight. |
| `timezone_source` | string | No | Where `timezone` came from: `business` (the workspace's own setting) or `unset_utc` (no timezone saved yet, so times are shown in UTC). |
| `free_slots_local` | array | No | The next schedule slots no scheduled post holds yet, soonest first, on the workspace's clock, e.g. 'Fri Oct 30, 10:00 AM CDT'. Looks up to 90 days out, so when the next weeks are fully booked these start after them. A slot on a day whose slots are all used by fixed-time posts is not free. At most 14. Pick from these when you choose a time for a post. |
| `next_publish_time` | string | No | When the next queued post is due to publish, computed from the schedule. Null if not yet computed, or if the schedule is paused. |
| `taken_slots_local` | array | No | Times in the next 14 days a scheduled post already holds (fixed-time and queued), soonest first, on the workspace's clock. Another post within 30 minutes of one is a double post. |
| `next_publish_time_local` | string | No | The same moment in the workspace's timezone, ready to show a person, e.g. "Wed Sep 23, 6:00 PM MSK". Quote it as-is instead of converting the UTC value. |

### Update workspace

**Slug:** `MYMARKY_MCP_UPDATE_WORKSPACE`

Update workspace

Update a workspace. Only provided fields are changed.

Changing the website does not rewrite posts that are already made.
`propagation` says how many unpublished posts still carry the old value and
gives the update_posts call that fixes them.

Errors:
    400 invalid_request: No fields were given to update.
    400 invalid_value: The workspace id is not a valid UUID.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    409 NAME_MATCHES_OTHER_WORKSPACE: Another workspace in your org already has that name. Nothing was saved. Send allow_duplicate_name=true to rename anyway.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**200**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "id": "Id",
  "language": "Language",
  "events": [
    {
      "name": "Name",
      "date": "2023-01-01",
      "kind": "Kind"
    }
  ],
  "created_at": "Created At",
  "propagation": [
    {
      "field": "Field",
      "old": "Old",
      "affected_unpublished": 1,
      "requires": "Requires"
    }
  ],
  "warnings": [
    {
      "field": "Field",
      "level": "Level",
      "message": "Message"
    }
  ],
  "field_budgets": [
    {
      "field": "Field",
      "limit": 1,
      "used": 1,
      "remaining": 1
    }
  ]
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Workspace name |
| `clear` | string | No | Fields to empty, e.g. ['website']: the only way to clear one (an empty string is refused). Only when the user asked. |
| `events` | string | No | The workspace's own dated moments: launches, openings, sales, events (e.g. {'name': 'Hope Shop opening', 'date': '2026-10-10', 'kind': 'opening'}). They show up in list_upcoming_moments, and a caption that names one is dated to it. At most 20. REPLACES the whole list: send every event to keep (the workspace's current `events`), or [] to clear. Undo with revert_revisions. |
| `website` | string | No | Workspace website URL |
| `industry` | string | No | Industry |
| `language` | string | No | Content language, as an ISO 639-1 code (e.g. 'en') or English name (e.g. 'English'). Both accepted. |
| `strategy` | string | No | Social strategy doc as MARKDOWN — the goal we're working toward, who the posts are for, the brand voice, what we're trying right now, what we won't do, cadence and mix, plus a running log of experiments and what we learned. This is the layer an agency revisits each quarter. Write plain markdown (## headings, - bullets, &#124; tables &#124;); the app renders it in a rich-text editor, so no HTML tags — they show up as literal text and spend the size budget without adding meaning. Content pillars, caption rules and calls to action go here too. How graphics look goes in design_style. SIZE: 6000 characters, and writing this field REPLACES the whole doc. A longer value is still saved, but it comes back with a warning you have to act on in the same turn — so plan the doc to the cap BEFORE you compose it, rather than writing long and compacting after. The response's `field_budgets` entry for this field tells you exactly how much room is left. |
| `timezone` | string | No | The workspace's IANA timezone, e.g. 'Europe/Warsaw'. Posting-schedule slots and every `*_local` time use it, and holidays in moments come from its country. Existing schedule slots keep the moment they publish at; re-send the posting schedule to set slots on the new clock. |
| `on_camera` | string | No | Whether the owner will be on camera. null = not answered yet: ask once and save it. With 'no', never plan posts that need them on camera. |
| `description` | string | No | Workspace description |
| `design_style` | string | No | The brand's whole visual direction as markdown: the place for its colours (exact hex codes, which one leads), fonts, how type is set, logo placement and when the logo appears, imagery and whitespace. Prose at the top holds the invariants; a `## Treatments` table underneath lists named looks, one picked per post. SCOPE: it is added to the prompt for AI-GENERATED images. A template design takes only the colours it names (two or more), not its fonts or treatments, so it will not otherwise change a batch from templates. SIZE: 5000 characters, and writing this field REPLACES the whole value. Plan to the cap before composing; the response's `field_budgets` entry tells you how much room is left. |
| `workspace_id` | string | Yes | The workspace ID (a UUID from list_workspaces). |
| `weekly_time_budget` | string | No | How much time the owner can give social media each week. null = not answered yet: ask the owner once when planning posts, then save it. |
| `allow_duplicate_name` | boolean | No | Set true to rename this workspace to a name another workspace in your org already has. Without it that rename is refused with 409 NAME_MATCHES_OTHER_WORKSPACE, because it usually means the content belongs in that other workspace instead. |
| `brand_style_grid_url` | string | No | Image URL of four sample posts in the saved look, written by /brand-setup. |
| `low_scheduled_enabled` | string | No | Deprecated, no effect. Notification emails are set per user, not per workspace. |
| `post_published_enabled` | string | No | Deprecated, no effect. Notification emails are set per user, not per workspace. |
| `failed_to_publish_enabled` | string | No | Deprecated, no effect. Notification emails are set per user, not per workspace. |
| `post_stats_digest_enabled` | string | No | Deprecated, no effect. Notification emails are set per user, not per workspace. |
| `platform_writing_instructions` | string | No | MERGE-patch of the per-platform caption-writing instructions: only the keys you send change (e.g. {'facebook': 'Casual, ask a question.'} updates facebook and leaves every other platform alone). Send an EMPTY STRING to reset that platform to defaults. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Workspace ID |
| `name` | string | No | Workspace name |
| `events` | array | No | The workspace's own dated moments: launches, openings, sales, events (e.g. {'name': 'Hope Shop opening', 'date': '2026-10-10', 'kind': 'opening'}). They show up in list_upcoming_moments, and a caption that names one is dated to it. At most 20. |
| `website` | string | No | Workspace website URL |
| `industry` | string | No | Industry category |
| `language` | string | No | Content language as an ISO 639-1 code (e.g. 'en', 'fr', 'es'). |
| `strategy` | string | No | Social strategy doc as MARKDOWN — the goal we're working toward, who the posts are for, the brand voice, what we're trying right now, what we won't do, cadence and mix, plus a running log of experiments and what we learned. This is the layer an agency revisits each quarter. Write plain markdown (## headings, - bullets, &#124; tables &#124;); the app renders it in a rich-text editor, so no HTML tags — they show up as literal text and spend the size budget without adding meaning. Content pillars, caption rules and calls to action go here too. How graphics look goes in design_style. SIZE: 6000 characters, and writing this field REPLACES the whole doc. A longer value is still saved, but it comes back with a warning you have to act on in the same turn — so plan the doc to the cap BEFORE you compose it, rather than writing long and compacting after. The response's `field_budgets` entry for this field tells you exactly how much room is left. |
| `timezone` | string | No | The workspace's IANA timezone (e.g. 'Europe/Warsaw'). Posting-schedule slots and `*_local` times use it, and holidays in moments come from its country. Null when unset: times are then UTC and holidays default to the US. Set with update_workspace. |
| `warnings` | array | Yes | Non-blocking notes about fields that need attention, empty when there is nothing to do. Act on them in the same turn you see them — that is while you still have the content in context. |
| `on_camera` | string | No | Whether the owner will be on camera. null = not answered yet: ask once and save it. With 'no', never plan posts that need them on camera. |
| `created_at` | string | Yes | When the workspace was created |
| `updated_at` | string | No | Last update time |
| `description` | string | No | Workspace description |
| `propagation` | array | No | One entry per changed website that unpublished posts still carry. affected_unpublished says how many. `suggested` is the exact update_posts call that fixes them: tell the user the count and offer it. Empty when nothing needs follow-up. |
| `revision_id` | string | No | Id of the undo record this write created. Pass it to revert_revisions to put the record back exactly as it was before this call. Set only on the response to a write; null when you read the record. |
| `design_style` | string | No | The brand's whole visual direction as markdown: the place for its colours (exact hex codes, which one leads), fonts, how type is set, logo placement and when the logo appears, imagery and whitespace. Prose at the top holds the invariants; a `## Treatments` table underneath lists named looks, one picked per post. SCOPE: it is added to the prompt for AI-GENERATED images. A template design takes only the colours it names (two or more), not its fonts or treatments, so it will not otherwise change a batch from templates. SIZE: 5000 characters, and writing this field REPLACES the whole value. Plan to the cap before composing; the response's `field_budgets` entry tells you how much room is left. |
| `field_budgets` | array | Yes | Size ceilings for the fields that get pasted into the prompt for every generated post. READ THIS BEFORE COMPOSING a value for one of these fields — `remaining` is the room you have, and a budgeted field is REPLACED whole on write, so `limit` is the real target. Over-budget writes are accepted, not rejected, but they cost a full rewrite to fix. |
| `weekly_time_budget` | string | No | How much time the owner can give social media each week. null = not answered yet: ask the owner once when planning posts, then save it. |
| `design_style_source` | string | No | Where `design_style` came from. `website`: extracted automatically from the workspace's website, so treat it as a starting guess and prefer the user's own brand guidelines when they differ. `user`: set by the user (in the app, or through update_workspace or create_workspace). A website re-extraction never replaces a `user` value. Null when the value predates this field or was never set. |
| `brand_style_grid_url` | string | No | Image URL of four sample posts in the saved look, written by /brand-setup. |
| `design_style_updated_at` | string | No | When `design_style` last changed. Null if it hasn't changed since this field was added. |
| `platform_writing_instructions` | string | No | The user's customized per-platform caption-writing instructions (empty when none set). Keys are canonical platform names (e.g. 'instagram', 'linkedIn') plus 'common' (applies to all platforms). Follow the matching entry when writing a caption or platform_overrides caption — the user's instructions ALWAYS outrank generic platform best practices. Update via PATCH (merge semantics). Returned by get_workspace only, not the list endpoint. |

### Upload media from reference

**Slug:** `MYMARKY_MCP_UPLOAD_MEDIA_FROM_REFERENCE`

Upload media from a host file reference

Add a file to a workspace's MEDIA library from a host-issued file reference. The `file` argument must carry a real host-issued `download_url` (for example, one an MCP host such as ChatGPT fills from a user attachment or generated image); Marky downloads the bytes server-side and stores a durable copy. The returned `original_url` is the Marky-hosted link to use with `create_post`. Without such a reference, use `upload_media_from_url` for media that has an http(s) URL, or `create_media_upload` / the base64 upload tools for local files.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | object | Yes | A reference to a file your agent platform holds (for example a ChatGPT file).  Marky downloads `download_url` server-side, so the file never has to pass through the model as raw bytes. See `upload_media_from_reference`. |
| `alt_text` | string | No | Optional hint about the media: an address, a name, anything the picture can't show. Stored as `source_alt_text`; `alt_text` is written by looking at the image itself shortly after upload. |
| `business_id` | string | No | The workspace to upload into, under its old field name. Deprecated: send workspace_id instead. |
| `workspace_id` | string | No | UUID of the workspace to upload the media into. Get it from `list_workspaces`. Must belong to the API key's org. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Media ID |
| `type` | string | No | Media type: image, video, or audio |
| `width` | string | No | Width in pixels |
| `height` | string | No | Height in pixels |
| `hidden` | boolean | Yes | True when search leaves this file out unless include_hidden=true. |
| `source` | string | No | Media origin (e.g. upload, unsplash) |
| `alt_text` | string | No | Alt text description |
| `warnings` | array | Yes | Non-blocking notes about this media, empty when there is nothing to say. `low_resolution` means the long edge is under 1080px, so it will look soft on most feeds; tell the user and prefer a larger copy. |
| `created_at` | string | Yes | When the media was uploaded |
| `business_id` | string | Yes | Workspace this media belongs to |
| `original_url` | string | No | Media URL |
| `hidden_reason` | string | No | Why search hides this file, null when it does not: 'graphic' has words on it, 'low_resolution' is too small, 'switched_off' is off in the Library, 'not_in_library' was never added to it (API uploads start out of it). |
| `source_alt_text` | string | No | The alt_text you sent, kept as a hint. `alt_text` is written a few seconds after upload by looking at the image itself, so it is empty in this response. Search results show that description. |

### Upload media from url

**Slug:** `MYMARKY_MCP_UPLOAD_MEDIA_FROM_URL`

Upload media (from URL)

Add an image or video to a workspace's MEDIA library by giving Marky a URL to fetch.

PREFER THIS whenever the media has any http(s) URL (a generated-image output URL,
a web image, a CDN or file-host link). It is the simplest, most reliable path: Marky
downloads it server-side, so it works even when your runtime can't make outbound
requests. Only reach for `create_media_upload` (a local file AND your runtime has
outbound network) or `upload_media_from_reference` (ChatGPT only, auto-filled) when
you do NOT have a URL. Pass the http(s) URL; we store a durable copy. Private and
internal addresses (and redirects to them) are rejected.

Send an `Idempotency-Key` header to make a retry safe (a resend that fetches
the same bytes returns the original media asset instead of a duplicate).

Supported formats: JPEG, PNG, WebP, GIF, MP4, MOV. Images are automatically
optimized. Max size: 20 MB for images, 500 MB for video.

Errors:
    400 invalid_value: The business_id is not a valid UUID, the URL is not fetchable (bad scheme, private address, HTTP error), or the content is not a supported image or video.
    401 authentication_required: API key or token is missing, invalid, or revoked.
    403 permission_denied: Your plan does not include API access, or this workspace is not in your org.
    404 resource_not_found: No workspace with that ID exists.
    413 FILE_TOO_LARGE: The fetched media is larger than the size limit.
    422 IDEMPOTENCY_KEY_CONFLICT: The Idempotency-Key was reused with a different body.
    429 rate_limit_exceeded: You sent too many requests this minute.

### Responses:

**201**: Successful Response (Success Response)
Content-Type: application/json

**Example Response:**
```json
{
  "id": "Id",
  "business_id": "Business Id",
  "created_at": "Created At",
  "hidden": true,
  "warnings": [
    {
      "field": "Field",
      "level": "Level",
      "message": "Message"
    }
  ]
}
```

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | Public http(s) URL of the image or video to fetch. Private and internal addresses are rejected. Max size: 20 MB for images, 500 MB for video. |
| `alt_text` | string | No | Optional hint about the media: an address, a name, anything the picture can't show. Stored as `source_alt_text`; `alt_text` is written by looking at the image itself shortly after upload. |
| `filename` | string | No | Optional original filename (e.g. `clip.mp4`). Helps detect video when the URL path and server content type don't make it obvious. |
| `business_id` | string | No | The workspace to upload into, under its old field name. Deprecated: send workspace_id instead. |
| `workspace_id` | string | No | UUID of the workspace to upload the media into. Get it from `list_workspaces`. Must belong to the API key's org. |
| `idempotency_key` | string | No | Makes a retry safe. Send a unique value (e.g. a UUID); if the call times out, resend it with the same key and body and you get the original result back instead of a duplicate. Kept 24h. The same key with a different body is a 422 IDEMPOTENCY_KEY_CONFLICT. Same as the Idempotency-Key header, which wins if both are sent. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | Yes | Media ID |
| `type` | string | No | Media type: image, video, or audio |
| `width` | string | No | Width in pixels |
| `height` | string | No | Height in pixels |
| `hidden` | boolean | Yes | True when search leaves this file out unless include_hidden=true. |
| `source` | string | No | Media origin (e.g. upload, unsplash) |
| `alt_text` | string | No | Alt text description |
| `warnings` | array | Yes | Non-blocking notes about this media, empty when there is nothing to say. `low_resolution` means the long edge is under 1080px, so it will look soft on most feeds; tell the user and prefer a larger copy. |
| `created_at` | string | Yes | When the media was uploaded |
| `business_id` | string | Yes | Workspace this media belongs to |
| `original_url` | string | No | Media URL |
| `hidden_reason` | string | No | Why search hides this file, null when it does not: 'graphic' has words on it, 'low_resolution' is too small, 'switched_off' is off in the Library, 'not_in_library' was never added to it (API uploads start out of it). |
| `source_alt_text` | string | No | The alt_text you sent, kept as a hint. `alt_text` is written a few seconds after upload by looking at the image itself, so it is empty in this response. Search results show that description. |
