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

# Follow Account

> Follow an account. Idempotent: following twice is a success, not a 409.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/users/{username}/follow
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/users/{username}/follow:
    post:
      tags:
        - Users
      summary: Follow Account
      description: 'Follow an account. Idempotent: following twice is a success, not a 409.'
      operationId: follow_account_v1_users__username__follow_post
      parameters:
        - name: username
          in: path
          required: true
          schema:
            type: string
            description: The account to follow.
            title: Username
          description: The account to follow.
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FollowResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    FollowResponse:
      properties:
        object:
          type: string
          title: Object
          default: follow
        username:
          type: string
          title: Username
        is_following:
          type: boolean
          title: Is Following
        counts:
          $ref: '#/components/schemas/FollowCounts'
          default:
            following: 0
      type: object
      required:
        - username
        - is_following
      title: FollowResponse
      description: The result of following or unfollowing.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FollowCounts:
      properties:
        following:
          type: integer
          title: Following
          default: 0
        followers:
          anyOf:
            - type: integer
            - type: 'null'
          title: Followers
      type: object
      title: FollowCounts
      description: How many accounts follow this one, and how many it follows.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

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