Skip to main content

Toggle Follow for user‚Äč

This API endpoint allows the authenticated user to toggle their follow status for another user by sending a POST request with the target user's username. If the user is already following the target user, sending the same request will unfollow the user, and vice versa.

System will return found error if target user is not found.

Path Parameters
    username string required

    target user's username

Query Parameters
    client_auth_token string required

    Client API token

Header Parameters
    access-token string required

    user access token

    client string required

    client access token

    expiry string required

    timestamp of access token expiry date

    Example: 1537100004
    token-type string required

    Default value: Bearer

    token type

    Example: Bearer
    uid string required

    user uid


Successful response

Response Headers

      followed boolean