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.
- Scope
profile:read- Permission
- View the module
- MCP tool
profile_slug_checkOn the full surface; on the compact one,mb_execute_operationwithid: "profile.slug.check".
Declared cost: up to 2 reads and 0 writes per call (they count against the daily quota).
Parameters
slugstringqueryThe slug: 3 to 48 lowercase letters, digits and hyphens, not starting or ending with a hyphen.
Response
slugstringavailablebooleancurrentbooleantrue when it is already this organization's slug.
reasonenum | nullValues: required, too_short, too_long, format, reserved, taken
messagestring | nullErrors
Example
curl "https://api.mb-suite.com/v1/profile/slug/availability?slug=SLUG" \
-H "Authorization: Bearer $MB_API_KEY"Try it with your test API key
With a test API key the request always goes to your practice organization: example data you can reset.
curl "https://api.mb-suite.com/v1/profile/slug/availability?slug=SLUG" \
-H "Authorization: Bearer $MB_TEST_KEY"