REST API endpoints for managing users and team members
List your team, invite new users by email and role, update user profiles and permissions, and remove members. Most endpoints require admin or owner role.
The users and invites endpoints give you programmatic control over your LeadScout team. You can list current members, invite new reps or admins by email, update a user’s role and permissions, and remove users who have left the team. Most of these endpoints require the admin or owner role — a sales user can read the team list but cannot manage it.
List team members
GET /api/users
Returns all active (non-deleted) users in your company, ordered newest first.
Whether this user can perform prospect management actions regardless of role.
boolean
Whether this user can create and modify tags regardless of role.
boolean
Whether this is the primary account holder.
string | null
IANA time zone string.
boolean
Whether the app auto-detects the user’s time zone.
string | null
Start of working hours (e.g. "08:00").
string | null
End of working hours (e.g. "17:00").
number | null
Appointment buffer time in minutes.
boolean
Whether the user prefers 24-hour time display.
boolean
Whether the user’s calendar shows all company events.
string
ISO 8601 creation timestamp.
Invite a user
POST /api/invites
Inviting users requires the admin or owner role. Requests from sales users return 403.
Sends an invitation for a new team member. The invite is stored and the invitee receives an email with instructions to complete sign-up. You can only invite users with the admin or sales role — the owner role cannot be assigned through invitations.
Request body
string
required
Invitee’s first name.
string
required
Invitee’s last name.
string
required
Must be a valid email address. Used as the login identifier.
string
Optional phone number for the invitee.
string
required
Role to grant on acceptance. Must be admin or sales.
string
ISO 8601 timestamp after which the invite link expires. If omitted, the invite does not expire.
Returns 201 with the created invite object on success.
Updating another user’s role or permissions (role, isPrimary, canManageTags, canManageProspects) requires the canManageTeam permission, which is granted to admin and owner roles. Users can update their own profile fields (name, email, phone, time zone, calendar preferences) without elevated permissions.
All body fields are optional. Only the fields you send are updated.
Path parameters
number
required
The user ID to update.
Request body
Profile fields (any user can update on themselves):
string
First name. Must be at least 1 character.
string
Last name. Must be at least 1 character.
string
Valid email address.
string
Phone number. Pass null to clear.
string
IANA time zone string (e.g. America/Detroit).
boolean
Whether to auto-detect time zone from the device.
string
Working hours start time string (e.g. "08:00").
string
Working hours end time string (e.g. "17:00").
number
Integer appointment buffer in minutes.
boolean
Whether to display times in 24-hour format.
boolean
Whether the calendar shows all company events.
Admin/owner only fields:
string
New role: owner, admin, or sales.
boolean
Whether to mark this user as the primary account holder.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LeadScout","description":"Documentation and guides for LeadScout — the modern door-to-door canvassing platform for field sales teams.","colors":{"primary":"#7c7c7c","light":"#080808","dark":"#c1c1c1"},"logo":{"light":"https://media.brand.dev/f81a25db-0f7d-4772-924d-272c1eadfbb2.svg","dark":"https://media.brand.dev/c8fbe76b-ded9-43ef-9fa5-5cddf153b7cd.png"},"favicon":"https://media.brand.dev/4df870fc-c790-482f-9c7a-c7adeafd16f0.png","navbar":{"links":[{"href":"/faq","label":"Support"}],"primary":{"type":"button","label":"Get Started","href":"https://leadscoutapp.com/sign-in?screen_hint=signup\u0026returnTo=/onboarding"}},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","latex":true},"contextual":{"options":["copy","view","assistant","mcp","add-mcp"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"leadscout","hasAudioNarration":false,"actualSubdomain":"leadscout","customDomains":["docs.leadscoutapp.com"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-leadscout-3c513141","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10e95b9ffae5051c414a2d"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae957cbe1186677be450baa:success","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"Documentation","count":17},{"language":"default","tag":"API Reference","count":9},{"language":"default","tag":"Endpoints","count":7},{"language":"default","tag":"Core Features","count":5},{"language":"default","tag":"Team \u0026 Settings","count":4},{"language":"default","tag":"Integrations","count":3},{"language":"default","tag":"Get Started","count":3},{"language":"default","tag":"Overview","count":2},{"language":"default","tag":"Help","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"toc-item>a{position:relative;padding-left:1rem!important}toc-item[data-active-deepest]>a::before{content:\"\";position:absolute;left:0;top:50%;width:0.75rem;height:0.75rem;transform:translateY(-50%);background-color:currentColor;-webkit-mask:url(\"data:image/svg+xml;utf8,\u003csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'>\u003cpolyline points='9 18 15 12 9 6'/>\u003c/svg>\") no-repeat center / contain;mask:url(\"data:image/svg+xml;utf8,\u003csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'>\u003cpolyline points='9 18 15 12 9 6'/>\u003c/svg>\") no-repeat center / contain;pointer-events:none}#navbar a[href=\"/\"] img,#navbar a[href=\"/\"] svg,#sidebar a[href=\"/\"] img,#sidebar a[href=\"/\"] svg{max-width:14rem;height:auto}#search-bar-entry,#assistant-entry,li.navbar-link>:is(a,button){background-color:rgb(249 250 251)!important;box-shadow:inset 0 0 0 1px rgb(243 244 246)!important;border:none!important;border-radius:9999px!important;height:2.25rem!important;padding:0 1rem!important;\u0026:hover{background-color:rgb(243 244 246)!important;box-shadow:inset 0 0 0 1px rgb(229 231 235)!important}.dark \u0026 {\n background-color: rgba(255, 255, 255, 0.04) !important;\n box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;\n\n \u0026:hover {\n background-color: rgba(255, 255, 255, 0.08) !important;\n box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15) !important;\n }\n }}[data-component-part=\"products-selector-trigger\"]{background-color:rgb(var(--background-light))!important;box-shadow:inset 0 0 0 1px rgb(229 231 235)!important;border:none!important;border-radius:0.75rem!important;height:2.25rem!important;padding:0 0.75rem!important;transition:background-color 0.15s ease-out, box-shadow 0.15s ease-out!important;\u0026:hover{box-shadow:inset 0 0 0 1px rgb(209 213 219)!important}.dark \u0026 {\n background-color: rgb(var(--background-dark)) !important;\n box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10) !important;\n\n \u0026:hover {\n box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;\n }\n }}.nav-dropdown-products-selector-item-icon{background-color:rgb(var(--primary))!important;color:#ffffff!important;border-radius:0.375rem!important;aspect-ratio:1;svg {\n background-color: #ffffff !important;\n }}[data-component-part=\"products-selector-trigger\"]{position:relative;--icon-left-offset: 0.05rem;\u0026::before{content:\"\";position:absolute;top:50%;left:calc(0.5rem - var(--icon-left-offset));transform:translateY(-50%);width:1.5rem;height:1.5rem;border-radius:0.5rem;background:rgb(var(--primary));pointer-events:none}svg:not(:last-child) {\n position: relative;\n z-index: 1;\n filter: brightness(0) invert(1);\n margin-right: 0.25rem;\n margin-left: calc(-1 * var(--icon-left-offset));\n }}#search-bar-entry,#assistant-entry{transition:opacity 0.15s ease-out;body:has(#custom-homepage-assistant-entry) \u0026 {\n opacity: 0;\n pointer-events: none;\n }}#topbar-cta-button{background:transparent!important;box-shadow:none!important;padding:0!important;height:auto!important;\u0026,*,>*{border-radius:9999px!important}> :is(a, button, div, span) {\n background-color: rgb(var(--primary)) !important;\n color: #ffffff !important;\n height: 2.25rem !important;\n padding: 0 1rem !important;\n display: inline-flex !important;\n align-items: center !important;\n gap: 0.375rem !important;\n box-shadow: none !important;\n border: none !important;\n overflow: hidden !important;\n transition: background-color 0.15s ease-out !important;\n\n \u0026:hover {\n background-color: rgb(var(--primary-dark)) !important;\n }\n }\n\n *,\n > * * {\n color: #ffffff !important;\n background-color: transparent !important;\n }}ul:is(:has(>#topbar-cta-button),:has(>li.navbar-link)){gap:0.25rem!important;> li + li {\n margin-left: 0.125rem !important;\n }}.columns.suggested-articles{gap:1.5rem 2rem;.card {\n border: none;\n border-radius: 0;\n margin: 0;\n\n [data-component-part=\"card-content-container\"] {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n padding: 0;\n\n [data-component-part=\"card-icon\"] {\n display: grid;\n place-items: center;\n width: 100%;\n height: auto;\n aspect-ratio: 2;\n border-radius: 1rem;\n transition: background-color 0.15s ease-out;\n background-color: rgb(var(--primary));\n color: #ffffff !important;\n\n svg {\n scale: 1.5;\n background-color: #ffffff;\n }\n\n .group:hover \u0026 {\n filter: brightness(0.95);\n }\n\n .dark \u0026 {\n .group:hover \u0026 {\n filter: brightness(1.1);\n }\n }\n }\n\n [data-component-part=\"card-icon\"] + div {\n display: contents;\n }\n\n :is(\n [data-component-part=\"card-title\"],\n [data-component-part=\"card-content\"],\n [data-component-part=\"card-cta\"]\n ) {\n margin: 0;\n }\n\n [data-component-part=\"card-content\"] {\n text-wrap: pretty;\n }\n\n [data-component-part=\"card-cta\"] button {\n font-size: inherit;\n }\n }\n }}"}]}
{"page":{"pagePath":"api/users","slug":"/api/users","pageMetadata":{"title":"REST API endpoints for managing users and team members","description":"List your team, invite new users by email and role, update user profiles and permissions, and remove members. Most endpoints require admin or owner role.","href":"/api/users"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"List your team, invite new users by email and role, update user profiles and permissions, and remove members. Most endpoints require admin or owner role.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Note,ParamField,ResponseField,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The users and invites endpoints give you programmatic control over your LeadScout team. You can list current members, invite new reps or admins by email, update a user’s role and permissions, and remove users who have left the team. Most of these endpoints require the `,_jsx(_components.code,{children:`admin`}),` or `,_jsx(_components.code,{children:`owner`}),` role — a `,_jsx(_components.code,{children:`sales`}),` user can read the team list but cannot manage it.`]}),`\n`,_jsx(Heading,{level:`2`,id:`list-team-members`,children:`List team members`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET /api/users`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Returns all active (non-deleted) users in your company, ordered newest first.`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://app.leadscoutapp.com/api/users`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer YOUR_ACCESS_TOKEN'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`4`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://app.leadscoutapp.com/api/users'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`accessToken`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` users`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Returns an array of user objects directly.`}),`\n`,_jsx(ResponseField,{name:`id`,type:`number`,id:`param-id`,children:`User ID.`}),`\n`,_jsx(ResponseField,{name:`firstName`,type:`string`,id:`param-first-name`,children:`First name.`}),`\n`,_jsx(ResponseField,{name:`lastName`,type:`string`,id:`param-last-name`,children:`Last name.`}),`\n`,_jsx(ResponseField,{name:`email`,type:`string`,id:`param-email`,children:`Email address.`}),`\n`,_jsx(ResponseField,{name:`phoneNumber`,type:`string | null`,id:`param-phone-number`,children:`Phone number.`}),`\n`,_jsxs(ResponseField,{name:`role`,type:`string`,id:`param-role`,children:[_jsx(_components.code,{children:`owner`}),`, `,_jsx(_components.code,{children:`admin`}),`, or `,_jsx(_components.code,{children:`sales`}),`.`]}),`\n`,_jsx(ResponseField,{name:`canManageProspects`,type:`boolean`,id:`param-can-manage-prospects`,children:`Whether this user can perform prospect management actions regardless of role.`}),`\n`,_jsx(ResponseField,{name:`canManageTags`,type:`boolean`,id:`param-can-manage-tags`,children:`Whether this user can create and modify tags regardless of role.`}),`\n`,_jsx(ResponseField,{name:`isPrimary`,type:`boolean`,id:`param-is-primary`,children:`Whether this is the primary account holder.`}),`\n`,_jsx(ResponseField,{name:`timeZone`,type:`string | null`,id:`param-time-zone`,children:`IANA time zone string.`}),`\n`,_jsx(ResponseField,{name:`autoDetectTimeZone`,type:`boolean`,id:`param-auto-detect-time-zone`,children:`Whether the app auto-detects the user’s time zone.`}),`\n`,_jsxs(ResponseField,{name:`workingHoursStart`,type:`string | null`,id:`param-working-hours-start`,children:[`Start of working hours (e.g. `,_jsx(_components.code,{children:`\"08:00\"`}),`).`]}),`\n`,_jsxs(ResponseField,{name:`workingHoursEnd`,type:`string | null`,id:`param-working-hours-end`,children:[`End of working hours (e.g. `,_jsx(_components.code,{children:`\"17:00\"`}),`).`]}),`\n`,_jsx(ResponseField,{name:`bufferMinutes`,type:`number | null`,id:`param-buffer-minutes`,children:`Appointment buffer time in minutes.`}),`\n`,_jsx(ResponseField,{name:`use24HourFormat`,type:`boolean`,id:`param-use24-hour-format`,children:`Whether the user prefers 24-hour time display.`}),`\n`,_jsx(ResponseField,{name:`showAllEvents`,type:`boolean`,id:`param-show-all-events`,children:`Whether the user’s calendar shows all company events.`}),`\n`,_jsx(ResponseField,{name:`createdAt`,type:`string`,id:`param-created-at`,children:`ISO 8601 creation timestamp.`}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`invite-a-user`,children:`Invite a user`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`POST /api/invites`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Inviting users requires the `,_jsx(_components.code,{children:`admin`}),` or `,_jsx(_components.code,{children:`owner`}),` role. Requests from `,_jsx(_components.code,{children:`sales`}),` users return `,_jsx(_components.code,{children:`403`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Sends an invitation for a new team member. The invite is stored and the invitee receives an email with instructions to complete sign-up. You can only invite users with the `,_jsx(_components.code,{children:`admin`}),` or `,_jsx(_components.code,{children:`sales`}),` role — the `,_jsx(_components.code,{children:`owner`}),` role cannot be assigned through invitations.`]}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`firstName`,type:`string`,required:true,id:`param-first-name-1`,children:_jsx(_components.p,{children:`Invitee’s first name.`})}),`\n`,_jsx(ParamField,{body:`lastName`,type:`string`,required:true,id:`param-last-name-1`,children:_jsx(_components.p,{children:`Invitee’s last name.`})}),`\n`,_jsx(ParamField,{body:`email`,type:`string`,required:true,id:`param-email-1`,children:_jsx(_components.p,{children:`Must be a valid email address. Used as the login identifier.`})}),`\n`,_jsx(ParamField,{body:`phoneNumber`,type:`string`,id:`param-phone-number-1`,children:_jsx(_components.p,{children:`Optional phone number for the invitee.`})}),`\n`,_jsx(ParamField,{body:`role`,type:`string`,required:true,id:`param-role-1`,children:_jsxs(_components.p,{children:[`Role to grant on acceptance. Must be `,_jsx(_components.code,{children:`admin`}),` or `,_jsx(_components.code,{children:`sales`}),`.`]})}),`\n`,_jsx(ParamField,{body:`expiresAt`,type:`string`,id:`param-expires-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp after which the invite link expires. If omitted, the invite does not expire.`})}),`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`201`}),` with the created invite object on success.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://app.leadscoutapp.com/api/invites`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer YOUR_ACCESS_TOKEN'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"firstName\": \"Alex\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"lastName\": \"Rivera\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"email\": \"alex.rivera@example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\": \"sales\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"expiresAt\": \"2024-12-31T23:59:59Z\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`15`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://app.leadscoutapp.com/api/invites'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`accessToken`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` firstName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Alex'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` lastName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Rivera'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` email:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'alex.rivera@example.com'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` role:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'sales'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` expiresAt:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '2024-12-31T23:59:59Z'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` invite`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`update-a-user`,children:`Update a user`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`PATCH /api/users/:id`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Updating another user’s role or permissions (`,_jsx(_components.code,{children:`role`}),`, `,_jsx(_components.code,{children:`isPrimary`}),`, `,_jsx(_components.code,{children:`canManageTags`}),`, `,_jsx(_components.code,{children:`canManageProspects`}),`) requires the `,_jsx(_components.code,{children:`canManageTeam`}),` permission, which is granted to `,_jsx(_components.code,{children:`admin`}),` and `,_jsx(_components.code,{children:`owner`}),` roles. Users can update their own profile fields (name, email, phone, time zone, calendar preferences) without elevated permissions.`]})}),`\n`,_jsx(_components.p,{children:`All body fields are optional. Only the fields you send are updated.`}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`number`,required:true,id:`param-id-1`,children:_jsx(_components.p,{children:`The user ID to update.`})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body-2`,children:`Request body`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Profile fields (any user can update on themselves):`})}),`\n`,_jsx(ParamField,{body:`firstName`,type:`string`,id:`param-first-name-2`,children:`First name. Must be at least 1 character.`}),`\n`,_jsx(ParamField,{body:`lastName`,type:`string`,id:`param-last-name-2`,children:`Last name. Must be at least 1 character.`}),`\n`,_jsx(ParamField,{body:`email`,type:`string`,id:`param-email-2`,children:`Valid email address.`}),`\n`,_jsxs(ParamField,{body:`phoneNumber`,type:`string`,id:`param-phone-number-2`,children:[`Phone number. Pass `,_jsx(_components.code,{children:`null`}),` to clear.`]}),`\n`,_jsxs(ParamField,{body:`timeZone`,type:`string`,id:`param-time-zone-1`,children:[`IANA time zone string (e.g. `,_jsx(_components.code,{children:`America/Detroit`}),`).`]}),`\n`,_jsx(ParamField,{body:`autoDetectTimeZone`,type:`boolean`,id:`param-auto-detect-time-zone-1`,children:`Whether to auto-detect time zone from the device.`}),`\n`,_jsxs(ParamField,{body:`workingHoursStart`,type:`string`,id:`param-working-hours-start-1`,children:[`Working hours start time string (e.g. `,_jsx(_components.code,{children:`\"08:00\"`}),`).`]}),`\n`,_jsxs(ParamField,{body:`workingHoursEnd`,type:`string`,id:`param-working-hours-end-1`,children:[`Working hours end time string (e.g. `,_jsx(_components.code,{children:`\"17:00\"`}),`).`]}),`\n`,_jsx(ParamField,{body:`bufferMinutes`,type:`number`,id:`param-buffer-minutes-1`,children:`Integer appointment buffer in minutes.`}),`\n`,_jsx(ParamField,{body:`use24HourFormat`,type:`boolean`,id:`param-use24-hour-format-1`,children:`Whether to display times in 24-hour format.`}),`\n`,_jsx(ParamField,{body:`showAllEvents`,type:`boolean`,id:`param-show-all-events-1`,children:`Whether the calendar shows all company events.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Admin/owner only fields:`})}),`\n`,_jsxs(ParamField,{body:`role`,type:`string`,id:`param-role-2`,children:[`New role: `,_jsx(_components.code,{children:`owner`}),`, `,_jsx(_components.code,{children:`admin`}),`, or `,_jsx(_components.code,{children:`sales`}),`.`]}),`\n`,_jsx(ParamField,{body:`isPrimary`,type:`boolean`,id:`param-is-primary-1`,children:`Whether to mark this user as the primary account holder.`}),`\n`,_jsx(ParamField,{body:`canManageTags`,type:`boolean`,id:`param-can-manage-tags-1`,children:`Grant or revoke tag management permission.`}),`\n`,_jsx(ParamField,{body:`canManageProspects`,type:`boolean`,id:`param-can-manage-prospects-1`,children:`Grant or revoke prospect management permission.`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://app.leadscoutapp.com/api/users/14`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer YOUR_ACCESS_TOKEN'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\": \"admin\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"canManageProspects\": true`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`12`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://app.leadscoutapp.com/api/users/14'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'PATCH'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`accessToken`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` role:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'admin'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` canManageProspects:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` updated`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`remove-a-user`,children:`Remove a user`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`DELETE /api/users/:id`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Removing a user requires the `,_jsx(_components.code,{children:`admin`}),` or `,_jsx(_components.code,{children:`owner`}),` role. The user’s prospects and activity history are preserved, but they can no longer sign in.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters-2`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`number`,required:true,id:`param-id-2`,children:_jsx(_components.p,{children:`The user ID to remove.`})}),`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`{ \"id\": \u003cnumber> }`}),` on success.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` DELETE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://app.leadscoutapp.com/api/users/14`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer YOUR_ACCESS_TOKEN'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`4`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://app.leadscoutapp.com/api/users/14'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'DELETE'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`accessToken`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"REST API endpoints for managing users and team members","description":"List your team, invite new users by email and role, update user profiles and permissions, and remove members. Most endpoints require admin or owner role.","href":"/api/users"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"List team members","slug":"list-team-members","depth":2,"children":[{"title":"Response","slug":"response","depth":3,"children":[]}]},{"title":"Invite a user","slug":"invite-a-user","depth":2,"children":[{"title":"Request body","slug":"request-body","depth":3,"children":[]}]},{"title":"Update a user","slug":"update-a-user","depth":2,"children":[{"title":"Path parameters","slug":"path-parameters","depth":3,"children":[]},{"title":"Request body","slug":"request-body-2","depth":3,"children":[]}]},{"title":"Remove a user","slug":"remove-a-user","depth":2,"children":[{"title":"Path parameters","slug":"path-parameters-2","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/leadscout/eaffec8e65cd9c3a/search.js"],"subdomain":"leadscout","siteName":"LeadScout","title":"REST API endpoints for managing users and team members - LeadScout","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-15T18:58:09.817Z","originalFileLocation":"api/users.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"List your team, invite new users by email and role, update user profiles and permissions, and remove members. Most endpoints require admin or owner role.\">\u003cmeta data-mint-head name=\"application-name\" content=\"LeadScout\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://media.brand.dev/4df870fc-c790-482f-9c7a-c7adeafd16f0.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://media.brand.dev/4df870fc-c790-482f-9c7a-c7adeafd16f0.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://media.brand.dev/4df870fc-c790-482f-9c7a-c7adeafd16f0.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://media.brand.dev/4df870fc-c790-482f-9c7a-c7adeafd16f0.png\">\u003cmeta data-mint-head property=\"og:title\" content=\"REST API endpoints for managing users and team members - LeadScout\">\u003cmeta data-mint-head property=\"og:description\" content=\"List your team, invite new users by email and role, update user profiles and permissions, and remove members. Most endpoints require admin or owner role.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LeadScout\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.leadscoutapp.com/api/users\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://leadscout.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=REST+API+endpoints+for+managing+users+and+team+members\u0026amp;description=List+your+team%2C+invite+new+users+by+email+and+role%2C+update+user+profiles+and+permissions%2C+and+remove+members.+Most+endpoints+require+admin+or+owner+role.\u0026amp;theme=4b55bd8c942e32ebf19a4fd7\u0026amp;signature=20cde0a01fcff970ff39d3e28398e107e8e8333d1819fd43bb18928c08ce13df\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"REST API endpoints for managing users and team members - LeadScout\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"List your team, invite new users by email and role, update user profiles and permissions, and remove members. Most endpoints require admin or owner role.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://leadscout.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=REST+API+endpoints+for+managing+users+and+team+members\u0026amp;description=List+your+team%2C+invite+new+users+by+email+and+role%2C+update+user+profiles+and+permissions%2C+and+remove+members.+Most+endpoints+require+admin+or+owner+role.\u0026amp;theme=4b55bd8c942e32ebf19a4fd7\u0026amp;signature=20cde0a01fcff970ff39d3e28398e107e8e8333d1819fd43bb18928c08ce13df\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/leadscout/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LeadScout\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7c7c7c\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.leadscoutapp.com/api/users\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/users.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.leadscoutapp.com/#organization\",\"name\":\"LeadScout\",\"url\":\"https://docs.leadscoutapp.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://media.brand.dev/f81a25db-0f7d-4772-924d-272c1eadfbb2.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.leadscoutapp.com#website\",\"name\":\"LeadScout\",\"url\":\"https://docs.leadscoutapp.com\",\"publisher\":{\"@id\":\"https://docs.leadscoutapp.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.leadscoutapp.com/api/users#webpage\",\"url\":\"https://docs.leadscoutapp.com/api/users\",\"name\":\"REST API endpoints for managing users and team members\",\"description\":\"List your team, invite new users by email and role, update user profiles and permissions, and remove members. Most endpoints require admin or owner role.\",\"dateModified\":\"2026-05-15T18:58:09.817Z\",\"isPartOf\":{\"@id\":\"https://docs.leadscoutapp.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.leadscoutapp.com/api/users#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.leadscoutapp.com/api/users#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.leadscoutapp.com/api/prospects\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"REST API endpoints for managing users and team members\",\"item\":\"https://docs.leadscoutapp.com/api/users\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.leadscoutapp.com/api/users#article\",\"headline\":\"REST API endpoints for managing users and team members\",\"name\":\"REST API endpoints for managing users and team members\",\"description\":\"List your team, invite new users by email and role, update user profiles and permissions, and remove members. Most endpoints require admin or owner role.\",\"url\":\"https://docs.leadscoutapp.com/api/users\",\"mainEntityOfPage\":{\"@id\":\"https://docs.leadscoutapp.com/api/users#webpage\"},\"dateModified\":\"2026-05-15T18:58:09.817Z\",\"publisher\":{\"@id\":\"https://docs.leadscoutapp.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.leadscoutapp.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LeadScout\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"LeadScout\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/users.md","siteName":"LeadScout","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"LeadScout REST API — overview and getting started","href":"/api/overview"},{"title":"How to authenticate your LeadScout REST API requests","href":"/api/authentication"}]},{"group":"Endpoints","pages":[{"title":"REST API endpoints for creating and managing prospects","href":"/api/prospects"},{"title":"REST API endpoints for creating and managing territories","href":"/api/territories"},{"title":"REST API endpoint for listing prospect appointments","href":"/api/appointments"},{"title":"REST API endpoint for knock history and lead statuses","href":"/api/knocks"},{"title":"REST API endpoints for creating and managing prospect tags","href":"/api/tags"},{"title":"REST API endpoints for registering outbound webhooks","description":"Register outbound webhooks to receive real-time event notifications. Configure event filters, delivery delays, and trigger modes. Requires admin role.","href":"/api/webhooks"},{"title":"REST API endpoints for managing users and team members","href":"/api/users"}]}]}]},"basePath":"","title":"REST API endpoints for managing users and team members - LeadScout","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":[],"chunks":[]}