Joining a workspace
Joining a workspace operations in the Hlix API.
See the OpenAPI document for schemas and operation IDs.
Prerequisites
Section titled “Prerequisites”- Protected operations require an API key in
x-api-keyor a browser session cookie; some actions require a verified user session - Tenant-scoped operations use
X-Organization-Id; browser sessions can use their active workspace. Discovery and personal-workspace bootstrap do not require an active workspace - The base URL for your deployment,
https://server.hlix.aiby default
Operations
Section titled “Operations”| Method | Path | Operation |
|---|---|---|
GET |
/v1/api/invite-links/{token} |
Read what an invite link opens |
POST |
/v1/api/invite-links/{token}/join |
Join a workspace through an invite link |
GET |
/v1/api/me/workspace-offers |
Workspaces you can join by your verified email domain |
POST |
/v1/api/me/workspace-offers/{organizationId}/join |
Join an offered workspace as Member |
GET |
/v1/api/workspace-domains |
List the company email domains people can join by |
POST |
/v1/api/workspace-domains |
Allow a company email domain |
DELETE |
/v1/api/workspace-domains/{id} |
Stop allowing a company email domain |
GET |
/v1/api/workspace-invite-links |
List the workspace’s live invite links |
POST |
/v1/api/workspace-invite-links |
Create an invite link for the Member or Admin role |
DELETE |
/v1/api/workspace-invite-links/{id} |
Revoke an invite link |
POST |
/v1/api/workspace-invite-links/{id}/regenerate |
Replace an invite link with a new one of the same role |
Read what an invite link opens
Section titled “Read what an invite link opens”GET /v1/api/invite-links/{token} · operation ID previewWorkspaceInviteLink
Authentication — Public; no API key or session required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
token |
path | yes | string |
Responses
| Status | Body | Description |
|---|---|---|
200 |
InviteLinkPreview | The workspace’s plain name, or its published brand when it has one. No private data. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | Unknown, revoked and expired links answer alike: “This invite link is no longer valid”. |
Join a workspace through an invite link
Section titled “Join a workspace through an invite link”POST /v1/api/invite-links/{token}/join · operation ID joinWorkspaceByInviteLink
Authentication — A signed-in user session is required. API keys cannot authenticate this operation. Browsers send the session cookie automatically; server clients preserve the complete issued Cookie header.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
token |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
JoinedWorkspace | The person is a member with the link’s role and the workspace is their active one. No personal workspace is made. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Refused: the workspace is full, or the email is not verified. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
409 |
ApiError | The person is already a member of this workspace. |
410 |
ApiError | The link is revoked or expired: “This invite link is no longer valid”. |
Workspaces you can join by your verified email domain
Section titled “Workspaces you can join by your verified email domain”GET /v1/api/me/workspace-offers · operation ID listWorkspaceOffers
Authentication — A signed-in user session is required. API keys cannot authenticate this operation. Browsers send the session cookie automatically; server clients preserve the complete issued Cookie header.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
WorkspaceOffer[] | Empty for an unverified email. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Authenticated, but not a member of the named organization — or a client collaborator without the required access on this project. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
Join an offered workspace as Member
Section titled “Join an offered workspace as Member”POST /v1/api/me/workspace-offers/{organizationId}/join · operation ID joinWorkspaceByEmailDomain
Authentication — A signed-in user session is required. API keys cannot authenticate this operation. Browsers send the session cookie automatically; server clients preserve the complete issued Cookie header.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
organizationId |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
JoinedWorkspace | Joined as Member. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Refused: the workspace is full, or the email is not verified. |
404 |
ApiError | The workspace does not allow this email’s domain. |
409 |
ApiError | The person is already a member of this workspace. |
List the company email domains people can join by
Section titled “List the company email domains people can join by”GET /v1/api/workspace-domains · operation ID listWorkspaceDomains
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
WorkspaceDomain[] | Allowed domains. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Only workspace owners and admins can manage how people join. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
Allow a company email domain
Section titled “Allow a company email domain”POST /v1/api/workspace-domains · operation ID addWorkspaceDomain
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Request body — application/json, AddWorkspaceDomain (required)
| Property | Type | Required | Notes |
|---|---|---|---|
domain |
string | yes | min length 1, max length 253 |
Responses
| Status | Body | Description |
|---|---|---|
201 |
WorkspaceDomain | The domain equals the admin’s own verified email domain and is not a public mail host. |
400 |
ValidationError | ApiError | The body failed validation, the value is not a domain, it is a public mail domain, or it is not the admin’s own domain. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Only workspace owners and admins can manage how people join. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
409 |
ApiError | Already allowed. |
Stop allowing a company email domain
Section titled “Stop allowing a company email domain”DELETE /v1/api/workspace-domains/{id} · operation ID removeWorkspaceDomain
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
MessageAck | Removed. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Only workspace owners and admins can manage how people join. |
404 |
ApiError | Not found in this workspace. |
List the workspace’s live invite links
Section titled “List the workspace’s live invite links”GET /v1/api/workspace-invite-links · operation ID listWorkspaceInviteLinks
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
InviteLink[] | Links that are not revoked, newest first. The link itself is never repeated: only its hash is stored. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Only workspace owners and admins can manage how people join. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
Create an invite link for the Member or Admin role
Section titled “Create an invite link for the Member or Admin role”POST /v1/api/workspace-invite-links · operation ID createWorkspaceInviteLink
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Request body — application/json, CreateInviteLink (required)
| Property | Type | Required | Notes |
|---|---|---|---|
expiry |
7d | never |
no | |
role |
member | admin |
yes |
Responses
| Status | Body | Description |
|---|---|---|
201 |
InviteLinkCreated | The link and its address, readable only now. Never grants Owner. |
400 |
ValidationError | ApiError | The JSON body failed schema validation (ValidationError), or the request named no active organization (ApiError). |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Only workspace owners and admins can manage how people join. |
404 |
ApiError | The resource does not exist, or the caller is a task-scoped credential and this endpoint is outside its allowlist. |
Revoke an invite link
Section titled “Revoke an invite link”DELETE /v1/api/workspace-invite-links/{id} · operation ID revokeWorkspaceInviteLink
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
MessageAck | Revoked. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Only workspace owners and admins can manage how people join. |
404 |
ApiError | Not found in this workspace. |
Replace an invite link with a new one of the same role
Section titled “Replace an invite link with a new one of the same role”POST /v1/api/workspace-invite-links/{id}/regenerate · operation ID regenerateWorkspaceInviteLink
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id |
path | yes | string | |
X-Organization-Id |
header | no | string | The workspace (organization) to act in. Omitted, the session’s active organization is used. |
Responses
| Status | Body | Description |
|---|---|---|
200 |
InviteLinkCreated | The old link stops working at once. |
400 |
ApiError | The request named no active organization. |
401 |
ApiError | No valid session or API key. |
403 |
ApiError | Only workspace owners and admins can manage how people join. |
404 |
ApiError | Not found in this workspace. |
If a request fails
Section titled “If a request fails”The response table for each operation lists its documented errors. Common status codes include:
400— the body failed schema validation, or the request named no active organization. AValidationErrorbody carries the failing fields; anApiErrorbody carries onlyerror.401— no valid session or API key.403— authenticated, but not a member of the named organization, or a client collaborator without the required access.404— check the resource ID and your access to the selected Workspace.409— the expected revision or state is stale, or another operation currently owns the transition.500— the operation failed server-side. Retry only where an idempotency key makes that safe.