Creates a shareable invitation link for a space that any recipient can redeem, and returns its access URL.
title and space_id are required; limit caps how many people may redeem it and expire_date sets an expiry. The link is actually created by whatever is listening on the fluent_community/create_invitation_link filter, so the call fails with a generic message when no handler is registered.
Endpoint
Method:
POSTPath:
/invitations/linkEdition: Core
Controller:
InvitationController@createNewLinkRoute source:
fluent-community/Modules/Auth/InvitationModule.php:26Controller source:
fluent-community/Modules/Auth/Classes/InvitationController.phpRequires the
community_moderatorpermission in the space named byspace_id.Requires FluentCommunity Pro with the
invitationfeature enabled — Pro also supplies the filter that actually creates the link.Anyone holding the returned URL can join the space until the limit or expiry is reached; neither
limitnorexpire_dateis validated.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
POST Create Invitation Link
Creates a shareable invitation link for a space that any recipient can redeem, and returns its access URL.
Controller: InvitationController@createNewLink
Route source: fluent-community/Modules/Auth/InvitationModule.php:26
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Request Body
Responses
Successful response