GlizzDevelopers
Your tokens

Glizz API

The same REST API the Glizz apps use, open to your own scripts and apps. Base URL: https://www.glizz.app/api/v1.

Authentication

Create a personal access token in Settings → Developer, choosing its permissions and expiry. It is shown once; Glizz only stores a hash of it. Send it as a bearer token:

curl https://www.glizz.app/api/v1/me -H "Authorization: Bearer glz_…"

A token acts as you: it sees the libraries you belong to, with your role in each (viewers can't edit a shared library, whatever the token's scopes). Revoke a token in Settings at any time; it stops working immediately.

Keep tokens on servers and in scripts. Don't put them in web pages or apps other people can open: anyone holding a token can use it.

GET /api/v1/ lists every endpoint and the scope it needs ("session" means tokens can't use it).

Scopes

Scope Allows
library:read Songs, albums, artists, playlists, artwork, waveforms, listening history, your libraries
library:write Edit tags, artwork and beat grids; upload; reprocess; playlists; record plays; move songs between libraries
library:delete Delete songs. Permanent.
audio:read Stream and download audio
shares:write Create, change and delete public share links
webhooks:write Create and manage webhooks

Account, billing, settings, library members and invites, and tokens themselves are only available when signed in to Glizz. Tokens never work on the admin API.

Requests and errors

  • JSON in, JSON out. Ids are UUIDs; times are ISO 8601 strings in UTC.

  • Lists that can be long take limit and offset and return { items, total, limit, offset }.

  • Errors return a status code and:

    { "error": { "code": "insufficient_scope", "message": "This token needs the library:write scope" } }
    
Status code Meaning
401 unauthorized, invalid_token No token, or it's wrong, expired or revoked
403 insufficient_scope The token lacks the scope in the message
403 token_not_allowed Tokens can't use this endpoint
403 forbidden Your role in that library doesn't allow it
404 not_found Doesn't exist, or you can't see it
402 quota_exceeded, upgrade_required Your plan's hours are used up, or the feature needs another plan
422 validation_error The body or query is invalid; issues says where

Endpoints

Library (library:read)

GET /me You, your libraries, plan and usage
GET /libraries Libraries you belong to, with your role and their usage
GET /tracks Songs. Query: library, q (search), artist (songs crediting that artist, on the song or its album), status, sort (added, title, artist, album, bpm, key, duration, plays, lastPlayed, …), order, limit (≤ 5000, default 500), offset
GET /tracks/status?ids= Processing status for up to 200 songs
GET /tracks/:id One song with its files, your cue points and the waveform overview
GET /tracks/:id/artwork?size=160|512 The artwork image, full size or a square thumbnail
GET /tracks/:id/waveform Detailed waveform data (binary; may redirect to storage)
GET /albums, GET /albums/:key Albums, derived from tags
GET /artists Every artist credited on a song or album, once each
GET /playlists, GET /playlists/:id Playlists and crates; one playlist includes its entries
GET /playlists/:id/suggestions Songs that would mix well next
GET /plays/recent Your last 50 played songs

Changes (library:write)

PATCH /tracks/:id Edit tags, BPM, key, beat grid, mix flag. Returns the song. See Artists.
PATCH /tracks { ids, changes }: the same edit on many songs
POST /tracks/:id/reprocess Run analysis and renditions again
POST /tracks/artwork Multipart file (JPEG, PNG or WebP, < 4 MB) and trackIds
DELETE /tracks/artwork { ids }: remove artwork
POST /tracks/:id/cues, DELETE /tracks/:id/cues, DELETE /tracks/:id/cues/:cueId Your cue points (personal, even in shared libraries)
POST /tracks/move { trackIds, libraryId }: move songs to another library
POST /uploads, POST /uploads/:id/complete See Uploading
POST /playlists { name, description?, trackIds?, libraryId? } (a libraryId makes a shared crate)
PATCH /playlists/:id, DELETE /playlists/:id Rename, describe, set mode; delete
POST /playlists/:id/tracks { trackIds }: append
POST /playlists/:id/tracks/remove { entryIds }
POST /playlists/:id/tracks/move { entryIds, toIndex }
PATCH /playlists/:id/entries/:entryId Set mode: { note, playFromMs, playUntilMs }
POST /plays { trackId }: record a play (counts toward play count and history)

Deleting (library:delete)

DELETE /tracks/:id Delete a song and all its files
POST /tracks/delete { ids }: delete many

Audio (audio:read)

GET /tracks/:id/stream?quality=standard|lossless Redirects to a short-lived URL for the audio. Lossless needs a plan that includes it.
GET /tracks/:id/download?format=original|aiff|wav|flac|aac { url, filename }; the URL is valid for an hour. Needs Plus or above.

GET /shares, POST /shares, PATCH /shares/:id, DELETE /shares/:id. Share links are public: anyone with the link can listen (and download, if allowed).

Webhooks (webhooks:write)

See Webhooks.

Artists

A song can have several artists, and so can an album. Each song has:

  • artist: the credit as written, e.g. "Porter Robinson B2B Ninajirachi". This is what tags and DJ software show.
  • artists: the artists behind it, each with their own artist page: ["Porter Robinson", "Ninajirachi"].
  • albumArtist and albumArtists: the same for the album. When the album has no artist of its own, albumArtists is the song's artists.

Albums from GET /albums also have artists. To change the artists, send artists or albumArtists to PATCH /tracks/:id. If you only send a new artist credit, Glizz splits it for you:

  • It always splits on B2B, feat., ft., featuring, vs., x and ;.
  • It splits on &, ,, and and + only when every part is already an artist in the library, so "Chase & Status" stays one artist.

Changing a song's albumArtist without touching its artist also updates songs whose artists were all part of the old album credit (a B2B set tagged with one of the DJs). Those songs get the album's new credit and artists. Songs with guests keep their own, and nothing follows on a compilation: an album where any song is marked as one, or an edit that marks it.

Uploads take their artists from the file when its tags list them separately (MusicBrainz Picard's ARTISTS, or several artist values). FLAC and AAC downloads write the list back the same way; WAV and AIFF downloads carry only the credit.

Uploading

  1. POST /uploads with { filename, size, mimeType?, libraryId? } returns { trackId, upload: { url, method, headers } }. Without libraryId the song goes to your own library.
  2. PUT the file's bytes to upload.url with upload.headers, straight to storage.
  3. POST /uploads/:trackId/complete starts processing. Poll GET /tracks/status?ids=, or listen for the track.ready webhook.

Files up to 2 GB: MP3, AAC/M4A, ALAC, FLAC, WAV, AIFF and Ogg Vorbis. Songs count toward the hours of the library's owner; when they're used up, step 1 returns 402 quota_exceeded.

Webhooks

A webhook is a URL Glizz POSTs to when something happens in your libraries. Add one in Settings → Developer, or through the API.

Events

Event data
track.created The song, uploaded and starting to process
track.ready The song, processed: tags, BPM, key, beat grid and renditions are in
track.failed The song, with error saying why
track.updated The song after a change to tags, artwork or beat grid, or a move to another library (members of both libraries hear about a move)
track.deleted { id, libraryId }
track.played { playedAt, track }. Only your own plays.
playlist.created, playlist.updated, playlist.deleted { id, name, description, libraryId, setMode, createdAt, updatedAt }. Fetch GET /playlists/:id for its songs.
webhook.test Sent by "Send test event"

Songs have the same shape as GET /tracks items. A webhook hears about every library you belong to, or only the one you pick. Crates and songs in a shared library go to all its members' webhooks; personal playlists and plays only to yours. Edits to many songs at once send one event per song.

Requests

POST /your-endpoint HTTP/1.1
Content-Type: application/json
webhook-id: 0190a3c4-…            (the same on every retry)
webhook-timestamp: 1760551200     (Unix seconds)
webhook-signature: v1,K5oZfz…     (see below)

{ "type": "track.ready", "timestamp": "2026-10-15T18:00:00.000Z", "data": { …the song… } }

Answer with any 2xx within 10 seconds. Redirects aren't followed. Do slow work after answering.

Verifying signatures

Requests are signed with the Standard Webhooks spec, so you can use its library for your language with the signing secret (whsec_…) shown when you created the webhook:

import { Webhook } from "standardwebhooks";

const wh = new Webhook(process.env.GLIZZ_WEBHOOK_SECRET!);
const event = wh.verify(rawBody, headers); // throws if the signature or timestamp is wrong

Or by hand: the signature is v1, plus the base64 HMAC-SHA256 of {webhook-id}.{webhook-timestamp}.{body}, keyed with the base64-decoded part of the secret after whsec_. Compare in constant time, reject timestamps more than 5 minutes old, and use the raw body exactly as received.

Retries

  • A delivery that doesn't get a 2xx is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 8 hours.
  • Events from one change arrive in order; a failing one holds back the ones after it.
  • After about 11 hours a delivery gives up. Three deliveries in a row giving up turns the webhook off, and you get an email. Answering 410 Gone turns it off at once.
  • Retries keep their webhook-id, so you can ignore repeats.
  • Settings → Developer → Deliveries shows the last 30 days: payloads, responses, and a "Send again" button.

Rules

  • Production URLs must be public https:// addresses; private, loopback and link-local addresses are refused.
  • Up to 10 webhooks and 25 tokens per account.
  • "New signing secret" replaces the secret at once; update your endpoint first.