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

# Retrieve the current user

> Retrieve the current user for the authenticated team.



## OpenAPI

````yaml get /users/me
openapi: 3.1.0
info:
  version: 0.0.1
  title: Abacus API
  description: Abacus is the operating system for Merchant Cash Advance businesses.
  contact:
    name: Abacus Support
    email: support@abacuslabs.co
    url: https://abacuslabs.co
  license:
    name: AGPL-3.0 license
    url: https://github.com/Suphian/abacus/blob/main/LICENSE
servers:
  - url: https://api.abacuslabs.co
    description: Production API
security:
  - oauth2: []
  - token: []
paths:
  /users/me:
    get:
      tags:
        - Users
      summary: Retrieve the current user
      description: Retrieve the current user for the authenticated team.
      operationId: getCurrentUser
      responses:
        '200':
          description: Retrieve the current user for the authenticated team.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: Unique identifier of the user
                    example: 123e4567-e89b-12d3-a456-426614174000
                  fullName:
                    type: string
                    description: Full name of the user
                    example: Jane Doe
                  email:
                    type: string
                    format: email
                    description: Email address of the user
                    example: jane.doe@acme.com
                  avatarUrl:
                    type: string
                    nullable: true
                    format: uri
                    description: URL to the user's avatar image
                    example: >-
                      https://example.supabase.co/storage/v1/object/public/avatars/user.jpg
                  locale:
                    type: string
                    nullable: true
                    description: >-
                      User's preferred locale for internationalization (language
                      and region)
                    example: en-US
                  weekStartsOnMonday:
                    type: boolean
                    nullable: true
                    description: >-
                      Whether the user's calendar week starts on Monday (true)
                      or Sunday (false)
                    example: true
                  timezone:
                    type: string
                    nullable: true
                    description: >-
                      User's timezone identifier in IANA Time Zone Database
                      format
                    example: America/New_York
                  timezoneAutoSync:
                    type: boolean
                    nullable: true
                    description: >-
                      Whether to automatically sync timezone with browser
                      timezone
                    example: true
                  timeFormat:
                    type: number
                    nullable: true
                    description: >-
                      User's preferred time format: 12 for 12-hour format, 24
                      for 24-hour format
                    example: 24
                  dateFormat:
                    type: string
                    nullable: true
                    enum:
                      - dd/MM/yyyy
                      - MM/dd/yyyy
                      - yyyy-MM-dd
                      - dd.MM.yyyy
                      - null
                    description: >-
                      User's preferred date format. Available options:
                      'dd/MM/yyyy', 'MM/dd/yyyy', 'yyyy-MM-dd', 'dd.MM.yyyy'
                    example: yyyy-MM-dd
                    x-speakeasy-enums:
                      - ddSlashMMSlashyyyy
                      - MMSlashddSlashyyyy
                      - yyyyDashMMDashdd
                      - ddDotMMDotyyyy
                  fileKey:
                    type: string
                    nullable: true
                    description: >-
                      Team file key (JWT token) for proxy/download access to
                      team files. This compact JWT token contains the team ID
                      and is shared by all team members. Use this token as the
                      `fk` query parameter when accessing file endpoints (proxy,
                      download). The token is team-scoped and provides access to
                      files belonging to the user's team. Returns null if the
                      user has no team.
                    example: >-
                      eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZWFtSWQiOiIxMjM0NTY3OC05YWJjLWRlZmctMTIzNC01Njc4OTBhYmNkZWYifQ.signature
                  team:
                    type: object
                    nullable: true
                    properties:
                      id:
                        type: string
                        format: uuid
                        description: Unique identifier of the team
                        example: 123e4567-e89b-12d3-a456-426614174000
                      name:
                        type: string
                        description: Name of the team or organization
                        example: Acme Corporation
                      logoUrl:
                        type: string
                        format: uri
                        description: URL to the team's logo image
                        example: >-
                          https://example.supabase.co/storage/v1/object/public/avatars/logo.png
                      plan:
                        type: string
                        description: Current subscription plan of the team
                        example: pro
                    required:
                      - id
                      - name
                      - logoUrl
                      - plan
                    description: Team information that the user belongs to
                required:
                  - id
                  - fullName
                  - email
                  - avatarUrl
                  - locale
                  - weekStartsOnMonday
                  - timezone
                  - timezoneAutoSync
                  - timeFormat
                  - dateFormat
                  - fileKey
                  - team
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer
      description: Default authentication mechanism
      x-speakeasy-example: ABACUS_API_KEY

````

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