Menú

Referencia de la API · Social Planner

Planificación mensual

social_planner · planning · 2 operaciones

POST/v1/social-planner/planning/share

Email the month's planning

social_planner.planning.share

EscrituraDesde 2026-11-01

SENDS an email (Amazon SES) with the Social Planner grid of a month (month_key YYYY-MM): every post of the month with date, networks, format, status, labels, text and thumbnail, plus a status and network summary; with format pdf the month's PDF is attached too. All recipients go in one email (to up to 20, cc up to 20). sender_id picks the From among the senders this person can use (the organization's domain senders; none or __system__ = MB Suite); 403 sender_not_allowed otherwise. The send is recorded in the planning share history. With format pdf, 503 pdf_unavailable when the PDF service is not available (nothing is sent). If Amazon SES does not take the email: 409 external_rejected, 429 external_rate_limited, 503 external_unavailable (it surely did not go out) or 409 external_outcome_unknown (it may have gone out: check before sending again). It reaches real inboxes: outside the screen it needs a dry run and a confirm_token; the dry run says the recipients, the From, the month, the format and how many posts go, and social_planner.planning.preview gives the HTML. Dates and times are the posts' own time zone (or the organization's); locale (es, en, pt-BR; default es) sets the email's language. Requires full access to the Social Planner.

Pide confirmación: primero dry_run: true (vista previa y confirm_token, que vale 10 minutos y una sola vez), después el mismo cuerpo con confirm_token. En unas pocas, solo con ciertos datos: la descripción dice cuándo. Por qué y cómo: Vista previa y confirmación.

Alcance
social_planner:write
Permiso
Editar en el módulo
Tool del MCP
social_planner_planning_shareEn la superficie completa; en la compacta, mb_execute_operation con id: "social_planner.planning.share".

Costo declarado: hasta 260 lecturas y 2 escrituras por llamada (cuentan en el cupo diario). Toca una plataforma externa (ses): cuenta en el cupo de operaciones externas.

Parámetros

month_keystringcuerporequerido

The month, YYYY-MM (like 2026-10), in the organization's time zone.

formatenumcuerporequerido

html = the email with the month's grid; pdf = a short email with the month's PDF attached.

Valores: pdf, html

toarray<string>cuerporequerido

Recipients (1 to 20); all of them go in one email.

subjectstringcuerporequerido

Subject of the email.

ccarray<string>cuerpoopcional

Copy recipients (up to 20).

personal_notestringcuerpoopcional

Optional personal note shown on top of the email, signed with the sender's name.

sender_idstringcuerpoopcional

The From: a sender id of the organization's domain senders (the ones this person can use), or __system__ / nothing for MB Suite. It also decides the email's branding.

localeenumcuerpoopcional

Language of the email (es, en or pt-BR): texts, statuses, formats, month and dates. Default es.

Valores: es, en, pt-BR

Respuesta

share_idstring
post_countnumber
email_idstring

Errores

Ejemplo

curl -X POST "https://api.mb-suite.com/v1/social-planner/planning/share" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "month_key": "MONTH_KEY",
  "format": "pdf",
  "to": [
    "TO"
  ],
  "subject": "SUBJECT",
  "dry_run": true
}'

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar. En la práctica esta operación no se simula (toca otra plataforma): responde 409 sandbox_external_unavailable.

GET/v1/social-planner/planning/preview

Preview the month's planning email

social_planner.planning.preview

LecturaIdempotenteDesde 2026-11-01

Builds, without sending anything, the HTML of the email that social_planner.planning.share would send for a month (month_key YYYY-MM, in the organization's time zone), with the branding of the sender it would use (sender_id), the optional personal note and the language (locale es, en or pt-BR; default es). It comes as it would go out: the posts' thumbnails as absolute links signed for one hour that open without a session (the sent email carries them signed for good), dates and times in each post's time zone. Returns html and the number of posts in the month. Requires view access to the Social Planner.

Alcance
social_planner:read
Permiso
Ver el módulo
Tool del MCP
social_planner_planning_previewEn la superficie completa; en la compacta, mb_execute_operation con id: "social_planner.planning.preview".

Costo declarado: hasta 260 lecturas y 0 escrituras por llamada (cuentan en el cupo diario).

Parámetros

month_keystringqueryrequerido

The month, YYYY-MM (like 2026-10), in the organization's time zone.

formatenumqueryopcional

html = the email with the month's grid; pdf = the short email that goes with the PDF. Default html.

Valores: pdf, html · Por defecto: "html"

personal_notestringqueryopcional

Optional personal note shown on top of the email, signed with the sender's name.

sender_idstringqueryopcional

The From: a sender id of the organization's domain senders (the ones this person can use), or __system__ / nothing for MB Suite. It also decides the email's branding.

localeenumqueryopcional

Language of the email (es, en or pt-BR): texts, statuses, formats, month and dates. Default es.

Valores: es, en, pt-BR

Respuesta

htmlstring
post_countnumber

Errores

Ejemplo

curl "https://api.mb-suite.com/v1/social-planner/planning/preview?month_key=MONTH_KEY" \
  -H "Authorization: Bearer $MB_API_KEY"

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.

curl "https://api.mb-suite.com/v1/social-planner/planning/preview?month_key=MONTH_KEY" \
  -H "Authorization: Bearer $MB_TEST_KEY"