Skip to content
ThemeNord

Same themes as the MinusPod app

Default

Catppuccin

Dracula

Nord

Gruvbox

Solarized

Rose Pine

Kanagawa

Ayu

Other

Sponsors

Sponsor name normalization

List all sponsors

Returns list of all known sponsors with their aliases and metadata

  • include_inactive (query, boolean): Include inactive (deleted) sponsors
Status Description Body
200 List of sponsors object

Add a new sponsor

Create a new sponsor entry with optional aliases and category

  • name (string, required): Canonical sponsor name
  • aliases (array of string): Alternative names for this sponsor
  • category (string): Sponsor category
  • segment_category (string or null, one of sponsor, cross_promo, self_promo, interaction, intro, outro, recap, null): Segment category applied to every read naming this sponsor
Status Description Body
201 Sponsor created object
400 Bad request - invalid input Error
409 Sponsor already exists Error
  • message (string)
  • id (integer)

Get a single sponsor

Returns details for a specific sponsor by ID

  • sponsor_id (path, integer, required): Sponsor identifier (integer)
Status Description Body
200 Sponsor details Sponsor
404 Resource not found Error

Update a sponsor

Update sponsor properties. Any subset of the fields may be sent.

  • sponsor_id (path, integer, required): Sponsor identifier (integer)
  • name (string)
  • aliases (array of string)
  • category (string)
  • segment_category (string or null, one of sponsor, cross_promo, self_promo, interaction, intro, outro, recap, null): Segment category applied to every read naming this sponsor; null clears it
  • tags (array of string): Community tags for grouping and filtering
  • common_ctas (array of string): Common calls-to-action associated with this sponsor
  • is_active (boolean): Set false to deactivate, true to reactivate
Status Description Body
200 Sponsor updated object
400 Bad request - invalid input Error
404 Resource not found Error
  • message (string)

Delete a sponsor

Permanently remove a sponsor. Any ad patterns linked to it are unlinked (their sponsor_id is set to null), not deleted, so no pattern data is lost.

  • sponsor_id (path, integer, required): Sponsor identifier (integer)
Status Description Body
200 Sponsor deleted object
404 Resource not found Error
  • message (string)
  • unlinkedPatterns (integer): Number of ad patterns that were unlinked

List sponsor normalizations

Returns list of sponsor name normalization rules with optional filtering

  • category (query, string, one of sponsor, url, number, phrase): Filter by normalization category
  • include_inactive (query, boolean): Include inactive normalizations
Status Description Body
200 List of normalizations object

Add a normalization rule

Create a sponsor name normalization rule. terms is a regex pattern applied case-insensitively; canonical is its replacement. The legacy field names pattern/replacement are still accepted on write. The regex is validated on create and rejected with 400 if invalid.

  • terms (string, required): Regex pattern to match (legacy alias - pattern)
  • canonical (string, required): Replacement text (legacy alias - replacement)
  • category (string, one of sponsor, url, number, phrase, required): Normalization category
Status Description Body
201 Normalization created object
400 Bad request - invalid input Error
  • message (string)
  • id (integer)

Update a normalization rule

Update a normalization rule. Any subset of fields may be sent. The legacy field names pattern/replacement are still accepted in place of terms/canonical.

  • norm_id (path, integer, required): Normalization rule identifier (integer)
  • terms (string): Regex pattern to match (legacy alias - pattern)
  • canonical (string): Replacement text (legacy alias - replacement)
  • category (string, one of sponsor, url, number, phrase)
Status Description Body
200 Normalization updated object
400 Bad request - invalid input Error
404 Resource not found Error
  • message (string)

Delete a normalization rule

Deactivate a normalization rule (soft delete)

  • norm_id (path, integer, required): Normalization rule identifier (integer)
Status Description Body
200 Normalization deleted object
404 Resource not found Error
  • message (string)

Update a sponsor’s tags

  • sponsor_id (path, integer, required)
  • tags (array of string, required)
Status Description Body
200 Updated sponsor tags
404 Sponsor not found