Skip to content
Navigation

Invite a member

Emails an invitation to join the caller's organization. Body: { email: string, roleSlug?: string } — absent, the organization's default role applies. Authorization: organization administrators only. Returns 400 on a malformed body and 422 when the address cannot be invited — e.g. it is already a member.

POST
https://api.cloudraker.com/users/invitations
Try it
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Request body JSON required

  • email
    string
    required
    format: email · pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
  • roleSlug
    optional
    string
    maxLength: 64 · minLength: 1

Returns

201

The invitation that was sent.

JSON
  • invitation
    object
    required
    • id
      string
      required
    • email
      string
      required
      format: email · pattern: ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
    • expiresAt
      string
      required

Type to search…

↑↓ navigate↵ selectEsc close