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

# Get user by ID

> Returns detailed information about a specific user, including their profile data. You can only access users you have a connection with.



## OpenAPI

````yaml https://dashboard.researchanddesire.com/openapi.yaml get /users/{id}
openapi: 3.1.0
info:
  title: Research And Desire API
  description: >
    The Research And Desire API provides programmatic access to your devices and
    data.


    All responses follow a standard envelope format:

    - Success: `{ "ok": true, "data": <result> }`

    - Error: `{ "ok": false, "error": "<message>" }`


    ## Pagination


    List endpoints support pagination via query parameters:

    - `limit`: Number of records to return (default: 50, max: 100)

    - `offset`: Number of records to skip (default: 0)


    Paginated responses include pagination metadata alongside the data array.


    ## Authentication


    All endpoints require a Bearer token in the Authorization header.

    Tokens can be created in the Dashboard settings (requires Ultra
    subscription).
  version: 1.0.0
  contact:
    name: Research And Desire Support
    url: https://www.researchanddesire.com/support
servers:
  - url: https://dashboard.researchanddesire.com/api/v1
    description: Production API
security:
  - bearerAuth: []
tags:
  - name: Users
    description: User account information
  - name: DTT
    description: Deepthroat Trainer devices
  - name: DTT Templates
    description: Deepthroat Trainer training program templates
  - name: DTT Sessions
    description: Deepthroat Trainer training session history
  - name: LKBX
    description: Chastity Lockbox devices
  - name: Lock Templates
    description: Lock templates
  - name: Lock Sessions
    description: Lock session management
  - name: OSSM
    description: Open Source Sex Machine devices
paths:
  /users/{id}:
    get:
      tags:
        - Users
      summary: Get user by ID
      description: >-
        Returns detailed information about a specific user, including their
        profile data. You can only access users you have a connection with.
      operationId: getUser
      parameters:
        - $ref: '#/components/parameters/UserId'
      responses:
        '200':
          description: User details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserDetailResponse'
              example:
                ok: true
                data:
                  id: 42
                  username: alice_trainer
                  accountType: user
                  subscriptionTier: ultra
                  league: 3
                  rank: 150
                  totalPoints: 12500
                  matchPoints: 800
                  profileImage: https://example.com/avatar.jpg
                  profileDescription: Hello world
                  profileTitle: Expert Trainer
                  dttTotalReps: 24500
                  dttTotalSessions: 312
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                ok: false
                error: User not found
components:
  parameters:
    UserId:
      name: id
      in: path
      required: true
      description: The user's internal ID
      schema:
        type: integer
        minimum: 1
        example: 42
  schemas:
    UserDetailResponse:
      type: object
      required:
        - ok
        - data
      properties:
        ok:
          type: boolean
          const: true
        data:
          $ref: '#/components/schemas/UserDetail'
    ErrorResponse:
      type: object
      required:
        - ok
        - error
      properties:
        ok:
          type: boolean
          const: false
        error:
          type: string
    UserDetail:
      allOf:
        - $ref: '#/components/schemas/UserSummary'
        - type: object
          description: Extended user details (same as summary, profile fields are flat)
          properties:
            dttTotalReps:
              type: integer
              description: >-
                Lifetime total Deepthroat Trainer repetitions across all
                sessions owned by this user.
            dttTotalSessions:
              type: integer
              description: >-
                Lifetime count of Deepthroat Trainer sessions owned by this
                user.
    UserSummary:
      type: object
      properties:
        id:
          type: integer
          description: Internal user ID
        username:
          type: string
          nullable: true
          description: User's unique username (from profile)
        accountType:
          type: string
          enum:
            - user
            - support
            - admin
            - superadmin
          description: Account type
        subscriptionTier:
          type: string
          nullable: true
          enum:
            - ultra
            - pioneer
            - founder
            - employee
          description: Subscription tier (null if no subscription)
        league:
          type: integer
          description: Current league tier
        rank:
          type: integer
          description: Leaderboard rank
        totalPoints:
          type: integer
          description: Lifetime points earned
        matchPoints:
          type: integer
          description: Points in current match period
        profileImage:
          type: string
          nullable: true
          description: URL to user's profile image
        profileDescription:
          type: string
          nullable: true
          description: User's profile bio/description
        profileTitle:
          type: string
          nullable: true
          description: User's profile title
  responses:
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            ok: false
            error: Invalid ID
    Unauthorized:
      description: Authentication required or token invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            ok: false
            error: Unauthorized
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |
        API tokens can be created in the Dashboard settings.
        Requires an Ultra subscription.

````