Menú

Referencia de la API · Estrategias AI

Estrategias

strategy_generator · strategies · 5 operaciones

GET/v1/strategy-generator/strategies

List AI paid media strategies

strategy_generator.strategies.list

LecturaIdempotenteDesde 2026-11-01

Lists the organization's AI paid media strategies (generated from a briefing by MB Suite's AI: channel mix, campaigns and budget), newest first, paginated by cursor (limit up to 200). Each row is a summary: name, status (generating, completed or error), objective, ad platforms, currency, monthly budget range (min_budget, max_budget), number of campaigns, label ids and, for a failed one, its error message. Filters status, objective, label_id and search (text in the name) fill the page (a page can come short only for a rare filter after scanning 600 strategies, with has_more true). Read one with strategy_generator.strategies.get. Strategies are generated in the app (AI Strategies): this API reads, edits, exports and deletes them. Requires view access to AI Strategies.

Alcance
strategy_generator:read
Permiso
Ver el módulo
Tool del MCP
strategy_generator_strategies_listEn la superficie completa; en la compacta, mb_execute_operation con id: "strategy_generator.strategies.list".

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

Parámetros

limitintegerqueryopcional

How many items this page brings at most (see the maximum and the default in the schema).

Por defecto: 50

cursorstringqueryopcional

The next_cursor of the previous page, exactly as it came (only for the same list and filters); without it, the first page.

statusenumqueryopcional

Only strategies in this state: generating, completed or error.

Valores: generating, completed, error

objectiveenumqueryopcional

Only strategies whose briefing has this campaign objective.

Valores: leads, sales, traffic, branding, app_install

label_idstringqueryopcional

Only strategies tagged with this label (strategy_generator.labels.list).

searchstringqueryopcional

Case-insensitive text contained in the strategy name.

Respuesta

dataarray<object>
has_moreboolean
next_cursorstring

Errores

Ejemplo

curl "https://api.mb-suite.com/v1/strategy-generator/strategies" \
  -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/strategy-generator/strategies" \
  -H "Authorization: Bearer $MB_TEST_KEY"
GET/v1/strategy-generator/strategies/{strategy_id}

Get one AI paid media strategy

strategy_generator.strategies.get

LecturaIdempotenteDesde 2026-11-01

Returns one strategy: name, status, the briefing it was generated from (input: project, landing page, sector, product, objective, currency, budget mode, ad platforms, countries, languages, audience, interests, keywords and regions by country code), the AI plan, the projections the person adjusted (projections, null until edited or after a regeneration), label ids and the AI model used. result (null until the first generation finishes) holds the AI plan with snake_case keys: executive_summary; recommended_mix (list of {channel, percentage, reason}); detailed_plan (list of campaigns {id, channel, campaign_name, campaign_type, rationale, budget_percentage, kpis}); total_budget_estimation, min_budget, max_budget and currency (the monthly budget range); targeting_personas and audience_insights; the objective's estimated metrics (estimated_cpl, estimated_cpc, estimated_ctr, estimated_conversion_rate, estimated_total_leads, ecommerce_funnel…) and metric_rationales. The prompt sent to the AI and its raw answer are not returned. Not found (strategy_not_found) if the id does not exist in this organization. Requires view access to AI Strategies.

Alcance
strategy_generator:read
Permiso
Ver el módulo
Tool del MCP
strategy_generator_strategies_getEn la superficie completa; en la compacta, mb_execute_operation con id: "strategy_generator.strategies.get".

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

Parámetros

strategy_idstringrutarequerido

Strategy id (from strategy_generator.strategies.list).

Respuesta

idstring

Strategy id.

namestring

Strategy name.

statusenum

generating, completed or error.

Valores: generating, completed, error

inputobject

The briefing it was generated from.

resultobject | null

The AI plan (its keys as the AI wrote them); null until the first generation finishes.

projectionsobject | null

The projection values the person adjusted; null until edited or after a regeneration.

label_idsarray<string>

Labels (strategy_generator.labels.list).

ai_modelstring | null

The AI model that generated it.

error_messagestring | null

Why the generation failed (status error).

created_bystring | null

Who created it (uid).

created_atnumber

Epoch ms.

updated_atnumber

Epoch ms.

created_by_namestring | null

That person's name (null when MB Suite does not know it: a former member).

Errores

Ejemplo

