Skip to content

Creates a follow relationship from the current user to the named member.

Following yourself is rejected, as is following someone you already follow or have blocked — the block is stored in the same table, so an existing block surfaces as an already-following error.

Endpoint

  • Method: POST

  • Path: /profile/{username}/follow

  • Edition: PRO

  • Controller: FollowController@follow

  • Route source: fluent-community-pro/app/Http/Routes/api.php:131

  • Controller source: fluent-community-pro/app/Http/Controllers/FollowController.php

  • Requires FluentCommunity Pro with the followers_module feature enabled.

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 Follow Profile User

POST
/profile/{username}/follow

Creates a follow relationship from the current user to the named member.

Controller: FollowController@follow
Route source: fluent-community-pro/app/Http/Routes/api.php:131

Authorizations

ApplicationPasswords

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

Type
API Key (header: Authorization)

Parameters

Path Parameters

username*

Username extracted from the URL path.

Type
string
Required

Responses

Successful response

application/json
JSON
{
  
"follow": {
  
  
"created_at": "string",
  
  
"followed_id": 0,
  
  
"follower_id": 0,
  
  
"id": 0,
  
  
"level": 0,
  
  
"updated_at": "string"
  
},
  
"message": "string",
  
"xprofile": {
  
  
"avatar": "string",
  
  
"badge": "string",
  
  
"created_at": "string",
  
  
"display_name": "string",
  
  
"id": "string",
  
  
"is_verified": 0,
  
  
"last_activity": "string",
  
  
"meta": {
  
  
  
"cover_photo": "string",
  
  
  
"short_description_rendered": "string",
  
  
  
"website": "string"
  
  
},
  
  
"permalink": "string",
  
  
"short_description": "string",
  
  
"status": "string",
  
  
"total_points": 0,
  
  
"updated_at": "string",
  
  
"user_id": 0,
  
  
"username": "string"
  
}
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation