Skip to main content
POST
Reserves a seat and emails the invitee. In one step the server:
  • creates a 60db account if the email has none (own workspace + Free plan, no password yet),
  • adds the person to the licence workspace as a member (Flow works inside the licence’s workspace),
  • adds a pending seat, sends an in-app notification and the email “<owner> invited you to 60db Flow” with a Set your password button (account without a password) or an Open 60db button.
If any step fails (for example no seat is free), nothing is saved.

Request

Headers

string
required
Bearer <login token> of the signed-in 60db user. API keys (sk_...) are not accepted for Flow.
string
flow/<app-version>, e.g. flow/1.5.0 (send it from the 60db Flow app)

Path Parameters

string
required
Licence id (license_id from Get Flow plan)

Query Parameters

integer
The licence’s workspace. Seat management is checked against it: send it when the user’s current workspace is a different one.

Body

string
required
Email address to invite

Response

integer
Invitee user id (use it to cancel the invite)
string
Invitee email
string
pending
integer
Seats on the licence
integer
Seats taken after this invite
boolean
A new 60db account was created for this email
boolean
The invitee was added to the licence workspace
boolean
The email contains a “Set your password” link

Errors

Errors use { "success": false, "message": "...", "error_code": "..." }. Show message to the user.

Example