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

# List active devices

> Lists active tokens with device metadata (excludes legacy tokens without device_id).



## OpenAPI

````yaml api-reference/openapi.yaml get /api/v1/auth/devices
openapi: 3.0.3
info:
  title: Flowxi API Documentation
  version: 1.0.0
servers:
  - url: https://api.flowxi.app
security:
  - bearerAuth: []
tags:
  - name: Health
    description: Service healthcheck.
  - name: Registration
    description: Registration flows (magic link + email OTP).
  - name: Auth
    description: Login and session management.
  - name: Two-factor authentication
    description: TOTP 2FA endpoints (login verification + manage 2FA).
  - name: Devices
    description: Session/device listing and revocation.
  - name: Me
    description: Profile of the authenticated user (Sanctum session).
paths:
  /api/v1/auth/devices:
    get:
      tags:
        - Devices
      summary: List active devices
      description: >-
        Lists active tokens with device metadata (excludes legacy tokens without
        device_id).
      operationId: getApiV1AuthDevices
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DevicesListResponse'
        '401':
          $ref: '#/components/responses/Unauthenticated'
      security:
        - bearerAuth: []
components:
  schemas:
    DevicesListResponse:
      allOf:
        - $ref: '#/components/schemas/ApiOkBase'
        - type: object
          required:
            - devices
          properties:
            devices:
              type: array
              items:
                type: object
                required:
                  - id
                  - device_name
                  - device_type
                  - device_id
                  - ip_address
                  - user_agent
                  - country
                  - created_at
                  - last_used_at
                  - is_current
                properties:
                  id:
                    type: integer
                    example: 999
                  device_name:
                    type: string
                    example: Chrome (Mac)
                  device_type:
                    type: string
                    example: web
                  device_id:
                    type: string
                    example: device-uuid-123
                  ip_address:
                    type: string
                    example: 203.0.113.10
                  user_agent:
                    type: string
                    example: Mozilla/5.0 ...
                  country:
                    type: string
                    nullable: true
                    example: BJ
                  created_at:
                    type: string
                    example: '2026-01-09 11:15:00'
                  last_used_at:
                    type: string
                    nullable: true
                    example: '2026-01-09 11:20:00'
                  is_current:
                    type: boolean
                    example: true
      example:
        code: DEVICES_LISTED
        message: Devices listed.
        devices: []
    ApiOkBase:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: OK
        message:
          type: string
          example: OK
    ApiError:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Machine-readable error code.
          example: UNAUTHENTICATED
        message:
          type: string
          description: Localized, user-facing message.
          example: Unauthenticated.
  responses:
    Unauthenticated:
      description: Unauthenticated.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
          example:
            code: UNAUTHENTICATED
            message: Unauthenticated.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum

````