Skip to content
Get an API key

Share a space with a person

POST /spaces/{spaceId}/members

Updated 17 Sep 20262 min read
POST/spaces/{spaceId}/membersTry it
Basehttps://api.mockflow.com/v1Scopesmembers:write

Adds or updates the person's role. The first time someone is added an invitation email is sent, worded as the app sends it. Basic can share as reviewer only, up to five people per space. A shared admin or editor may share too, as in the app.

Authorization

Authorizationstringheaderrequired

Bearer <key>. The key needs members:write scope. Create and manage keys in the developer console; what each scope unlocks is on the scopes page.

Path parameters

spaceIdstringpathrequired

Body

application/json
emailstringrequired
roleenum<string>required

One of admin, editor or reviewer.

Response

200 · application/json
idstring
emailstring
namestring
roleenum<string>

The product's roles. Owner is the workspace that holds the board or space and cannot be granted or transferred. Admin can rename and share, editor can edit, reviewer can view, export and add comment items. There is no viewer role and no pending state. One of owner, admin, editor or reviewer.

hasAccountboolean

False for someone invited who has not signed up yet.

invitedboolean

Set on the response to a first add when the invitation mail went out.

Errors

402plan_limit

The workspace plan does not allow this, or AI credits are exhausted.

429rate_limited

Too many requests.

Was this page helpful?

Sign in to MockFlow

The same account you use in the app and on the API.

Forgot your password?
or
Continue with GoogleContinue with Microsoft