Skip to content

Returns the badge definitions available to award to member profiles.

Endpoint

  • Method: GET

  • Path: /admin/user-badges

  • Edition: PRO

  • Controller: UserBadgeController@getBadges

  • Route source: fluent-community-pro/app/Modules/UserBadge/UserBadgeModule.php:19

  • Requires the FluentCommunity community-admin permission (or a WordPress super admin).

  • Requires FluentCommunity Pro.

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.

GET List User Badges

GET
/admin/user-badges

Returns the badge definitions available to award to member profiles.

Controller: UserBadgeController@getBadges
Route source: fluent-community-pro/app/Modules/UserBadge/UserBadgeModule.php:19

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Responses

Successful response

application/json
JSON
{
  
"badges": [
  
  
{
  
  
  
"config": {
  
  
  
  
"shape_svg": "string"
  
  
  
},
  
  
  
"show_label": "string",
  
  
  
"slug": "string",
  
  
  
"title": "string"
  
  
}
  
]
}

Playground

Authorization

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation