> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sublay.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Follow User

> Follow a user by their ID

Creates a follow relationship from the authenticated user to the specified user. A notification is sent to the followed user.

## Path Parameters

**userId** `string` *required*

The Sublay user ID (UUID) of the user to follow.

## Response

On success, returns HTTP `201` with the created follow record:

**id** `string`

Unique follow record ID (UUID).

**followerId** `string`

ID of the user who followed (the authenticated user).

**followedId** `string`

ID of the user being followed.

**createdAt** `string`

ISO timestamp of when the follow was created.

## Error Responses

> [accordion] Self-Follow — 400
>
> ```json theme={null}
> {
>   "error": "A user cannot follow themselves.",
>   "code": "follow/self-follow"
> }
> ```

> [accordion] User Not Found — 404
>
> ```json theme={null}
> {
>   "error": "One or both users involved in the follow do not exist.",
>   "code": "follow/user-not-found"
> }
> ```

> [accordion] Already Following — 409
>
> ```json theme={null}
> {
>   "error": "Follow relationship already exists.",
>   "code": "follow/already-exists"
> }
> ```

## See Also

* [`useFollowManager` hook](https://docs.sublay.io/v7/hooks/follows/use-follow-manager)
* [Follow data model](https://docs.sublay.io/v7/data-models/follow.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.