Invite a member

POSThttps://api.floconnector.com/v1/members/invites
Scope
members.invite
Rate limit
the key's write budget, 60 a minute

FloConnector emails the invite and nothing changes until the person accepts; it expires after 7 days. Inviting an address that already has a pending invite refreshes that invite with the role and workspaces given now, instead of making a second. Someone who is already a member is refused unless the invite names specific workspaces. Only an owner can invite an owner, so a key cannot, and the plan's member limit applies.

Body

The fields it takes:

emailstring (email)required

The address to invite. If it already has a pending invite, that invite is refreshed instead of a second being made.

roleenumoptional

The ladder role to grant. Default member. Only an owner may invite an owner.

owneradminmember
role_idstring (uuid)optional

A named role (custom roles, Pro+) instead of role.

workspace_idsarray of string (uuid)optional

The workspaces the acceptance grants. Omit or [] for the whole account.

Up to 50 items

Responses

201Created
inviteobject

The invite as sent, or the refreshed one when the address already had one pending.

ShowHide 10 fields
idstring

The invite's id.

emailstring

The address invited.

roleenum

The position on the role ladder the acceptance grants: owner, admin or member.

owneradminmember
role_idstringnullable

The id of the named role the invite grants. Null on older invites that carry only a ladder role.

role_namestringnullable

That role's name. Null when role_id is.

workspace_idsarray of string

Every workspace the acceptance grants. Empty means the whole account.

workspace_idstringnullable

The workspace, when the invite names exactly one. Null otherwise: read workspace_ids.

workspace_namestringnullable

The names of those workspaces, comma-separated. Null for a whole-account invite.

expires_atstring

When the invite's link stops working, ISO 8601 timestamp.

created_atstring

When the invite was first sent, ISO 8601 timestamp.

400validation: a field failed validation; field names it.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

401unauthorized: no key, or an unknown, revoked or expired key.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

403insufficient_scope: the key lacks the route's scope, named in required. Or forbidden, or plan_limit when the plan does not include the API.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

404not_found: the thing is not in this workspace.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

429rate_limited: the key's per-minute budget is spent. Retry after Retry-After seconds.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

Errors lists every error code and what to do about it.