Invitations

Create organization invitation

Changed on

Creates or refreshes a pending organization invitation for an email address and sends the invite email. Returns 502 when the invitation is saved but no email could be sent, including when the deployment has no email service: the invitation and its link stay valid, so tell the user it is saved and offer the invite link (GET /v1/invitations/:invitationId/link) or sending again. Returns 402 with billingUrl when a Free workspace has used its free users: give the user billingUrl to start seat billing, then invite again. Returns 409 org_limit_reached when a Team or Enterprise plan set by OpenWork is full: OpenWork must add seats.

post/v1/invitations

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Request body

object required
email, string email required
role, string required
teamId, string typeid nullable

Den TypeID with 'tem_' prefix and a 26-character base32 suffix.

Response

Existing invitation refreshed successfully.

InvitationResponse required
invitationId, string typeid required

Den TypeID with 'inv_' prefix and a 26-character base32 suffix.

email, string email required
role, string required
expiresAt, string date-time required
inviteToken, string required
memberId, string typeid nullable required

Den TypeID with 'om_' prefix and a 26-character base32 suffix.

Changes

    • info

      added the required property memberId to the response with the status

    • info

      added the required property memberId to the response with the status

    • info

      added the required property memberId to the response with the status