Skip to content

Get Community Event by Slug ​

Resolves a portal event URL (space slug + event slug) to the community post slug that shows it.

Returns 404 when the event is not visible to the caller or the space slug does not match. Send an empty space for an event posted outside any space.

Endpoint ​

  • Method: GET
  • Path: /fluent-event/v2/community/events/by-slug
  • Controller: CommunityEventController@getEventBySlug
  • Route source: fluent-event/app/Http/Routes/api.php:70
  • Controller source: fluent-event/app/Http/Controllers/CommunityEventController.php:119

Permissions ​

  • Open to anyone FluentCommunity lets into its portal, logged in or not, while the FluentEvent feature is on in FluentCommunity. A member whose community profile is not active is refused. Each event is then shown only if its community post is visible to the caller.

Live sample

The request and response below were recorded on a running FluentEvent site and then anonymised. Names, emails and event titles are fictional, and long lists are cut to a few items.

Get Community Event by Slug​

GET
/community/events/by-slug

Resolves a portal event URL (space slug + event slug) to the community post slug that shows it.

Controller: CommunityEventController@getEventBySlug
Route source: fluent-event/app/Http/Routes/api.php:70

Authorizations​

cookieAuth

Logged-in cookie plus a wp_rest nonce. The browser sends the cookie.

Type
API Key (header: X-WP-Nonce)

Parameters​

Query Parameters

slug*

The event post slug.

Type
string
Required
Example"community-qa"
space

The space slug in the URL. Empty for a community-wide event.

Type
string
Example""
Default
""

Responses​

Success

application/json
JSON
{
  
"feed_slug": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

FluentEvent developer documentation