Menu

Referência da API · CRM

Busca

crm · search · 1 operação

GET/v1/crm/search

Search deals, people, companies and prospects by text

crm.search

LeituraIdempotenteDesde 2026-11-01

Finds CRM records by text, of any age: deals, people, companies and prospects (all four by default, or the kinds you pass). A record matches when the text appears in its title, name, email, phone or company, or when every word of the text starts a word of those fields (accents and word order do not matter: «perez juan» finds «Juan Pérez»); a phone matches by its digits («11 5555 1234» finds «+54 9 11 5555-1234»). Deals and prospects of the people and companies that match come too (the deal's main contact or company, the prospect's person or company). Returns up to 40 hits (limit) sorted by last update, each with its kind and id so you can read it with the right get operation; has_more is true when more records matched (narrow the text or raise limit). Archived records and closed deals are included (the screen's global search hides them by default): each hit's is_archived and status tell them apart. A seller with a scope only sees what the scope allows. Words of one letter are ignored; prefer crm.persons.lookup when you have an exact email or phone, and the list operations with filters when you know the kind and a field. With LinkedIn or TikTok, their terms limit it through the API and the MCP: what they do not allow answers 403 platform_terms_restricted, and their records are left out of the response (the permissions guide lists what each platform allows).

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

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

Parâmetros

querystringqueryobrigatório

What to look for: a name, an email, a phone, a domain or a deal title (2 to 200 characters).

kindsarray<enum>queryopcional

Only these kinds of record; without it, all four.

Valores: deal, person, company, prospect

limitintegerqueryopcional

How many hits at most (up to 40); has_more says when there were more.

Padrão: 10

Resposta

resultsarray<object>
has_moreboolean

true when more records matched than were returned.

Erros

Exemplo

curl "https://api.mb-suite.com/v1/crm/search?query=QUERY" \
  -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/search?query=QUERY" \
  -H "Authorization: Bearer $MB_TEST_KEY"