Skip to content
ShapelessAI← Back
Publishing

Post to a set of accounts

Group connected accounts ("Launch", "Personal", "Client A") and post to a whole group in one call: the group carries defaults every post to it starts from (text, first comment, tags, a signature, per-platform settings), the post's own fields win, and every account's platform rules are checked before anything is written.

View as Markdown

Accounts that cannot take a post (tracked by handle, or waiting to reconnect) are named in the answer, never silently dropped. An account sits in one group at most; the same groups colour the calendar.

Ask in plain words

  • "post this to my launch set"
  • "make a group of my company accounts"
  • "every post to the client group gets their hashtags"
  • "post to all my accounts except personal"

From an agent host (MCP)

Server: https://shapelessai.com/mcp (add it to your host).

  • groups_save: A group of connected accounts is also a posting set ("post to my launch set"): create one (no id), rename, recolor or set its defaults (id; defaults {postText?, firstComment?, tags?, signature?, settings?: {<platform>: {...}}}, null clears them), put accounts in it (connectionIds; an account sits in one group at most), or delete it (id, delete: true; its accounts become ungrouped). Needs the write scope.

From code (REST)

Bearer API key with the scope each call names (auth, OpenAPI).

  • GET /api/groups (read scope): Account groups, each with its posting defaults. A group is also a posting set: POST /api/posts {group} posts to every account in it.
  • POST /api/groups (write scope): Create a group: {name, color?, defaults?}.
  • PATCH /api/groups (write scope): Reorder groups: {orderedIds}.
  • PATCH /api/groups/{id} (write scope): Rename, recolor, or set the posting defaults of a group: {name?, color?, defaults?}; defaults null clears them.
  • DELETE /api/groups/{id} (write scope): Delete a group; its accounts become ungrouped.

The body

POST /api/groups:

  • name string, required
  • color string
  • defaults object

PATCH /api/groups/{id}:

  • name string
  • color string
  • defaults object

From a terminal (CLI)

  • shapeless groups list
  • shapeless groups create
  • shapeless groups edit
  • shapeless groups add
  • shapeless groups remove
  • shapeless groups delete

Example

curl -s https://shapelessai.com/api/posts -H "Authorization: Bearer $SHAPELESS_API_KEY" -H "Content-Type: application/json" -d '{"group":"Launch","postText":"We are live.","queue":true}'
// MCP tool call
{ "tool": "groups_save", "arguments": { "name": "Launch", "connectionIds": ["<id>", "<id>"], "defaults": { "tags": ["launch"] } } }
shapeless posts create --group Launch --text "We are live." --queue

Refusals

StatusMeaning
400No name, a bad defaults object, or 24 groups already.
400Nothing to change or a bad field.
404No such group.

Where else

More in Publishing

Publish a post · Tag posts and sign them · Share a post preview · Get post events by webhook · Attach a sound to an Instagram Reel · Review the queue · Set the posting schedule · Answer comments and work the inbox

Every capability · Docs · /llms.txt