Skip to content
Navigation

createInvite

POST
/api/v1/workspaces/{workspaceId}/invites

Authorization

  • session
    optional
    API key in cookie
  • token
    optional
    HTTP Bearer

    Authorization: Bearer <token>

Path parameters

  • workspaceId
    string
    required

Request body JSON required

  • role
    admin
    or
    member
    required
  • email
    optional
    string

    If set, only a user with this email can accept.

  • expiresInHours
    optional
    integer

    Defaults to 168 (7 days).

    maximum: 720 · minimum: 1

Returns

201

Created. The token is only returned once.

JSON
  • id
    string
    required
  • role
    admin
    or
    member
    required
  • email
    string
    required
  • createdBy
    string
    required
  • createdAt
    string
    required
    format: date-time
  • expiresAt
    string
    required
    format: date-time
  • token
    string
    required
  • url
    string
    required

    Link to share with the invitee.

400

Error.
JSON
  • error
    string
    required

403

Error.
JSON
  • error
    string
    required

404

Error.
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close