Menu

Referência da API · CRM

Regras de envio de sequências

crm · sequence_rulesets · 4 operações

GET/v1/crm/sequence-rulesets

List the sending rules of sequences

crm.sequences.rulesets.list

LeituraIdempotenteDesde 2026-11-01

Lists the organization's sending rules for sequences, the default first and then by name: what pauses or finishes a contact (triggers: account_reply_delay and a phone call after repeated opens; contact_triggers: finish on link click, mark unresponsive after N days), emails skipped by contact or account labels (email_triggers), and throttling (the CC and BCC addresses copied on every sequence email, ignore_bounce_protection), with who created them (created_by_id, created_by_name). A reply, an unsubscribe and a bounce always finish the contact, whatever the rules say. The sending pace is set by the schedules (crm.sequences.schedules.list). A sequence uses one through its ruleset_id; new sequences get the default. Paginated by cursor (limit up to 100, the default). Requires view access to the CRM.

Escopo
crm:read
Permissão
Ver o módulo
Tool do MCP
crm_sequences_rulesets_listNa superfície completa; na compacta, mb_execute_operation com id: "crm.sequences.rulesets.list".

Custo declarado: até 101 leituras e 0 escritas por chamada (contam na cota diária).

Parâmetros

limitintegerqueryopcional

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

Padrão: 100

cursorstringqueryopcional

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

Resposta

dataarray<object>
has_moreboolean
next_cursorstring

Erros

Exemplo

curl "https://api.mb-suite.com/v1/crm/sequence-rulesets" \
  -H "Authorization: Bearer $MB_API_KEY"

Testar com a sua API key de teste

Com uma API key de teste o pedido vai sempre para a sua organização de prática: dados de exemplo que você pode reiniciar.

curl "https://api.mb-suite.com/v1/crm/sequence-rulesets" \
  -H "Authorization: Bearer $MB_TEST_KEY"
POST/v1/crm/sequence-rulesets

Create sending rules for sequences

crm.sequences.rulesets.create

EscritaDesde 2026-11-01

Creates sending rules for sequences: a name and, optionally, triggers, contact_triggers, email_triggers and throttling (each group left out takes the standard set: pause 24 h after an account reply, mark unresponsive after 30 days, no CC or BCC, bounce protection on). is_default true makes them the organization's default (new sequences get them) and unsets the previous default. It is not assigned to any sequence: set ruleset_id with crm.sequences.update. Returns ruleset_id. Manager-tier only (manage_sequence_settings: owner, admin, crm_admin or sales_manager).

Escopo
crm:write
Permissão
Editar no módulo · Ação do CRM: manage_sequence_settings
Tool do MCP
crm_sequences_rulesets_createNa superfície completa; na compacta, mb_execute_operation com id: "crm.sequences.rulesets.create".

Custo declarado: até 5 leituras e 3 escritas por chamada (contam na cota diária).

Parâmetros

namestringcorpoobrigatório

The name the sequence settings show.

is_defaultbooleancorpoopcional

Make it the organization's default (new sequences take it; the previous default stops being one).

triggersobjectcorpoopcional

When the account replies: account_reply_delay (none, pause_24h, pause_until_next_business_day or finish), and a phone call task after repeated opens (phone_call_on_repeated_opens: enabled, opens_threshold).

contact_triggersobjectcorpoopcional

finish_on_link_click (the contact leaves after clicking a link) and mark_unresponsive_after_days (enabled, days: the contact leaves as unresponsive after that many days without a reply).

email_triggersobjectcorpoopcional

Emails are skipped for contacts (skip_email_when_contact_label_in) or accounts (skip_email_when_account_label_in) with any of these labels: ids from crm.labels.list.

throttlingobjectcorpoopcional

cc_all_emails_to and bcc_all_emails_to (addresses copied on every email of the sequences that use these rules) and ignore_bounce_protection (true keeps sending after a bounce). The sending pace is set by the schedules (crm.sequences.schedules.*).

