> ## 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.

# Create a new scrobble



## OpenAPI

````yaml /api-reference/openapi.json post /app.rocksky.scrobble.createScrobble
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.scrobble.createScrobble:
    post:
      tags:
        - app.rocksky.scrobble
      summary: Create a new scrobble
      operationId: app.rocksky.scrobble.createScrobble
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  description: The title of the track being scrobbled
                artist:
                  type: string
                  description: The artist of the track being scrobbled
                album:
                  type: string
                  description: The album of the track being scrobbled
                duration:
                  type: integer
                  description: >-
                    The duration of the track in milliseconds (e.g., 240000 for
                    4 minutes)
                mbId:
                  type: string
                  description: The MusicBrainz ID of the track, if available
                isrc:
                  type: string
                  description: >-
                    The International Standard Recording Code (ISRC) of the
                    track, if available
                albumArt:
                  type: string
                  description: The URL of the album art for the track
                  format: uri
                trackNumber:
                  type: integer
                  description: The track number of the track in the album
                releaseDate:
                  type: string
                  description: The release date of the track, formatted as YYYY-MM-DD
                year:
                  type: integer
                  description: The year the track was released
                discNumber:
                  type: integer
                  description: The disc number of the track in the album, if applicable
                lyrics:
                  type: string
                  description: The lyrics of the track, if available
                composer:
                  type: string
                  description: The composer of the track, if available
                copyrightMessage:
                  type: string
                  description: The copyright message for the track, if available
                label:
                  type: string
                  description: The record label of the track, if available
                artistPicture:
                  type: string
                  description: The URL of the artist's picture, if available
                  format: uri
                spotifyLink:
                  type: string
                  description: The Spotify link for the track, if available
                  format: uri
                lastfmLink:
                  type: string
                  description: The Last.fm link for the track, if available
                  format: uri
                tidalLink:
                  type: string
                  description: The Tidal link for the track, if available
                  format: uri
                appleMusicLink:
                  type: string
                  description: The Apple Music link for the track, if available
                  format: uri
                youtubeLink:
                  type: string
                  description: The Youtube link for the track, if available
                  format: uri
                deezerLink:
                  type: string
                  description: The Deezer link for the track, if available
                  format: uri
                timestamp:
                  type: integer
                  description: >-
                    The timestamp of the scrobble in seconds since epoch (Unix
                    timestamp)
              required:
                - title
                - artist
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/app.rocksky.scrobble.defs__scrobbleViewBasic
        '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.scrobble.defs__scrobbleViewBasic:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the scrobble.
        trackId:
          anyOf:
            - type: string
              description: The unique identifier of the track this scrobble is of.
            - type: 'null'
        title:
          type: string
          description: The title of the scrobble.
        artist:
          type: string
          description: The artist of the song.
        artistUri:
          anyOf:
            - type: string
              description: The URI of the artist.
              x-lexicon-format: at-uri
            - type: 'null'
        albumArtist:
          anyOf:
            - type: string
              description: The album artist of the song.
            - type: 'null'
        album:
          type: string
          description: The album of the song.
        albumUri:
          anyOf:
            - type: string
              description: The URI of the album.
              x-lexicon-format: at-uri
            - type: 'null'
        albumArt:
          anyOf:
            - type: string
              description: The album art URL of the song.
              format: uri
            - type: 'null'
        trackUri:
          anyOf:
            - type: string
              description: The URI of the track (song) this scrobble is of.
              x-lexicon-format: at-uri
            - type: 'null'
        handle:
          type: string
          description: The handle of the user who created the scrobble.
        did:
          type: string
          description: The DID of the user who created the scrobble.
          x-lexicon-format: at-identifier
        avatar:
          type: string
          description: The avatar URL of the user who created the scrobble.
          format: uri
        createdAt:
          type: string
          description: The timestamp when the scrobble was created.
          format: date-time
        uri:
          anyOf:
            - type: string
              description: The URI of the scrobble.
              format: uri
            - type: 'null'
        sha256:
          type: string
          description: The SHA256 hash of the scrobble data.
        liked:
          type: boolean
        likesCount:
          type: integer
        cover:
          anyOf:
            - type: string
            - type: 'null'
        date:
          type: string
        user:
          type: string
        userDisplayName:
          type: string
        userAvatar:
          type: string
        tags:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
        mbId:
          anyOf:
            - type: string
            - type: 'null'
        mbid:
          anyOf:
            - type: string
            - type: 'null'
        isrc:
          anyOf:
            - type: string
            - type: 'null'
        spotifyLink:
          anyOf:
            - type: string
            - type: 'null'
        composer:
          anyOf:
            - type: string
            - type: 'null'
        trackNumber:
          anyOf:
            - type: integer
            - type: 'null'
        duration:
          type: integer
        youtubeLink:
          anyOf:
            - type: string
            - type: 'null'
        appleMusicLink:
          anyOf:
            - type: string
            - type: 'null'
        tidalLink:
          anyOf:
            - type: string
            - type: 'null'
        discNumber:
          type: integer
        genre:
          anyOf:
            - type: string
            - type: 'null'
        label:
          anyOf:
            - type: string
            - type: 'null'
        copyrightMessage:
          anyOf:
            - type: string
            - type: 'null'
        key:
          anyOf:
            - type: string
            - type: 'null'
        xataVersion:
          type: integer
        bpm:
          type:
            - number
            - 'null'
          description: >-
            Production returns a nullable floating-point number. Lexicon has no
            float primitive; retained as an open extension without changing
            response data.
        updatedAt:
          anyOf:
            - type: string
            - type: object
          description: >-
            Existing response fixtures contain an empty object while other
            presentations use a timestamp string. Lexicon cannot express an
            untagged object/string union; preserve the existing open extension.
    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.