Skip to content
Navigation

createOrgInvite

Invite an email to the org as a member or an owner, in the groups you name, and email it the invite's link. A member who accepts with none of the invite's groups left, or with none named, joins the org's default group, if the org has one; an owner does not. Inviting an email with a pending invite resends it with this role and these groups. Takes inviteMembers on the org; an owner invite takes owning the org, and groups take manageGroups.

POST
/orgs/{org_id}/invites

Path parameters

  • org_id
    string
    required
    pattern: ^org_[0-7][0-9a-hjkmnp-tv-z]{25}$

Request body JSON required

  • email
    string
    required
    pattern: ^[^\s@]+@[^\s@]+\.[^\s@]+$
  • owner
    boolean
    required
  • group_ids
    array of
    string
    required
    pattern: ^group_[0-7][0-9a-hjkmnp-tv-z]{25}$

Returns

201

OrgInvite

JSON
  • id
    string
    required
    pattern: ^invite_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • email
    string
    required
    pattern: ^[^\s@]+@[^\s@]+\.[^\s@]+$
  • owner
    boolean
    required
  • group_ids
    array of
    string
    required
    pattern: ^group_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • invited_by
    string
    required
    pattern: ^(?:user|extension)_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • invited_by_name
    string
    required
    minLength: 1
  • created_at
    string
    required
    minLength: 1
  • expires_at
    string
    required
    minLength: 1

400

InvalidRequest | RequestBodyTooDeep
JSON

One of the following:

  • InvalidRequestEncoded
    • _tag
      InvalidRequest
      required
    • part
      path
      or
      query
      or
      headers
      or
      body
      required
    • issues
      array of
      object
      required
      • path
        array of
        required

        One of the following:

        • string
        • integer
      • message
        string
        required
  • RequestBodyTooDeepEncoded
    • _tag
      RequestBodyTooDeep
      required
    • max_depth
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991

401

InvalidCredentials
JSON
  • _tag
    InvalidCredentials
    required

403

Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON

One of the following:

  • ForbiddenEncoded
    • _tag
      Forbidden
      required
    • message
      string
      required
  • ForbiddenOriginEncoded
    • _tag
      ForbiddenOrigin
      required
  • RequiresPersonalSessionEncoded
    • _tag
      RequiresPersonalSession
      required
  • RunBranchRequiredEncoded
    • _tag
      RunBranchRequired
      required
    • branch
      string
      required
      minLength: 1
    • message
      string
      required

404

OrgNotFound | GroupNotFound
JSON

One of the following:

  • OrgNotFoundEncoded
    • _tag
      OrgNotFound
      required
  • GroupNotFoundEncoded
    • _tag
      GroupNotFound
      required

409

AlreadyMember
JSON
  • _tag
    AlreadyMember
    required

413

RequestBodyTooLarge
JSON
  • _tag
    RequestBodyTooLarge
    required
  • max_bytes
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

OrgFailure | ControlPlaneFailure
JSON

One of the following:

  • OrgFailureEncoded
    • _tag
      OrgFailure
      required
    • reason
      string
      required
  • ControlPlaneFailureEncoded
    • _tag
      ControlPlaneFailure
      required
    • reason
      string
      required

503

SessionUnavailable | RateLimitUnavailable
JSON

One of the following:

  • SessionUnavailableEncoded
    • _tag
      SessionUnavailable
      required
  • RateLimitUnavailableEncoded
    • _tag
      RateLimitUnavailable
      required

Type to search…

↑↓ navigate↵ selectEsc close