Resposta

ruleset_idstring

Erros

Exemplo

curl -X POST "https://api.mb-suite.com/v1/crm/sequence-rulesets" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "name": "NAME"
}'

Testar com a sua API key de teste

Com uma API key de teste o pedido vai sempre para a sua organização de prática: dados de exemplo que você pode reiniciar.

curl -X POST "https://api.mb-suite.com/v1/crm/sequence-rulesets" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "name": "NAME"
}'
PATCH/v1/crm/sequence-rulesets/{ruleset_id}

Update sending rules

crm.sequences.rulesets.update

EscritaIdempotenteDesde 2026-11-01

Updates sending rules; send at least one key in updates (name, is_default, triggers, contact_triggers, email_triggers, throttling: each group replaces the whole group). Every sequence that uses them follows the new rules from its next send. Changing the CC/BCC addresses or the bounce protection is also recorded as a security event. is_default true moves the default here. Not found (sequence_ruleset_not_found) if the id does not exist. Manager-tier only (manage_sequence_settings).

Escopo
crm:write
Permissão
Editar no módulo · Ação do CRM: manage_sequence_settings
Tool do MCP
crm_sequences_rulesets_updateNa superfície completa; na compacta, mb_execute_operation com id: "crm.sequences.rulesets.update".

Custo declarado: até 5 leituras e 3 escritas por chamada (contam na cota diária).

Parâmetros

ruleset_idstringrotaobrigatório

The sending rules: an id from crm.sequences.rulesets.list.

updatesobjectcorpoobrigatório

What changes (at least one key): name, is_default, triggers, contact_triggers, email_triggers, throttling; each object sent replaces that whole part.

Resposta

oktrue

Erros

Exemplo

curl -X PATCH "https://api.mb-suite.com/v1/crm/sequence-rulesets/{ruleset_id}" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "updates": {}
}'

Testar com a sua API key de teste

Com uma API key de teste o pedido vai sempre para a sua organização de prática: dados de exemplo que você pode reiniciar.

curl -X PATCH "https://api.mb-suite.com/v1/crm/sequence-rulesets/{ruleset_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "updates": {}
}'
DELETE/v1/crm/sequence-rulesets/{ruleset_id}

Delete sending rules

crm.sequences.rulesets.delete

IrreversívelDesde 2026-11-01

Deletes sending rules; the sequences that used them are left without sending rules (the result says how many). It does not go to the trash. Outside the screen it requires a dry run (which lists the affected sequences) and a confirm_token, and a credential that allows deleting. Not found (sequence_ruleset_not_found) if the id does not exist. Manager-tier only (manage_sequence_settings).

Pede confirmação: primeiro dry_run: true (prévia e confirm_token, válido por 10 minutos e por uma única execução), depois o mesmo corpo com confirm_token. Em algumas poucas, só com certos dados: a descrição diz quando. Por que e como: Prévia e confirmação.

Escopo
crm:write e «Permitir exclusões» (crm:delete no OAuth)
Permissão
Editar no módulo · Ação do CRM: manage_sequence_settings
Tool do MCP
crm_sequences_rulesets_deleteNa superfície completa; na compacta, mb_execute_operation com id: "crm.sequences.rulesets.delete".

Custo declarado: até 101 leituras e 101 escritas por chamada (contam na cota diária).

Parâmetros

ruleset_idstringrotaobrigatório

The sending rules: an id from crm.sequences.rulesets.list.

Resposta

detached_from_sequencesnumber

Erros

Exemplo

curl -X DELETE "https://api.mb-suite.com/v1/crm/sequence-rulesets/{ruleset_id}" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "dry_run": true
}'

Testar com a sua API key de teste

Com uma API key de teste o pedido vai sempre para a sua organização de prática: dados de exemplo que você pode reiniciar.

curl -X DELETE "https://api.mb-suite.com/v1/crm/sequence-rulesets/{ruleset_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "dry_run": true
}'