Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Request body Required
The invitation details.
application/json
workspaceIdstring or nullOptionalThe id of the workspace to invite the user to. If not set, a new workspace will be created.
invitationFlowstring or nullOptionalThe current invitation flow. Use 'invite' for an invitation from a system admin, 'new_user_new_workspace' for an invitation when creating a workspace for a new user or 'existing_user_new_workspace' when creating a workspace for an existing user.
roleIdstring or nullOptionalThe id of the role to which the new user should be added.
connectInviteCodestring or nullOptionalThe awork connect invite code.
passcodestring or nullOptionalThe bot prevention passcode.
emailstring or nullOptionalThe email of the user to be invited.
passwordstring or nullOptionalThe Password of the user to be invited.
firstNamestring or nullOptionalThe first name of the user to be invited.
lastNamestring or nullOptionalThe last name of the user to be invited.
titlestring or nullOptionalThe title of the user to be invited.
positionstring or nullOptionalThe position of the user to be invited.
genderstring or nullOptionalThe gender of the user to be invited. Can be 'male', 'female' or 'other'.
skipSendingEmailbooleanOptionalIf set to true, skips sending the welcome email. Important for batch invites.
teamIdsarray of string or nullOptionalThe list of team ids where the user should be assigned to.
bookedSeatsinteger or nullOptionalThe amount of booked seats.
productsobjectOptionalThe product seats requested for an invited workspace member.
Show 2 properties
pmProductbooleanRequiredWhether the member receives a PM seat.
planstringRequired1 pattern: ^(None|Starter|Plus|Pro|Max|Ultra)$ The AI tier, or None for a member with only PM.
Responses
200 OK
application/json
invitationCodestring or nullOptionalThe invitation code that is used to confirm the invitation. The code is valid for 24 hours.
passwordResetCodestring or nullOptionalA code that is used to reset the user's password.
userIdstringOptionalThe id of the user that has been invited.
workspaceobjectOptionalThe workspace GET model.
Show 40 properties
namestring or nullOptional1000 The workspace name. Optional.
descriptionstring or nullOptional1000 The workspace description. Optional.
languagestring or nullOptional25 The workspace language. Optional.
timezonestring or nullOptional100 The IANA timezone used for workspace-wide calendar actions. Optional.
typestring or nullOptional25 The workspace type / industry set during onboarding. Optional.
sizestring or nullOptional100 The workspace size. Optional.
goalsarray of string or nullOptional25 The workspace team goals. Optional.
selfAttributionstring or nullOptional100 The way the workspace creator learned awork, set during the onboarding. Optional.
previousToolstring or nullOptional100 The project management tool used before awork, set during the onboarding. Optional.
aiUsagestring or nullOptional100 How the team uses AI, set during the onboarding. Optional.
departmentstring or nullOptional100 The workspace creator's department, set during the onboarding. Optional.
allowSocialLoginbooleanRequiredWhether the social login via apple and google is allowed.
allowCredentialsLoginbooleanRequiredWhether the user can login with username and password.
allowAutomaticScimUserBookingboolean or nullOptionalWhether the SCIM integration should be able to book additional user seats when provisioning and activating new users, or should return BadRequest. Only admins are allowed to change this setting.
sameDomainSignupEnabledboolean or nullOptionalWhether same domain signup feature is enabled. Only admins are allowed to change this setting.
sameDomainSignupRoleIdstring or nullOptionalDefault Role for users who sign up through same domain signup. Only admins are allowed to change this setting.
sameDomainSignupDomainsarray of string or nullOptionalDomains enabled for same domain signup feature. Only admins are allowed to change this setting.
requireMfabooleanOptionalWhether the workspace requires multi-factor authentication for all users.
skipCreateDefaultWorkspaceDataboolean or nullOptionalWhether to skip the creation of default workspace data.
productsarray of string or nullOptionalThe products available in this workspace. Read-only.
idstringOptionalThe id of the workspace.
subdomainsarray of object or nullOptionalThe workspace's subdomains. Read-only.
Show 2 properties
namestring or nullOptionalThe subdomain hostname.
isDefaultbooleanOptionalWhether this is the default subdomain of the workspace.
memberCountinteger or nullOptionalThe amount of workspace members. Only visible when the user is authenticated. Read-only.
lastUsedbooleanOptionalWhether this is the workspace the current user last logged in with.
lastLoginstring or nullOptionalThe date and time the user last logged in with this workspace, or the workspace was last accessed.
accountIdsarray of string or nullOptionalThe ids of identities assigned to this workspace. Read-only.
hasImagebooleanOptionalWhether the workspace has uploaded a workspace image.
createdOnstringOptionalThe date this workspace was created.
createdBystring or nullOptionalThe id of the user who created this workspace. Only set after the first invitation succeeded.
updatedOnstringOptionalThe date this workspace was last modified.
updatedBystring or nullOptionalThe id of the user who last updated this workspace. Only set after the first invitation succeeded.
isTestWorkspacebooleanOptionalWhether the workspace is a test workspace.
isApprovedbooleanOptionalWhether the user accepted the invitation to the workspace.
allowSSOLoginbooleanOptionalWhether the user can login via an external SSO provider.
isScimActivatedbooleanOptionalWhether the workspace has SCIM user provisioning enabled.
virtualMRRnumber or nullOptionalThe virtual MRR calculated during onborading.
isMobileSignupboolean or nullOptionalThe type of sign-up set during the onboarding. Can be: web, mobile, ...
isFreeMailboolean or nullOptionalWhether the domain of the account of the workspace creator is a freemail or a business domain.
isJoinablebooleanOptionalWhether this workspace has same domain sign up enabled and the account's email matches the permitted domains.
isFullboolean or nullOptionalWhether this workspace is full and no more users can join. Used in same domain sign up flow.
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
404 Not Found
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.