Check whether a slug is available
profile.slug.check
Says whether a slug can be used by this organization: available true when it is free or is already this organization's slug (current true), or available false with reason and message: required, too_short, too_long, format (3 to 48 lowercase letters, digits and hyphens, not starting or ending with a hyphen), reserved (words MB Suite uses in its own addresses) or taken (another organization has it: slugs are unique across MB Suite). It changes nothing. Use it before profile.slug.update. Requires view access to the Profile module.
- Escopo
profile:read- Permissão
- Ver o módulo
- Tool do MCP
profile_slug_checkNa superfície completa; na compacta,mb_execute_operationcomid: "profile.slug.check".
Custo declarado: até 2 leituras e 0 escritas por chamada (contam na cota diária).
Parâmetros
slugstringqueryThe slug: 3 to 48 lowercase letters, digits and hyphens, not starting or ending with a hyphen.
Resposta
slugstringavailablebooleancurrentbooleantrue when it is already this organization's slug.
reasonenum | nullValores: required, too_short, too_long, format, reserved, taken
messagestring | nullErros
Exemplo
curl "https://api.mb-suite.com/v1/profile/slug/availability?slug=SLUG" \
-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/profile/slug/availability?slug=SLUG" \
-H "Authorization: Bearer $MB_TEST_KEY"