Skip to main content
POST
Invite Member
string
required
The API key for your account. You can find this in your account settings.
Adds a member to a workspace using a short-lived code from Get Invite Code: the invited user is identified by the code, and the caller assigns their role with group. Only the workspace owner can call this endpoint, and the workspace’s member count is capped by the owner’s plan tier. The four assignable roles control what a member can do to the workspace’s shared applications: view is read-only; manager can trigger app actions (start/stop/restart) and see deployment info but not commit or touch files; maintain adds file management, DNS, cache purge, and commits; admin adds environment variables, snapshots, custom domains, and the deploy webhook. Change a role later with Change Permissions. An owner cannot invite themselves. Rate limited to 1 addition every 5 seconds per user.

Parameters

string
The ID of the workspace.
string
A string with the member invite code.
string
The member permissions on the workspace applications

Response

string
Indicates whether the call was successful.. success if successful, error if not.

Common errors