Skip to content

Get Event by Slug ​

Returns one event, looked up by its post slug, in the same shape as Get Event.

The FluentCommunity portal edit page addresses events by slug. An unknown slug returns 404.

Endpoint ​

  • Method: GET
  • Path: /fluent-event/v2/events/by-slug
  • Controller: EventController@getEventBySlug
  • Route source: fluent-event/app/Http/Routes/api.php:53
  • Controller source: fluent-event/app/Http/Controllers/EventController.php:93

Permissions ​

  • Requires the manage_options capability (a site administrator). FluentEvent has no separate staff roles: its admin API is for administrators only.

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 Event by Slug​

GET
/events/by-slug

Returns one event, looked up by its post slug, in the same shape as Get Event.

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

Authorizations​

ApplicationPasswords

A WordPress username and an Application Password.

Type
HTTP (basic)

Parameters​

Query Parameters

slug*

The event post slug (post_name).

Type
string
Required
Example"spring-meetup"

Responses​

Success

application/json
JSON
{
  
"event": {
  
  
"id": 0,
  
  
"post_id": 0,
  
  
"calendar_id": 0,
  
  
"parent_event_id": "string",
  
  
"status": "string",
  
  
"start_at": "string",
  
  
"end_at": "string",
  
  
"timezone": "string",
  
  
"venue_type": "string",
  
  
"meta": {
  
  
  
"cover_url": "string",
  
  
  
"online_meeting_url": "string",
  
  
  
"venue": "string",
  
  
  
"address": "string",
  
  
  
"entry_type": "string",
  
  
  
"show_guest_count": "string",
  
  
  
"capacity": 0,
  
  
  
"show_spots_left": "string",
  
  
  
"start_display": "string",
  
  
  
"description_md": "string"
  
  
},
  
  
"created_at": "string",
  
  
"updated_at": "string",
  
  
"guests_count": "string",
  
  
"title": "string",
  
  
"start_at_local": "string",
  
  
"end_at_local": "string",
  
  
"start_at_site": "string",
  
  
"end_at_site": "string",
  
  
"description": "string",
  
  
"calendar": {
  
  
  
"id": 0,
  
  
  
"title": "string",
  
  
  
"status": "string",
  
  
  
"meta": {
  
  
  
  
"theme_color": "string"
  
  
  
}
  
  
}
  
},
  
"public_url": "string",
  
"shortcode": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

FluentEvent developer documentation