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

# Get the currently playing track

> The current handler contains placeholder logic; a successful response does not guarantee the requested operation was performed.



## OpenAPI

````yaml /api-reference/openapi.json get /app.rocksky.player.getCurrentlyPlaying
openapi: 3.1.0
info:
  title: Rocksky XRPC API
  version: 1.0.0
  description: >-
    Generated from the registered Rocksky XRPC handlers and current lexicons.
    Provider-defined payloads remain open schemas. Some handlers return empty
    fallback objects on service failures. This reference describes the
    repository implementation; production may run an earlier revision.
  license:
    name: MIT License
    identifier: MIT
servers:
  - url: https://api.rocksky.app/xrpc
    description: Rocksky API
security: []
paths:
  /app.rocksky.player.getCurrentlyPlaying:
    get:
      tags:
        - app.rocksky.player
      summary: Get the currently playing track
      description: >-
        The current handler contains placeholder logic; a successful response
        does not guarantee the requested operation was performed.
      operationId: app.rocksky.player.getCurrentlyPlaying
      parameters:
        - name: playerId
          in: query
          required: false
          schema:
            type: string
        - name: actor
          in: query
          required: false
          description: >-
            Handle or DID of the actor to retrieve the currently playing track
            for. If not provided, defaults to the current user.
          schema:
            type: string
            description: >-
              Handle or DID of the actor to retrieve the currently playing track
              for. If not provided, defaults to the current user.
            x-lexicon-format: at-identifier
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/app.rocksky.player.defs__currentlyPlayingViewDetailed
        '400':
          description: Invalid XRPC request or parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/XrpcError'
        default:
          description: XRPC error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/XrpcError'
      security:
        - Bearer: []
components:
  schemas:
    app.rocksky.player.defs__currentlyPlayingViewDetailed:
      type: object
      properties:
        title:
          type: string
          description: The title of the currently playing track
        device: {}
        shuffle_state:
          type: boolean
        repeat_state:
          type: string
        timestamp:
          type: integer
        context: {}
        progress_ms:
          anyOf:
            - type: integer
            - type: 'null'
        item: {}
        currently_playing_type:
          type: string
        actions: {}
        is_playing:
          type: boolean
        uri:
          anyOf:
            - type: string
            - type: 'null'
        albumUri:
          anyOf:
            - type: string
            - type: 'null'
        artistUri:
          anyOf:
            - type: string
            - type: 'null'
        liked:
          type: boolean
    XrpcError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        message:
          type: string
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: Rocksky bearer token.

````

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