Creates an invitation, addressed by exactly one of email, userId, or username. Requires the invite capability. Always sends an email (no toggle). Fires workspace.invite.created.
Requires workspaces.inviteAcceptUrl on the project. The invitation email’s only call to action is a deep-link built from that setting, and it has no default — so an unconfigured project cannot create invitations at all. Without it this endpoint returns 409 workspace/missing-invite-accept-url and persists nothing (no invitation row, no email, no webhook).This applies even when the invitee already has an account — there is no special case. See Project settings for how to configure it.
The invited capabilities/permissions are validated against the inviter’s own resolved set on the workspace — no-escalation on both arrays. The rank floor applies only when the inviter has a direct member row on the workspace: then the invited rank must be strictly larger (less senior) than the inviter’s own. A reach-holder inviter (holding invite via an open inherit chain, with no direct row) is not in the workspace’s rank ladder and may invite at any rank.The invited rank is named in either coordinate — rank (absolute) or relativeRank (an offset from the inviter) — and they are mutually exclusive. Supplying neither applies the default, relativeRank: 1: one rung below the inviter. Whichever arrives, it is resolved to an absolute number here and stored absolute on the invitation row. See choosing a rank.The inviter is the caller’s own token subject, or — for a service key — the actingUserId it names, which a key must send. The invitation’s invitedById records the inviter. Both floors are skipped for an owner or ancestor owner.
A tier cannot grow itself. Because the rank floor is strict, a rank-5 manager with a direct member row can invite rank 6, 7, 8… but never another rank 5. Minting a peer needs someone above that tier, and no ranked member at all clears the floor for rank 0. If your product has a server-driven “add a manager” action, act as the owner for it.As stated above, the floor only binds an inviter who holds a direct member row here — an owner or ancestor owner and a reach-holder with no direct row skip it and may invite at any rank, rank 0 included.
Omitting the rank field is the easiest way in the whole API to mint rank 0. The default is relativeRank: 1 — one rung below the inviter — and apex is where an inviter with no member row on this workspace stands. So for an owner, an ancestor owner or a reach-holder with no direct row, one below apex is rank 0: the most senior rung on the ladder, handed out by leaving a field off.That is semantically right — one below apex is the top rung — and it is not changing. But it inverts the intuition that omitting a field is the cautious choice, and it lands squarely on the path this page calls the happy path. The scenario to watch is the backend invite flow: a server route that invites people with a service key acting as the owner, sending an address and capabilities and no rank, mints a workspace full of rank-0 members — each one able to manage everyone else, and none of them manageable by anyone but the owner. If a service-key flow wants new members at the bottom of the ladder, it must name a coordinate (rank: 10, or relativeRank against an actingUserId who actually sits in the ladder) rather than rely on the default.The milder collision applies to in-ladder inviters. A rank-0 lead who invites six people with no rank field gets six rank-1 members, and equals cannot act on equals — none of those six can manage each other; only the lead can. Often correct for a flat team, and worth deciding on purpose rather than discovering later. If your product has tiers, name one on the invite.
Duplicate handling:
Inviting an existing member → 409 (change the grant via Update Member).
A live invite (pending and not past expiresAt) for the same target → the existing invitation is updated in place, under the same id, and its 14-day expiry restarts. This answers 200 instead of 201, sends the invitation email again, and fires workspace.invite.created again with the same invitationId. See what a re-invite does to the grant — it is not a plain replace.
A terminal (accepted/declined/revoked) or effectively-expired invite does not block — a fresh pending is created. (An accepted invite means the user is already a member, so re-inviting them returns 409 instead.)
Two invites for the same person sent at the same time leave one invitation.Invite-by-email to an address that already has an account resolves and stores the userId at creation. The account lookup is case-insensitive, so an account stored as Jane@Example.com is still bound when invited as jane@example.com.
What a re-invite does to the grant
This endpoint doubles as an upsert, so a second call for a target who already has a live invite edits that invitation rather than creating a second one. On that path, each grant field — rank/relativeRank, capabilities, permissions, title — is handled independently:
Omitted → preserved. The stored value is kept as-is. It is not re-defaulted, and not blanked. This is what makes a bare “Resend invitation” button that sends only the address safe: a deliberate rank: 10 contractor invite stays at rank 10 no matter who presses it.
Explicitly supplied → overwritten. Refreshing a grant is a real use of this route, so naming a value still changes it. An explicitly empty array (capabilities: []) is a value, not an omission, and does clear the field.
An explicit relativeRank re-resolves against the current caller. The offset is anchored on whoever is calling now, not on whoever created the invitation — so relativeRank: 1 sent by a rank-3 member rewrites the invitation to rank 4, while the same field sent by the owner rewrites it to rank 0. If you mean “leave the rank alone”, send neither rank field.
A re-invite may preserve a rank the current caller could not have minted themselves — omission is not a write, so no floor is re-applied to it. That is deliberate and matches Resend Invite, which extends the very same invitation, rank intact, on the same invite capability. Values you do supply are floored normally.
Path Parameters
string
required
The workspace UUID.
Body Parameters
string
Invitee email (trimmed + lowercased server-side). One of email/userId/username is required. Matching an existing account is case-insensitive, so an address that was stored with different capitalization (as OAuth-created accounts are) still binds its userId.
string
Invitee user id (existing users only). Here userId is the invite target, not an acting user.This route is the one exception to a bundle-wide rule: on every other workspace route a body or query userId is rejected with a 400, because there it can only be a stale spelling of the actor. See Shapes the server rejects.The exception is the body only. A query ?userId= is rejected here exactly as it is everywhere else — 400 workspace/invalid-query — because this endpoint never reads one, so in the query string it can only be the stale actor spelling. Send the invitee in the JSON body.
string
Invitee username (existing users only).
string[]
Capabilities to apply on accept. Subject to no-escalation. Defaults to [] on a new invitation; on a re-invite omitting it preserves the stored set, while [] explicitly clears it.
string[]
Opaque permissions to apply on accept. Subject to no-escalation. Defaults to [] on a new invitation; on a re-invite omitting it preserves the stored set, while [] explicitly clears it.
number
Initial absolute rank to apply on accept, from 0 to 2147483647. For a direct-member inviter it must be strictly larger (less senior) than their own; a reach-holder inviter (no direct row) may set any rank.No longer required. Omit it and relativeRank both, and the server applies relativeRank: 1 on a new invitation — or, on a re-invite, preserves the rank already stored. Mutually exclusive with relativeRank — sending both is a 400.
number
default:"1"
Initial rank expressed as an offset from the inviter: 1 = one rung below me, 2 = two rungs below. Must be 1 – 2147483647 — 0 would mean “a peer”, which the assign rule forbids, and a negative offset would mint someone senior to the inviter; both are a 400. The resolved rank is bounded too, so an in-range offset that overflows once anchored is also a 400, never a 500.The offset is anchored on the inviter’s own rank if they hold a member row on this workspace, and on apex (one step above rank 0) if they do not — so an owner’s relativeRank: 1 lands on rank 0, while a rank-3 member’s lands on rank 4. The anchor turns on the row, not on what kind of actor the inviter is: an ancestor owner who also holds a row here measures from that row.Relative input passes the rank floor by construction, which is why it is the default.Each resolution is a snapshot. The offset is resolved against the caller at the moment of the call and frozen on the invitation as an absolute number — it does not track the inviter’s later promotions or demotions. It is a snapshot of the request, not of the invitation: sending relativeRank again on a re-invite takes a fresh snapshot against whoever is calling then, and overwrites the stored rank. Omitting both rank fields on a re-invite takes no snapshot at all and preserves what is stored.
string
Optional initial cosmetic title. On a re-invite, omitting it preserves the stored title; sending null clears it.
string
required
Service keys only — the inviter to act as. Required with a service key: a key that names nobody is refused with 400 workspace/missing-user-id. Enforced: the invite capability, the no-escalation and rank floors above run against that user’s resolved standing, so a key naming a rank-5 manager may only invite at rank 6+ and only with capabilities that manager holds, and the invitation’s invitedById records them. actingUserId: "" or null is a 400, an attempt to name someone that names no one. Every top-level body field this endpoint does not declare is a 400 too — Unrecognized key: "…", for every caller — and in the query string, actingUserId and every body field are 400 workspace/wrong-location. The fields this endpoint does declare are accepted on their own terms: username reaches the server intact and behaves identically to email and userId. The bodyuserId is the one declared field on the bundle that names a person and is not the actor, so it carries a carve-out from the bundle-wide userId rejection; a query userId is refused here as everywhere else. A user token always acts as its own user and must not send it (400 workspace/acting-user-not-allowed). See Acting on behalf of a user and Shapes the server rejects.
The acting user can see the workspace but has no invite capability on it.
Not Found — 404
The workspace doesn’t exist, or the acting user has no relation to it (not its owner, an ancestor owner, a member or a reach-holder): the two answer alike, with the same body Fetch Workspace gives.
{ "error": "Workspace not found.", "code": "workspace/not-found" }
User Not Found — 404
The userId or username names no user in this project.
{ "error": "The invited user was not found.", "code": "workspace/user-not-found" }
{ "error": "The invited username was not found.", "code": "workspace/user-not-found" }
Invalid Email — 400
Neither userId nor username was sent, and email isn’t a valid email address.
{ "error": "A valid invite target (email, userId, or username) is required.", "code": "workspace/invalid-body", "param": "email" }
Already a Member — 409
{ "error": "That user is already a member. Change their grant via edit-member-access.", "code": "workspace/already-member" }
Inviting the workspace’s owner shares the code with a message of its own:
{ "error": "That user already owns this workspace.", "code": "workspace/already-member" }
No Escalation — 403
The offending values are named. Capabilities:
{ "error": "Cannot invite with capabilities you do not hold: edit-member-access.", "code": "workspace/no-escalation" }
…and permissions:
{ "error": "Cannot invite with permissions you do not hold: deploy.", "code": "workspace/no-escalation" }
Insufficient Rank — 403
{ "error": "You may only invite at a rank strictly below your own.", "code": "workspace/insufficient-rank" }
Checked against the resolved absolute rank, so absolute and relative input face the identical floor. A relativeRank of 1 or more can never trip it.
Rank out of range — 400
{ "error": "The resolved rank (2147483648) is out of range — ranks are integers from 0 to 2147483647.", "code": "workspace/invalid-body" }
Raised after the offset is resolved, which is where an overflow is created: relativeRank: 1 sent by a rank-2147483647 inviter is two individually-valid numbers whose sum is not storable. Out-of-range rank / relativeRankinput is refused earlier by the schema, with the same code.
Both rank coordinates supplied — 400
{ "error": "relativeRank: Provide either rank (absolute) or relativeRank (offset from you), not both", "code": "workspace/invalid-body" }
A schema rejection, so the message is prefixed with the field it was reported against. One coordinate system per request. Supplying both is refused rather than resolved by precedence — either reading could grant a rank you did not intend.
Missing Invite Accept URL — 409
{ "error": "This project has no workspaces.inviteAcceptUrl configured...", "code": "workspace/missing-invite-accept-url" }
A project misconfiguration, not a bad request — the payload is fine and the caller is authorized. Set workspaces.inviteAcceptUrl in your project settings and retry the identical request.
Every path id on the workspaces bundle is checked for UUID shape before the route runs, so a malformed one is a plain 400 rather than a 500 from the database.
Every workspaces endpoint declares its body fields exactly, and a top-level body field it does not declare is refused rather than ignored, for every caller. Two or more at once are named together: Unrecognized keys: "onBehalfOf", "impersonate". Send only the fields documented above, in the JSON body. The query string carries none of them: a body field sent there is 400 workspace/wrong-location, a userId or a re-cased actingUserId there is 400 workspace/invalid-query, and any other query parameter is ignored. See Shapes the server rejects.
Unparsed Body — 400
{ "error": "This request carries a body with content-type \"text/plain;charset=UTF-8\", which no parser reads, so any `actingUserId` inside it was discarded and this request names no acting user. Send the body as application/json.", "code": "workspace/invalid-body"}
Returned when a service key sends a body with a Content-Type other than application/jsonand no actingUserId was read. Sublay parses only application/json, so the actor inside such a body is discarded and the request would name no acting user. fetch() sends text/plain;charset=UTF-8 when you pass a stringified body and set no headers — set the header. An empty JSON body and a bodiless request both pass. See Shapes the server rejects.
Missing Acting User — 400
{ "error": "A service key must send actingUserId: the user this request acts as.", "code": "workspace/missing-user-id" }
A service key sent no actingUserId. An invitation always has an inviter: the request acts as them, is held to their standing, and records them as invitedById.
Acting User Not Allowed — 400
{ "error": "actingUserId is only accepted with a service key. A user's own token always acts as that user.", "code": "workspace/acting-user-not-allowed" }
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Wrong Location — 400
{ "error": "`actingUserId` goes in the request body on this endpoint.", "code": "workspace/wrong-location", "param": "actingUserId" }
A field this endpoint reads from the body was sent in the query string. actingUserId and every body field go in the JSON body.
User Not Found — 404
{ "error": "No user with this actingUserId exists in this project.", "code": "workspace/user-not-found" }
Returned when a service key names an actingUserId that isn’t a user in this project.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Sublay Documentation","colors":{"primary":"#D22F55","light":"#F06789","dark":"#9E1E3E"},"logo":{"light":"https://mintcdn.com/replyke/v1bBipIMITFr7df3/logo/wordmark-dark.png?fit=max\u0026auto=format\u0026n=v1bBipIMITFr7df3\u0026q=85\u0026s=b95cabb32c98884aa4bca294b07238cc","dark":"https://mintcdn.com/replyke/v1bBipIMITFr7df3/logo/wordmark-light.png?fit=max\u0026auto=format\u0026n=v1bBipIMITFr7df3\u0026q=85\u0026s=871e10ec08b164c26f260e845b44c5c5"},"favicon":"https://mintcdn.com/replyke/v1bBipIMITFr7df3/favicon.svg?fit=max\u0026auto=format\u0026n=v1bBipIMITFr7df3\u0026q=85\u0026s=4988ad1acfb2c3909d214fd1ea72e5d8","api":{"playground":{"display":"none"},"mdx":{"auth":{"method":"bearer"},"server":"https://api.sublay.io"}},"navbar":{"links":[{"href":"https://dash.sublay.io","label":"Dashboard"}]},"footer":{"socials":{"github":"https://github.com/sublay-io"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"replyke","hasAudioNarration":false,"actualSubdomain":"replyke","customDomains":["docs.sublay.io"],"gitSource":{"type":"github","owner":"sublay-io","repo":"monorepo","deployBranch":"v8","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0c04a2f26c07143e91bd0b","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"API Reference","count":522},{"language":"default","tag":"Hooks Reference","count":487},{"language":"default","tag":"SDK Reference","count":145},{"language":"default","tag":"Components","count":92},{"language":"default","tag":"Modules","count":84},{"language":"default","tag":"Spaces","count":68},{"language":"default","tag":"Data Models","count":55},{"language":"default","tag":"Models","count":55},{"language":"default","tag":"Workspaces","count":50},{"language":"default","tag":"JS SDK","count":44}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"site-roles","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":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"v8/api-reference/workspaces/invitations/create-invite","slug":"/v8/api-reference/workspaces/invitations/create-invite","pageMetadata":{"title":"Create Invite","api":"POST /v8/:projectId/workspaces/:workspaceId/invites","description":"Invite a user by email, userId, or username","href":"/v8/api-reference/workspaces/invitations/create-invite"},"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: \"Invite a user by email, userId, or username\"\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={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,Heading,Note,ParamField,Table,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates an invitation, addressed by `,_jsx(_components.strong,{children:`exactly one`}),` of `,_jsx(_components.code,{children:`email`}),`, `,_jsx(_components.code,{children:`userId`}),`, or `,_jsx(_components.code,{children:`username`}),`. Requires the `,_jsx(_components.code,{children:`invite`}),` capability. Always sends an email (no toggle). Fires `,_jsx(_components.code,{children:`workspace.invite.created`}),`.`]}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Requires `,_jsx(_components.code,{children:`workspaces.inviteAcceptUrl`}),` on the project.`]}),` The invitation email’s only call to action is a deep-link built from that setting, and it has no default — so an unconfigured project cannot create invitations at all. Without it this endpoint returns `,_jsx(_components.code,{children:`409 workspace/missing-invite-accept-url`}),` and persists nothing (no invitation row, no email, no webhook).`]}),_jsxs(_components.p,{children:[`This applies `,_jsx(_components.strong,{children:`even when the invitee already has an account`}),` — there is no special case. See `,_jsx(_components.a,{href:`/v8/sdk/workspaces/overview#project-settings`,children:`Project settings`}),` for how to configure it.`]})]}),`\n`,_jsxs(_components.p,{children:[`The invited `,_jsx(_components.code,{children:`capabilities`}),`/`,_jsx(_components.code,{children:`permissions`}),` are validated against the inviter’s own resolved set on the workspace — no-escalation on both arrays. The rank floor applies `,_jsx(_components.strong,{children:`only when the inviter has a direct member row`}),` on the workspace: then the invited rank must be strictly larger (less senior) than the inviter’s own. A `,_jsx(_components.strong,{children:`reach-holder`}),` inviter (holding `,_jsx(_components.code,{children:`invite`}),` via an open inherit chain, with no direct row) is not in the workspace’s rank ladder and may invite at any rank.`]}),`\n`,_jsxs(_components.p,{children:[`The invited rank is named in `,_jsx(_components.strong,{children:`either coordinate`}),` — `,_jsx(_components.code,{children:`rank`}),` (absolute) or `,_jsx(_components.code,{children:`relativeRank`}),` (an offset from the inviter) — and they are `,_jsx(_components.strong,{children:`mutually exclusive`}),`. Supplying `,_jsx(_components.strong,{children:`neither`}),` applies the default, `,_jsx(_components.code,{children:`relativeRank: 1`}),`: one rung below the inviter. Whichever arrives, it is resolved to an absolute number here and stored absolute on the invitation row. See `,_jsx(_components.a,{href:`/v8/sdk/workspaces/overview#choosing-a-rank`,children:`choosing a rank`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The inviter is the caller’s own token subject, or — for a service key — the `,_jsx(_components.code,{children:`actingUserId`}),` it names, which a key must send. The invitation’s `,_jsx(_components.code,{children:`invitedById`}),` records the inviter. Both floors are skipped for an owner or ancestor owner.`]}),`\n`,_jsxs(Note,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`A tier cannot grow itself.`}),` Because the rank floor is strict, a rank-5 manager with a direct member row can invite rank 6, 7, 8… but `,_jsx(_components.strong,{children:`never another rank 5`}),`. Minting a peer needs someone above that tier, and no ranked member at all clears the floor for `,_jsx(_components.strong,{children:`rank 0`}),`. If your product has a server-driven “add a manager” action, act as the owner for it.`]}),_jsxs(_components.p,{children:[`As stated above, the floor only binds an inviter who holds a `,_jsx(_components.strong,{children:`direct member row`}),` here — an owner or ancestor owner and a reach-holder with no direct row skip it and may invite at any rank, rank 0 included.`]})]}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Omitting the rank field is the easiest way in the whole API to mint rank 0.`}),` The default is `,_jsx(_components.code,{children:`relativeRank: 1`}),` — one rung below the inviter — and `,_jsx(_components.em,{children:`apex`}),` is where an inviter with no member row on this workspace stands. So for an `,_jsx(_components.strong,{children:`owner`}),`, an `,_jsx(_components.strong,{children:`ancestor owner`}),` or a `,_jsx(_components.strong,{children:`reach-holder`}),` with no direct row, one below apex `,_jsx(_components.strong,{children:`is rank 0`}),`: the most senior rung on the ladder, handed out by leaving a field off.`]}),_jsxs(_components.p,{children:[`That is semantically right — one below apex `,_jsx(_components.em,{children:`is`}),` the top rung — and it is not changing. But it inverts the intuition that omitting a field is the cautious choice, and it lands squarely on the path this page calls the happy path. The scenario to watch is the `,_jsx(_components.strong,{children:`backend invite flow`}),`: a server route that invites people with a service key acting as the owner, sending an address and capabilities and no rank, mints a workspace full of rank-0 members — each one able to manage everyone else, and none of them manageable by anyone but the owner. If a service-key flow wants new members at the `,_jsx(_components.strong,{children:`bottom`}),` of the ladder, it must name a coordinate (`,_jsx(_components.code,{children:`rank: 10`}),`, or `,_jsx(_components.code,{children:`relativeRank`}),` against an `,_jsx(_components.code,{children:`actingUserId`}),` who actually sits in the ladder) rather than rely on the default.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`The milder collision applies to in-ladder inviters.`}),` A rank-0 lead who invites six people with no rank field gets six rank-1 members, and equals cannot act on equals — none of those six can manage each other; only the lead can. Often correct for a flat team, and worth deciding on purpose rather than discovering later. If your product has tiers, name one on the invite.`]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Duplicate handling:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Inviting an `,_jsx(_components.strong,{children:`existing member`}),` → `,_jsx(_components.code,{children:`409`}),` (change the grant via `,_jsx(_components.a,{href:`/v8/api-reference/workspaces/members/update-member`,children:`Update Member`}),`).`]}),`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.strong,{children:`live`}),` invite (`,_jsx(_components.code,{children:`pending`}),` and not past `,_jsx(_components.code,{children:`expiresAt`}),`) for the same target → the existing invitation is `,_jsx(_components.strong,{children:`updated in place`}),`, under the same `,_jsx(_components.code,{children:`id`}),`, and its 14-day expiry restarts. This answers `,_jsx(_components.code,{children:`200`}),` instead of `,_jsx(_components.code,{children:`201`}),`, sends the invitation email again, and fires `,_jsx(_components.code,{children:`workspace.invite.created`}),` again with the same `,_jsx(_components.code,{children:`invitationId`}),`. See `,_jsx(_components.a,{href:`#what-a-re-invite-does-to-the-grant`,children:`what a re-invite does to the grant`}),` — it is not a plain replace.`]}),`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.strong,{children:`terminal`}),` (`,_jsx(_components.code,{children:`accepted`}),`/`,_jsx(_components.code,{children:`declined`}),`/`,_jsx(_components.code,{children:`revoked`}),`) or `,_jsx(_components.strong,{children:`effectively-expired`}),` invite does `,_jsx(_components.strong,{children:`not`}),` block — a fresh `,_jsx(_components.code,{children:`pending`}),` is created. (An `,_jsx(_components.code,{children:`accepted`}),` invite means the user is already a member, so re-inviting them returns `,_jsx(_components.code,{children:`409`}),` instead.)`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Two invites for the same person sent at the same time leave one invitation.`}),`\n`,_jsxs(_components.p,{children:[`Invite-by-email to an address that already has an account resolves and stores the `,_jsx(_components.code,{children:`userId`}),` at creation. The account lookup is `,_jsx(_components.strong,{children:`case-insensitive`}),`, so an account stored as `,_jsx(_components.code,{children:`Jane@Example.com`}),` is still bound when invited as `,_jsx(_components.code,{children:`jane@example.com`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`what-a-re-invite-does-to-the-grant`,children:`What a re-invite does to the grant`}),`\n`,_jsxs(_components.p,{children:[`This endpoint doubles as an `,_jsx(_components.strong,{children:`upsert`}),`, so a second call for a target who already has a live invite edits that invitation rather than creating a second one. On that path, each grant field — `,_jsx(_components.code,{children:`rank`}),`/`,_jsx(_components.code,{children:`relativeRank`}),`, `,_jsx(_components.code,{children:`capabilities`}),`, `,_jsx(_components.code,{children:`permissions`}),`, `,_jsx(_components.code,{children:`title`}),` — is handled independently:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Omitted → preserved.`}),` The stored value is kept as-is. It is `,_jsx(_components.em,{children:`not`}),` re-defaulted, and not blanked. This is what makes a bare “Resend invitation” button that sends only the address safe: a deliberate `,_jsx(_components.code,{children:`rank: 10`}),` contractor invite stays at rank 10 no matter who presses it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Explicitly supplied → overwritten.`}),` Refreshing a grant is a real use of this route, so naming a value still changes it. An explicitly empty array (`,_jsx(_components.code,{children:`capabilities: []`}),`) is a value, not an omission, and does clear the field.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`An explicit `,_jsx(_components.code,{children:`relativeRank`}),` re-resolves against the `,_jsx(_components.em,{children:`current`}),` caller.`]}),` The offset is anchored on whoever is calling now, not on whoever created the invitation — so `,_jsx(_components.code,{children:`relativeRank: 1`}),` sent by a rank-3 member rewrites the invitation to rank 4, while the same field sent by the owner rewrites it to rank 0. If you mean “leave the rank alone”, send neither rank field.`]}),`\n`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`A re-invite may `,_jsx(_components.strong,{children:`preserve`}),` a rank the current caller could not have minted themselves — omission is not a write, so no floor is re-applied to it. That is deliberate and matches `,_jsx(_components.a,{href:`/v8/api-reference/workspaces/invitations/resend-invite`,children:`Resend Invite`}),`, which extends the very same invitation, rank intact, on the same `,_jsx(_components.code,{children:`invite`}),` capability. Values you `,_jsx(_components.em,{children:`do`}),` supply are floored normally.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`workspaceId`,type:`string`,required:true,id:`param-workspace-id`,children:_jsx(_components.p,{children:`The workspace UUID.`})}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body Parameters`}),`\n`,_jsx(ParamField,{body:`email`,type:`string`,id:`param-email`,children:_jsxs(_components.p,{children:[`Invitee email (trimmed + lowercased server-side). One of `,_jsx(_components.code,{children:`email`}),`/`,_jsx(_components.code,{children:`userId`}),`/`,_jsx(_components.code,{children:`username`}),` is required. Matching an existing account is `,_jsx(_components.strong,{children:`case-insensitive`}),`, so an address that was stored with different capitalization (as OAuth-created accounts are) still binds its `,_jsx(_components.code,{children:`userId`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`userId`,type:`string`,id:`param-user-id`,children:[_jsxs(_components.p,{children:[`Invitee user id (existing users only). Here `,_jsx(_components.code,{children:`userId`}),` is the invite `,_jsx(_components.strong,{children:`target`}),`, not an acting user.`]}),_jsxs(_components.p,{children:[`This route is the `,_jsx(_components.strong,{children:`one exception`}),` to a bundle-wide rule: on every other workspace route a body or query `,_jsx(_components.code,{children:`userId`}),` is rejected with a `,_jsx(_components.code,{children:`400`}),`, because there it can only be a stale spelling of the actor. See `,_jsx(_components.a,{href:`/v8/sdk/workspaces/overview#shapes-the-server-rejects`,children:`Shapes the server rejects`}),`.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`The exception is the body only.`}),` A query `,_jsx(_components.code,{children:`?userId=`}),` is rejected here exactly as it is everywhere else — `,_jsx(_components.code,{children:`400 workspace/invalid-query`}),` — because this endpoint never reads one, so in the query string it can only be the stale actor spelling. Send the invitee in the JSON body.`]})]}),`\n`,_jsx(ParamField,{body:`username`,type:`string`,id:`param-username`,children:_jsx(_components.p,{children:`Invitee username (existing users only).`})}),`\n`,_jsx(ParamField,{body:`capabilities`,type:`string[]`,id:`param-capabilities`,children:_jsxs(_components.p,{children:[`Capabilities to apply on accept. Subject to no-escalation. Defaults to `,_jsx(_components.code,{children:`[]`}),` on a `,_jsx(_components.strong,{children:`new`}),` invitation; on a `,_jsx(_components.a,{href:`#what-a-re-invite-does-to-the-grant`,children:`re-invite`}),` omitting it `,_jsx(_components.strong,{children:`preserves`}),` the stored set, while `,_jsx(_components.code,{children:`[]`}),` explicitly clears it.`]})}),`\n`,_jsx(ParamField,{body:`permissions`,type:`string[]`,id:`param-permissions`,children:_jsxs(_components.p,{children:[`Opaque permissions to apply on accept. Subject to no-escalation. Defaults to `,_jsx(_components.code,{children:`[]`}),` on a `,_jsx(_components.strong,{children:`new`}),` invitation; on a `,_jsx(_components.a,{href:`#what-a-re-invite-does-to-the-grant`,children:`re-invite`}),` omitting it `,_jsx(_components.strong,{children:`preserves`}),` the stored set, while `,_jsx(_components.code,{children:`[]`}),` explicitly clears it.`]})}),`\n`,_jsxs(ParamField,{body:`rank`,type:`number`,id:`param-rank`,children:[_jsxs(_components.p,{children:[`Initial `,_jsx(_components.strong,{children:`absolute`}),` rank to apply on accept, from `,_jsx(_components.code,{children:`0`}),` to `,_jsx(_components.code,{children:`2147483647`}),`. For a direct-member inviter it must be strictly larger (less senior) than their own; a reach-holder inviter (no direct row) may set any rank.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`No longer required.`}),` Omit it and `,_jsx(_components.code,{children:`relativeRank`}),` both, and the server applies `,_jsx(_components.code,{children:`relativeRank: 1`}),` on a `,_jsx(_components.strong,{children:`new`}),` invitation — or, on a `,_jsx(_components.a,{href:`#what-a-re-invite-does-to-the-grant`,children:`re-invite`}),`, preserves the rank already stored. Mutually exclusive with `,_jsx(_components.code,{children:`relativeRank`}),` — sending both is a `,_jsx(_components.code,{children:`400`}),`.`]})]}),`\n`,_jsxs(ParamField,{body:`relativeRank`,type:`number`,default:`1`,id:`param-relative-rank`,children:[_jsxs(_components.p,{children:[`Initial rank expressed as an `,_jsx(_components.strong,{children:`offset from the inviter`}),`: `,_jsx(_components.code,{children:`1`}),` = one rung below me, `,_jsx(_components.code,{children:`2`}),` = two rungs below. Must be `,_jsx(_components.code,{children:`1`}),` – `,_jsx(_components.code,{children:`2147483647`}),` — `,_jsx(_components.code,{children:`0`}),` would mean “a peer”, which the assign rule forbids, and a negative offset would mint someone senior to the inviter; both are a `,_jsx(_components.code,{children:`400`}),`. The `,_jsx(_components.strong,{children:`resolved`}),` rank is bounded too, so an in-range offset that overflows once anchored is also a `,_jsx(_components.code,{children:`400`}),`, never a `,_jsx(_components.code,{children:`500`}),`.`]}),_jsxs(_components.p,{children:[`The offset is anchored on the inviter’s `,_jsx(_components.strong,{children:`own rank if they hold a member row on this workspace`}),`, and on `,_jsx(_components.strong,{children:`apex`}),` (one step above rank 0) if they do not — so an owner’s `,_jsx(_components.code,{children:`relativeRank: 1`}),` lands on rank `,_jsx(_components.code,{children:`0`}),`, while a rank-3 member’s lands on rank `,_jsx(_components.code,{children:`4`}),`. The anchor turns on the row, not on what kind of actor the inviter is: an ancestor owner who `,_jsx(_components.em,{children:`also`}),` holds a row here measures from that row.`]}),_jsx(_components.p,{children:`Relative input passes the rank floor by construction, which is why it is the default.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Each resolution is a snapshot.`}),` The offset is resolved against the caller `,_jsx(_components.em,{children:`at the moment of the call`}),` and frozen on the invitation as an absolute number — it does not track the inviter’s later promotions or demotions. It is a snapshot of the request, not of the invitation: sending `,_jsx(_components.code,{children:`relativeRank`}),` again on a `,_jsx(_components.a,{href:`#what-a-re-invite-does-to-the-grant`,children:`re-invite`}),` takes a `,_jsx(_components.strong,{children:`fresh`}),` snapshot against whoever is calling then, and overwrites the stored rank. Omitting both rank fields on a re-invite takes no snapshot at all and preserves what is stored.`]})]}),`\n`,_jsx(ParamField,{body:`title`,type:`string`,id:`param-title`,children:_jsxs(_components.p,{children:[`Optional initial cosmetic title. On a `,_jsx(_components.a,{href:`#what-a-re-invite-does-to-the-grant`,children:`re-invite`}),`, omitting it preserves the stored title; sending `,_jsx(_components.code,{children:`null`}),` clears it.`]})}),`\n`,_jsx(ParamField,{body:`actingUserId`,type:`string`,required:true,id:`param-acting-user-id`,children:_jsxs(_components.p,{children:[`Service keys only — the `,_jsx(_components.strong,{children:`inviter`}),` to act as. `,_jsx(_components.strong,{children:`Required with a service key:`}),` a key that names nobody is refused with `,_jsx(_components.code,{children:`400 workspace/missing-user-id`}),`. Enforced: the `,_jsx(_components.code,{children:`invite`}),` capability, the no-escalation and rank floors above run against `,_jsx(_components.em,{children:`that`}),` user’s resolved standing, so a key naming a rank-5 manager may only invite at rank 6+ and only with capabilities that manager holds, and the invitation’s `,_jsx(_components.code,{children:`invitedById`}),` records them. `,_jsx(_components.code,{children:`actingUserId: \"\"`}),` or `,_jsx(_components.code,{children:`null`}),` is a `,_jsx(_components.code,{children:`400`}),`, an attempt to name someone that names no one. Every top-level body field this endpoint does not declare is a `,_jsx(_components.code,{children:`400`}),` too — `,_jsx(_components.code,{children:`Unrecognized key: \"…\"`}),`, for every caller — and in the query string, `,_jsx(_components.code,{children:`actingUserId`}),` and every body field are `,_jsx(_components.code,{children:`400 workspace/wrong-location`}),`. The fields this endpoint `,_jsx(_components.em,{children:`does`}),` declare are accepted on their own terms: `,_jsx(_components.code,{children:`username`}),` reaches the server intact and behaves identically to `,_jsx(_components.code,{children:`email`}),` and `,_jsx(_components.code,{children:`userId`}),`. The `,_jsx(_components.strong,{children:`body`}),` `,_jsx(_components.code,{children:`userId`}),` is the one declared field on the bundle that names a person and is not the actor, so it carries a carve-out from the bundle-wide `,_jsx(_components.code,{children:`userId`}),` rejection; a query `,_jsx(_components.code,{children:`userId`}),` is refused here as everywhere else. A user token always acts as its own user and must not send it (`,_jsx(_components.code,{children:`400 workspace/acting-user-not-allowed`}),`). See `,_jsx(_components.a,{href:`/v8/sdk/workspaces/overview#acting-on-behalf-of-a-user`,children:`Acting on behalf of a user`}),` and `,_jsx(_components.a,{href:`/v8/sdk/workspaces/overview#shapes-the-server-rejects`,children:`Shapes the server rejects`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Returns a `,_jsx(_components.a,{href:`/v8/data-models/workspace-invitation`,children:`WorkspaceInvitation`}),` object, the same body either way:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Case`}),_jsx(_components.th,{children:`Status`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A new invitation was created`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`201`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`The target’s live pending invitation was updated in place (same `,_jsx(_components.code,{children:`id`}),`, new expiry)`]}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`200`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The target is already a member, or owns the workspace`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`409 workspace/already-member`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`Forbidden — 403`,id:`forbidden-403`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Capability 'invite' required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/forbidden\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`The acting user can see the workspace but has no `,_jsx(_components.code,{children:`invite`}),` capability on it.`]})]}),_jsxs(Accordion,{title:`Not Found — 404`,id:`not-found-404`,children:[_jsxs(_components.p,{children:[`The workspace doesn’t exist, or the acting user has no relation to it (not its owner, an ancestor owner, a member or a reach-holder): the two answer alike, with the same body `,_jsx(_components.a,{href:`/v8/api-reference/workspaces/fetch-workspace`,children:`Fetch Workspace`}),` gives.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Workspace not found.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/not-found\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})})]}),_jsxs(Accordion,{title:`User Not Found — 404`,id:`user-not-found-404`,children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`userId`}),` or `,_jsx(_components.code,{children:`username`}),` names no user in this project.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The invited user was not found.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/user-not-found\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The invited username was not found.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/user-not-found\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})})]}),_jsxs(Accordion,{title:`Invalid Email — 400`,id:`invalid-email-400`,children:[_jsxs(_components.p,{children:[`Neither `,_jsx(_components.code,{children:`userId`}),` nor `,_jsx(_components.code,{children:`username`}),` was sent, and `,_jsx(_components.code,{children:`email`}),` isn’t a valid email address.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A valid invite target (email, userId, or username) is required.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/invalid-body\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"param\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})})]}),_jsxs(Accordion,{title:`Already a Member — 409`,id:`already-a-member-409`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"That user is already a member. Change their grant via edit-member-access.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/already-member\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Inviting the workspace’s `,_jsx(_components.strong,{children:`owner`}),` shares the code with a message of its own:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"That user already owns this workspace.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/already-member\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})})]}),_jsxs(Accordion,{title:`No Escalation — 403`,id:`no-escalation-403`,children:[_jsx(_components.p,{children:`The offending values are named. Capabilities:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Cannot invite with capabilities you do not hold: edit-member-access.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/no-escalation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsx(_components.p,{children:`…and permissions:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Cannot invite with permissions you do not hold: deploy.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/no-escalation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})})]}),_jsxs(Accordion,{title:`Insufficient Rank — 403`,id:`insufficient-rank-403`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"You may only invite at a rank strictly below your own.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/insufficient-rank\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Checked against the `,_jsx(_components.strong,{children:`resolved absolute`}),` rank, so absolute and relative input face the identical floor. A `,_jsx(_components.code,{children:`relativeRank`}),` of `,_jsx(_components.code,{children:`1`}),` or more can never trip it.`]})]}),_jsxs(Accordion,{title:`Rank out of range — 400`,id:`rank-out-of-range-400`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The resolved rank (2147483648) is out of range — ranks are integers from 0 to 2147483647.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/invalid-body\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Raised `,_jsx(_components.strong,{children:`after`}),` the offset is resolved, which is where an overflow is created: `,_jsx(_components.code,{children:`relativeRank: 1`}),` sent by a rank-`,_jsx(_components.code,{children:`2147483647`}),` inviter is two individually-valid numbers whose sum is not storable. Out-of-range `,_jsx(_components.code,{children:`rank`}),` / `,_jsx(_components.code,{children:`relativeRank`}),` `,_jsx(_components.strong,{children:`input`}),` is refused earlier by the schema, with the same code.`]})]}),_jsxs(Accordion,{title:`Both rank coordinates supplied — 400`,id:`both-rank-coordinates-supplied-400`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"relativeRank: Provide either rank (absolute) or relativeRank (offset from you), not both\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/invalid-body\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsx(_components.p,{children:`A schema rejection, so the message is prefixed with the field it was reported against. One coordinate system per request. Supplying both is refused rather than resolved by precedence — either reading could grant a rank you did not intend.`})]}),_jsxs(Accordion,{title:`Missing Invite Accept URL — 409`,id:`missing-invite-accept-url-409`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This project has no workspaces.inviteAcceptUrl configured...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/missing-invite-accept-url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`A `,_jsx(_components.strong,{children:`project misconfiguration`}),`, not a bad request — the payload is fine and the caller is authorized. Set `,_jsx(_components.a,{href:`/v8/sdk/workspaces/overview#project-settings`,children:_jsx(_components.code,{children:`workspaces.inviteAcceptUrl`})}),` in your project settings and retry the identical request.`]})]}),_jsxs(Accordion,{title:`Invalid Path Parameter — 400`,id:`invalid-path-parameter-400`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid workspace id: expected a UUID.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/invalid-params\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"param\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspaceId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Every path id on the workspaces bundle is checked for UUID shape before the route runs, so a malformed one is a plain `,_jsx(_components.code,{children:`400`}),` rather than a `,_jsx(_components.code,{children:`500`}),` from the database.`]})]}),_jsxs(Accordion,{title:`Undeclared Field — 400`,id:`undeclared-field-400`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Unrecognized key: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`onBehalfOf`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/invalid-body\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"param\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"onBehalfOf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Every workspaces endpoint declares its body fields exactly, and a top-level body field it does not declare is refused rather than ignored, for every caller. Two or more at once are named together: `,_jsx(_components.code,{children:`Unrecognized keys: \"onBehalfOf\", \"impersonate\"`}),`. Send only the fields documented above, in the JSON body. The query string carries none of them: a body field sent there is `,_jsx(_components.code,{children:`400 workspace/wrong-location`}),`, a `,_jsx(_components.code,{children:`userId`}),` or a re-cased `,_jsx(_components.code,{children:`actingUserId`}),` there is `,_jsx(_components.code,{children:`400 workspace/invalid-query`}),`, and any other query parameter is ignored. See `,_jsx(_components.a,{href:`/v8/sdk/workspaces/overview#shapes-the-server-rejects`,children:`Shapes the server rejects`}),`.`]})]}),_jsxs(Accordion,{title:`Unparsed Body — 400`,id:`unparsed-body-400`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This request carries a body with content-type `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`text/plain;charset=UTF-8`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:', which no parser reads, so any `actingUserId` inside it was discarded and this request names no acting user. Send the body as application/json.\"'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/invalid-body\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`Returned when a service key sends a body with a `,_jsx(_components.code,{children:`Content-Type`}),` other than `,_jsx(_components.code,{children:`application/json`}),` `,_jsx(_components.strong,{children:`and`}),` no `,_jsx(_components.code,{children:`actingUserId`}),` was read. Sublay parses only `,_jsx(_components.code,{children:`application/json`}),`, so the actor inside such a body is discarded and the request would name no acting user. `,_jsx(_components.code,{children:`fetch()`}),` sends `,_jsx(_components.code,{children:`text/plain;charset=UTF-8`}),` when you pass a stringified body and set no headers — set the header. An empty JSON body and a bodiless request both pass. See `,_jsx(_components.a,{href:`/v8/sdk/workspaces/overview#shapes-the-server-rejects`,children:`Shapes the server rejects`}),`.`]})]}),_jsxs(Accordion,{title:`Missing Acting User — 400`,id:`missing-acting-user-400`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A service key must send actingUserId: the user this request acts as.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/missing-user-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`A service key sent no `,_jsx(_components.code,{children:`actingUserId`}),`. An invitation always has an inviter: the request acts as them, is held to their standing, and records them as `,_jsx(_components.code,{children:`invitedById`}),`.`]})]}),_jsxs(Accordion,{title:`Acting User Not Allowed — 400`,id:`acting-user-not-allowed-400`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"actingUserId is only accepted with a service key. A user's own token always acts as that user.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/acting-user-not-allowed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`A user token sent `,_jsx(_components.code,{children:`actingUserId`}),`, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.`]})]}),_jsxs(Accordion,{title:`Wrong Location — 400`,id:`wrong-location-400`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:'\"`actingUserId` goes in the request body on this endpoint.\"'}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/wrong-location\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"param\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"actingUserId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`A field this endpoint reads from the body was sent in the query string. `,_jsx(_components.code,{children:`actingUserId`}),` and every body field go in the JSON body.`]})]}),_jsxs(Accordion,{title:`User Not Found — 404`,id:`user-not-found-404-1`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No user with this actingUserId exists in this project.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"workspace/user-not-found\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Returned when a service key names an `,_jsx(_components.code,{children:`actingUserId`}),` that isn’t a user in this project.`]})]})]}),`\n`,_jsxs(_components.p,{children:[`See also: `,_jsx(_components.a,{href:`/v8/hooks/workspaces/use-create-workspace-invite`,children:`useCreateWorkspaceInvite`}),` · `,_jsx(_components.a,{href:`/v8/js-sdk/workspaces`,children:`createWorkspaceInvite (js-sdk)`}),` · `,_jsx(_components.a,{href:`/v8/node-sdk/workspaces`,children:`createWorkspaceInvite (node-sdk)`})]})]})}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":"Create Invite","api":"POST /v8/:projectId/workspaces/:workspaceId/invites","description":"Invite a user by email, userId, or username","href":"/v8/api-reference/workspaces/invitations/create-invite"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What a re-invite does to the grant","slug":"what-a-re-invite-does-to-the-grant","depth":3,"children":[]},{"title":"Path Parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Body Parameters","slug":"body-parameters","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Error Responses","slug":"error-responses","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Create Invite","path":"/v8/:projectId/workspaces/:workspaceId/invites","servers":[{"url":"https://api.sublay.io"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{"workspaceId":{"schema":[{"type":"string","description":"The workspace UUID.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"email":[{"type":"string","description":"Invitee email (trimmed + lowercased server-side). One of `email` / `userId` / `username` is required. Matching an existing account is case-insensitive , so an address that was stored with different capitalization (as OAuth-created accounts are) still binds its `userId` ."}],"userId":[{"type":"string","description":"Invitee user id (existing users only). Here `userId` is the invite target , not an acting user. This route is the one exception to a bundle-wide rule: on every other workspace route a body or query `userId` is rejected with a `400` , because there it can only be a stale spelling of the actor. See Shapes the server rejects . The exception is the body only. A query `?userId=` is rejected here exactly as it is everywhere else — `400 workspace/invalid-query` — because this endpoint never reads one, so in the query string it can only be the stale actor spelling. Send the invitee in the JSON body."}],"username":[{"type":"string","description":"Invitee username (existing users only)."}],"capabilities":[{"type":"array","items":[{"type":"string"}],"description":"Capabilities to apply on accept. Subject to no-escalation. Defaults to `[]` on a new invitation; on a re-invite omitting it preserves the stored set, while `[]` explicitly clears it."}],"permissions":[{"type":"array","items":[{"type":"string"}],"description":"Opaque permissions to apply on accept. Subject to no-escalation. Defaults to `[]` on a new invitation; on a re-invite omitting it preserves the stored set, while `[]` explicitly clears it."}],"rank":[{"type":"number","description":"Initial absolute rank to apply on accept, from `0` to `2147483647` . For a direct-member inviter it must be strictly larger (less senior) than their own; a reach-holder inviter (no direct row) may set any rank. No longer required. Omit it and `relativeRank` both, and the server applies `relativeRank: 1` on a new invitation — or, on a re-invite , preserves the rank already stored. Mutually exclusive with `relativeRank` — sending both is a `400` ."}],"relativeRank":[{"type":"number","description":"Initial rank expressed as an offset from the inviter : `1` = one rung below me, `2` = two rungs below. Must be `1` – `2147483647` — `0` would mean “a peer”, which the assign rule forbids, and a negative offset would mint someone senior to the inviter; both are a `400` . The resolved rank is bounded too, so an in-range offset that overflows once anchored is also a `400` , never a `500` . The offset is anchored on the inviter’s own rank if they hold a member row on this workspace , and on apex (one step above rank 0) if they do not — so an owner’s `relativeRank: 1` lands on rank `0` , while a rank-3 member’s lands on rank `4` . The anchor turns on the row, not on what kind of actor the inviter is: an ancestor owner who also holds a row here measures from that row. Relative input passes the rank floor by construction, which is why it is the default. Each resolution is a snapshot. The offset is resolved against the caller at the moment of the call and frozen on the invitation as an absolute number — it does not track the inviter’s later promotions or demotions. It is a snapshot of the request, not of the invitation: sending `relativeRank` again on a re-invite takes a fresh snapshot against whoever is calling then, and overwrites the stored rank. Omitting both rank fields on a re-invite takes no snapshot at all and preserves what is stored."}],"title":[{"type":"string","description":"Optional initial cosmetic title. On a re-invite , omitting it preserves the stored title; sending `null` clears it."}],"actingUserId":[{"type":"string","description":"Service keys only — the inviter to act as. Required with a service key: a key that names nobody is refused with `400 workspace/missing-user-id` . Enforced: the `invite` capability, the no-escalation and rank floors above run against that user’s resolved standing, so a key naming a rank-5 manager may only invite at rank 6+ and only with capabilities that manager holds, and the invitation’s `invitedById` records them. `actingUserId: \"\"` or `null` is a `400` , an attempt to name someone that names no one. Every top-level body field this endpoint does not declare is a `400` too — `Unrecognized key: \"…\"` , for every caller — and in the query string, `actingUserId` and every body field are `400 workspace/wrong-location` . The fields this endpoint does declare are accepted on their own terms: `username` reaches the server intact and behaves identically to `email` and `userId` . The body `userId` is the one declared field on the bundle that names a person and is not the actor, so it carries a carve-out from the bundle-wide `userId` rejection; a query `userId` is refused here as everywhere else. A user token always acts as its own user and must not send it ( `400 workspace/acting-user-not-allowed` ). See Acting on behalf of a user and Shapes the server rejects .","required":true}]}}],"examples":{"example":{"value":{"email":"\u003cstring>","userId":"\u003cstring>","username":"\u003cstring>","capabilities":["\u003cstring>"],"permissions":["\u003cstring>"],"rank":123,"relativeRank":123,"title":"\u003cstring>","actingUserId":"\u003cstring>"}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"replyke","siteName":"Sublay Documentation","title":"Create Invite - Sublay Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"8.0.0":{"href":"/v8/api-reference/workspaces/invitations/create-invite","matchLevel":0},"7.0.0":{"href":"/v7/api-reference/workspaces/invitations/create-invite","matchLevel":1},"6.0.0":{"href":"/v6","matchLevel":4}},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T18:51:59.440Z","originalFileLocation":"v8/api-reference/workspaces/invitations/create-invite.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=\"Invite a user by email, userId, or username\">\u003cmeta data-mint-head name=\"application-name\" content=\"Sublay Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Invite - Sublay Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Invite a user by email, userId, or username\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Sublay Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sublay.io/v8/api-reference/workspaces/invitations/create-invite\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://replyke.mintlify.site/_mintlify/api/og/v2?division=Workspace+%E2%80%94+Invitations\u0026amp;title=Create+Invite\u0026amp;description=Invite+a+user+by+email%2C+userId%2C+or+username\u0026amp;theme=1f560c5aaf3e1f0507c7e36a\u0026amp;signature=50f8d22278e2f7e25451ac10328276355c991b20e3c6a43e95875b1b36230b05\">\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=\"Create Invite - Sublay Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Invite a user by email, userId, or username\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://replyke.mintlify.site/_mintlify/api/og/v2?division=Workspace+%E2%80%94+Invitations\u0026amp;title=Create+Invite\u0026amp;description=Invite+a+user+by+email%2C+userId%2C+or+username\u0026amp;theme=1f560c5aaf3e1f0507c7e36a\u0026amp;signature=50f8d22278e2f7e25451ac10328276355c991b20e3c6a43e95875b1b36230b05\">\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=\"/mintlify-assets/_mintlify/favicons/replyke/a1LNRWO56FGzWHgw/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Sublay Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#D22F55\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sublay.io/v8/api-reference/workspaces/invitations/create-invite\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v8/api-reference/workspaces/invitations/create-invite.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sublay.io/#organization\",\"name\":\"Sublay Documentation\",\"url\":\"https://docs.sublay.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/replyke/v1bBipIMITFr7df3/logo/wordmark-dark.png?fit=max\u0026auto=format\u0026n=v1bBipIMITFr7df3\u0026q=85\u0026s=b95cabb32c98884aa4bca294b07238cc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sublay.io#website\",\"name\":\"Sublay Documentation\",\"url\":\"https://docs.sublay.io\",\"publisher\":{\"@id\":\"https://docs.sublay.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sublay.io/v8/api-reference/workspaces/invitations/create-invite#webpage\",\"url\":\"https://docs.sublay.io/v8/api-reference/workspaces/invitations/create-invite\",\"name\":\"Create Invite\",\"description\":\"Invite a user by email, userId, or username\",\"dateModified\":\"2026-11-18T18:51:59.440Z\",\"isPartOf\":{\"@id\":\"https://docs.sublay.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sublay.io/v8/api-reference/workspaces/invitations/create-invite#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sublay.io/v8/api-reference/workspaces/invitations/create-invite#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sublay Documentation\",\"item\":\"https://docs.sublay.io\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Invite\",\"item\":\"https://docs.sublay.io/v8/api-reference/workspaces/invitations/create-invite\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.sublay.io/v8/api-reference/workspaces/invitations/create-invite#apireference\",\"headline\":\"Create Invite\",\"name\":\"Create Invite\",\"description\":\"Invite a user by email, userId, or username\",\"url\":\"https://docs.sublay.io/v8/api-reference/workspaces/invitations/create-invite\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sublay.io/v8/api-reference/workspaces/invitations/create-invite#webpage\"},\"dateModified\":\"2026-11-18T18:51:59.440Z\",\"publisher\":{\"@id\":\"https://docs.sublay.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sublay.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Sublay Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Sublay Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/v8/api-reference/workspaces/invitations/create-invite.md","siteName":"Sublay Documentation","nav":{"global":null,"versions":[{"version":"8.0.0","tag":"Beta","tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":"/v8"}]},{"tab":"SDK Reference","pages":[{"title":"SDK Reference","href":"/v8/sdk/getting-started"}]},{"tab":"Hooks Reference","pages":[{"title":"Hooks Reference","href":"/v8/hooks/overview"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"Getting Started","href":"/v8/api-reference/getting-started"},{"title":"Authentication","href":"/v8/api-reference/authentication"}]},{"group":"Auth Endpoints","pages":[{"title":"Sign Up","api":"POST /v8/:projectId/auth/sign-up","href":"/v8/api-reference/auth/sign-up"},{"title":"Sign In","api":"POST /v8/:projectId/auth/sign-in","href":"/v8/api-reference/auth/sign-in"},{"title":"Sign Out","api":"POST /v8/:projectId/auth/sign-out","href":"/v8/api-reference/auth/sign-out"},{"title":"Change Password","api":"POST /v8/:projectId/auth/change-password","href":"/v8/api-reference/auth/change-password"},{"title":"Set Password","api":"POST /v8/:projectId/auth/set-password","href":"/v8/api-reference/auth/set-password"},{"title":"Request Access Token","api":"POST /v8/:projectId/auth/request-new-access-token","href":"/v8/api-reference/auth/request-access-token"},{"title":"Verify External User","api":"POST /v8/:projectId/auth/verify-external-user","href":"/v8/api-reference/auth/verify-external-user"},{"title":"Request Password Reset","api":"POST /v8/:projectId/auth/request-password-reset","href":"/v8/api-reference/auth/request-password-reset"},{"title":"Reset Password","api":"POST /v8/:projectId/auth/reset-password","href":"/v8/api-reference/auth/reset-password"},{"title":"Send Verification Email","api":"POST /v8/:projectId/auth/send-verification-email","href":"/v8/api-reference/auth/send-verification-email"},{"title":"Verify Email","api":"POST /v8/:projectId/auth/verify-email","href":"/v8/api-reference/auth/verify-email"},{"title":"Verify Email Link","api":"GET /v8/:projectId/auth/verify-email-link","href":"/v8/api-reference/auth/verify-email-link"},{"title":"Request Account Deletion","api":"POST /v8/:projectId/auth/request-account-deletion","href":"/v8/api-reference/auth/request-account-deletion"},{"title":"Confirm Account Deletion","api":"POST /v8/:projectId/auth/confirm-account-deletion","href":"/v8/api-reference/auth/confirm-account-deletion"}]},{"group":"OAuth Endpoints","pages":[{"title":"Authorize OAuth","api":"POST /v8/:projectId/oauth/authorize","href":"/v8/api-reference/oauth/authorize"},{"title":"Link OAuth Provider","api":"POST /v8/:projectId/oauth/link","href":"/v8/api-reference/oauth/link"},{"title":"List OAuth Identities","api":"GET /v8/:projectId/oauth/identities","href":"/v8/api-reference/oauth/list-identities"},{"title":"Unlink OAuth Identity","api":"DELETE /v8/:projectId/oauth/identities/:identityId","href":"/v8/api-reference/oauth/unlink-identity"}]},{"group":"User Endpoints","pages":[{"title":"Fetch User","api":"GET /v8/:projectId/users/:userId","href":"/v8/api-reference/users/fetch-user"},{"title":"Fetch User by Foreign ID","api":"GET /v8/:projectId/users/by-foreign-id","href":"/v8/api-reference/users/fetch-user-by-foreign-id"},{"title":"Fetch or Create User by Foreign ID","api":"POST /v8/:projectId/users/by-foreign-id","href":"/v8/api-reference/users/fetch-or-create-user-by-foreign-id"},{"title":"Fetch User by Username","api":"GET /v8/:projectId/users/by-username","href":"/v8/api-reference/users/fetch-user-by-username"},{"title":"Fetch User Suggestions","api":"GET /v8/:projectId/users/suggestions","href":"/v8/api-reference/users/fetch-user-suggestions"},{"title":"Fetch Comments by User","api":"GET /v8/:projectId/users/:userId/comments","href":"/v8/api-reference/users/fetch-comments-by-user-id"},{"title":"Check Username Availability","api":"GET /v8/:projectId/users/check-username","href":"/v8/api-reference/users/check-username-availability"},{"title":"Update User","api":"PATCH /v8/:projectId/users/:userId","href":"/v8/api-reference/users/update-user"},{"title":"Delete User","api":"DELETE /v8/:projectId/users/:userId","href":"/v8/api-reference/users/delete-user"}]},{"group":"User Follow Operations","pages":[{"title":"Follow User","api":"POST /v8/:projectId/users/:userId/follow","href":"/v8/api-reference/users/follows/follow-user"},{"title":"Get Follow Status","api":"GET /v8/:projectId/users/:userId/follow","href":"/v8/api-reference/users/follows/get-follow-status"},{"title":"Get Followers","api":"GET /v8/:projectId/users/:userId/followers","href":"/v8/api-reference/users/follows/get-followers"},{"title":"Get Followers Count","api":"GET /v8/:projectId/users/:userId/followers-count","href":"/v8/api-reference/users/follows/get-followers-count"},{"title":"Get Following","api":"GET /v8/:projectId/users/:userId/following","href":"/v8/api-reference/users/follows/get-following"},{"title":"Get Following Count","api":"GET /v8/:projectId/users/:userId/following-count","href":"/v8/api-reference/users/follows/get-following-count"},{"title":"Unfollow User","api":"DELETE /v8/:projectId/users/:userId/follow","href":"/v8/api-reference/users/follows/unfollow-user"}]},{"group":"User Connection Operations","pages":[{"title":"Request Connection","api":"POST /v8/:projectId/users/:userId/connection","href":"/v8/api-reference/users/connections/request-connection"},{"title":"Get Connection Status","api":"GET /v8/:projectId/users/:userId/connection","href":"/v8/api-reference/users/connections/get-connection-status"},{"title":"Get Connections","api":"GET /v8/:projectId/users/:userId/connections","href":"/v8/api-reference/users/connections/get-connections"},{"title":"Get Connections Count","api":"GET /v8/:projectId/users/:userId/connections-count","href":"/v8/api-reference/users/connections/get-connections-count"},{"title":"Remove Connection","api":"DELETE /v8/:projectId/users/:userId/connection","href":"/v8/api-reference/users/connections/remove-connection"}]},{"group":"User Block Operations","pages":[{"title":"Block User","api":"POST /v8/:projectId/users/:userId/block","href":"/v8/api-reference/users/blocks/block-user"},{"title":"Unblock User","api":"DELETE /v8/:projectId/users/:userId/block","href":"/v8/api-reference/users/blocks/unblock-user"},{"title":"Get Block Status","api":"GET /v8/:projectId/users/:userId/block","href":"/v8/api-reference/users/blocks/get-block-status"},{"title":"Fetch Blocked Users","api":"GET /v8/:projectId/blocks","href":"/v8/api-reference/blocks/fetch-blocks"}]},{"group":"Follow Endpoints","pages":[{"title":"Fetch Following","api":"GET /v8/:projectId/follows/following","href":"/v8/api-reference/follows/fetch-following"},{"title":"Fetch Followers","api":"GET /v8/:projectId/follows/followers","href":"/v8/api-reference/follows/fetch-followers"},{"title":"Fetch Following Count","api":"GET /v8/:projectId/follows/following-count","href":"/v8/api-reference/follows/fetch-following-count"},{"title":"Fetch Followers Count","api":"GET /v8/:projectId/follows/followers-count","href":"/v8/api-reference/follows/fetch-followers-count"},{"title":"Delete Follow","api":"DELETE /v8/:projectId/follows/:followId","href":"/v8/api-reference/follows/delete-follow"}]},{"group":"Connection Endpoints","pages":[{"title":"Fetch Connections","api":"GET /v8/:projectId/connections","href":"/v8/api-reference/connections/fetch-connections"},{"title":"Fetch Connections Count","api":"GET /v8/:projectId/connections/connections-count","href":"/v8/api-reference/connections/fetch-connections-count"},{"title":"Fetch Sent Pending Connections","api":"GET /v8/:projectId/connections/pending/sent","href":"/v8/api-reference/connections/fetch-sent-pending"},{"title":"Fetch Received Pending Connections","api":"GET /v8/:projectId/connections/pending/received","href":"/v8/api-reference/connections/fetch-received-pending"},{"title":"Accept Connection","api":"POST /v8/:projectId/connections/:connectionId/accept","href":"/v8/api-reference/connections/accept-connection"},{"title":"Decline Connection","api":"POST /v8/:projectId/connections/:connectionId/decline","href":"/v8/api-reference/connections/decline-connection"},{"title":"Remove Connection","api":"DELETE /v8/:projectId/connections/:connectionId","href":"/v8/api-reference/connections/remove-connection"}]},{"group":"Entity Endpoints","pages":[{"title":"Create Entity","api":"POST /v8/:projectId/entities","href":"/v8/api-reference/entities/create-entity"},{"title":"Fetch Entity","api":"GET /v8/:projectId/entities/:entityId","href":"/v8/api-reference/entities/fetch-entity"},{"title":"Fetch Entity by Foreign ID","api":"GET /v8/:projectId/entities/by-foreign-id","href":"/v8/api-reference/entities/fetch-entity-by-foreign-id"},{"title":"Fetch Entity by Short ID","api":"GET /v8/:projectId/entities/by-short-id","href":"/v8/api-reference/entities/fetch-entity-by-short-id"},{"title":"Fetch Many Entities","api":"GET /v8/:projectId/entities","href":"/v8/api-reference/entities/fetch-many-entities"},{"title":"Fetch Drafts","api":"GET /v8/:projectId/entities/drafts","href":"/v8/api-reference/entities/fetch-drafts"},{"title":"Publish Entity","api":"POST /v8/:projectId/entities/:entityId/publish","href":"/v8/api-reference/entities/publish-entity"},{"title":"Update Entity","api":"PATCH /v8/:projectId/entities/:entityId","href":"/v8/api-reference/entities/update-entity"},{"title":"Increment Entity Views","api":"POST /v8/:projectId/entities/:entityId/increment-views","href":"/v8/api-reference/entities/increment-entity-views"},{"title":"Delete Entity","api":"DELETE /v8/:projectId/entities/:entityId","href":"/v8/api-reference/entities/delete-entity"},{"title":"Add Entity Reaction","api":"POST /v8/:projectId/entities/:entityId/reactions","href":"/v8/api-reference/entities/add-reaction"},{"title":"Remove Entity Reaction","api":"DELETE /v8/:projectId/entities/:entityId/reactions","href":"/v8/api-reference/entities/remove-reaction"},{"title":"Fetch Entity Reactions","api":"GET /v8/:projectId/entities/:entityId/reactions","href":"/v8/api-reference/entities/fetch-reactions"},{"title":"Get User Reaction","api":"GET /v8/:projectId/entities/:entityId/reactions/me","href":"/v8/api-reference/entities/get-user-reaction"}]},{"group":"Comment Endpoints","pages":[{"title":"Create Comment","api":"POST /v8/:projectId/comments","href":"/v8/api-reference/comments/create-comment"},{"title":"Fetch Comment","api":"GET /v8/:projectId/comments/:commentId","href":"/v8/api-reference/comments/fetch-comment"},{"title":"Fetch Comment by Foreign ID","api":"GET /v8/:projectId/comments/by-foreign-id","href":"/v8/api-reference/comments/fetch-comment-by-foreign-id"},{"title":"Fetch Many Comments","api":"GET /v8/:projectId/comments","href":"/v8/api-reference/comments/fetch-many-comments"},{"title":"Update Comment","api":"PATCH /v8/:projectId/comments/:commentId","href":"/v8/api-reference/comments/update-comment"},{"title":"Delete Comment","api":"DELETE /v8/:projectId/comments/:commentId","href":"/v8/api-reference/comments/delete-comment"},{"title":"Add Comment Reaction","api":"POST /v8/:projectId/comments/:commentId/reactions","href":"/v8/api-reference/comments/add-reaction"},{"title":"Remove Comment Reaction","api":"DELETE /v8/:projectId/comments/:commentId/reactions","href":"/v8/api-reference/comments/remove-reaction"},{"title":"Fetch Comment Reactions","api":"GET /v8/:projectId/comments/:commentId/reactions","href":"/v8/api-reference/comments/fetch-reactions"},{"title":"Get User Reaction","api":"GET /v8/:projectId/comments/:commentId/reactions/me","href":"/v8/api-reference/comments/get-user-reaction"}]},{"group":"Chat — Conversations","pages":[{"title":"List Conversations","api":"GET /v8/:projectId/chat/conversations","href":"/v8/api-reference/chat/conversations/list-conversations"},{"title":"Create Group Conversation","api":"POST /v8/:projectId/chat/conversations","href":"/v8/api-reference/chat/conversations/create-group"},{"title":"Create Direct Conversation","api":"POST /v8/:projectId/chat/conversations/direct","href":"/v8/api-reference/chat/conversations/create-direct"},{"title":"Get Unread Count","api":"GET /v8/:projectId/chat/conversations/unread-count","href":"/v8/api-reference/chat/conversations/unread-count"},{"title":"Fetch Conversation","api":"GET /v8/:projectId/chat/conversations/:conversationId","href":"/v8/api-reference/chat/conversations/fetch-conversation"},{"title":"Fetch Conversation Preview","api":"GET /v8/:projectId/chat/conversations/:conversationId/preview","href":"/v8/api-reference/chat/conversations/fetch-conversation-preview"},{"title":"Update Conversation","api":"PATCH /v8/:projectId/chat/conversations/:conversationId","href":"/v8/api-reference/chat/conversations/update-conversation"},{"title":"Delete Conversation","api":"DELETE /v8/:projectId/chat/conversations/:conversationId","href":"/v8/api-reference/chat/conversations/delete-conversation"},{"title":"Mute Conversation","api":"POST /v8/:projectId/chat/conversations/:conversationId/mute","href":"/v8/api-reference/chat/conversations/mute-conversation"}]},{"group":"Chat — Members","pages":[{"title":"List Members","api":"GET /v8/:projectId/chat/conversations/:conversationId/members","href":"/v8/api-reference/chat/members/list-members"},{"title":"Add Member","api":"POST /v8/:projectId/chat/conversations/:conversationId/members","href":"/v8/api-reference/chat/members/add-member"},{"title":"Remove Member","api":"DELETE /v8/:projectId/chat/conversations/:conversationId/members/:userId","href":"/v8/api-reference/chat/members/remove-member"},{"title":"Check My Membership","api":"GET /v8/:projectId/chat/conversations/:conversationId/members/me","href":"/v8/api-reference/chat/members/check-my-membership"},{"title":"Leave Conversation","api":"DELETE /v8/:projectId/chat/conversations/:conversationId/members/me","href":"/v8/api-reference/chat/members/leave-conversation"},{"title":"Update Member Role","api":"PATCH /v8/:projectId/chat/conversations/:conversationId/members/:userId/role","href":"/v8/api-reference/chat/members/update-member-role"}]},{"group":"Chat — Messages","pages":[{"title":"List Messages","api":"GET /v8/:projectId/chat/conversations/:conversationId/messages","href":"/v8/api-reference/chat/messages/list-messages"},{"title":"Send Message","api":"POST /v8/:projectId/chat/conversations/:conversationId/messages","href":"/v8/api-reference/chat/messages/send-message"},{"title":"Fetch Message","api":"GET /v8/:projectId/chat/conversations/:conversationId/messages/:messageId","href":"/v8/api-reference/chat/messages/fetch-message"},{"title":"Edit Message","api":"PATCH /v8/:projectId/chat/conversations/:conversationId/messages/:messageId","href":"/v8/api-reference/chat/messages/edit-message"},{"title":"Delete Message","api":"DELETE /v8/:projectId/chat/conversations/:conversationId/messages/:messageId","href":"/v8/api-reference/chat/messages/delete-message"},{"title":"Toggle Message Reaction","api":"POST /v8/:projectId/chat/conversations/:conversationId/messages/:messageId/reactions","href":"/v8/api-reference/chat/messages/toggle-reaction"},{"title":"Fetch Reaction Users","api":"GET /v8/:projectId/chat/conversations/:conversationId/messages/:messageId/reactions","href":"/v8/api-reference/chat/messages/fetch-reaction-users"},{"title":"Mark as Read","api":"POST /v8/:projectId/chat/conversations/:conversationId/read","href":"/v8/api-reference/chat/messages/mark-as-read"}]},{"group":"Collection Endpoints","pages":[{"title":"Fetch Root Collection","api":"GET /v8/:projectId/collections/root","href":"/v8/api-reference/collections/fetch-root"},{"title":"Create Sub-Collection","api":"POST /v8/:projectId/collections/:collectionId/sub-collections","href":"/v8/api-reference/collections/create-sub-collection"},{"title":"Fetch Sub-Collections","api":"GET /v8/:projectId/collections/:collectionId/sub-collections","href":"/v8/api-reference/collections/fetch-sub-collections"},{"title":"Fetch Collection Entities","api":"GET /v8/:projectId/collections/:collectionId/entities","href":"/v8/api-reference/collections/fetch-entities"},{"title":"Add Entity to Collection","api":"POST /v8/:projectId/collections/:collectionId/entities","href":"/v8/api-reference/collections/add-entity"},{"title":"Remove Entity from Collection","api":"DELETE /v8/:projectId/collections/:collectionId/entities/:entityId","href":"/v8/api-reference/collections/remove-entity"},{"title":"Update Collection","api":"PATCH /v8/:projectId/collections/:collectionId","href":"/v8/api-reference/collections/update-collection"},{"title":"Delete Collection","api":"DELETE /v8/:projectId/collections/:collectionId","href":"/v8/api-reference/collections/delete-collection"}]},{"group":"App Notification Endpoints","pages":[{"title":"Fetch Notifications","api":"GET /v8/:projectId/app-notifications","href":"/v8/api-reference/app-notifications/fetch-notifications"},{"title":"Count Unread Notifications","api":"GET /v8/:projectId/app-notifications/unread-count","href":"/v8/api-reference/app-notifications/unread-count"},{"title":"Mark Notification as Read","api":"POST /v8/:projectId/app-notifications/:notificationId/mark-as-read","href":"/v8/api-reference/app-notifications/mark-as-read"},{"title":"Mark All Notifications as Read","api":"POST /v8/:projectId/app-notifications/mark-all-as-read","href":"/v8/api-reference/app-notifications/mark-all-as-read"}]},{"group":"Push Notification Endpoints","pages":[{"title":"Register Device","api":"POST /v8/:projectId/push-notifications/devices","href":"/v8/api-reference/push-notifications/register-device"},{"title":"Deregister Device","api":"POST /v8/:projectId/push-notifications/devices/deregister","href":"/v8/api-reference/push-notifications/deregister-device"},{"title":"Send Push Notification","api":"POST /v8/:projectId/push-notifications/send","href":"/v8/api-reference/push-notifications/send"},{"title":"Get VAPID Public Key","api":"GET /v8/:projectId/push-notifications/vapid-public-key","href":"/v8/api-reference/push-notifications/get-vapid-public-key"},{"title":"Get Notification Preferences","api":"GET /v8/:projectId/push-notifications/preferences","href":"/v8/api-reference/push-notifications/get-preferences"},{"title":"Update Notification Preferences","api":"PUT /v8/:projectId/push-notifications/preferences","href":"/v8/api-reference/push-notifications/update-preferences"}]},{"group":"Report Endpoints","pages":[{"title":"Create Report","api":"POST /v8/:projectId/reports","href":"/v8/api-reference/reports/create-report"},{"title":"Fetch Moderated Reports","api":"GET /v8/:projectId/reports/moderated","href":"/v8/api-reference/reports/fetch-moderated-reports"}]},{"group":"Search Endpoints","pages":[{"title":"Search Content","api":"POST /v8/:projectId/search/content","href":"/v8/api-reference/search/search-content"},{"title":"Search Users","api":"POST /v8/:projectId/search/users","href":"/v8/api-reference/search/search-users"},{"title":"Search Spaces","api":"POST /v8/:projectId/search/spaces","href":"/v8/api-reference/search/search-spaces"},{"title":"Ask Content","api":"POST /v8/:projectId/search/ask","href":"/v8/api-reference/search/ask"},{"title":"Match Users","api":"POST /v8/:projectId/match/users","href":"/v8/api-reference/match/match-users"}]},{"group":"Space Endpoints","pages":[{"title":"Create Space","api":"POST /v8/:projectId/spaces","href":"/v8/api-reference/spaces/create-space"},{"title":"Fetch Spaces","api":"GET /v8/:projectId/spaces","href":"/v8/api-reference/spaces/fetch-spaces"},{"title":"Fetch Space","api":"GET /v8/:projectId/spaces/:spaceId","href":"/v8/api-reference/spaces/fetch-space"},{"title":"Fetch Space by Short ID","api":"GET /v8/:projectId/spaces/by-short-id","href":"/v8/api-reference/spaces/fetch-space-by-short-id"},{"title":"Fetch Space by Slug","api":"GET /v8/:projectId/spaces/by-slug","href":"/v8/api-reference/spaces/fetch-space-by-slug"},{"title":"Fetch My Spaces","api":"GET /v8/:projectId/spaces/mine","href":"/v8/api-reference/spaces/fetch-my-spaces"},{"title":"Fetch Mutual Spaces","api":"GET /v8/:projectId/spaces/mutual/:userId","href":"/v8/api-reference/spaces/fetch-mutual-spaces"},{"title":"Check Slug Availability","api":"GET /v8/:projectId/spaces/check-slug","href":"/v8/api-reference/spaces/check-slug"},{"title":"Update Space","api":"PATCH /v8/:projectId/spaces/:spaceId","href":"/v8/api-reference/spaces/update-space"},{"title":"Delete Space","api":"DELETE /v8/:projectId/spaces/:spaceId","href":"/v8/api-reference/spaces/delete-space"},{"title":"Fetch Space Breadcrumb","api":"GET /v8/:projectId/spaces/:spaceId/breadcrumb","href":"/v8/api-reference/spaces/fetch-breadcrumb"}]},{"group":"Space — Membership","pages":[{"title":"Join Space","api":"POST /v8/:projectId/spaces/:spaceId/join","href":"/v8/api-reference/spaces/membership/join-space"},{"title":"Leave Space","api":"DELETE /v8/:projectId/spaces/:spaceId/members/me","href":"/v8/api-reference/spaces/membership/leave-space"},{"title":"Check My Membership","api":"GET /v8/:projectId/spaces/:spaceId/members/me","href":"/v8/api-reference/spaces/membership/check-my-membership"},{"title":"List Space Members","api":"GET /v8/:projectId/spaces/:spaceId/members","href":"/v8/api-reference/spaces/membership/list-members"},{"title":"List Space Team","api":"GET /v8/:projectId/spaces/:spaceId/team","href":"/v8/api-reference/spaces/membership/list-team"},{"title":"Add Member","api":"POST /v8/:projectId/spaces/:spaceId/members","href":"/v8/api-reference/spaces/membership/add-member"},{"title":"Approve Member","api":"POST /v8/:projectId/spaces/:spaceId/members/:userId/approve","href":"/v8/api-reference/spaces/membership/approve-member"},{"title":"Decline Member","api":"POST /v8/:projectId/spaces/:spaceId/members/:userId/decline","href":"/v8/api-reference/spaces/membership/decline-member"},{"title":"Ban Member","api":"POST /v8/:projectId/spaces/:spaceId/members/:userId/ban","href":"/v8/api-reference/spaces/membership/ban-member"},{"title":"Unban Member","api":"POST /v8/:projectId/spaces/:spaceId/members/:userId/unban","href":"/v8/api-reference/spaces/membership/unban-member"},{"title":"Update Member Role","api":"PATCH /v8/:projectId/spaces/:spaceId/members/:userId/role","href":"/v8/api-reference/spaces/membership/update-member-role"}]},{"group":"Space — Rules","pages":[{"title":"List Rules","api":"GET /v8/:projectId/spaces/:spaceId/rules","href":"/v8/api-reference/spaces/rules/list-rules"},{"title":"Fetch Rule","api":"GET /v8/:projectId/spaces/:spaceId/rules/:ruleId","href":"/v8/api-reference/spaces/rules/fetch-rule"},{"title":"Create Rule","api":"POST /v8/:projectId/spaces/:spaceId/rules","href":"/v8/api-reference/spaces/rules/create-rule"},{"title":"Update Rule","api":"PATCH /v8/:projectId/spaces/:spaceId/rules/:ruleId","href":"/v8/api-reference/spaces/rules/update-rule"},{"title":"Delete Rule","api":"DELETE /v8/:projectId/spaces/:spaceId/rules/:ruleId","href":"/v8/api-reference/spaces/rules/delete-rule"},{"title":"Reorder Rules","api":"POST /v8/:projectId/spaces/:spaceId/rules/reorder","href":"/v8/api-reference/spaces/rules/reorder-rules"}]},{"group":"Space — Moderation","pages":[{"title":"Moderate Entity","api":"PATCH /v8/:projectId/spaces/:spaceId/entities/:entityId/moderation","href":"/v8/api-reference/spaces/moderation/moderate-entity"},{"title":"Moderate Comment","api":"PATCH /v8/:projectId/spaces/:spaceId/comments/:commentId/moderation","href":"/v8/api-reference/spaces/moderation/moderate-comment"},{"title":"Moderate Message","api":"PATCH /v8/:projectId/spaces/:spaceId/chat/messages/:messageId/moderation","href":"/v8/api-reference/spaces/moderation/moderate-message"},{"title":"Set Entity NSFW","api":"PATCH /v8/:projectId/spaces/:spaceId/entities/:entityId/nsfw","href":"/v8/api-reference/spaces/moderation/set-entity-nsfw"},{"title":"Handle Report","api":"PATCH /v8/:projectId/spaces/:spaceId/reports/:reportId","href":"/v8/api-reference/spaces/moderation/handle-report"}]},{"group":"Space — Chat","pages":[{"title":"Get Space Conversation","api":"GET /v8/:projectId/spaces/:spaceId/conversation","href":"/v8/api-reference/spaces/chat/get-space-conversation"}]},{"group":"Workspace Endpoints","pages":[{"title":"Create Workspace","api":"POST /v8/:projectId/workspaces","href":"/v8/api-reference/workspaces/create-workspace"},{"title":"List Workspaces","api":"GET /v8/:projectId/workspaces","href":"/v8/api-reference/workspaces/fetch-workspaces"},{"title":"Fetch Mutual Workspaces","api":"GET /v8/:projectId/workspaces/mutual/:userId","href":"/v8/api-reference/workspaces/fetch-mutual-workspaces"},{"title":"Fetch Workspace","api":"GET /v8/:projectId/workspaces/:workspaceId","href":"/v8/api-reference/workspaces/fetch-workspace"},{"title":"Update Workspace","api":"PATCH /v8/:projectId/workspaces/:workspaceId","href":"/v8/api-reference/workspaces/update-workspace"},{"title":"Flip Inherit Flag","api":"PATCH /v8/:projectId/workspaces/:workspaceId/inherit-flag","href":"/v8/api-reference/workspaces/update-inherit-flag"},{"title":"Delete Workspace","api":"DELETE /v8/:projectId/workspaces/:workspaceId","href":"/v8/api-reference/workspaces/delete-workspace"},{"title":"Transfer Ownership","api":"POST /v8/:projectId/workspaces/:workspaceId/transfer-ownership","href":"/v8/api-reference/workspaces/transfer-ownership"},{"title":"Read Authority","api":"GET /v8/:projectId/workspaces/:workspaceId/authority/me","href":"/v8/api-reference/workspaces/fetch-authority"}]},{"group":"Workspace — Membership","pages":[{"title":"List Members","api":"GET /v8/:projectId/workspaces/:workspaceId/members","href":"/v8/api-reference/workspaces/members/list-members"},{"title":"Fetch My Membership","api":"GET /v8/:projectId/workspaces/:workspaceId/members/me","href":"/v8/api-reference/workspaces/members/fetch-my-membership"},{"title":"Fetch Member Standing","api":"GET /v8/:projectId/workspaces/:workspaceId/members/:userId","href":"/v8/api-reference/workspaces/members/fetch-member-standing"},{"title":"Update Member","api":"PATCH /v8/:projectId/workspaces/:workspaceId/members/:userId","href":"/v8/api-reference/workspaces/members/update-member"},{"title":"Update My Membership","api":"PATCH /v8/:projectId/workspaces/:workspaceId/members/me","href":"/v8/api-reference/workspaces/members/update-my-membership"},{"title":"Remove Member","api":"DELETE /v8/:projectId/workspaces/:workspaceId/members/:userId","href":"/v8/api-reference/workspaces/members/remove-member"},{"title":"Leave Workspace","api":"DELETE /v8/:projectId/workspaces/:workspaceId/members/me","href":"/v8/api-reference/workspaces/members/leave-workspace"},{"title":"Remove From Subtree","api":"POST /v8/:projectId/workspaces/:workspaceId/members/:userId/remove-from-subtree","description":"Offboarding convenience — remove a user from this workspace and the descendants you can reach","href":"/v8/api-reference/workspaces/members/remove-from-subtree"}]},{"group":"Workspace — Invitations","pages":[{"title":"Create Invite","api":"POST /v8/:projectId/workspaces/:workspaceId/invites","href":"/v8/api-reference/workspaces/invitations/create-invite"},{"title":"List Workspace Invites","api":"GET /v8/:projectId/workspaces/:workspaceId/invites","description":"List a workspace's live pending invites","href":"/v8/api-reference/workspaces/invitations/list-invites"},{"title":"Revoke Invite","api":"POST /v8/:projectId/workspaces/:workspaceId/invites/:inviteId/revoke","href":"/v8/api-reference/workspaces/invitations/revoke-invite"},{"title":"Resend Invite","api":"POST /v8/:projectId/workspaces/:workspaceId/invites/:inviteId/resend","href":"/v8/api-reference/workspaces/invitations/resend-invite"},{"title":"Accept Invite","api":"POST /v8/:projectId/workspace-invites/:inviteId/accept","href":"/v8/api-reference/workspaces/invitations/accept-invite"},{"title":"Decline Invite","api":"POST /v8/:projectId/workspace-invites/:inviteId/decline","href":"/v8/api-reference/workspaces/invitations/decline-invite"},{"title":"List My Invites","api":"GET /v8/:projectId/workspace-invites","href":"/v8/api-reference/workspaces/invitations/list-my-invites"}]},{"group":"Event Endpoints","pages":[{"title":"Create Event","api":"POST /v8/:projectId/events","href":"/v8/api-reference/events/create-event"},{"title":"Fetch Event","api":"GET /v8/:projectId/events/:eventId","href":"/v8/api-reference/events/fetch-event"},{"title":"Fetch Many Events","api":"GET /v8/:projectId/events","href":"/v8/api-reference/events/fetch-many-events"},{"title":"Update Event","api":"PATCH /v8/:projectId/events/:eventId","href":"/v8/api-reference/events/update-event"},{"title":"Cancel Event","api":"POST /v8/:projectId/events/:eventId/cancel","href":"/v8/api-reference/events/cancel-event"},{"title":"Delete Event","api":"DELETE /v8/:projectId/events/:eventId","href":"/v8/api-reference/events/delete-event"},{"title":"Set RSVP","api":"POST /v8/:projectId/events/:eventId/rsvp","href":"/v8/api-reference/events/set-rsvp"},{"title":"Withdraw RSVP","api":"DELETE /v8/:projectId/events/:eventId/rsvp","href":"/v8/api-reference/events/withdraw-rsvp"},{"title":"Add Host","api":"POST /v8/:projectId/events/:eventId/hosts","href":"/v8/api-reference/events/add-host"},{"title":"Remove Host","api":"DELETE /v8/:projectId/events/:eventId/hosts/:userId","href":"/v8/api-reference/events/remove-host"},{"title":"Add Invite","api":"POST /v8/:projectId/events/:eventId/invites","href":"/v8/api-reference/events/add-invite"},{"title":"Remove Invite","api":"DELETE /v8/:projectId/events/:eventId/invites/:userId","href":"/v8/api-reference/events/remove-invite"},{"title":"Fetch Invitees","api":"GET /v8/:projectId/events/:eventId/invites","href":"/v8/api-reference/events/fetch-invitees"},{"title":"Fetch Event RSVPs","api":"GET /v8/:projectId/events/:eventId/rsvps","href":"/v8/api-reference/events/fetch-event-rsvps"}]},{"group":"Reputation Grant Endpoints","pages":[{"title":"Create Reputation Grant","api":"POST /v8/:projectId/reputation-grants","href":"/v8/api-reference/reputation-grants/create-reputation-grant"},{"title":"Mint Reputation Grant","api":"POST /v8/:projectId/reputation-grants/mint","href":"/v8/api-reference/reputation-grants/mint-reputation-grant"},{"title":"Fetch Many Reputation Grants","api":"GET /v8/:projectId/reputation-grants","href":"/v8/api-reference/reputation-grants/fetch-many-reputation-grants"},{"title":"Fetch User Grant History","api":"GET /dashboard/users/:userId/reputation-grants","href":"/v8/api-reference/reputation-grants/fetch-user-grant-history"}]},{"group":"Storage Endpoints","pages":[{"title":"Upload Image","api":"POST /v8/:projectId/storage/images","href":"/v8/api-reference/storage/upload-image"},{"title":"Upload File","api":"POST /v8/:projectId/storage","href":"/v8/api-reference/storage/upload-file"},{"title":"Fetch File","api":"GET /v8/:projectId/storage/:fileId","href":"/v8/api-reference/storage/fetch-file"},{"title":"Refresh File Links","api":"POST /v8/:projectId/files/links","href":"/v8/api-reference/storage/refresh-file-links"},{"title":"Delete File","api":"DELETE /v8/:projectId/storage/:fileId","href":"/v8/api-reference/storage/delete-file"}]},{"group":"Custom Tables — Rows","pages":[{"title":"Fetch Rows","api":"GET /v8/:projectId/db/:tableName","href":"/v8/api-reference/custom-tables/fetch-many-rows"},{"title":"Fetch Row","api":"GET /v8/:projectId/db/:tableName/:rowId","href":"/v8/api-reference/custom-tables/fetch-row"},{"title":"Insert Row","api":"POST /v8/:projectId/db/:tableName","href":"/v8/api-reference/custom-tables/insert-row"},{"title":"Bulk Insert Rows","api":"POST /v8/:projectId/db/:tableName/bulk","href":"/v8/api-reference/custom-tables/bulk-insert-rows"},{"title":"Update Row","api":"PATCH /v8/:projectId/db/:tableName/:rowId","href":"/v8/api-reference/custom-tables/update-row"},{"title":"Delete Row","api":"DELETE /v8/:projectId/db/:tableName/:rowId","href":"/v8/api-reference/custom-tables/delete-row"},{"title":"Bulk Delete Rows","api":"POST /v8/:projectId/db/:tableName/bulk-delete","href":"/v8/api-reference/custom-tables/bulk-delete-rows"},{"title":"Restore Row","api":"POST /v8/:projectId/db/:tableName/:rowId/restore","href":"/v8/api-reference/custom-tables/restore-row"}]},{"group":"Custom Tables — Management","pages":[{"title":"Create Table","api":"POST /v8/:projectId/db/tables","href":"/v8/api-reference/custom-tables/create-table"},{"title":"Drop Table","api":"DELETE /v8/:projectId/db/tables/:tableName","href":"/v8/api-reference/custom-tables/drop-table"},{"title":"Add Column","api":"POST /v8/:projectId/db/tables/:tableName/columns","href":"/v8/api-reference/custom-tables/add-column"},{"title":"Drop Column","api":"DELETE /v8/:projectId/db/tables/:tableName/columns/:columnName","href":"/v8/api-reference/custom-tables/drop-column"}]},{"group":"Utils","pages":[{"title":"Get URL Metadata","api":"GET /v8/:projectId/utils/get-metadata","href":"/v8/api-reference/utils/get-metadata"}]},{"group":"Crypto","pages":[{"title":"Sign Testing JWT","api":"POST /v8/:projectId/crypto/sign-testing-jwt","href":"/v8/api-reference/crypto/sign-testing-jwt"}]}]},{"tab":"Data Models","pages":[{"title":"Data Models","href":"/v8/data-models/user"}]},{"tab":"Node SDK","pages":[{"title":"Node SDK","href":"/v8/node-sdk/overview"}]},{"tab":"JS SDK","pages":[{"title":"JS SDK","href":"/v8/js-sdk/overview"}]},{"tab":"Components","pages":[{"title":"Components","href":"/v8/components/overview"}]}],"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://dash.sublay.io"}]}},{"version":"7.0.0","default":true,"pages":[{"title":"7.0.0","href":"/v7/api-reference/workspaces/invitations/create-invite"}]},{"version":"6.0.0","pages":[{"title":"6.0.0","href":"/v6"}]}]},"basePath":"","title":"Create Invite - Sublay Documentation","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js"]}