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

# Update current user

> Updates the authenticated user's profile. Supports setting onboarding=false to mark onboarding as complete, and optionally storing use_case and referral for onboarding analytics. The response reflects the current billing_blocked state, unaffected by this update.



## OpenAPI

````yaml /api-reference/openapi.json patch /users/me
openapi: 3.0.0
info:
  description: >-
    Unified social media inbox API. Read and respond to comments, DMs, reviews,
    and mentions across Instagram, Facebook, Threads, Google Business Profile,
    TikTok, LinkedIn, and YouTube through a single REST API. X/Twitter and
    Trustpilot coming soon.
  title: SocialAPI.AI
  contact:
    name: SocialAPI.AI Support
    email: support@social-api.ai
  license:
    name: MIT
  version: '1.0'
servers:
  - url: https://api.social-api.ai/v1
security: []
paths:
  /users/me:
    patch:
      tags:
        - Users
      summary: Update current user
      description: >-
        Updates the authenticated user's profile. Supports setting
        onboarding=false to mark onboarding as complete, and optionally storing
        use_case and referral for onboarding analytics. The response reflects
        the current billing_blocked state, unaffected by this update.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/api_endpoints.PatchMeRequest'
        description: Fields to update
        required: true
      responses:
        '200':
          description: Updated user profile
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.UserMeResponse'
        '400':
          description: Invalid request body or onboarding value
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_endpoints.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api_endpoints.PatchMeRequest:
      type: object
      properties:
        lock_accounts_to_brand:
          description: >-
            LockAccountsToBrand toggles whether a social account already
            connected to

            one brand may be re-connected (moved) to a different brand. When
            true, such

            a connect attempt is rejected with 409 account.already_linked.
          type: boolean
          example: true
        onboarding:
          type: boolean
          example: false
        referral:
          type: string
          example: Google search
        use_case:
          type: string
          example: Managing my own brand's social accounts
    api_endpoints.UserMeResponse:
      type: object
      properties:
        allowed_platforms:
          type: array
          items:
            type: string
          example:
            - instagram
            - facebook
        avatar_url:
          type: string
          example: https://example.com/avatar.jpg
        beta_tester:
          type: boolean
          example: false
        billing_blocked:
          description: >-
            BillingBlocked is true when the subscription is past due and API
            access

            plus webhook delivery are paused. Clears automatically once paid.
          type: boolean
          example: false
        billing_blocked_at:
          description: BillingBlockedAt is when the block began, or null when not blocked.
          type: string
        email:
          type: string
          example: user@example.com
        facebook_page_selection:
          description: >-
            FacebookPageSelection, when true, enables the shared-credential
            Facebook

            connect flow (page selection) in the dashboard. Read-only here.
          type: boolean
          example: false
        id:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
        lock_accounts_to_brand:
          description: >-
            LockAccountsToBrand, when true, rejects connecting a social account
            that is

            already connected to another of your brands (409
            account.already_linked)

            instead of moving it. Default false.
          type: boolean
          example: false
        onboarding:
          type: boolean
          example: true
        plan:
          type: string
          example: free
        use_case:
          type: string
          example: Managing clients' accounts (agency)
    api_endpoints.ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/api_endpoints.ErrorBody'
    api_endpoints.ErrorBody:
      type: object
      properties:
        code:
          type: string
          example: resource.not_found
        message:
          type: string
          example: Account not found
        meta:
          type: object
          additionalProperties: {}
  securitySchemes:
    BearerAuth:
      description: >-
        Prefix your API key with "Bearer ". Example: `Authorization: Bearer
        sapi_key_...`
      type: apiKey
      name: Authorization
      in: header

````