# Endpoints

> Every page of these docs is also plain Markdown, listed at https://subliss.app/developers/llms.txt for AI tools.

Every endpoint reads, takes `GET` only and lives under `https://api.subliss.app/v1`. Send your key with each request, as [Keys](https://subliss.app/developers/keys.md) shows. `GET /search` is the one endpoint that works without a key.

## GET /me

The account the key belongs to. Use it to check a key works.

```json
{
  "handle": "maya",
  "name": "Maya",
  "url": "https://subliss.app/creator/maya"
}
```

## GET /tracks

Public subliminals, newest first. Filter them by title, category or creator, and page through them with `limit` and `offset`.

- `search`: words to find in the title, up to 100 characters.
- `category`: a category key or label from `/categories`, such as `healing` or `Self-worth`.
- `creator`: a creator's handle, with or without `@`. An unknown handle answers `404` with `creator_not_found`.
- `sort`: `newest`, the default, sorts by publish date. `popular` sorts by plays.
- `limit`: how many to return, from 1 to 100. The default is 20.
- `offset`: how many to skip, from 0 to 10000. Send `next_offset` from the last page.
- `published_after`: a date and time such as `2026-11-01T09:00:00Z`. Only subliminals published at that moment or later come back.

```bash
curl "https://api.subliss.app/v1/tracks?category=healing&limit=2" \
  -H "Authorization: Bearer sbl_your_key"
```

```json
{
  "tracks": [
    {
      "id": "0b9f3c2e-5a1d-4c7e-9f00-6d2b8a4e1c57",
      "title": "Calm mornings",
      "url": "https://subliss.app/creator/maya/calm-mornings",
      "categories": ["Healing", "Self-worth"],
      "duration_seconds": 300,
      "play_count": 41,
      "like_count": 6,
      "published_at": "2026-10-31T16:45:05Z",
      "creator": {
        "handle": "maya",
        "name": "Maya",
        "url": "https://subliss.app/creator/maya"
      }
    }
  ],
  "has_more": true,
  "next_offset": 2
}
```

`has_more` says whether another page follows. `next_offset` is the `offset` for that page, or `null` on the last one. [Limits and pages](https://subliss.app/developers/limits.md) shows how to read every page.

Each subliminal has these fields:

- `id`: the subliminal's ID.
- `title`: its title, up to 50 characters.
- `url`: its public page on Subliss.
- `categories`: its category labels, such as Healing.
- `duration_seconds`: how long one play lasts, in seconds.
- `play_count` and `like_count`: plays and likes so far.
- `published_at`: when it was first shared beyond its creator.
- `creator`: the creator's handle, name and page.

## GET /search

Finds public subliminals without a key, for tools whose users don't have one, such as a website plugin. It takes the same `search`, `category`, `creator` and `sort` as `/tracks` and returns subliminals in the same shape, but only the first page:

- `limit`: how many to return, from 1 to 10. The default is 10.
- `offset` and `published_after` need a key. Sending either answers `400` with `needs_key`.

```bash
curl "https://api.subliss.app/v1/search?search=sleep&limit=3"
```

```json
{
  "tracks": [
    {
      "id": "0b9f3c2e-5a1d-4c7e-9f00-6d2b8a4e1c57",
      "title": "Deep sleep",
      "url": "https://subliss.app/creator/maya/deep-sleep",
      "categories": ["Healing"],
      "duration_seconds": 600,
      "play_count": 88,
      "like_count": 9,
      "published_at": "2026-10-28T21:10:00Z",
      "creator": {
        "handle": "maya",
        "name": "Maya",
        "url": "https://subliss.app/creator/maya"
      }
    }
  ]
}
```

An answer may be cached for five minutes, so a subliminal published a moment ago can take that long to appear. Without a key there is no per-key count, only the limit on each address in [Limits and pages](https://subliss.app/developers/limits.md).

## GET /tracks/{id}

One public subliminal, in the same shape as an item in `/tracks`. A subliminal that is private, unlisted or deleted answers `404` with `track_not_found`.

```bash
curl https://api.subliss.app/v1/tracks/0b9f3c2e-5a1d-4c7e-9f00-6d2b8a4e1c57 \
  -H "Authorization: Bearer sbl_your_key"
```

## GET /creators/{handle}

A creator's public profile. The handle is the last part of their creator page address, such as `maya` in subliss.app/creator/maya, and an `@` in front is fine. An unknown handle answers `404` with `creator_not_found`.

```json
{
  "handle": "maya",
  "name": "Maya",
  "url": "https://subliss.app/creator/maya",
  "avatar_url": null,
  "bio": "Sleep tracks, mostly.",
  "track_count": 12,
  "total_play_count": 530,
  "follower_count": 18,
  "joined_at": "2026-05-02T09:12:00Z"
}
```

## GET /categories

Every category a subliminal can have, each as a `key` and a `label`. Filter `/tracks` by either.

```json
{
  "categories": [
    { "key": "abundance", "label": "Abundance" },
    { "key": "appearance", "label": "Appearance" },
    { "key": "relationships", "label": "Relationships" },
    { "key": "success", "label": "Success" },
    { "key": "intelligence", "label": "Intelligence" },
    { "key": "healing", "label": "Healing" },
    { "key": "wellbeing", "label": "Self-worth" },
    { "key": "booster", "label": "Booster" },
    { "key": "other", "label": "Other" }
  ]
}
```