curl "https://api.mb-suite.com/v1/strategy-generator/strategies/{strategy_id}" \
  -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/strategy-generator/strategies/{strategy_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY"
PATCH/v1/strategy-generator/strategies/{strategy_id}

Rename, label or edit an AI paid media strategy

strategy_generator.strategies.update

EscrituraIdempotenteDesde 2026-11-01

Changes one or more of these, sent inside updates ({ strategy_id, updates: { … } }): name (up to 200 characters); label_ids (replaces the whole list; ids from strategy_generator.labels.list, unknown ones are dropped); result (replaces the WHOLE AI plan: send the complete object you read with strategy_generator.strategies.get, modified, keeping recommended_mix and detailed_plan as lists; up to 400 KB); projections (replaces the projection values: rates, amounts, budget_basis min|avg|max, campaign_budget_mode, hide_revenue). result (null until the first generation finishes) holds the AI plan with snake_case keys: executive_summary; recommended_mix (list of {channel, percentage, reason}); detailed_plan (list of campaigns {id, channel, campaign_name, campaign_type, rationale, budget_percentage, kpis}); total_budget_estimation, min_budget, max_budget and currency (the monthly budget range); targeting_personas and audience_insights; the objective's estimated metrics (estimated_cpl, estimated_cpc, estimated_ctr, estimated_conversion_rate, estimated_total_leads, ecommerce_funnel…) and metric_rationales. The plan can only be edited on a completed strategy (409 strategy_not_ready while it generates or after a failed first generation). Unknown fields are rejected. It does not run the AI: a new plan is generated from the app. Idempotent: sending what the strategy already has changes nothing (changed: false). Returns the strategy. Requires edit access to AI Strategies.

Alcance
strategy_generator:write
Permiso
Editar en el módulo
Tool del MCP
strategy_generator_strategies_updateEn la superficie completa; en la compacta, mb_execute_operation con id: "strategy_generator.strategies.update".

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

Parámetros

strategy_idstringrutarequerido

Strategy id (from strategy_generator.strategies.list).

updatesobjectcuerporequerido

What changes (at least one field).

Respuesta

strategyobject

The strategy as it is now.

changedboolean

false when the values sent were already the current ones: nothing was written.

Errores

Ejemplo

curl -X PATCH "https://api.mb-suite.com/v1/strategy-generator/strategies/{strategy_id}" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "updates": {}
}'

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 -X PATCH "https://api.mb-suite.com/v1/strategy-generator/strategies/{strategy_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "updates": {}
}'
DELETE/v1/strategy-generator/strategies/{strategy_id}

Delete an AI paid media strategy

strategy_generator.strategies.delete

IrreversibleDesde 2026-11-01

Deletes a strategy. It stays 30 days in the trash, where an owner or admin can restore it with the same id, its plan, projections and labels (platform.trash.restore); a strategy deleted while generating loses that run and comes back with its previous plan, or as failed if it had none. Outside the app it needs a dry run and a confirm_token, except a REST DELETE with a key allowed to delete. Emits strategy_generator.strategy.deleted. Requires edit access to AI Strategies.

Con una API key, este DELETE se ejecuta directo: el registro queda 30 días en la papelera y la respuesta trae su trash_item_id. Con un token OAuth, y por el MCP, pide dry_run → confirm_token.

Alcance
strategy_generator:write y «Permitir eliminar» (strategy_generator:delete en OAuth)
Permiso
Editar en el módulo
Tool del MCP
strategy_generator_strategies_deleteEn la superficie completa; en la compacta, mb_execute_operation con id: "strategy_generator.strategies.delete".
Eventos que puede emitir
strategy_generator.strategy.deleted

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

Parámetros

strategy_idstringrutarequerido

Strategy id (from strategy_generator.strategies.list).

Respuesta

oktrue
trash_item_idstring

The trash item this deletion left: the item_id of platform.trash.restore (POST /trash/{item_id}/restore). Missing if nothing went to the trash.

trash_item_idsarray<string>

Only when the deletion left more than one copy: all of them, the first being trash_item_id.

trash_expires_atnumber

When the copy leaves the trash for good (epoch ms): 30 days after the deletion.

Errores

Ejemplo

curl -X DELETE "https://api.mb-suite.com/v1/strategy-generator/strategies/{strategy_id}" \
  -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 -X DELETE "https://api.mb-suite.com/v1/strategy-generator/strategies/{strategy_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY"
POST/v1/strategy-generator/strategies/{strategy_id}/export-pdf

Export an AI paid media strategy to PDF

strategy_generator.strategies.export_pdf

EscrituraDesde 2026-11-01

Renders a strategy to an A4 PDF with the organization's branding and returns a signed download link that expires in 24 hours, plus the file name and size. sections picks what goes in (cover, strategy, projections, briefing; default all four). The projections in the PDF are the ones saved in the strategy. Rendering can take tens of seconds; when the PDF service is slow or not available right now it fails with pdf_unavailable (503): retry after retry_after. A strategy without a generated plan cannot be exported (409 strategy_not_ready). Not idempotent: each call renders a new file. Requires edit access to AI Strategies.

Instrucciones para agentes

Give the person the download link and say it expires in 24 hours. Do not paste the link anywhere public.

Alcance
strategy_generator:write
Permiso
Editar en el módulo
Tool del MCP
strategy_generator_strategies_export_pdfEn la superficie completa; en la compacta, mb_execute_operation con id: "strategy_generator.strategies.export_pdf".

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

Parámetros

strategy_idstringrutarequerido

Strategy id (from strategy_generator.strategies.list).

sectionsarray<enum>cuerpoopcional

Sections to include, in this order: cover, strategy, projections, briefing (default: all four).

Valores: cover, strategy, projections, briefing

Respuesta

download_urlstring

Signed link to the PDF (24 hours).

file_namestring

The file name.

size_bytesnumber

Its size.

expires_atnumber

When the link stops working (epoch ms).

Errores

Ejemplo

curl -X POST "https://api.mb-suite.com/v1/strategy-generator/strategies/{strategy_id}/export-pdf" \
  -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. En la práctica esta operación no se simula (toca otra plataforma): responde 409 sandbox_external_unavailable.

Estrategias · Estrategias AI · Referencia de la API | Desarrolladores de MB Suite