Skip to the page

Invite member

Invites a person to the workspace by email, with the role they will hold.

opensend members invite [flags]
Needs the scopeworkspace:write
Changes data

Flags

  • --emailstringRequired

    The address to invite.

  • --namestring

    The name of the person, shown until they sign in.

  • --rolestring

    What they may do: admin, member or viewer. Without it they join as a member.

    One ofadminmemberviewer

Returns

The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.

  • object"member"

    Always member.

  • idstring

    The id of the member.

  • namestring

    The name of the person.

  • emailstring

    The address of the person.

  • rolestring

    What the member may do: owner, admin, member or viewer.

    One ofowneradminmemberviewer

  • statusstring

    invited until the person signs in, active after that.

    One ofactiveinvited

  • invitedBystring

    The name of who invited them.

  • invitedAtstring | null

    When the invitation was sent, or null for the person who made the workspace.

  • lastActiveAtstring | null

    When the member last used the workspace, or null.

  • invitationUrlstring | null

    A link that lets an invited person choose a password and join without an emailed code, or null. Only the owner of a server a team hosts itself is given it, signed in, while the invitation is waiting.

  • createdAtstring

    When the member was added.