> ## 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 DTT session by ID

> Returns detailed information about a specific training session, including all segment results.



## OpenAPI

````yaml https://dashboard.researchanddesire.com/openapi.yaml get /dtt/sessions/{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:
  /dtt/sessions/{id}:
    get:
      tags:
        - DTT Sessions
      summary: Get DTT session by ID
      description: >-
        Returns detailed information about a specific training session,
        including all segment results.
      operationId: getDttSession
      parameters:
        - $ref: '#/components/parameters/DttSessionId'
      responses:
        '200':
          description: DTT session with segments
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DttSessionDetailResponse'
              example:
                ok: true
                data:
                  id: 1
                  bubble_id: session-001
                  name: Morning Training
                  passed: true
                  created_at: '2026-02-18T08:00:00Z'
                  trainer_id: 1
                  settings_id: 1
                  TrainerSegment:
                    - id: 1
                      type: repetition
                      passed: true
                      percentGrade: 85
                      points: 150
                      durationMeasured: 58
                      durationTarget: 60
                      repsMeasured: 10
                      repsTarget: 10
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: DTT session not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                ok: false
                error: DTT session not found
components:
  parameters:
    DttSessionId:
      name: id
      in: path
      required: true
      description: The DTT training session ID
      schema:
        type: integer
        minimum: 1
        example: 1
  schemas:
    DttSessionDetailResponse:
      type: object
      required:
        - ok
        - data
      properties:
        ok:
          type: boolean
          const: true
        data:
          $ref: '#/components/schemas/DttSessionDetail'
    ErrorResponse:
      type: object
      required:
        - ok
        - error
      properties:
        ok:
          type: boolean
          const: false
        error:
          type: string
    DttSessionDetail:
      allOf:
        - $ref: '#/components/schemas/DttSessionSummary'
        - type: object
          properties:
            TrainerSegment:
              type: array
              items:
                $ref: '#/components/schemas/DttTrainerSegment'
    DttSessionSummary:
      type: object
      properties:
        id:
          type: integer
          description: Session ID
        bubble_id:
          type: string
          description: Unique public identifier
        name:
          type: string
          nullable: true
          description: Session name
        passed:
          type: boolean
          nullable: true
          description: Whether session was passed overall
        created_at:
          type: string
          format: date-time
          description: Session timestamp
        trainer_id:
          type: integer
          description: Trainer device ID
        settings_id:
          type: integer
          nullable: true
          description: Template ID used
    DttTrainerSegment:
      type: object
      properties:
        id:
          type: integer
        type:
          type: string
          enum:
            - repetition
            - endurance
            - freeform
            - bounce
          description: Segment type
        passed:
          type: boolean
          nullable: true
          description: Whether segment was passed
        percentGrade:
          type: number
          description: Performance grade percentage
        points:
          type: integer
          description: Points earned
        durationMeasured:
          type: integer
          description: Actual duration in seconds
        durationTarget:
          type: integer
          description: Target duration in seconds
        repsMeasured:
          type: integer
          description: Actual repetitions
        repsTarget:
          type: integer
          description: Target repetitions
        speedMeasured:
          type: number
          description: Actual speed
        speedTarget:
          type: number
          description: Target speed
        targetDepth:
          type: number
          description: Target depth
        targetWindow:
          type: number
          description: Target window
        longestDeepthroat:
          type: number
          description: Longest deepthroat duration
        strokeLength:
          type: number
          description: Stroke length
        distanceTravelled:
          type: number
          description: Total distance travelled
        order:
          type: integer
          description: Segment order
        createdAt:
          type: string
          format: date-time
  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.

````