# Docs - Guides - **Getting started** - [Welcome to Paragraph](/): Paragraph is a workspace that helps your company create and distribute content, with agents for the work you repeat. - [Quickstart](/getting-started/quickstart): Sign up, set up your workspace, and publish your first content. - [Workspace tour](/getting-started/workspace-tour): A quick tour of the sidebar in your Paragraph workspace. - [Import Web Articles and subscribers](/getting-started/import-your-publication): Bring your Web Articles and subscribers to Paragraph from WordPress, Substack, or another platform. - **Agents** - [Agents](/agents): Named agents that run your company's recurring content work. They draft, you review, and nothing publishes on its own. - [Changelog](/agents/changelog): Turn what your team merges on GitHub into Web Articles, social posts, and video. - [SEO/AEO](/agents/seo-aeo): Cited articles that answer what your buyers search for and ask AI assistants. - [Thought Leadership](/agents/thought-leadership): X and LinkedIn posts in your voice, from what your team and your field are saying. - **Distribute** - [Distribution](/distribute): Turn each piece of content into X Posts, LinkedIn posts, X Articles, video, and emails, then schedule them on the Calendar. - [Calendar](/distribute/calendar): See when each finished piece goes out, approve it, or move it. - [X Articles](/distribute/x-articles): Publish a long-form Article on X from Paragraph, review it before it goes out, and know which formatting carries over. - [Newsletters](/distribute/newsletters): Send Web Articles to your subscribers by email, with deliverability handled for you. - **Paragraph** - [Meet Paragraph](/paragraph): Paragraph is the always-on chat that knows your company. It creates and distributes your content, and nothing public goes out without your approval. - [Chat with Paragraph](/paragraph/chat): Ask Paragraph to draft, research, and distribute content from a conversation in your workspace. - [What to ask in chat](/paragraph/chat-prompts): Short example prompts for drafting, images, videos, agent runs, reviews, and publishing in Paragraph. - [Voice and brand](/paragraph/voice-and-memory): Teach Paragraph how your company sounds and looks, so every draft, post, and video fits your brand. - [Connections](/paragraph/connections): Connect X, LinkedIn, Telegram, Slack, and other tools so Paragraph can post, chat, and pull context from where you work. - [Automations](/paragraph/automations): Create jobs that run before publishing, after an event, or when you start them, with clear limits on what they can do. - [Inbox](/paragraph/inbox): An optional view of what's waiting on you and what Paragraph and your agents are running today. - **Editor and website** - [Editor](/publishing/editor): Write, format, and publish Web Articles in the Paragraph editor. - [Your website](/publishing/website): Where readers find your Web Articles, with a default design, a custom site Paragraph builds, or a site you host yourself. - [Custom domains](/publishing/custom-domains): Put your website on a domain you own instead of its paragraph.com address. - **Audience** - [Subscribers](/audience/subscribers): Manage the people who receive your company's emails, organize them into segments, and import or export them. - [Subscriber lifecycle emails](/audience/lifecycle-emails): Send automated emails when people subscribe or unsubscribe. - [Analytics](/audience/analytics): See how your site, newsletter, and social posts perform, in the app or by asking Paragraph. - **Account and billing** - [Manage your account](/account/manage-account): Account settings, email preferences, exporting subscribers, and deleting a publication. - [Plans and credits](/account/plans-and-credits): How credits work and where to manage your plan. - Developers - **Get started** - [Build with Paragraph](/developers): Create and manage posts, drafts, and subscribers from your own code with the REST API, TypeScript SDK, CLI, MCP server, and agent skills. - [Agent setup](/developers/agent-setup): Steps for an AI agent to connect Paragraph through MCP, the CLI, or the REST API, written for the agent to follow. - **Tools** - [TypeScript SDK](/developers/sdk): Create posts, upload drafts, and read publication data from TypeScript with full type safety. - [CLI](/developers/cli): Manage posts, drafts, publications, and subscribers from the command line. Built for people, agents, and CI. - [MCP server](/developers/mcp): Connect Claude, Cursor, and other AI tools to your Paragraph publication over the Model Context Protocol. - [Agent skills](/developers/agent-skills): Installable skills that teach any AI agent how to use the Paragraph API, SDK, CLI, and MCP server. - **API guides** - [Drafted content](/developers/content): Upload X Posts, LinkedIn posts, newsletters, and X Articles to a publication's library over the REST API. - [Agent runs](/developers/agents): Start an agent run from your own code over the REST API and poll it for the drafts. - **REST API** - API reference - [API reference](/developers/api-reference): Every public REST API endpoint, with parameters, response shapes, and request examples. - Publications - [Get publication by ID](/developers/api-reference/publications/get-publication-by-id): Retrieve detailed information about a specific publication - [Update publication settings](/developers/api-reference/publications/update-publication-settings): Update settings for a publication. The publication is identified by the API key provided in the Authorization header, and the path `:publicationId` must match the publication that owns the API key. **Behavior:** - Only provided fields are updated; omitted fields remain unchanged - Unknown or removed settings are rejected. The legacy `disableHighlights` setting is no longer supported and must be removed from requests. - Set `featuredPost` to `"latest"`, `"popular"`, `"disabled"`, or a specific post ID. The post must belong to this publication. - `pinnedPostIds` replaces the existing pinned list. Pinned posts are hidden from the regular feed (they show in their own section), and unpinned posts return to the feed. - `emailNotifications` is merged onto the current settings; only the toggles you send are changed. - [Get publication by slug](/developers/api-reference/publications/get-publication-by-slug): Retrieve publication details using its URL-friendly slug. Optionally include an @ before the slug. - [Get publication by custom domain](/developers/api-reference/publications/get-publication-by-custom-domain): Retrieve publication details using its custom domain - [Get subscriber count](/developers/api-reference/publications/get-subscriber-count): Retrieve the total number of subscribers for a publication - Posts - [Get posts feed](/developers/api-reference/posts/get-posts-feed): Retrieve a curated, paginated list of posts. - [Get posts by tag](/developers/api-reference/posts/get-posts-by-tag): Retrieve a paginated list of posts with a specific tag, sorted by publish date (newest first) - [Get posts in a publication](/developers/api-reference/posts/get-posts-in-a-publication): Retrieve a paginated list of published posts from a publication - [Get post by ID](/developers/api-reference/posts/get-post-by-id): Retrieve detailed information about a specific post - [Delete a post](/developers/api-reference/posts/delete-a-post): Permanently delete a post from your publication. The publication is identified by the API key provided in the Authorization header. **Warning:** This action is irreversible. The post and all related data (notifications and drafts) will be permanently deleted. - [Update a post by ID](/developers/api-reference/posts/update-a-post-by-id): Update an existing post in your publication. The publication is identified by the API key provided in the Authorization header. **Behavior:** - Only provided fields are updated; omitted fields remain unchanged - When `markdown` is provided, it replaces the full content. Rich blocks (embeds, buttons, callouts) created in the editor will be lost — the markdown to editor conversion is lossy for blocks without a markdown equivalent - Set `status` to `"published"` to publish a draft, `"draft"` to unpublish, or `"archived"` to archive - When editing an already-live post that should remain live, include `status: "published"` in the update and verify the returned post status before telling the writer it is live - Set `scheduledAt` (Unix timestamp in milliseconds) to schedule a draft's first-publish for a future time. Must be in the future and at most 30 days out. Only valid for posts that haven't been published or already scheduled. Pass `scheduledAt: null` to cancel a previously scheduled publish (or to reschedule: cancel first, then schedule again with the new time). Set `sendNewsletter: true` alongside `scheduledAt` to email subscribers when the post publishes. - Set `imageUrl` to update the post's cover/hero image; the URL is fetched, re-hosted, and a placeholder is generated. Pass `clearImage: true` to remove the existing cover. - Set `imageAlt` to describe the cover image for screen readers. It renders everywhere the cover appears, so set it whenever you set `imageUrl`. - [Get post by publication ID and post slug](/developers/api-reference/posts/get-post-by-publication-id-and-post-slug): Retrieve a post using its publication ID and its URL-friendly slug - [Get post by publication slug and post slug](/developers/api-reference/posts/get-post-by-publication-slug-and-post-slug): Retrieve a post using its publication's slug and the post's slug. This is useful for building user-facing URLs. - [List your posts](/developers/api-reference/posts/list-your-posts): Retrieve a paginated list of posts from your publication. The publication is identified by the API key provided in the Authorization header. Use the `status` parameter to filter by post status (published, draft, scheduled, or archived). Defaults to published. - [Create a new post](/developers/api-reference/posts/create-a-new-post): Create a new post in your publication. The publication is identified by the API key provided in the Authorization header. **Requirements:** - `title` field is required - Provide content as either `markdown` (converted to TipTap JSON) OR `bodyJson` (a Tiptap document for content with buttons/linked images) — exactly one is required, not both **Behavior:** - The post will be created as published by default. Set `status` to `"draft"` to create a draft instead - If `sendNewsletter` is true, an email will be sent to all subscribers when the post publishes - Set `scheduledAt` (Unix timestamp in milliseconds) to schedule first-publish for a future time. Must be in the future and at most 30 days out. Scheduling cannot be combined with `status: "draft"`. When scheduled, the response `status` is `"scheduled"` and the post publishes (plus sends newsletter, if requested) at the scheduled time. - [Delete a post by slug](/developers/api-reference/posts/delete-a-post-by-slug): Permanently delete a post using its URL slug. The publication is identified by the API key provided in the Authorization header. **Warning:** This action is irreversible. The post and all related data (notifications and drafts) will be permanently deleted. - [Update a post by slug](/developers/api-reference/posts/update-a-post-by-slug): Update an existing post using its URL slug. The publication is identified by the API key provided in the Authorization header. **Behavior:** - Only provided fields are updated; omitted fields remain unchanged - When `markdown` is provided, it replaces the full content. Rich blocks (embeds, buttons, callouts) created in the editor will be lost - Set `status` to `"published"` to publish a draft, `"draft"` to unpublish, or `"archived"` to archive - When editing an already-live post that should remain live, include `status: "published"` in the update and verify the returned post status before telling the writer it is live - Set `scheduledAt` (Unix timestamp in milliseconds) to schedule a draft's first-publish for a future time. Must be in the future and at most 30 days out. Only valid for posts that haven't been published or already scheduled. Pass `scheduledAt: null` to cancel a previously scheduled publish (or to reschedule: cancel first, then schedule again with the new time). Set `sendNewsletter: true` alongside `scheduledAt` to email subscribers when the post publishes. - Set `imageUrl` to update the post's cover/hero image; the URL is fetched, re-hosted, and a placeholder is generated. Pass `clearImage: true` to remove the existing cover. - Set `imageAlt` to describe the cover image for screen readers. It renders everywhere the cover appears, so set it whenever you set `imageUrl`. - [Send a test newsletter email](/developers/api-reference/posts/send-a-test-newsletter-email): Sends a test newsletter email for the specified draft post to the publication owner's email address. Useful for previewing how a post will look as a newsletter before publishing. Only works for draft posts. - Content - [List your drafted content](/developers/api-reference/content/list-your-drafted-content): Retrieve a paginated list of the short-form content in your publication's library, newest activity first. The publication is identified by the API key. Filter with `kind` and `status`. `status` defaults to `all`, which is everything except the pieces you've archived — a piece that was delivered stays listed whether or not it was archived afterwards. Bodies aren't included; fetch a single piece to read one. - [Create a draft](/developers/api-reference/content/create-a-draft): Save a finished piece of short-form content — an X post or thread, a LinkedIn post, a one-off email, or an X Article — to your publication's library. **What this does:** - The piece is saved as a draft and shows up in the Paragraph app under Content, where you can edit it and send it. - Nothing is posted, emailed, or scheduled. Sending happens in the app, so a draft you upload can't go out without you. - Long-form Paragraph posts are a different resource — use `POST /v1/posts` for those. **The body:** - `body` carries the artifact itself, in the shape its kind uses (see the field descriptions below). - It's validated the same way the Paragraph app validates it, so an X thread over 280 characters an entry, or an Article missing its headline, comes back with the same explanation you'd see in the app. - Drafts created here are text-only. Media has to be uploaded to X or LinkedIn first, which the API can't do yet. **Grouping:** - Pass `bucketId` to group this piece with the post it was made from, so the writer sees them together as one row under Content. Get the id with `POST /v1/posts/{postId}/bucket`. - Unknown fields are rejected rather than ignored, so a misspelled key comes back as a 400 instead of a draft that quietly isn't grouped. - [Get a piece of content](/developers/api-reference/content/get-a-piece-of-content): Retrieve one piece of drafted content with its body. Read it before editing so you rewrite what's actually saved — the draft may have changed in the app. - [Edit a piece of content](/developers/api-reference/content/edit-a-piece-of-content): Rename a piece of content, replace its body, or both. **Replacement, not a merge:** `body` replaces the artifact entirely, in the same shape the kind takes on create. Send the whole thing, not just the part that changed. Media already attached to the draft is the one exception — you can't send it back, so it's carried over rather than dropped. **Scheduled pieces are locked:** if a send is queued or already running for this piece, its words go out exactly as written, so an edit to `body` is refused with an explanation. Cancel the schedule in the app first. Renaming is always allowed — a title isn't published anywhere. **Grouping:** `bucketId` files this piece with the post it was made from. A piece already grouped somewhere else is refused with a 409 rather than moved — ungroup it in the app first. - [Archive a piece of content](/developers/api-reference/content/archive-a-piece-of-content): Put a piece away without deleting it. Archived content drops out of the default list and out of the writer's Content surface, and `POST /v1/content/{contentId}/restore` brings it back. Any suggestion still proposing the piece is dismissed along with it, so nothing is left offering to send something you've filed away. A piece with a send already queued can't be archived — cancel the schedule first. - [Restore an archived piece](/developers/api-reference/content/restore-an-archived-piece): Bring an archived piece back into your library. Suggestions dismissed when it was archived stay dismissed — you get the draft back, not the to-do items telling you to ship it. - Content groups - [List content groups](/developers/api-reference/buckets/list-content-groups): Retrieve the content groups in your publication, most recently active first. The publication is identified by the API key. A group ("bucket") is one identity for a post and everything made out of it — the post, the X thread drawn from it, the LinkedIn version, the newsletter. It's what the writer sees as a single stacked row under Content. Each group lists its members in display order, with the post it was seeded from first. Bodies aren't included; fetch the member with `GET /v1/content/{id}` or `GET /v1/posts/{id}` to read one. - [Get a content group](/developers/api-reference/buckets/get-a-content-group): Retrieve one content group with its members. Read it before adding to it, so you don't draft a version that already exists. - [Get a post's content group](/developers/api-reference/buckets/get-a-posts-content-group): Find the group a post belongs to, without creating one. Answers `null` when nothing has been made from the post yet. To attach something, call `POST /v1/posts/{postId}/bucket` instead, which creates the group on first use. A post you've reopened for editing resolves to the live post's group, so a draft id and its published id give the same answer. - [Create a post's content group](/developers/api-reference/buckets/create-a-posts-content-group): Get the group a post belongs to, creating it if this is the first thing made from that post. This is the first call in a repurposing pipeline: seed the group from the post, then pass the id as `bucketId` on every `POST /v1/content` derived from it. The writer then sees the post and its versions as one row under Content instead of unrelated drafts. Safe to call repeatedly — a post that already has a group gets the same id back, and nothing is written. - Subscribers - [Import subscribers from CSV](/developers/api-reference/subscribers/import-subscribers-from-csv): Import subscribers from a CSV file into your publication. The publication is identified by the API key provided in the Authorization header. **File Requirements:** - Maximum file size: 10MB - Content type: text/csv **Supported CSV Columns:** - Email: `email` or `subscriberEmail` (case-insensitive) - Wallet: `wallet_address` (case-insensitive) - Created date: `created_at`, `subscription date`, `created`, or `createdAt` (case-insensitive, optional) At least one of email or wallet_address must be present for each row. Rows with neither valid email nor valid wallet address will be skipped. - [List subscribers](/developers/api-reference/subscribers/list-subscribers): Retrieve a paginated list of subscribers for your publication. The publication is identified by the API key provided in the Authorization header. **Response:** - Returns subscriber email and/or wallet address - Only active subscribers are returned - Results are ordered by subscription date (newest first) - [Add a new subscriber](/developers/api-reference/subscribers/add-a-new-subscriber): Add a new subscriber to your publication. The publication is identified by the API key provided in the Authorization header. **Requirements:** - At least one of `email` or `wallet` must be provided - If both are provided, the subscriber will be associated with both credentials **Behavior:** - If the subscriber already exists (by email or wallet), they will not be duplicated - [Remove a subscriber](/developers/api-reference/subscribers/remove-a-subscriber): Remove a subscriber from your publication. The publication is identified by the API key provided in the Authorization header. Identify the subscriber by email, wallet, or both. **Requirements:** - At least one of `email` or `wallet` must be provided - If both are provided, they must resolve to the same subscriber **Behavior:** - The subscription is hard-deleted, mirroring the dashboard's "remove subscriber" action - Emails - [Send a custom email](/developers/api-reference/emails/send-a-custom-email): Send an email from your publication to a list of recipient addresses. **Eligibility:** - Publications must be approved by Paragraph before they can send custom emails. Ineligible publications receive a 403. Eligibility is managed by Paragraph and is not user-configurable. **Per-recipient filtering:** - Malformed addresses and known disposable domains are skipped. - Addresses that previously unsubscribed from this publication are skipped as `suppressed`. - Skipped recipients are returned in the response; nothing else is delivered to them. **Delivery:** - `body` is treated as Markdown and rendered to HTML server-side. - Each recipient receives the email individually (not as a BCC blast) with a mandatory unsubscribe footer. - Sends are queued asynchronously; a 200 response means recipients were accepted, not delivered. **Caps:** - Maximum of 10,000 addresses per call (request-level sanity check). - Analytics - [Run an analytics SQL query](/developers/api-reference/analytics/run-an-analytics-sql-query): Execute a read-only SQL query against the analytics schema, scoped to your publication. **Auth:** Requires an API key. Queries run as the publication that owns the API key; Row-Level Security guarantees that only that publication's rows are visible even if the SQL is unscoped. **SQL requirements:** - `SELECT` or `WITH` (CTE) statements only - Reference tables unprefixed (e.g. `FROM posts`) — the `analytics` schema is the default `search_path` - No semicolons, no writes, no DDL, no superuser functions - Hard limit of 10,000 rows; anything over is truncated and `truncated: true` is returned - 30-second statement timeout **Discovering the schema:** call `GET /v1/analytics/schema` for column metadata. Common queries: open rate, subscriber count, top posts by views, engagement over time, click-through rate. For raw post-scoped tables, join through `posts.draft_of` to roll draft/version rows up to the canonical published post. - [Describe the analytics schema](/developers/api-reference/analytics/describe-the-analytics-schema): Returns column metadata for every table and view in the analytics schema. Use this to discover available tables/columns before writing an analytics query. - Agents - [List agents](/developers/api-reference/agents/list-agents): Every agent available to your publication, what it can be configured with, and how yours is set up. Read this rather than hard-coding field keys: an agent describes its own settings, so a client built from this response keeps working as agents change. - [Get an agent](/developers/api-reference/agents/get-an-agent): One agent, what it can be configured with, and how yours is set up. - [Set an agent up](/developers/api-reference/agents/set-an-agent-up): Creates the agent's setup, or replaces it. This is a full replacement rather than a merge, so send every field you want kept. It changes the setup your team sees in the app, and the next run uses it. - [List recent runs](/developers/api-reference/agents/list-recent-runs): This agent's runs, newest first. - [Start an agent run](/developers/api-reference/agents/start-an-agent-run): Starts a run of an agent your publication has already set up, and returns straight away. A run takes several minutes, so poll `GET /v1/agents/{agentKey}/runs/{runId}` for the drafts. Nothing publishes: a run produces drafts for someone to review in the app. - [Get an agent run](/developers/api-reference/agents/get-an-agent-run): Reports where a run has got to, and the drafts it has produced. - Account - [Get authenticated publication](/developers/api-reference/me/get-authenticated-publication): Returns the publication associated with the API key used in the request. Useful for verifying your API key and retrieving your publication details. - Users - [Get user by ID](/developers/api-reference/users/get-user-by-id): Retrieve detailed information about a specific user