Soundyaad Enterprise API

Create, manage, and resolve smart links programmatically. The API uses standard REST conventions with JSON payloads. All requests require authentication via API key or dashboard session.

v1Stable

Quick Start

Base URL

https://enterprise.soundyaad.com

All API paths in this documentation are relative to this base URL. The API is also available via your custom domain, for example https://your-label.com/api/..., when you have a verified custom domain configured.

API Spec & Collections

Import the OpenAPI spec into Swagger UI, Stoplight, or any OpenAPI-compatible tool. Import the Postman collection into the Postman app and set the apiKey and baseUrl variables in your environment.

Make Your First Request

Generate an API key from the dashboard settings page, then create your first smart link:

curl
curl -X POST https://enterprise.soundyaad.com/api/enterprise/v1/smart-links \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Midnight Drive",
    "artist_name": "Lola Rae",
    "release_type": "single",
    "upc": "0123456789012"
  }'

Node.js Example

JavaScript
const res = await fetch("https://enterprise.soundyaad.com/api/enterprise/v1/smart-links", {
  method: "POST",
  headers: {
    "x-api-key": "sy_ent_yourcompany_...",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    title: "Midnight Drive",
    artist_name: "Lola Rae",
    release_type: "single",
    upc: "0123456789012",
  }),
});
const data = await res.json();
console.log(data.data.smart_link);

Python Example

Python
import requests

res = requests.post(
    "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links",
    headers={
        "x-api-key": "sy_ent_yourcompany_...",
        "Content-Type": "application/json",
    },
    json={
        "title": "Midnight Drive",
        "artist_name": "Lola Rae",
        "release_type": "single",
        "upc": "0123456789012",
    },
)
data = res.json()
print(data["data"]["smart_link"])

Common Workflows

Step-by-step guides that chain multiple API calls together. These represent the most common integration patterns we see from enterprise customers.

Workflow 1: Create a Smart Link with DSP Resolution

The most common flow: look up release metadata, create a smart link, trigger DSP resolution, and wait for the webhook confirming platform links are ready.

1

Look up release metadata

Call POST /api/enterprise/catalog-lookup with a UPC, ISRC, or Spotify URL. This auto-fills title, artist, artwork, and platform links.

2

Create the smart link

Call POST /api/enterprise/v1/smart-links with the metadata from step 1. Include client_release_id for idempotency. If the link was already created (e.g. from a retry), you'll get a 200 with the existing link.

3

Wait for resolution

If platform links weren't found during creation, call POST /api/enterprise/v1/smart-links/{id}/resolveto trigger async DSP resolution. Listen for the link.resolved webhook (success) or link.failed webhook (no links found).

4

Verify the result

Call GET /api/enterprise/v1/smart-links/{id}to confirm the links array is populated anddistributor_link_status is RESOLVED.

JavaScript: Full flow
// Step 1: Look up metadata
const lookup = await fetch("https://enterprise.soundyaad.com/api/enterprise/catalog-lookup", {
  method: "POST",
  headers: { "x-api-key": API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({ identifier: "0123456789012" }),
});
const meta = await lookup.json();

// Step 2: Create the smart link
const create = await fetch("https://enterprise.soundyaad.com/api/enterprise/v1/smart-links", {
  method: "POST",
  headers: { "x-api-key": API_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({
    title: meta.title,
    artist_name: meta.artist_name,
    upc: meta.upc,
    client_release_id: "DIST-998811",
  }),
});
const link = await create.json();
console.log("Smart link:", link.data.smart_link);

// Step 3: Resolution happens automatically if UPC/ISRC is present.
// Listen for the link.resolved webhook on your endpoint.
// If needed, trigger manually:
// await fetch(`${BASE_URL}/api/enterprise/v1/smart-links/${link.data.id}/resolve`, {
//   method: "POST", headers: { "x-api-key": API_KEY },
// });

Workflow 2: Set Up Webhooks End-to-End

Configure your webhook endpoint, verify it's receiving events, and handle retries gracefully.

1

Configure webhook URL and secret

Set webhook_url and webhook_secret via PATCH /api/enterprise/account or from the dashboard account settings page. Your URL must use HTTPS.

2

Implement signature verification

On every incoming webhook, verify the X-Soundyaad-Signature header using HMAC-SHA256 with your webhook secret. Reject any request that doesn't match.

3

Send a test event

Call POST /api/enterprise/webhook/test with an event_type to send a test payload to your URL. Verify your endpoint receives it and returns a 2xx status.

4

Return 2xx immediately

Your endpoint must respond within 15 seconds. Return 200 immediately and process the event asynchronously. Any non-2xx response triggers a retry (up to 4 attempts).

5

Monitor deliveries

Call GET /api/enterprise/webhook/deliveriesto check delivery status, response codes, and retry attempts.

Workflow 3: Bulk Import via Catalog Lookup

Import your entire catalog by iterating over UPCs, looking up metadata, and creating smart links for each release. Use client_release_id for idempotency so you can safely re-run the import without creating duplicates.

Python: Bulk import
import requests

BASE_URL = "https://enterprise.soundyaad.com"
API_KEY = "sy_ent_yourcompany_..."
UPCS = ["0123456789012", "0123456789013", "0123456789014"]

for upc in UPCS:
    # Step 1: Look up metadata
    lookup = requests.post(
        f"{BASE_URL}/api/enterprise/catalog-lookup",
        headers={"x-api-key": API_KEY, "Content-Type": "application/json"},
        json={"identifier": upc},
    )
    meta = lookup.json()

    if not meta.get("found"):
        print(f"UPC {upc}: not found, skipping")
        continue

    # Step 2: Create smart link (idempotent via client_release_id)
    create = requests.post(
        f"{BASE_URL}/api/enterprise/v1/smart-links",
        headers={"x-api-key": API_KEY, "Content-Type": "application/json"},
        json={
            "title": meta["title"],
            "artist_name": meta["artist_name"],
            "upc": meta["upc"],
            "client_release_id": f"upc-{upc}",
        },
    )
    link = create.json()
    print(f"UPC {upc}: {link['data']['smart_link']}")

    # Rate limit: stay under 100 req/min
    # 2 requests per UPC = max 50 UPCs per minute

Authentication

Two authentication methods are supported. Use API keys for server-to-server integration, or dashboard session cookies for browser-based calls from the enterprise dashboard.

API Key (Server-to-Server)

Pass your API key in the x-api-key header. Keys are generated from the dashboard settings page and prefixed with sy_ent_. You can have multiple keys with different names and revoke them at any time. Keys are scoped to your enterprise account: one key cannot access another account's data.

curl
curl https://enterprise.soundyaad.com/api/enterprise/v1/smart-links \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -H "Content-Type: application/json"

Dashboard Session (Browser)

When calling from the enterprise dashboard, the auth_token cookie is sent automatically. No additional headers needed. This method is useful for AJAX calls from the dashboard UI but should not be used for server-to-server integrations.

Key Management

API keys can be managed programmatically via the /api/enterprise/v1/keys endpoint or from the dashboard settings page. Each key has a name (for your reference), a prefix (visible after creation), and optional scopes. The full key value is only shown once at creation time.

Catalog Lookup

POST/api/enterprise/catalog-lookup

Look up release metadata by UPC, ISRC, or song URL before creating a smart link. Searches Musicfetch API first, then falls back to your internal Soundyaad catalog. Useful for auto-filling the create smart link form.

Request Body

ParameterTypeRequiredDescription
identifierstringRequiredA UPC, ISRC, or song URL (Spotify, Apple Music, etc.). The type is auto-detected.

Response (200 OK: Found)

JSON
{
  "success": true,
  "found": true,
  "source": "musicfetch",
  "title": "Midnight Drive",
  "artist_name": "Lola Rae",
  "release_type": "single",
  "release_date": "2026-08-15",
  "upc": "0123456789012",
  "isrc": "USABC2600001",
  "artwork_url": "https://cdn.com/art.jpg",
  "source_link": "https://open.spotify.com/track/...",
  "links": [
    { "platform": "spotify", "url": "https://open.spotify.com/track/..." },
    { "platform": "apple_music", "url": "https://music.apple.com/album/..." }
  ]
}

Response (200 OK: Not Found)

JSON
{
  "success": true,
  "found": false
}

Response Fields (when found)

FieldTypeDescription
foundbooleanWhether metadata was found for the identifier.
sourcestringSource of the data: musicfetch or internal.
titlestringRelease title.
artist_namestringArtist name.
release_typestringsingle, album, or ep.
release_datestring (ISO date)Release date or null.
upcstringUniversal Product Code or null.
isrcstringISRC or null.
artwork_urlstring (URL)Cover art image URL or null.
source_linkstring (URL)Source streaming URL or null.
links[]arrayResolved platform links. Each has platform and url.

curl Example

curl -X POST "https://enterprise.soundyaad.com/api/enterprise/catalog-lookup" \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -H "Content-Type: application/json" \
  -d '{"identifier":"0123456789012"}'

Node.js Example

JavaScript
const res = await fetch(
  "https://enterprise.soundyaad.com/api/enterprise/catalog-lookup",
  {
    method: "POST",
    headers: {
      "x-api-key": "sy_ent_yourcompany_...",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ identifier: "0123456789012" }),
  }
);
const data = await res.json();
if (data.found) {
  console.log(data.title, data.artist_name);
}

Python Example

Python
import requests

res = requests.post(
    "https://enterprise.soundyaad.com/api/enterprise/catalog-lookup",
    headers={
        "x-api-key": "sy_ent_yourcompany_...",
        "Content-Type": "application/json",
    },
    json={"identifier": "0123456789012"},
)
data = res.json()
if data["found"]:
    print(data["title"], data["artist_name"])

Try It

POST

Error Responses

400 Bad Request
{
  "success": false,
  "error": "A UPC, ISRC, or song URL is required"
}

Catalog Import

POST/api/enterprise/v1/smart-links/batch

Create or upsert up to 100 smart links in a single JSON request. Deduplicates by client_release_id or upc and queues DSP resolution asynchronously.

Request Body

ParameterTypeRequiredDescription
linksobject[]RequiredArray of 1 to 100 release objects (title, artist_name, release_type, release_date, upc, isrc, distributor_link, artwork_url, client_release_id).

Request Example

JSON
{
  "links": [
    {
      "title": "Midnight Drive",
      "artist_name": "Lola Rae",
      "release_type": "single",
      "upc": "0123456789012",
      "client_release_id": "REL-001"
    }
  ]
}

Response (201 Created / 200 OK)

JSON
{
  "success": true,
  "batch_id": "batch_1722249000000_a1b2c3",
  "summary": {
    "total_submitted": 1,
    "created_count": 1,
    "updated_count": 0,
    "skipped_count": 0,
    "failed_count": 0
  },
  "data": [
    {
      "id": "uuid",
      "title": "Midnight Drive",
      "artist": "Lola Rae",
      "slug": "lola-rae-midnight-drive-a1b2",
      "upc": "0123456789012",
      "url": "https://your-label.sya.to/lola-rae-midnight-drive-a1b2"
    }
  ]
}
POST/api/enterprise/v1/smart-links/batch-csv

Upload a catalog CSV for background processing. The file is split into 50-row chunks and processed sequentially by a background worker. Each row becomes a smart link. The call is quota-checked against your current billing period before the import is accepted.

Request Body

ParameterTypeRequiredDescription
csv_datastringRequiredRaw CSV text. Max 10,000 data rows. Headers must include at least title and artist. Optional sub_distributor_slug assigns the row to a workspace by slug (aliases: sub_distributor, workspace, workspace_slug); unknown or inactive slugs fail the row.
filenamestringOptionalOriginal filename for reference. Defaults to catalog_import.csv.

CSV Headers

text
title,artist,upc,release_date,distributor_link,sub_distributor_slug
Track One,Artist One,0123456789012,2026-08-15,https://distro.example.com/one,artist-one
Track Two,Artist Two,0987654321098,2026-08-20,https://distro.example.com/two,

Response (202 Accepted)

JSON
{
  "success": true,
  "message": "CSV Catalog Import accepted for processing",
  "import_id": "uuid",
  "total_rows": 1000,
  "status": "processing",
  "status_url": "/api/enterprise/v1/smart-links/imports/uuid"
}

Response Fields

FieldTypeDescription
import_idstring (UUID)Unique identifier for the import. Use this with the status endpoint.
total_rowsnumberNumber of data rows parsed from the CSV.
statusstringAlways processing at accept time.
status_urlstringRelative URL to poll for progress.

Error Responses

400 Bad Request
{
  "success": false,
  "error": "CSV file contains no valid data rows"
}
403 Quota Exceeded
{
  "success": false,
  "error": "Monthly quota exceeded. You have 42 slots remaining for this billing period.",
  "quota": {
    "success": false,
    "allowed": false,
    "tier": "pro",
    "monthly_limit": 5000,
    "used_this_month": 4958,
    "requested": 1000,
    "remaining_slots": 42
  }
}
500 Quota Check Failed
{
  "success": false,
  "error": "Unable to verify quota at this time"
}

curl Example

curl -X POST "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/batch-csv" \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -H "Content-Type: application/json" \
  -d '{"csv_data":"title,artist\nMidnight Drive,Lola Rae","filename":"catalog.csv"}'

Node.js Example

JavaScript
const csv = `title,artist
Midnight Drive,Lola Rae`;

const res = await fetch(
  "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/batch-csv",
  {
    method: "POST",
    headers: {
      "x-api-key": "sy_ent_yourcompany_...",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ csv_data: csv, filename: "catalog.csv" }),
  }
);
const data = await res.json();
console.log(data.status_url);

Python Example

Python
import requests

csv = """title,artist
Midnight Drive,Lola Rae"""

res = requests.post(
    "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/batch-csv",
    headers={
        "x-api-key": "sy_ent_yourcompany_...",
        "Content-Type": "application/json",
    },
    json={"csv_data": csv, "filename": "catalog.csv"},
)
data = res.json()
print(data["status_url"])

Try It

POST
GET/api/enterprise/v1/smart-links/imports

List your catalog CSV imports, newest first. Returns aggregate counters and progress only — the parsed row payload is never included in list responses. The dashboard Imports page is built on this endpoint.

Query Parameters

ParameterTypeRequiredDescription
statusstringOptionalOptional filter: processing, completed, stalled, quota_exceeded — or failed, an umbrella matching stalled + quota_exceeded + failed.
pagenumberOptionalPage number. Default 1.
limitnumberOptionalItems per page. Default 20, max 100.

Response (200 OK)

JSON
{
  "success": true,
  "count": 20,
  "total": 47,
  "page": 1,
  "limit": 20,
  "totalPages": 3,
  "data": [
    {
      "import_id": "uuid",
      "filename": "catalog.csv",
      "status": "completed",
      "total_rows": 1000,
      "processed_rows": 1000,
      "successful_rows": 998,
      "skipped_rows": 1,
      "failed_rows": 1,
      "progress_pct": 100,
      "created_at": "2026-08-13T10:00:00Z",
      "updated_at": "2026-08-13T10:04:00Z"
    }
  ]
}

curl Example

curl -X GET "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/imports?status=failed&limit=50" \
  -H "x-api-key: sy_ent_yourcompany_..."

Try It

GET
GET/api/enterprise/v1/smart-links/imports/{id}

Poll the status of a catalog CSV import. The full row payload is not returned; only aggregate counters, progress, and per-row errors.

Path Parameters

ParameterTypeRequiredDescription
idstring (UUID)RequiredThe import_id returned by POST /batch-csv.

Response (200 OK)

JSON
{
  "import_id": "uuid",
  "filename": "catalog.csv",
  "status": "processing",
  "total_rows": 1000,
  "processed_rows": 500,
  "successful_rows": 498,
  "skipped_rows": 1,
  "failed_rows": 1,
  "last_processed_offset": 499,
  "next_offset": 500,
  "progress_pct": 50,
  "eta_seconds": 120,
  "errors": [
    { "row": 250, "error": "Missing required title" }
  ],
  "created_at": "2026-08-13T10:00:00Z",
  "updated_at": "2026-08-13T10:01:00Z"
}

Response Fields

FieldTypeDescription
import_idstring (UUID)Import identifier.
filenamestringOriginal filename.
statusstringOne of: processing, completed, quota_exceeded, stalled.
total_rowsnumberTotal rows parsed from the CSV.
processed_rowsnumberRows that have been processed so far.
successful_rowsnumberRows that became smart links.
skipped_rowsnumberRows skipped as duplicates or already existing.
failed_rowsnumberRows that failed validation or insert.
last_processed_offsetnumberZero-based offset of the last processed row.
next_offsetnumber | nullOffset the worker will resume from, or null if complete.
progress_pctnumberPercentage of rows processed (0-100).
eta_secondsnumber | nullEstimated seconds until completion.
errorsarrayPer-row errors. Each item has row and error.
created_atstring (ISO 8601)Import creation timestamp.
updated_atstring (ISO 8601)Last update timestamp.

Error Responses

404 Not Found
{
  "success": false,
  "error": "Import not found"
}

curl Example

curl -X GET "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/imports/uuid" \
  -H "x-api-key: sy_ent_yourcompany_..."

Node.js Example

JavaScript
const res = await fetch(
  "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/imports/uuid",
  {
    headers: { "x-api-key": "sy_ent_yourcompany_..." },
  }
);
const data = await res.json();
console.log(data.status, data.progress_pct);

Python Example

Python
import requests

res = requests.get(
    "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/imports/uuid",
    headers={"x-api-key": "sy_ent_yourcompany_..."},
)
data = res.json()
print(data["status"], data["progress_pct"])

Try It

GET

Analytics

GET/api/enterprise/dashboard/analytics

Aggregate analytics across all your smart links. Supports date range filtering and CSV export.

Query Parameters

ParameterTypeRequiredDescription
rangestringOptionalDate range: 7d, 30d, 90d, or all. Default: 30d. Ranges wider than the tier retention bound are clamped.
formatstringOptionalSet to "csv" to download as CSV file. Default: JSON.
sub_distributor_idstringOptionalScope all metrics to one sub-distributor account (UUID), or "main" for the parent account only. Non-UUID values return 400.
artist_idstring (UUID)OptionalScope all metrics to one roster artist — releases, events, fan counts, and breakdowns are filtered to that artist's releases. Non-UUID values return 400. Combinable with sub_distributor_id.

Returns totals with period-over-period comparison, visitor outcome split, release-day markers, platform/link/geo/channel breakdowns, and fan capture attribution. When format=csv is specified, returns a CSV file download with per-link and per-platform rows.

Response (200 OK)

JSON
{
  "totals": {
    "views": 1240,
    "unique_views": 812,
    "clicks": 380,
    "fans_captured": 15,
    "conversion_rate": "30.6%"
  },
  "previous": { "views": 1100, "clicks": 340, "fans_captured": 12, "unique_views": 780 },
  "events_truncated": false,
  "events_sampled": 1240,
  "unique_views_approx": false,
  "outcome": {
    "unique_visitors": 812,
    "store_clickers": 305,
    "clicked_store_pct": "37.6%",
    "fan_capture_pct": "1.8%",
    "no_action_pct": "62.4%"
  },
  "release_markers": [
    { "release_id": "uuid", "title": "Midnight Drive", "date": "2026-07-16" }
  ],
  "timeseries": [
    { "date": "2026-07-15", "views": 45, "clicks": 12 },
    { "date": "2026-07-16", "views": 52, "clicks": 18 }
  ],
  "fans_over_time": [
    { "date": "2026-07-15", "fans": 3 },
    { "date": "2026-07-16", "fans": 5 }
  ],
  "top_platforms": [
    { "platform": "spotify", "clicks": 210 },
    { "platform": "apple_music", "clicks": 120 }
  ],
  "top_links": [
    { "id": "uuid", "title": "Midnight Drive", "slug": "lola-rae-midnight", "views": 800, "clicks": 240 }
  ],
  "fans_by_source": { "presave_link": 12, "artist_page": 3, "other": 0, "utm": [], "external_referrers": [] },
  "fans_by_artist": [
    { "artist_id": "uuid", "name": "Lola Rae", "count": 9 }
  ],
  "fans_by_release": [
    { "release_id": "uuid", "title": "Midnight Drive", "slug": "lola-rae-midnight", "count": 9 }
  ]
}

Response Fields

FieldTypeDescription
totals.viewsintegerTotal page views across all smart links in the date range.
totals.unique_viewsintegerPeriod-distinct visitors (by visitor_id) across all smart links — a returning visitor counts once, not once per day.
totals.clicksintegerTotal platform link clicks.
totals.fans_capturedintegerDistinct fan rows created in the window.
totals.conversion_ratestringClicks ÷ views as a percentage string (e.g. "30.6%").
previousobject | nullSame-window totals for the previous equal-length period (views, clicks, fans_captured, unique_views). Null on range=all, and null when the previous window would extend beyond the tier retention bound.
events_truncatedbooleanAlways false — retained for compatibility. Breakdowns are computed exactly over the full window (server-side aggregation, no event sampling).
events_sampledintegerNumber of page events in the window the breakdowns were computed over (exact, not a capped sample).
unique_views_approxbooleanAlways false — retained for compatibility. unique_views is always a period-distinct count.
outcomeobjectVisitor outcome split: unique_visitors, store_clickers (distinct visitors with a click), clicked_store_pct, fan_capture_pct, no_action_pct. Click and fan rates are independent — fan events carry no visitor_id, so outcomes can overlap.
release_markers[]arrayCatalog releases dated inside the window (release_id, title, date) — every release in the window, not just top performers.
timeseries[]arrayDaily breakdown. Each has date (YYYY-MM-DD), views, clicks.
fans_over_time[]arrayNew fans per bucket on the same date granularity as timeseries.
top_platforms[]arrayClick breakdown by platform (max 10). Each has platform, clicks.
top_links[]arrayPer-link breakdown (max 10, sorted by views). Each has id, title, slug, views, clicks.
fans_by_sourceobjectCapture-surface split (presave_link = smart links, artist_page, other) plus utm[] and external_referrers[] channel lists. Sums to totals.fans_captured.
fans_by_artist[]arrayDistinct captured fans per roster artist, attributed via the release they signed up on (max 10). Artist-page signups are not artist-attributable.
fans_by_release[]arraySignup events per release (max 10). Each has release_id, title, slug, count.
fans_by_countryobjectFan rows by ISO country (rows[]: country, count). truncated/sampled retained for compatibility — the breakdown is exact over the full window.
traffic_sources[]arrayExternal referrer domains driving views (max 10). Internal domains (sya.to, verified custom domains) excluded.

curl Example

curl "https://enterprise.soundyaad.com/api/enterprise/dashboard/analytics?range=30d" \
  -H "x-api-key: sy_ent_yourcompany_..."

Node.js Example

JavaScript
const res = await fetch(
  "https://enterprise.soundyaad.com/api/enterprise/dashboard/analytics?range=30d",
  { headers: { "x-api-key": "sy_ent_yourcompany_..." } }
);
const data = await res.json();
console.log(data.totals);

Python Example

Python
import requests

res = requests.get(
    "https://enterprise.soundyaad.com/api/enterprise/dashboard/analytics",
    headers={"x-api-key": "sy_ent_yourcompany_..."},
    params={"range": "30d"},
)
data = res.json()
print(data["totals"])

CSV Export Example

curl "https://enterprise.soundyaad.com/api/enterprise/dashboard/analytics?range=30d&format=csv" \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -o analytics-30d.csv

Try It

GET
GET/api/enterprise/v1/analytics/overview

Aggregate analytics across all of your smart links, with device, OS, UTM, geo, and referrer breakdowns. Available on all tiers; the requested range is clamped to your tier's analytics retention window (Starter: 30 days, Growth: 1 year, Pro/Unlimited: unlimited).

Query Parameters

ParameterTypeRequiredDescription
rangestringOptionalDate range: 7d, 30d, or 90d. Default: 30d.
formatstringOptionalSet to "csv" to download a CSV of the daily timeseries. Default: JSON.
geo_dailystringOptionalSet to "true" to include a per-day country breakdown in each timeseries entry. Default: false.

Response (200 OK)

JSON
{
  "success": true,
  "data": {
    "totals": {
      "views": 1240,
      "unique_views": 890,
      "clicks": 380,
      "fans_captured": 15,
      "conversion_rate": "30.6%"
    },
    "timeseries": [
      { "date": "2026-07-15", "views": 45, "clicks": 12, "unique_views": 30, "fans_captured": 2 }
    ],
    "top_platforms": [{ "platform": "spotify", "clicks": 210 }],
    "top_links": [{ "id": "uuid", "title": "Midnight Drive", "slug": "lola-rae-midnight", "views": 800, "clicks": 240 }],
    "geo": [{ "country": "NG", "count": 500 }],
    "referrers": [{ "domain": "instagram.com", "count": 300 }],
    "devices": [{ "device": "mobile", "count": 700 }],
    "os": [{ "os": "iOS 17.0", "count": 400 }],
    "utm_sources": [{ "source": "instagram", "count": 200 }],
    "utm_mediums": [{ "medium": "social", "count": 250 }],
    "utm_campaigns": [{ "campaign": "album-launch", "count": 180 }],
    "referrer_paths": [{ "path": "https://instagram.com/p/abc123", "count": 90 }]
  }
}

Response Fields

FieldTypeDescription
data.totals.unique_viewsintegerDistinct visitor_id count across all views in the range.
data.geo[]arrayView count by country (ISO code), top 20.
data.referrers[]arrayView count by referring domain, top 20.
data.devices[]arrayView count by device type: mobile, tablet, desktop, bot, unknown.
data.os[]arrayView count by operating system.
data.utm_sources[]arrayView count by utm_source query param, top 20.
data.utm_mediums[]arrayView count by utm_medium query param, top 20.
data.utm_campaigns[]arrayView count by utm_campaign query param, top 20.
data.referrer_paths[]arrayView count by full referrer URL, top 50.

curl Example

curl "https://enterprise.soundyaad.com/api/enterprise/v1/analytics/overview?range=30d" \
  -H "x-api-key: sy_ent_yourcompany_..."

Try It

GET
GET/api/enterprise/v1/analytics/geo

Country breakdown across all of your smart links, aggregated from the same rollups as the Overview endpoint. Available on all tiers; the requested range is clamped to your tier's analytics retention window.

Query Parameters

ParameterTypeRequiredDescription
rangestringOptionalDate range: 7d, 30d, or 90d. Default: 30d.

Response (200 OK)

JSON
{
  "success": true,
  "data": [
    { "country": "NG", "count": 500 },
    { "country": "US", "count": 210 }
  ]
}

curl Example

curl "https://enterprise.soundyaad.com/api/enterprise/v1/analytics/geo?range=30d" \
  -H "x-api-key: sy_ent_yourcompany_..."

Try It

GET
GET/api/enterprise/v1/analytics/fans-growth

Daily fan-capture growth trend and top countries for this customer. Reads pre-aggregated fan_stats_daily rollups, falling back to a live query against the fans table if rollups are empty. Available on all tiers; clamped to your tier's analytics retention window.

Query Parameters

ParameterTypeRequiredDescription
rangestringOptionalDate range: 7d, 30d, or 90d. Default: 30d.

Response (200 OK)

JSON
{
  "success": true,
  "data": {
    "total_fans_captured": 128,
    "timeseries": [
      { "date": "2026-07-15", "fans_captured": 4 }
    ],
    "top_countries": [
      { "country": "NG", "count": 80 }
    ]
  }
}

curl Example

curl "https://enterprise.soundyaad.com/api/enterprise/v1/analytics/fans-growth?range=30d" \
  -H "x-api-key: sy_ent_yourcompany_..."

Try It

GET

Fans CRM

GET/api/enterprise/v1/fans

List fans captured across your smart links and presave pages with pagination, search, country/release/artist/channel filtering, and sub-distributor scoping. Requires the fans:read scope. Viewer-role sessions receive masked contact fields (pii_masked: true) and name-only search; raw email/phone requires the fans:pii capability.

Query Parameters

ParameterTypeRequiredDescription
pageintegerOptionalPage number (1-based). Defaults to 1.
limitintegerOptionalResults per page (max 100). Defaults to 20.
searchstringOptionalFilter by fan name, email, or phone. Viewer role matches name only.
countrystringOptionalTwo-letter ISO country code, or a comma-separated list (e.g. NG,US).
release_idstring (UUID)OptionalUUID or comma-separated list. Matches fans who signed up on ANY of the listed releases, not only their first capture.
artist_idstring (UUID)OptionalFilter fans who signed up on any release of this enterprise artist.
channelstringOptionalComma-separated first-touch channel keys (e.g. instagram,t.co). Use "direct" for fans with no recorded channel.
sub_distributor_idstring (UUID)OptionalFilter fans captured under a specific sub-distributor.
min_releasesintegerOptionalOnly fans who saved at least this many distinct releases (e.g. 2 for superfans). Counted all-time across your whole catalog — not bounded by date filters; combine with country/sub_distributor/tag to segment.
has_whatsappstringOptionalPass "true" to only return fans with a phone number who opted in to WhatsApp.
has_emailstringOptionalPass "true" to only return fans with an email address who opted in to email.
sortstringOptionalPass "releases_saved" to rank fans by distinct saved releases (highest first). Default: most recently captured.
dirstringOptional"asc" or "desc" — direction for the default created_at ordering. Default: "desc". Ignored when sort=releases_saved (always highest first). Applies to JSON, CSV, and filtered list paths.
formatstringOptionalPass "csv" for a synchronous CSV export (max 5,000 rows, owner/manager role). Larger exports: POST /v1/fans/export.

Response (200 OK)

JSON
{
  "success": true,
  "data": [
    {
      "id": "uuid",
      "artist_id": "uuid",
      "name": "Adaeze Okafor",
      "email": "[email protected]",
      "phone": null,
      "country": "NG",
      "city": "Lagos",
      "release_id": "uuid",
      "releases_saved": 3,
      "email_allowed": true,
      "whatsapp_allowed": false,
      "tags": [{ "slug": "presave", "label": "Presave" }],
      "created_at": "2026-08-15T12:00:00Z"
    }
  ],
  "pii_masked": false,
  "total": 1,
  "page": 1,
  "limit": 20,
  "totalPages": 1
}
GETPATCH/api/enterprise/v1/fans/{id}

Retrieve a single fan profile with tag and signup event history (GET, requires fans:read; contact fields masked for viewer), or update consent flags and tags (PATCH, requires manager/owner — the fans:write capability).

GET Query Parameters

ParameterTypeRequiredDescription
artist_idstring (UUID)OptionalOptional. Scope releases_saved and the releases history to one enterprise artist — used when the fan is viewed from an artist page. Omit for full-catalog history.

GET Response (200 OK)

JSON
{
  "success": true,
  "data": {
    "id": "uuid",
    "artist_id": "uuid",
    "name": "Adaeze Okafor",
    "email": "[email protected]",
    "country": "NG",
    "email_allowed": true,
    "whatsapp_allowed": false,
    "unsubscribed_at": null,
    "consent_version": "v1",
    "consent_captured_at": "2026-08-15T12:00:00Z",
    "sub_distributor": { "id": "uuid", "name": "Eagle Tee Records" },
    "pii_masked": false,
    "releases_saved": 2,
    "releases": [
      { "release_id": "uuid", "title": "Midnight Sun", "slug": "midnight-sun", "artist_name": "Xtatic", "saved_at": "2026-11-01T09:30:00Z", "via": { "page_type": "release", "utm_source": "instagram", "source_url": "https://label.sya.to/midnight-sun" } },
      { "release_id": "uuid", "title": "Ojuelegba Nights", "slug": "ojuelegba-nights", "artist_name": "Xtatic", "saved_at": "2026-09-18T14:05:00Z", "via": { "page_type": "release", "source_url": "https://label.sya.to/ojuelegba-nights" } }
    ],
    "first_touch": { "release_id": "uuid", "title": "Ojuelegba Nights", "slug": "ojuelegba-nights", "at": "2026-09-18T14:05:00Z", "via": { "page_type": "release", "source_url": "https://label.sya.to/ojuelegba-nights" }, "capture_url": "https://label.sya.to/ojuelegba-nights" },
    "last_activity_at": "2026-11-01T09:30:00Z",
    "tags": [{ "slug": "presave", "label": "Presave" }],
    "created_at": "2026-08-15T12:00:00Z"
  }
}

Each fan row includes releases_saved (distinct releases the fan signed up for), releases (up to 50, most recent first, with per-save artist and channel attribution), first_touch, last_activity_at, consent evidence, and the owning sub_distributor. Viewer-role sessions get pii_masked: true with email/phone/primary_contact masked.

first_touch is the fan's earliest signup event — including non-release surfaces (artist page, Vault) whose release_id/title are null. Its capture_url is the precise public link the fan signed up on: the recorded via.source_url when present, else capture host + release slug, else the release's canonical smart link.

PATCH Request Body

ParameterTypeRequiredDescription
email_allowedbooleanOptionalSet email consent. Re-enabling is ignored while a fan_unsubscribes tombstone exists — an explicit unsubscribe cannot be silently reversed.
whatsapp_allowedbooleanOptionalSet WhatsApp consent.
tagsstring[]OptionalTag slugs to attach to this fan (get-or-created under the fan's artist).

Requires the fans:write capability — manager/owner sessions only (API keys, including fans:write-scoped keys, receive 403). Every mutation writes an enterprise.fans.update audit-log entry.

POST/api/enterprise/v1/fans/export

Start an asynchronous CSV export of captured fans matching optional filters. Returns an export_id to poll.

Request Body

ParameterTypeRequiredDescription
searchstringOptionalOptional search filter.
countrystringOptionalOptional two-letter country code filter.
release_idstring (UUID)OptionalOptional release UUID filter.
sub_distributor_idstring (UUID)OptionalOptional sub-distributor UUID filter.
min_releasesstringOptionalOptional. Pass an integer as a string (e.g. "2") — only fans with that many distinct saved releases are exported.
has_whatsappstringOptionalOptional. Pass "true" — only fans with a phone number and WhatsApp opt-in.
has_emailstringOptionalOptional. Pass "true" — only fans with an email address and email opt-in.

Response (202 Accepted)

JSON
{
  "success": true,
  "export_id": "uuid",
  "status": "pending",
  "status_url": "/api/enterprise/v1/fans/export/uuid"
}
GET/api/enterprise/v1/fans/export/{export_id}

Poll the status of a fan CSV export job. When status is completed, download_url contains a signed R2 download link.

Response (200 OK)

JSON
{
  "success": true,
  "export_id": "uuid",
  "status": "completed",
  "row_count": 420,
  "download_url": "https://assets.soundyaad.com/exports/fans-uuid.csv"
}

Artists

Every smart link you create is attached to an enterprise artist — your roster. Artists are resolved automatically from the release's artist name, and when DSP resolution finds store artist profiles (Spotify / Apple Music artist IDs) those become durable identity keys, so the same artist merges even when the name is spelled differently. Run POST /v1/artists/backfill once to build the roster for releases created before this feature.
GET/api/enterprise/v1/artists

List your artist roster with release counts, metadata label, and deduplicated fan totals. Requires the smartlinks:read scope.

Query Parameters

ParameterTypeRequiredDescription
pageintegerOptionalPage number (1-based). Defaults to 1.
limitintegerOptionalResults per page (max 100). Defaults to 20.
searchstringOptionalFilter by artist name.
sortstringOptional"name" (default), "fans", "superfans", "releases", or "created_at". Count sorts rank by the rollup first; name/created_at sort in the database.
dirstringOptional"asc" (default) or "desc" — applies to both name and rollup sorts.

Response (200 OK)

JSON
{
  "success": true,
  "data": [
    {
      "id": "uuid",
      "name": "Kofi Kingston",
      "label": "Dvpper Digital",
      "image_url": "https://…",
      "releases": 14,
      "fans": 2310,
      "created_at": "2026-11-14T10:00:00Z"
    }
  ],
  "total": 1,
  "page": 1,
  "limit": 20,
  "totalPages": 1
}
GET/api/enterprise/v1/artists/{id}

Retrieve one artist with roster stats (releases, fans, superfans) and linked store profiles. Requires the smartlinks:read scope.

Response (200 OK)

JSON
{
  "success": true,
  "data": {
    "id": "uuid",
    "name": "Kofi Kingston",
    "label": "Dvpper Digital",
    "image_url": "https://…",
    "releases": 14,
    "fans": 2310,
    "superfans": 184,
    "store_links": [
      { "platform": "spotify", "external_id": "4kI8Ie27vjvonwaB2afPh6", "profile_url": "https://open.spotify.com/artist/4kI8Ie27vjvonwaB2afPh6" }
    ]
  }
}
GET/api/enterprise/v1/artists/{id}/releases

List the releases attached to one artist, most recent first. Requires the smart-links read scope.

Query Parameters

ParameterTypeRequiredDescription
pageintegerOptionalPage number (1-based). Defaults to 1.
limitintegerOptionalResults per page (max 100). Defaults to 20.

Response (200 OK)

JSON
{
  "success": true,
  "data": [
    { "id": "uuid", "title": "Midnight Sun", "slug": "midnight-sun", "type": "single", "status": "resolved", "artwork_url": "https://…", "release_date": "2026-10-02", "created_at": "2026-09-28T08:00:00Z" }
  ],
  "total": 14,
  "page": 1,
  "limit": 20,
  "totalPages": 1
}
GET/api/enterprise/v1/artists/{id}/fans

List fans who saved at least one release under this artist. releases_saved is counted within this artist's releases only. Accepts the same filters as GET /v1/fans. Requires the fans:read scope.

Query Parameters

ParameterTypeRequiredDescription
pageintegerOptionalPage number (1-based). Defaults to 1.
limitintegerOptionalResults per page (max 100). Defaults to 20.
searchstringOptionalFilter by fan name, email, or phone.
sortstringOptionalPass "releases_saved" to rank by artist-scoped saved releases.

Response (200 OK)

JSON
{
  "success": true,
  "data": [
    { "id": "uuid", "name": "Adaeze Okafor", "email": "[email protected]", "country": "NG", "releases_saved": 3, "created_at": "2026-08-15T12:00:00Z" }
  ],
  "total": 2310,
  "page": 1,
  "limit": 20,
  "totalPages": 116
}
POST/api/enterprise/v1/artists/backfill

Build or repair the roster for releases created before enterprise artists existed. Links un-attached releases by normalized artist name, then enriches identity from cached DSP resolution data (store artist IDs, artwork, label) — merging duplicates as store identities surface. Paged for large catalogs: post {'offset': n, 'batch': m} and loop until done. Idempotent — safe to re-run. Owner/manager only.

Request Body

ParameterTypeRequiredDescription
offsetintegerOptionalRelease cursor — pass the previous response's next_offset. Defaults to 0.
batchintegerOptionalReleases processed per call (max 1000). Defaults to 500.

Response (200 OK)

JSON
{
  "success": true,
  "data": {
    "scanned": 500,
    "linked": 214,
    "enriched": 96,
    "errors": 0,
    "next_offset": 500,
    "done": false
  }
}

Artwork Upload

GET/api/enterprise/upload/artwork

Get a presigned URL to upload artwork directly to Cloudflare R2 storage. The upload URL is valid for 10 minutes.

Query Parameters

ParameterTypeRequiredDescription
content_typestringRequiredMIME type: image/jpeg, image/png, or image/webp.
filenamestringOptionalFilename for the uploaded file (e.g. art.jpg). Optional: the extension is used to validate the file type, otherwise it defaults to .jpg.

Response (200 OK)

JSON
{
  "success": true,
  "upload_url": "https://pub-xxx.r2.dev/artists/uuid/releases/uuid/artwork.jpg?X-Amz-...",
  "public_url": "https://assets.soundyaad.com/artists/uuid/releases/uuid/artwork.jpg",
  "expires_in": 600,
  "max_file_size": 5242880
}

Response Fields

FieldTypeDescription
upload_urlstring (URL)Presigned R2 upload URL. Valid for 10 minutes.
public_urlstring (URL)Public CDN URL of the uploaded file. Use as artwork_url.
expires_inintegerTime in seconds until the upload_url expires (600 = 10 minutes).
max_file_sizeintegerMaximum file size in bytes (5,242,880 = 5MB).

curl Example

curl "https://enterprise.soundyaad.com/api/enterprise/upload/artwork?content_type=image/jpeg&filename=art.jpg" \
  -H "x-api-key: sy_ent_yourcompany_..."

Upload Example (PUT to R2)

curl -X PUT "https://pub-xxx.r2.dev/artists/.../artwork.jpg?X-Amz-..." \
  -H "Content-Type: image/jpeg" \
  --data-binary @art.jpg

Try It

GET

Error Responses

400 Bad Request
{
  "success": false,
  "error": "Parameter 'content_type' must be image/jpeg, image/png, or image/webp"
}

Usage

GET/api/enterprise/v1/usage

Current billing-period usage and quota for the authenticated customer: links created vs. max, period boundaries, and tier feature flags.

Response (200 OK)

JSON
{
  "success": true,
  "data": {
    "billing_period": {
      "start": "2026-07-01T00:00:00.000Z",
      "end": "2026-08-01T00:00:00.000Z",
      "start_at": "2026-07-01T00:00:00.000Z",
      "end_at": "2026-08-01T00:00:00.000Z",
      "access_start_at": "2026-01-01T00:00:00.000Z",
      "access_end_at": "2027-01-01T00:00:00.000Z",
      "status": "active"
    },
    "links": {
      "used": 120,
      "max": 1500,
      "remaining": 1380,
      "created_total": 240
    },
    "credits": {
      "standard": 400,
      "domain": 50,
      "balance": 450,
      "used_this_period": 120,
      "total_available": 450,
      "needs_domain_credits": false,
      "buy_url": "/enterprise/dashboard/billing?buy=credits"
    },
    "tier": {
      "name": "growth",
      "max_monthly_links": 1500,
      "max_api_keys": 5,
      "custom_domain": true,
      "hide_branding": false,
      "webhooks": true,
      "team_members": 0,
      "analytics": true,
      "fan_data": true,
      "analytics_retention_days": 365,
      "fan_data_retention_days": 365
    }
  }
}

Response Fields

FieldTypeDescription
data.billing_period.startstring (ISO 8601)Start of the current usage period.
data.billing_period.endstring (ISO 8601)End of the current usage period.
data.links.usedintegerSmart links created in the current billing period against the monthly quota.
data.links.maxintegerMaximum links allowed this period (tier default or negotiated override).
data.links.remainingintegermax minus used, floored at 0.
data.links.created_totalintegerEvery link created this period across quota AND credit funding — read this on free tier, where links.used stays 0.
data.credits.standardintegerStandard credit balance — powers links on sya.to.
data.credits.domainintegerDomain credit balance — a superset that powers links anywhere, including a custom domain.
data.credits.balanceintegerCombined prepaid credit balance (standard + domain).
data.credits.used_this_periodintegerCredits consumed this billing period.
data.credits.total_availableintegerTotal credits usable right now.
data.credits.needs_domain_creditsbooleanTrue when a verified custom domain gates spending to the domain pool only.
data.credits.buy_urlstringDashboard route to top up credits.
data.billing_period.access_start_at / access_end_atstring (ISO 8601)Grant access window — differs from the quota cycle on admin-provisioned grants.
data.billing_period.statusstringAccess state for the current window.
data.tier.namestringCurrent tier: starter, growth, pro, or unlimited.
data.tier.analyticsbooleanWhether the Analytics endpoints are available on this tier.
data.tier.fan_databooleanWhether fan data capture/export is available on this tier.
data.tier.analytics_retention_daysintegerHow many days of analytics history can be queried. -1 means unlimited.
data.tier.fan_data_retention_daysintegerHow many days of fan records can be queried/exported. -1 means unlimited.

curl Example

curl "https://enterprise.soundyaad.com/api/enterprise/v1/usage" \
  -H "x-api-key: sy_ent_yourcompany_..."

Try It

GET

Webhooks

Configure a webhook URL and secret from your webhooks dashboard page. Soundyaad sends POST requests to your URL when events occur.

Event Types

ParameterTypeRequiredDescription
link.createdeventOptionalA new smart link was created.
link.updatedeventOptionalA smart link's fields were updated. Payload includes updated_fields array.
link.archivedeventOptionalA smart link was archived.
link.resolvedeventOptionalDSP resolution completed successfully. Payload includes platform links.
link.milestoneeventOptionalA smart link crossed a view-count milestone (100, 500, 1K, 5K, 10K, 50K, 100K).
link.failedeventOptionalDSP resolution failed: no streaming links found.
fan.createdeventOptionalA new fan was captured via a smart link presave/signup form.
fan.unsubscribedeventOptionalA fan opted out of email communications.
subscription.activatedeventOptionalYour enterprise subscription became active.
subscription.cancelledeventOptionalYour subscription was cancelled.
subscription.payment_failedeventOptionalA recurring charge failed.

Webhook Payload Structure

All webhooks share the same envelope. The data object varies by event type. Examples for each event below.

JSON: Envelope
{
  "event": "<event_type>",
  "timestamp": "2026-07-29T10:30:00Z",
  "data": { ... }
}

link.created

Fired when a new smart link is created via the API or dashboard.

JSON
{
  "event": "link.created",
  "timestamp": "2026-07-29T10:30:00Z",
  "data": {
    "release_id": "550e8400-e29b-41d4-a716-446655440000",
    "slug": "lola-rae-midnight",
    "smart_link": "https://your-label.sya.to/lola-rae-midnight"
  }
}

link.updated

Fired when a smart link's fields are updated. updated_fields lists which fields changed.

JSON
{
  "event": "link.updated",
  "timestamp": "2026-07-29T11:00:00Z",
  "data": {
    "release_id": "550e8400-e29b-41d4-a716-446655440000",
    "slug": "lola-rae-midnight",
    "updated_fields": ["title", "release_date"]
  }
}

link.archived

Fired when a smart link is archived (soft-deleted). The link is no longer publicly accessible.

JSON
{
  "event": "link.archived",
  "timestamp": "2026-07-29T12:00:00Z",
  "data": {
    "release_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}

link.resolved

Fired when DSP resolution completes successfully. Payload includes resolved platform links.

JSON
{
  "event": "link.resolved",
  "timestamp": "2026-07-29T10:31:00Z",
  "data": {
    "release_id": "550e8400-e29b-41d4-a716-446655440000",
    "links": [
      { "platform": "spotify", "url": "https://open.spotify.com/track/..." },
      { "platform": "apple_music", "url": "https://music.apple.com/album/..." }
    ],
    "platforms": ["spotify", "apple_music", "youtube_music"]
  }
}

link.milestone

Fired once per milestone the first time a smart link's all-time view count crosses it. Milestones: 100, 500, 1,000, 5,000, 10,000, 50,000, 100,000.

JSON
{
  "event": "link.milestone",
  "timestamp": "2026-07-29T10:31:00Z",
  "data": {
    "release_id": "550e8400-e29b-41d4-a716-446655440000",
    "milestone": 1000,
    "total_views": 1024,
    "achieved_at": "2026-07-29T10:31:00Z"
  }
}

fan.created

Fired when a new fan submits their email/phone via a smart link's presave or signup form.

JSON
{
  "event": "fan.created",
  "timestamp": "2026-07-29T10:31:00Z",
  "data": {
    "fan_id": "550e8400-e29b-41d4-a716-446655440111",
    "release_id": "550e8400-e29b-41d4-a716-446655440000",
    "source": "presave_link",
    "country": "NG",
    "email": "[email protected]",
    "phone": null,
    "created_at": "2026-07-29T10:31:00Z"
  }
}

fan.unsubscribed

Fired the first time a fan opts out of email communications. Not fired on repeat unsubscribe requests.

JSON
{
  "event": "fan.unsubscribed",
  "timestamp": "2026-07-29T10:31:00Z",
  "data": {
    "fan_id": "550e8400-e29b-41d4-a716-446655440111",
    "artist_id": "550e8400-e29b-41d4-a716-446655440222",
    "unsubscribed_at": "2026-07-29T10:31:00Z"
  }
}

link.failed

Fired when DSP resolution fails: no streaming links were found for the release.

JSON
{
  "event": "link.failed",
  "timestamp": "2026-07-29T10:31:00Z",
  "data": {
    "release_id": "550e8400-e29b-41d4-a716-446655440000",
    "error": "No streaming links found for this release"
  }
}

subscription.activated

Fired when a subscription becomes active or is upgraded to a new tier.

JSON
{
  "event": "subscription.activated",
  "timestamp": "2026-07-29T09:00:00Z",
  "data": {
    "tier": "pro",
    "cycle": "monthly",
    "current_period_end": "2026-08-29T09:00:00Z"
  }
}

subscription.cancelled

Fired when a subscription is cancelled. Writes remain allowed until access_until.

JSON
{
  "event": "subscription.cancelled",
  "timestamp": "2026-07-29T14:00:00Z",
  "data": {
    "cancelled_at": "2026-07-29T14:00:00Z",
    "access_until": "2026-08-29T09:00:00Z"
  }
}

subscription.payment_failed

Fired when a recurring charge fails. A grace period applies until the period ends.

JSON
{
  "event": "subscription.payment_failed",
  "timestamp": "2026-07-29T03:00:00Z",
  "data": {
    "tier": "pro"
  }
}

Signature Verification

Webhook requests include an X-Soundyaad-Signature header containing the HMAC-SHA256 of the request body, hex-encoded, using your webhook secret. Always verify this signature before processing the payload.

Node.js
const crypto = require('crypto');

const expected = crypto
  .createHmac('sha256', WEBHOOK_SECRET)
  .update(rawBody)
  .digest('hex');

if (expected !== req.headers['x-soundyaad-signature']) {
  return res.status(401).send('Invalid signature');
}

Retries

ParameterTypeRequiredDescription
Max attemptsintegerOptional4 total attempts (1 initial + 3 retries). After the 4th failure, the delivery is marked exhausted and no further retries are made.
Retry delays-Optional1 minute after 1st failure, 5 minutes after 2nd failure, 15 minutes after 3rd failure.
TimeoutintegerOptional15 seconds per attempt. If your endpoint does not respond within 15s, the attempt is marked as failed.
Circuit breaker-OptionalIf 5 deliveries are exhausted (all retries failed) within a 1-hour window, new webhook deliveries are skipped until the window resets. Prevents flooding a broken endpoint.
Retry trigger-OptionalAny non-2xx HTTP response or connection failure (timeout, DNS error, refused). 2xx responses are considered delivered.
Retry cron-OptionalRetries are processed by a cron job that runs every minute, picking up deliveries where next_retry_at has elapsed.

Responding to Webhooks

Your endpoint must return a 2xx HTTP status code within 15 seconds to acknowledge receipt. Any other status triggers a retry. Do not do heavy processing synchronously; return 200 immediately and process asynchronously.

Webhook URL Requirements

  • Must use https://: HTTP URLs are rejected.
  • Must not resolve to a private, loopback, or link-local IP address (SSRF protection).
  • Must be reachable from the public internet.
  • Configure your webhook URL and secret from the webhooks page.
GET/api/enterprise/webhook/deliveries

List recent webhook delivery attempts for your account, including response status, attempt count, and retry schedule.

Query Parameters

ParameterTypeRequiredDescription
limitintegerOptionalNumber of results. Max 100, default 20.

Response (200 OK)

JSON
{
  "success": true,
  "data": [
    {
      "id": "uuid",
      "event_type": "link.resolved",
      "response_status": 200,
      "attempt_count": 1,
      "delivered_at": "2026-07-29T10:30:05Z",
      "next_retry_at": null,
      "created_at": "2026-07-29T10:30:00Z"
    }
  ]
}

Response Fields

FieldTypeDescription
data[].idstring (UUID)Delivery record identifier.
data[].event_typestringWebhook event type (e.g. link.resolved).
data[].response_statusintegerHTTP status returned by your endpoint. null if delivery failed.
data[].attempt_countintegerNumber of delivery attempts made.
data[].delivered_atstring (ISO 8601)Timestamp of successful delivery or null.
data[].next_retry_atstring (ISO 8601)Scheduled retry time or null if delivered/ exhausted.
data[].created_atstring (ISO 8601)When the webhook event was created.

curl Example

curl "https://enterprise.soundyaad.com/api/enterprise/webhook/deliveries?limit=50" \
  -H "x-api-key: sy_ent_yourcompany_..."

Try It

GET
POST/api/enterprise/webhook/test

Send a test webhook to your configured webhook URL. Owner access only. Useful for verifying your endpoint is reachable and signature verification works.

Request Body (optional)

ParameterTypeRequiredDescription
event_typestringOptionalCustom event type for the test payload. Defaults to "link.test".

Response (200 OK)

JSON
{
  "success": true,
  "delivered": true,
  "statusCode": 200
}

Response Fields

FieldTypeDescription
successbooleanWhether the test webhook was sent successfully.
deliveredbooleanWhether your endpoint returned a 2xx response.
statusCodeintegerHTTP status code returned by your endpoint.

curl Example

curl -X POST "https://enterprise.soundyaad.com/api/enterprise/webhook/test" \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -H "Content-Type: application/json" \
  -d '{"event_type":"link.created"}'

Node.js Example

JavaScript
const res = await fetch(
  "https://enterprise.soundyaad.com/api/enterprise/webhook/test",
  {
    method: "POST",
    headers: {
      "x-api-key": "sy_ent_yourcompany_...",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ event_type: "link.created" }),
  }
);
const data = await res.json();
console.log(data.success);

Python Example

Python
import requests

res = requests.post(
    "https://enterprise.soundyaad.com/api/enterprise/webhook/test",
    headers={
        "x-api-key": "sy_ent_yourcompany_...",
        "Content-Type": "application/json",
    },
    json={"event_type": "link.created"},
)
data = res.json()
print(data["success"])

Try It

POST

Error Responses

403 Forbidden
{
  "success": false,
  "error": "Owner access required"
}

Custom Domain

Custom domains allow your smart links to be served from your own domain (e.g. links.your-label.com). Available on Growth tier and above. See the Custom Domain Setup Guide for detailed DNS instructions.

GETPOST/api/enterprise/domain

Add or check the status of a custom domain. Custom domains are tier-gated (Growth+).

GET: Check Domain Status

Returns the configured domain, verified/configured/misconfigured flags, and required DNS records.

GET: Response (200 OK, domain configured)

JSON
{
  "success": true,
  "domain": "links.your-label.com",
  "verified": true,
  "configured": true,
  "misconfigured": false,
  "verification": null,
  "dnsInstructions": [
    { "type": "CNAME", "name": "links", "value": "cname.vercel-dns.com" }
  ]
}

GET: Response (200 OK, no domain)

JSON
{
  "success": true,
  "domain": null,
  "verified": false,
  "dnsInstructions": null
}

GET: Response Fields

FieldTypeDescription
domainstringConfigured custom domain or null.
verifiedbooleanWhether DNS verification passed.
configuredbooleanWhether Vercel confirms the domain is configured.
misconfiguredbooleanWhether Vercel reports a misconfiguration.
verificationobjectVercel verification details or null.
dnsInstructions[]arrayRequired DNS records. Each has type (A or CNAME), name, and value.

POST: Add Domain

Owner only. Body: {"domain": "your-domain.com"}. Adds the domain to Vercel and stores it for verification.

DNS instructions: apex domains use an A 76.76.21.21 record; subdomains use a CNAME cname.vercel-dns.com record.

curl Examples

GET: Check status
curl "https://enterprise.soundyaad.com/api/enterprise/domain" \
  -H "x-api-key: sy_ent_yourcompany_..."
POST: Add domain
curl -X POST "https://enterprise.soundyaad.com/api/enterprise/domain" \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -H "Content-Type: application/json" \
  -d '{"domain":"links.your-label.com"}'

Try It

GET

Error Responses

403 Forbidden
{
  "success": false,
  "error": "Custom domains require Growth tier or above"
}
POST/api/enterprise/domain/verify

Trigger DNS verification for your configured custom domain. Checks both DNS records and Vercel domain configuration. If verified, activates the domain for smart link serving.

Request Body (optional)

ParameterTypeRequiredDescription
domainstringOptionalDomain to verify. If omitted, verifies the currently configured domain. Must match your configured domain if provided.

Response (200 OK: Verified)

JSON
{
  "success": true,
  "domain": "links.your-label.com",
  "verified": true,
  "configured": true,
  "dnsRecords": {
    "cnameTarget": "cname.vercel-dns.com",
    "aRecord": "76.76.21.21"
  },
  "message": "Domain verified! Your smart links are now live at this domain."
}

Response (200 OK: Not Yet Verified)

JSON
{
  "success": true,
  "domain": "links.your-label.com",
  "verified": false,
  "configured": false,
  "dnsRecords": {
    "cnameTarget": "cname.vercel-dns.com",
    "aRecord": "76.76.21.21"
  },
  "message": "DNS records not yet detected. This can take up to 48 hours to propagate."
}

curl Example

curl -X POST "https://enterprise.soundyaad.com/api/enterprise/domain/verify" \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -H "Content-Type: application/json" \
  -d '{"domain":"links.your-label.com"}'

Node.js Example

JavaScript
const res = await fetch(
  "https://enterprise.soundyaad.com/api/enterprise/domain/verify",
  {
    method: "POST",
    headers: {
      "x-api-key": "sy_ent_yourcompany_...",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ domain: "links.your-label.com" }),
  }
);
const data = await res.json();
console.log(data.verified);

Python Example

Python
import requests

res = requests.post(
    "https://enterprise.soundyaad.com/api/enterprise/domain/verify",
    headers={
        "x-api-key": "sy_ent_yourcompany_...",
        "Content-Type": "application/json",
    },
    json={"domain": "links.your-label.com"},
)
data = res.json()
print(data["verified"])

Try It

POST

Billing

GETPATCHDELETE/api/enterprise/billing/subscription

Manage your enterprise subscription through Bachs.

GET: Subscription Details

Returns tier, status, period dates, monthly limit, and links used.

GET: Response (200 OK)

JSON
{
  "success": true,
  "tier": "growth",
  "status": "active",
  "current_period_start": "2026-07-01T00:00:00Z",
  "current_period_end": "2026-08-01T00:00:00Z",
  "cancelled_at": null,
  "trial_ends_at": null,
  "subscription_id": "sub_bachs_123",
  "billing_cycle": "monthly",
  "monthly_limit": 1500,
  "links_used": 42,
  "period_end": "2026-08-01T00:00:00Z"
}

GET: Response Fields

FieldTypeDescription
tierstringCurrent tier: starter, growth, pro, or unlimited.
statusstringSubscription status: active, cancelled, trialing, past_due, or expired.
current_period_startstring (ISO 8601)Start of the current billing period or null.
current_period_endstring (ISO 8601)End of the current billing period or null.
cancelled_atstring (ISO 8601)When the subscription was cancelled, or null if active.
trial_ends_atstring (ISO 8601)When the trial ends, or null if not on trial.
subscription_idstringBachs subscription ID or null.
billing_cyclestringCurrent billing cycle: monthly or yearly.
monthly_limitintegerMonthly link creation limit for the current tier.
links_usedintegerLinks created in the current billing period.
period_endstring (ISO 8601)End of the current usage period (from usage tracking).

PATCH: Response (200 OK)

JSON
{
  "success": true,
  "checkout_url": "https://checkout.bachs.io/session/..."
}

PATCH: Response Fields

FieldTypeDescription
checkout_urlstring (URL)Bachs checkout URL the customer must complete to activate the new tier.

DELETE: Response (200 OK)

JSON
{
  "success": true,
  "access_until": "2026-08-29T10:00:00Z"
}

DELETE: Response Fields

FieldTypeDescription
access_untilstring (ISO 8601)Date and time when access to enterprise features will end.

curl Examples

GET: Subscription details
curl "https://enterprise.soundyaad.com/api/enterprise/billing/subscription" \
  -H "x-api-key: sy_ent_yourcompany_..."
PATCH: Change plan
curl -X PATCH "https://enterprise.soundyaad.com/api/enterprise/billing/subscription" \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -H "Content-Type: application/json" \
  -d '{"tier":"pro","cycle":"monthly"}'
DELETE: Cancel
curl -X DELETE "https://enterprise.soundyaad.com/api/enterprise/billing/subscription" \
  -H "x-api-key: sy_ent_yourcompany_..."

Try It

GET

Error Responses

403 Forbidden
{
  "success": false,
  "error": "Owner access required"
}
GET/api/enterprise/billing/invoices

Fetch billing history for your account, including admin-provisioned events, payments, and subscription changes. Supports pagination.

Query Parameters

ParameterTypeRequiredDescription
pageintegerOptionalPage number (1-based). Defaults to 1.
limitintegerOptionalResults per page. Max 50, default 20.

Response (200 OK)

JSON
{
  "success": true,
  "data": [
    {
      "id": "uuid",
      "event_type": "enterprise.admin.provisioned",
      "provider": "admin",
      "provider_ref": "admin-provision-uuid",
      "amount_usd": null,
      "amount_ngn": null,
      "created_at": "2026-07-29T10:00:00Z"
    },
    {
      "id": "uuid",
      "event_type": "enterprise.charge.completed",
      "provider": "bachs",
      "provider_ref": "bch-tx-ref-123",
      "amount_usd": 25.00,
      "amount_ngn": 39500,
      "created_at": "2026-08-01T00:00:00Z"
    }
  ],
  "total": 5,
  "page": 1,
  "limit": 20,
  "total_pages": 1
}

Response Fields

FieldTypeDescription
data[].idstring (UUID)Billing event identifier.
data[].event_typestringEvent type (e.g. enterprise.admin.provisioned, enterprise.charge.completed, enterprise.admin.tier_changed).
data[].providerstringPayment provider or source (e.g. bachs, admin).
data[].provider_refstringPayment provider transaction reference or admin reference.
data[].amount_usdnumberAmount in USD or null for non-payment events.
data[].amount_ngnnumberAmount in NGN or null for non-payment events.
data[].created_atstring (ISO 8601)When the event was recorded.
totalintegerTotal number of billing events.
pageintegerCurrent page number.
limitintegerResults per page.
total_pagesintegerTotal number of pages.

curl Example

curl "https://enterprise.soundyaad.com/api/enterprise/billing/invoices?page=1&limit=50" \
  -H "x-api-key: sy_ent_yourcompany_..."

Node.js Example

JavaScript
const res = await fetch(
  "https://enterprise.soundyaad.com/api/enterprise/billing/invoices?page=1&limit=50",
  { headers: { "x-api-key": "sy_ent_yourcompany_..." } }
);
const data = await res.json();
console.log(data.data);

Python Example

Python
import requests

res = requests.get(
    "https://enterprise.soundyaad.com/api/enterprise/billing/invoices",
    headers={"x-api-key": "sy_ent_yourcompany_..."},
    params={"page": 1, "limit": 50},
)
data = res.json()
print(data["data"])

Try It

GET
POST/api/enterprise/billing/portal

Create an authenticated Bachs Customer Portal session to manage saved cards, billing details, and invoices. Owner access only.

Response (200 OK)

JSON
{
  "success": true,
  "portal_url": "https://billing.bachs.io/session/...",
  "checkout_url": "https://billing.bachs.io/session/..."
}

curl Example

curl -X POST "https://enterprise.soundyaad.com/api/enterprise/billing/portal" \
  -H "x-api-key: sy_ent_yourcompany_..."

Try It

POST

Error Responses

403 Forbidden
{
  "success": false,
  "error": "Owner access required"
}

Prepaid Periods & Access States

Bachs bills subscriptions on USD cards only, so billing in another currency (NGN, GHS, and other local rails) checks out as a one-time prepaid period — a single charge that activates the tier for the selected cycle and is re-paid manually at renewal. Early same-tier renewals stack onto the live window; a tier change starts a fresh window immediately. The subscription response exposes this as subscription_payment_mode (recurring for USD billing, prepaid otherwise), and prepaid windows run the same grace/expiry lifecycle as provider-billed subscriptions.

When a billing period ends, full service continues for a 72-hour grace window on the same quota cycle. After grace, the dashboard and existing smart links stay live while paid features pause until renewal — account and billing responses expose this via the access.state field (active, grace, restricted, unactivated, suspended). Administrative suspension is a separate state and is unaffected by subscription expiry or renewal.

Team

Invite and manage team members. Available on Pro tier and above (3 seats on Pro, unlimited on Unlimited tier). Roles: owner (full access), manager (no billing/account settings),viewer (read-only).

GETPOSTDELETE/api/enterprise/team

Invite and manage team members.

GET: Response (200 OK)

JSON
{
  "success": true,
  "data": [
    {
      "id": "uuid",
      "user_id": "uuid-or-null",
      "role": "owner",
      "invited_email": "[email protected]",
      "status": "active",
      "created_at": "2026-06-01T10:00:00Z",
      "updated_at": "2026-06-01T10:00:00Z",
      "expires_at": null
    },
    {
      "id": "uuid",
      "user_id": null,
      "role": "viewer",
      "invited_email": "[email protected]",
      "status": "pending",
      "created_at": "2026-07-29T10:00:00Z",
      "updated_at": "2026-07-29T10:00:00Z",
      "expires_at": "2026-08-05T10:00:00Z"
    }
  ],
  "isOwner": true
}

GET: Response Fields

FieldTypeDescription
data[].idstring (UUID)Team member record ID.
data[].user_idstring (UUID)Linked user ID if accepted, null if pending.
data[].rolestringRole: owner, manager, or viewer.
data[].invited_emailstringEmail address of the invitee.
data[].statusstringInvitation status: pending or active.
data[].created_atstring (ISO 8601)When the member was added/invited.
data[].updated_atstring (ISO 8601)When the record was last updated.
data[].expires_atstring (ISO 8601)When the invitation expires, or null if active.
isOwnerbooleanWhether the requesting user is the account owner.

Endpoints

  • GET /api/enterprise/team: List active and pending members.
  • POST /api/enterprise/team/invite: Owner only. Body: {"email": "...", "role": "manager|viewer"}.
  • GET /api/enterprise/team/invite-lookup?token=...: Look up a team invite before signing up. The token is the single-use secret from the emailed ?team_invite= link.
  • POST /api/enterprise/team/resend-invite: Owner only. Body: {"member_id": "..."}. Rotates the invite token and re-emails the link; the previous link dies immediately.
  • DELETE /api/enterprise/team/{id}: Owner only. Remove a member.

curl Examples

GET: List members
curl "https://enterprise.soundyaad.com/api/enterprise/team" \
  -H "x-api-key: sy_ent_yourcompany_..."
POST: Invite member
curl -X POST "https://enterprise.soundyaad.com/api/enterprise/team/invite" \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -H "Content-Type: application/json" \
  -d '{"email":"[email protected]","role":"viewer"}'
DELETE: Remove member
curl -X DELETE "https://enterprise.soundyaad.com/api/enterprise/team/uuid-here" \
  -H "x-api-key: sy_ent_yourcompany_..."

Try It

GET

Error Responses

403 Forbidden
{
  "success": false,
  "error": "Forbidden: only account owners can invite or remove team members."
}
403 Plan Limit
{
  "success": false,
  "error": "Team member limit reached for this plan. Upgrade to add more."
}

Account & API Keys

POST/api/enterprise/workspaces

Create an enterprise workspace for the signed-in user — the authenticated counterpart to public signup. Required for OAuth-only accounts (no password) that cannot use POST /api/enterprise/signup. Session-authenticated only; not API-key scoped.

Session Authentication

Requires a valid dashboard session (HttpOnly auth_token cookie or Authorization: Bearer JWT). The request body carries no identity fields — the workspace owner email comes from the session, and free-tier workspaces bind users.id immediately (paid tiers bind at payment activation). If the session email matches a pending signup or an unclaimed admin-created workspace, the endpoint resumes or links that row instead of creating a duplicate.

Request Body

ParameterTypeRequiredDescription
company_namestringRequiredWorkspace display name. 1–120 characters.
tierstringRequiredPlan tier: free, starter, growth, pro, or unlimited.
cyclestringOptionalBilling cycle for paid tiers: monthly (default) or yearly. Ignored on the free tier.

Response (200 OK)

Free tier — activated immediately
{
  "success": true,
  "status": "active",
  "customerId": "uuid",
  "tier": "free",
  "resumed": false,
  "request_id": "uuid"
}
Paid tier — redirect to checkout
{
  "success": true,
  "status": "checkout",
  "customerId": "uuid",
  "checkout_url": "https://checkout.bachs.io/...",
  "checkout_token": "1731600000000.ab12cd…",
  "pending_signup_id": "uuid",
  "tier": "growth",
  "cycle": "monthly",
  "request_id": "uuid"
}

Paid workspaces activate through the existing payment path: checkout returns to /enterprise/activate, the Bachs webhook calls activateEnterpriseCustomer(), and the owner lands on the dashboard signed in. Free-tier workspaces activate immediately with the standard 3-link trial credit grant.

Error Responses

401 Unauthorized
{
  "success": false,
  "error": "Sign in to create an enterprise workspace.",
  "code": "AUTH_REQUIRED",
  "request_id": "uuid"
}
409 Conflict — workspace exists
{
  "success": false,
  "error": "This account already has an enterprise workspace. Open your dashboard instead.",
  "code": "WORKSPACE_EXISTS",
  "status_code": 409,
  "request_id": "uuid"
}
403 Forbidden — unverified email
{
  "success": false,
  "error": "Verify your email address to resume this workspace signup.",
  "code": "EMAIL_VERIFICATION_REQUIRED",
  "status_code": 403,
  "request_id": "uuid"
}
GETPATCH/api/enterprise/account

Read or update your enterprise account and branding settings.

GET: Account Details

Returns company name, slug, tier, custom domain, webhook URL, brand settings, usage, and role.

GET: Response (200 OK)

JSON
{
  "success": true,
  "account": {
    "company_name": "Your Label",
    "slug": "your-label",
    "owner_email": "[email protected]",
    "tier": "growth",
    "brand_color": "#DB2C2C",
    "brand_logo_url": null,
    "hide_soundyaad_branding": false,
    "custom_domain": "links.your-label.com",
    "custom_domain_verified": true,
    "webhook_url": "https://your-label.com/webhooks/soundyaad",
    "has_webhook_secret": true,
    "meta_pixel_id": null,
    "tiktok_pixel_id": null,
    "google_tag_id": null,
    "max_monthly_links": 1500,
    "links_used": 42,
    "current_period_end": "2026-08-29T10:00:00Z",
    "subscription_status": "active",
    "role": "owner",
    "is_owner": true
  }
}

GET: Response Fields

FieldTypeDescription
account.company_namestringCompany or label name.
account.slugstringURL slug for the enterprise subdomain.
account.owner_emailstringEmail of the account owner.
account.tierstringCurrent tier: starter, growth, pro, or unlimited.
account.brand_colorstring (hex)Brand color in hex format. Default: #DB2C2C.
account.brand_logo_urlstring (URL)Brand logo URL or null.
account.hide_soundyaad_brandingbooleanWhether Soundyaad branding is hidden. Pro tier only.
account.custom_domainstringCustom domain or null.
account.custom_domain_verifiedbooleanWhether the custom domain is verified.
account.webhook_urlstring (URL)Webhook delivery URL or null.
account.has_webhook_secretbooleanWhether a webhook secret is set.
account.max_monthly_linksintegerMonthly link creation limit for the current tier.
account.links_usedintegerLinks created in the current billing period.
account.current_period_endstring (ISO 8601)End of the current billing period.
account.subscription_statusstringSubscription status: active, cancelled, trial, etc.
account.rolestringYour role: owner, manager, or viewer.
account.is_ownerbooleanWhether you are the account owner.
account.enabled_platformsstring[] | nullDSP allowlist for smart link pages, or null for all platforms.
account.fan_capture_enabledboolean | nullAccount default for the "Get notified" fan-capture form.
account.fan_email_notifications_enabledbooleanAccount default for automatic release-morning emails to presave fans. false suppresses them account-wide; sub-distributors can override.
account.fan_capture_positionstringDefault signup-form placement: top or bottom.
account.fan_capture_name_modestringFirst-touch name field on the signup form: hidden (default), optional, or required.
account.meta_capi_token_setbooleanWhether a Meta Conversions API token is configured (the token itself is never returned).
account.link_credits_standardintegerStandard prepaid credit balance.
account.link_credits_domainintegerDomain prepaid credit balance.
account.onboarding_completed_atstring (ISO 8601) | nullSet once the workspace has finished onboarding (bought a credit pack or upgraded) — gates the dashboard on the free tier.
account.accessobjectAccess state object: state (active | grace | restricted | unactivated | suspended), grace_ends_at, paid_features, dashboard_access, basic_links.

GET: curl Example

curl "https://enterprise.soundyaad.com/api/enterprise/account" \
  -H "x-api-key: sy_ent_yourcompany_..."

PATCH: Update Account (Owner only)

ParameterTypeRequiredDescription
brand_colorstring (hex)OptionalBrand color in hex format (e.g. #E50914). Must match /^#[0-9a-fA-F]{6}$/.
brand_logo_urlstring (URL)OptionalURL to your brand logo. Must be HTTP(S) URL pointing to an image file. Set to empty string to clear.
distributor_display_namestringOptionalCustom label shown as "Distributed by [Name]" on smart link pages. Max 80 chars.
website_urlstring (URL)OptionalDestination URL when visitors click your distributor credit.
hide_soundyaad_brandingbooleanOptionalHide Soundyaad branding from smart link pages. Pro and Unlimited tiers only.
webhook_urlstring (URL)OptionalHTTPS URL for webhook deliveries. Set to null or empty string to clear.
webhook_namestringOptionalOptional nickname for your webhook endpoint. Max 80 chars.
webhook_enabledbooleanOptionalEnable or pause webhook deliveries.
webhook_events_subscribedstring[] | nullOptionalArray of subscribed event names, or null to subscribe to all events.
rotate_webhook_secretbooleanOptionalSet to true to generate and return a new HMAC signing secret.
reset_webhook_circuitbooleanOptionalSet to true to reset the webhook circuit breaker and resume paused deliveries.
preferred_store_orderstring[]OptionalOrdered array of DSP platform names for smart link pages.
meta_pixel_idstringOptionalMeta pixel ID. 1-64 alphanumeric chars. Set to empty string to clear.
tiktok_pixel_idstringOptionalTikTok pixel ID. 1-64 alphanumeric chars.
google_tag_idstringOptionalGoogle Tag ID. 1-64 alphanumeric chars.
meta_capi_tokenstring | nullOptionalMeta Conversions API token — fan captures send a server-side Lead event to your pixel, deduplicated by event_id. Max 200 chars. Set to null to clear; GET only exposes meta_capi_token_set.
enabled_platformsstring[] | nullOptionalAccount-wide DSP allowlist — controls which platforms appear on smart link pages. Send an array to set, null to restore all platforms.
fan_capture_enabledboolean | nullOptionalAccount default for the fan-capture signup form on smart links.
fan_email_notifications_enabledbooleanOptionalSend automatic release-morning emails to fans who presaved on your links (default true). false stops all release-day fan emails account-wide — presaves still capture, DSP autosaves still run, and suppressed fans are never retro-emailed if you re-enable. Sub-distributors can override per workspace.
fan_capture_position"top" | "bottom" | nullOptionalDefault position of the signup form relative to store links. null clears to the default.
fan_capture_name_mode"hidden" | "optional" | "required" | nullOptionalWhether the signup form asks for the fan’s name at first touch: hidden (no field), optional (shown, skippable), required (must provide). null resets to hidden. Fans without a name on file are still asked once after joining regardless of this setting.

PATCH: curl Example

curl -X PATCH "https://enterprise.soundyaad.com/api/enterprise/account" \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -H "Content-Type: application/json" \
  -d '{"brand_color":"#E50914","webhook_url":"https://your-label.com/webhooks/soundyaad"}'

PATCH: Response (200 OK)

JSON
{
  "success": true
}

Try It

GET

PATCH: Error Responses

400 Bad Request
{
  "success": false,
  "error": "brand_color must be a valid hex color (e.g. #E50914)."
}
403 Forbidden
{
  "success": false,
  "error": "Forbidden: owner access only."
}
GETPOSTDELETE/api/enterprise/v1/keys

Manage your API keys programmatically or from the dashboard settings page.

GET: Response (200 OK)

JSON
{
  "success": true,
  "keys": [
    {
      "id": "uuid",
      "key_name": "Production Server",
      "key_prefix": "sy_ent_your-la...",
      "scopes": ["smartlinks:read", "smartlinks:write"],
      "allowed_ips": ["52.14.1.10"],
      "created_at": "2026-06-01T10:00:00Z",
      "revoked_at": null,
      "expires_at": null,
      "created_by": "uuid"
    }
  ]
}

GET: Response Fields

FieldTypeDescription
keys[].idstring (UUID)API key identifier.
keys[].key_namestringHuman-readable name for the key.
keys[].key_prefixstringFirst 18 characters of the key + "...". Used for identification after creation.
keys[].scopesstring[]Permission scopes: smartlinks:read, smartlinks:write.
keys[].allowed_ipsstring[]IP allowlist (IPv4/IPv6). null = no restriction. Max 10 IPs.
keys[].created_atstring (ISO 8601)When the key was created.
keys[].revoked_atstring (ISO 8601)When the key was revoked, or null if active.
keys[].expires_atstring (ISO 8601)When the key expires, or null if no expiry.
keys[].created_bystring (UUID)User ID who created the key.

POST: Response (201 Created)

JSON
{
  "success": true,
  "rawKey": "sy_ent_your-label_a1b2c3d4e5f6...",
  "key": {
    "id": "uuid",
    "key_name": "Production Server",
    "key_prefix": "sy_ent_your-la...",
    "scopes": ["smartlinks:read", "smartlinks:write"],
    "allowed_ips": null,
    "created_at": "2026-07-29T10:00:00Z",
    "expires_at": null
  }
}

POST: Response Fields

FieldTypeDescription
rawKeystringThe full API key. Shown only once: store it securely.
key.idstring (UUID)API key identifier.
key.key_namestringHuman-readable name for the key.
key.key_prefixstringFirst 18 characters + "..." for identification.
key.scopesstring[]Permission scopes granted to this key.
key.allowed_ipsstring[]IP allowlist or null.
key.created_atstring (ISO 8601)When the key was created.
key.expires_atstring (ISO 8601)When the key expires, or null if no expiry.

POST: Request Body

ParameterTypeRequiredDescription
keyNamestringRequiredHuman-readable name. 1-100 characters.
scopesstring[]OptionalPermission scopes. Defaults to ["smartlinks:read", "smartlinks:write"]. Valid values: smartlinks:read, smartlinks:write, analytics:read, fans:read, fans:write.
allowedIpsstring[]OptionalIPv4/IPv6 addresses to restrict key usage. Max 10 IPs. null = no restriction.
expiresAtstring (ISO 8601)OptionalFuture expiry date. null = no expiry.

DELETE: Response (200 OK)

JSON
{
  "success": true
}

DELETE: Request Body

ParameterTypeRequiredDescription
keyIdstring (UUID)RequiredID of the key to revoke.

Endpoints

  • GET: List all active and revoked keys (prefix only, never the full key).
  • POST: Generate a new key. Body: {"keyName": "Production Server"}. Returns the raw key once.
  • DELETE: Revoke a key. Body: {"keyId": "uuid"}

curl Examples

GET: List keys
curl "https://enterprise.soundyaad.com/api/enterprise/v1/keys" \
  -H "x-api-key: sy_ent_yourcompany_..."
POST: Generate key
curl -X POST "https://enterprise.soundyaad.com/api/enterprise/v1/keys" \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -H "Content-Type: application/json" \
  -d '{"keyName":"Production Server"}'
DELETE: Revoke key
curl -X DELETE "https://enterprise.soundyaad.com/api/enterprise/v1/keys" \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -H "Content-Type: application/json" \
  -d '{"keyId":"uuid-here"}'

Try It

GET
POST/api/enterprise/reset-password

Trigger a password reset email for the authenticated user's account. Available regardless of subscription status or role.

No request body needed. Sends a password reset link to the user's email address. The reset link points to the enterprise subdomain so users can reset without leaving the portal. Rate limited to 3 requests per hour.

curl Example

curl -X POST "https://enterprise.soundyaad.com/api/enterprise/reset-password" \
  -H "x-api-key: sy_ent_yourcompany_..."

Try It

POST
POST/api/enterprise/invite/legacy-refresh

Self-healing bridge for legacy owner invites. Older admin invite emails carried ?invite=<customer_uuid> links that never expired and could not be revoked; activation now requires the single-use 72-hour token link. Posting a legacy id here mails a fresh token link to the invited owner when the id still names a pending admin invite. Always returns a generic 200 so the endpoint cannot enumerate pending invites. Unauthenticated — rate limited to 3 requests per invite per hour and 10 per IP per hour.

Request Body

ParameterTypeRequiredDescription
invite_idstring (UUID)RequiredThe enterprise_customers UUID carried by the legacy ?invite= link.

Response (200 OK)

JSON
{ "success": true }

The response is identical whether or not the id matched a pending invite. Legacy ids posted to POST /api/enterprise/signup now return 410 LEGACY_INVITE_EXPIRED — activate with inviteToken from the refreshed email instead.

curl Example

curl -X POST "https://enterprise.soundyaad.com/api/enterprise/invite/legacy-refresh" \
  -H "Content-Type: application/json" \
  -d '{"invite_id":"550e8400-e29b-41d4-a716-446655440000"}'

Try It

POST
GET/api/enterprise/attention

Returns the live list of operational conditions the workspace should act on — computed server-side from credit pools, domain verification, link resolution, webhook health, and subscription state. Session-authenticated (dashboard), not API-key scoped.

Response (200 OK)

JSON
{
  "success": true,
  "items": [
    {
      "key": "link_credits_low",
      "severity": "warning",
      "title": "4 domain credits left",
      "message": "Your custom domain is live and spends domain credits — top up before creation pauses.",
      "href": "/enterprise/dashboard/billing",
      "actionLabel": "Top up"
    }
  ]
}

Item Fields

ParameterTypeRequiredDescription
keystringRequiredStable condition key — dedupe client-side so a condition alerts once per trip, not per page load.
severitystringRequired"critical" blocks link creation or payments, "warning" needs action soon, "info" is ambient context.
titlestringRequiredShort headline for lists and notifications.
messagestringRequiredOne-line explanation including the business reason.
hrefstringOptionalDashboard route that resolves or explains the condition.
actionLabelstringOptionalCTA copy for the href.

Condition Keys & Severities

Items are sorted critical → warning → info. A key disappears when the condition clears — clients generating notifications should mark the matching entries resolved rather than deleting them.

FieldTypeDescription
link_credits_exhausted / link_credits_lowcritical / warningFree tier: usable pool (domain credits when a verified domain is live, otherwise standard + domain) is empty or at ≤10.
quota_exhausted / quota_spending_creditscritical / warningPaid tier: monthly quota used up — with no prepaid credits left creation pauses; with credits, new links draw from the prepaid reserve.
standard_credits_parkedinfoFree + verified custom domain: standard credits are held while links spend domain credits.
domain_unverifiedwarningA custom domain is attached but DNS is not verified — links still serve sya.to.
links_failed / links_resolvingwarning / infoSmart links failed store resolution, or have been pending over 24h.
webhook_failing / webhook_pausedcritical / infoCircuit breaker parked deliveries after repeated failures, or the endpoint is configured but disabled.
subscription_grace / subscription_pausedwarning / criticalBilling window ended — in the 72h grace window, or paid features already restricted.
GET/api/enterprise/workspaces

Lists every enterprise workspace the signed-in user belongs to — workspaces they own plus workspaces where they hold an active team membership — and marks which one is currently active for the session. Session-authenticated (dashboard); API keys always belong to exactly one workspace and cannot call this endpoint.

Response (200 OK)

JSON
{
  "success": true,
  "active_workspace_id": "uuid",
  "workspaces": [
    {
      "id": "uuid",
      "company_name": "Your Label",
      "slug": "your-label",
      "tier": "growth",
      "role": "owner",
      "status": "owner",
      "is_owner": true,
      "is_active": true,
      "access_state": "active"
    },
    {
      "id": "uuid",
      "company_name": "Client Org",
      "slug": "client-org",
      "tier": "pro",
      "role": "manager",
      "status": "active",
      "is_owner": false,
      "is_active": false,
      "access_state": "grace"
    }
  ]
}

Workspace Fields

FieldTypeDescription
idstring (UUID)enterprise_customers id — the value passed to the switch endpoint.
company_namestringWorkspace display name.
rolestringYour role in that workspace: owner, manager, or viewer.
statusstring"owner" for owned workspaces, otherwise the membership status (active).
is_ownerbooleanWhether you own the workspace (enterprise_customers.user_id).
is_activebooleanWhether this workspace is the one your session currently resolves to.
access_statestringBilling access state of the workspace: active, grace, restricted, unactivated, or suspended.

curl Example

curl "https://enterprise.soundyaad.com/api/enterprise/workspaces" \
  -H "Authorization: Bearer <session-jwt>"
POST/api/enterprise/workspace/switch

Persists the active workspace for the session by setting the enterprise_workspace httpOnly cookie. Every subsequent enterprise request resolves to the selected workspace — including the role you hold there (owner on your own workspace, member role on joined ones). The target is validated server-side against your real memberships; selecting a workspace you do not belong to returns 403.

Request Body

ParameterTypeRequiredDescription
workspace_idstring (UUID)RequiredThe enterprise_customers id of the workspace to activate — from GET /api/enterprise/workspaces.

Response (200 OK)

JSON
{
  "success": true,
  "active_workspace": {
    "id": "uuid",
    "company_name": "Client Org",
    "slug": "client-org",
    "tier": "pro",
    "role": "manager",
    "status": "active",
    "is_owner": false,
    "is_active": true,
    "access_state": "grace"
  }
}

The response sets Set-Cookie: enterprise_workspace=<id> (HttpOnly, SameSite=Lax, 30 days). Bearer-token clients that cannot hold cookies may instead send the x-enterprise-workspace header on each request. The selection is re-validated on every request — a stale or forged id simply falls back to your default workspace.

curl Example

curl -X POST "https://enterprise.soundyaad.com/api/enterprise/workspace/switch" \
  -H "Authorization: Bearer <session-jwt>" \
  -H "Content-Type: application/json" \
  -d '{"workspace_id":"550e8400-e29b-41d4-a716-446655440000"}'

Error Responses

403 Forbidden
{
  "success": false,
  "error": "Forbidden: you are not a member of this workspace.",
  "code": "NOT_A_WORKSPACE_MEMBER"
}

Sub-Distributors

Enterprise distributors running white-label programs can provision child sub-distributor tenants under their master organization. Each sub-distributor gets an isolated tenant identity, a dedicated branded short subdomain, custom brand accents, marketing pixels, and optional custom domains.

How Multi-Tenancy Works

Every provisioned sub-distributor receives a branded short subdomain (e.g. https://afrovibe.sya.to) and can optionally resolve links on its own verified custom domain.

Shared quota pool: all smart links created under child sub-distributors draw against your master enterprise monthly link quota. Sub-distributors do not manage billing or separate subscriptions.
POST/api/enterprise/v1/sub-distributors

Provision a new white-label sub-distributor tenant with a dedicated slug and branding. Requires an eligible tier (Growth or higher) and owner/admin role.

Request Body

ParameterTypeRequiredDescription
namestringRequiredCompany or brand name of the child distributor. Max 200 characters.
slugstringOptionalDesired subdomain handle for https://<slug>.sya.to. Lowercase letters and numbers only. Auto-generated from name if omitted.
link_domain_typestringOptionalDefault routing domain: "sya_to" or "custom". Defaults to "sya_to".
custom_domainstringOptionalDedicated white-label custom domain (e.g. music.clientdistro.com). Requires custom-domain tier entitlement.
distributor_display_namestringOptionalPublic footer and metadata label.
brand_colorstringOptionalBrand accent hex color (e.g. #DB2C2C).
brand_logo_urlstring (URL)OptionalDirect image URL for the child distributor logo.
website_urlstring (URL)OptionalApex redirect URL when a visitor navigates to the root domain.
meta_pixel_idstringOptionalMeta Pixel ID for conversion tracking on smart links.
tiktok_pixel_idstringOptionalTikTok Pixel ID.
google_tag_idstringOptionalGoogle Analytics / Tag Manager measurement ID (G-XXXXX).
preferred_store_orderstring[]OptionalOrdered list of DSP platform keys shown on public link pages.
webhook_urlstring (URL)OptionalHTTPS webhook URL for tenant-specific event forwarding.
webhook_secretstringOptionalSigning secret used to verify tenant webhook deliveries.

Request Example

JSON
{
  "name": "AfroVibe Records",
  "slug": "afrovibe",
  "brand_color": "#DB2C2C",
  "website_url": "https://afroviberecords.com"
}

Response (201 Created)

JSON
{
  "success": true,
  "data": {
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "name": "AfroVibe Records",
    "slug": "afrovibe",
    "subdomain_url": "https://afrovibe.sya.to",
    "link_domain_type": "sya_to",
    "custom_domain": null,
    "custom_domain_verified": false,
    "brand_color": "#DB2C2C",
    "is_active": true,
    "total_links": 0,
    "created_at": "2026-08-27T10:00:00.000Z"
  }
}

Error Responses

ParameterTypeRequiredDescription
403 UPGRADE_REQUIREDerrorOptionalTier does not include sub-distributor multi-tenancy.
403 SUB_DISTRIBUTOR_LIMIT_REACHEDerrorOptionalSub-distributor quota exhausted for your plan.
409 SLUG_TAKENerrorOptionalRequested slug is already in use.
409 DOMAIN_ALREADY_EXISTSerrorOptionalCustom domain already claimed by another sub-distributor.
GET/api/enterprise/v1/sub-distributors

List and filter all provisioned sub-distributor tenants under your enterprise account.

Query Parameters

ParameterTypeRequiredDescription
searchstringOptionalFilter by name, slug, custom domain, or display name.
statusstringOptional"all", "active", or "inactive". Defaults to "all".
sortstringOptional"newest", "oldest", or "name". Defaults to "newest".
pageintegerOptionalPage number (1-based). Defaults to 1.
limitintegerOptionalResults per page (max 100). Defaults to 20.

Response (200 OK)

JSON
{
  "success": true,
  "count": 1,
  "total": 1,
  "page": 1,
  "limit": 20,
  "totalPages": 1,
  "max_allowed": 5,
  "data": [
    {
      "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
      "name": "AfroVibe Records",
      "slug": "afrovibe",
      "subdomain_url": "https://afrovibe.sya.to",
      "link_domain_type": "sya_to",
      "custom_domain_verified": false,
      "is_active": true,
      "total_links": 42,
      "created_at": "2026-08-27T10:00:00.000Z"
    }
  ]
}

Individual Sub-Distributor Operations

GET/api/enterprise/v1/sub-distributors/:idRetrieve full settings, pixels, domains, and link stats.
PATCH/api/enterprise/v1/sub-distributors/:idUpdate name, slug, brand color, pixels, store order, redirect URL, or active status (any subset of the provision fields plus is_active). fan_email_notifications_enabled accepts true/false/null — null clears the override so release-day fan emails follow the account default.
DELETE/api/enterprise/v1/sub-distributors/:idDelete the tenant. If active smart links exist, it is safely deactivated to preserve live link resolution.

White-Label Custom Domain Setup

Sub-distributors can resolve smart links on their own custom domain or subdomain (e.g. music.clientdistro.com). Point a CNAME record at the Soundyaad routing network, then call the attach + verify endpoints.

TypeName / HostTarget / ValueTTL
CNAMEmusic (or @)cname.soundyaad.comAuto / 300
POST/api/enterprise/v1/sub-distributors/:id/domain

Attach a dedicated custom domain to a sub-distributor tenant. GET returns current config; DELETE removes it.

Request Body

ParameterTypeRequiredDescription
domainstringRequiredFully qualified domain or subdomain (e.g. music.afroviberecords.com).

Response (200 OK)

JSON
{
  "success": true,
  "message": "Custom domain configured for sub-distributor",
  "data": {
    "custom_domain": "music.afroviberecords.com",
    "custom_domain_verified": false
  },
  "dns_instructions": [
    { "type": "CNAME", "name": "music", "value": "cname.soundyaad.com" }
  ]
}
POST/api/enterprise/v1/sub-distributors/:id/domain/verify

Trigger an on-demand DNS check and SSL certificate provisioning for the tenant's custom domain.

Response (200 OK)

JSON
{
  "success": true,
  "verified": true,
  "custom_domain": "music.afroviberecords.com",
  "dns_instructions": []
}

Creating Smart Links Under a Sub-Distributor

When creating smart links via POST /api/enterprise/v1/smart-links, include sub_distributor_id or sub_distributor_slug in the payload:

JSON
// POST /api/enterprise/v1/smart-links
{
  "title": "Essence of Summer",
  "artist_name": "Wizzy",
  "sub_distributor_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "upc": "198003928172",
  "distributor_link": "https://open.spotify.com/album/..."
}

Health Check

GET/api/enterprise/health

Unauthenticated health check endpoint. Intended for uptime monitoring (e.g. Better Uptime, StatusCake). Checks database connectivity and payment provider reachability. No customer data is read or returned.

Response (200 OK: Healthy)

JSON
{
  "success": true,
  "status": "ok",
  "checks": {
    "database": true,
    "billing_provider": true
  },
  "response_time_ms": 42,
  "timestamp": "2026-07-29T10:30:00Z"
}

Response (503: Degraded)

JSON
{
  "success": false,
  "status": "degraded",
  "checks": {
    "database": true,
    "billing_provider": false
  },
  "response_time_ms": 120,
  "timestamp": "2026-07-29T10:30:00Z"
}

Status values: ok (all systems healthy),degraded (billing provider down, core API functional),down (database unreachable).

curl Example

curl "https://enterprise.soundyaad.com/api/enterprise/health"

Node.js Example

JavaScript
const res = await fetch("https://enterprise.soundyaad.com/api/enterprise/health");
const data = await res.json();
console.log(data.status); 140

Python Example

Python
import requests

res = requests.get("https://enterprise.soundyaad.com/api/enterprise/health")
data = res.json()
print(data["status"])  # "ok"

Try It

GET

Response Fields

FieldTypeDescription
successbooleanWhether all checks passed.
statusstringOverall status: ok, degraded, or down.
checks.databasebooleanWhether the database is reachable.
checks.billing_providerbooleanWhether the Bachs billing API is reachable.
response_time_msintegerTime taken to run all checks in milliseconds.
timestampstring (ISO 8601)When the check was performed.

Reference

Rate Limits

API Requests

100 requests per minute per customer. The 429 response body includes a retryAfter field (seconds).

DSP Resolution

1 request per 30 seconds per link.

Rate Limit Response Headers

Every API response includes these headers so you can proactively throttle requests before hitting the limit:

ParameterTypeRequiredDescription
X-RateLimit-LimitintegerOptionalMaximum requests allowed in the current window (100).
X-RateLimit-RemainingintegerOptionalRequests remaining in the current window. Decrements with each request.
X-RateLimit-ResetintegerOptionalUnix timestamp (seconds) when the current window resets and the count returns to full.
Retry-AfterintegerOptionalOnly present on 429 responses. Seconds until you can make another request.
JSON: 429 Response Body
{
  "success": false,
  "error": "Rate limit exceeded. Too many requests.",
  "retryAfter": 42,
  "request_id": "550e8400-e29b-41d4-a716-446655440000"
}

Error Response Format

JSON
{
  "success": false,
  "error": "Parameter 'title' is required"
}

HTTP Status Codes

200: Success (or idempotent duplicate)
201: Created
202: Accepted (async processing started)
400: Bad request (missing/invalid parameters)
401: Unauthorized (invalid/expired token or key)
403: Forbidden (account disabled or wrong role)
404: Not found
429: Rate limit exceeded
500: Internal server error
503: Service unavailable (health check degraded)

Common Error Responses

401 Unauthorized
{
  "success": false,
  "error": "Invalid or missing API key"
}
403 Forbidden
{
  "success": false,
  "error": "Account is disabled or access denied"
}
429 Too Many Requests
{
  "success": false,
  "error": "Rate limit exceeded. Retry after 42 seconds.",
  "retryAfter": 42
}

Error Message Reference

Common error messages returned by the API and their likely causes.

ParameterTypeRequiredDescription
Parameter 'title' is required400OptionalThe title field is missing in the request body for create/update.
Invalid or missing API key401OptionalThe x-api-key header is missing or the key doesn't match any record.
Unauthorized: invalid or expired token.401OptionalDashboard session JWT is expired. Re-authenticate.
Unauthorized: api key has expired.401OptionalThe API key's expires_at date has passed. Generate a new key.
Forbidden: account is disabled.403OptionalEnterprise account is deactivated. Contact support.
Forbidden: owner access only.403OptionalEndpoint requires owner role. Manager/viewer/API key cannot access.
Forbidden: read-only access.403OptionalA write method (POST/PATCH/DELETE) was used with a read-only API key or viewer role.
Forbidden: API key not allowed from this IP address.403OptionalRequest IP is not in the key's allowed_ips list.
Forbidden: API key missing required scope 'smartlinks:write'.403OptionalThe API key lacks the scope needed for this operation.
Payment required. Your subscription is not active.402OptionalSubscription is cancelled/past_due and grace period has ended. Writes are blocked.
Smart link not found or already archived404OptionalThe UUID or slug doesn't exist or was archived.
No UPC, ISRC, or source link available for resolution400OptionalCannot trigger DSP resolution without a UPC, ISRC, or source link.
Rate limit exceeded. Too many requests.429OptionalMore than 100 requests/min. Check Retry-After header.
brand_color must be a valid hex color (e.g. #E50914).400OptionalHex color validation failed on PATCH /account.
webhook_url must use HTTPS.400OptionalWebhook URLs must use HTTPS scheme. A separate message "webhook_url must be a valid HTTPS URL." is returned for malformed URLs.
Too many reset attempts. Please try again later.429OptionalPassword reset rate limit (5 per hour) exceeded.
Internal server error.500OptionalUnexpected server error. Include X-Request-Id when contacting support.

Request Correlation

Every response includes an X-Request-Id response header. Pass your own X-Request-Id request header to have it echoed back, or one is generated for you. Include this ID when contacting support about a specific request.

Idempotency Keys (`Idempotency-Key` Header)

The Soundyaad Enterprise API supports idempotency headers on write requests (POST, PATCH) to safely handle network retries without generating duplicate smart links or consuming extra quota slots.

ParameterTypeRequiredDescription
Idempotency-Keystring (UUID)OptionalUnique identifier for the request intent generated by your client application. Max 128 chars.
Expiration (TTL)24 hoursOptionalCached execution results are stored for 24 hours. Retries with the same key return identical responses.
In-Flight Lock (409)409 ConflictOptionalIf a duplicate request arrives while the first is still processing, the API returns 409 Conflict with Retry-After header.
Deduplication Fallback200 OKOptionalRequests with matching client_release_id or upc automatically return existing link details safely.

Sending an Idempotent Request (cURL)

curl
curl -X POST https://enterprise.soundyaad.com/api/enterprise/v1/smart-links \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -H "Idempotency-Key: 7b9e1d2f-4a3b-4c5d-8e9f-0a1b2c3d4e5f" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Midnight Drive",
    "upc": "0123456789012"
  }'

API Versioning

The Soundyaad Enterprise API is currently at v1. Versioned endpoints are prefixed with /api/enterprise/v1/. Non-versioned endpoints (e.g. /api/enterprise/account,/api/enterprise/billing/*) are considered stable and follow additive-only changes.

ParameterTypeRequiredDescription
Additive changes-OptionalNew fields, endpoints, and parameters may be added at any time without a version bump. Your client must ignore unknown fields gracefully.
Breaking changes-OptionalRemoving fields, changing types, or altering behavior requires a new major version (v2). The previous version will be maintained for at least 6 months with a deprecation notice.
Deprecation notice-OptionalWhen a new version is released, the old version endpoints will return a Deprecation header (Sunset date). We will notify you via email at least 90 days before sunset.
Beta endpoints-OptionalEndpoints marked as Beta may change without a version bump. Avoid using Beta endpoints in production.

Data Types

ParameterTypeRequiredDescription
UUIDstringOptionalRFC 4122 UUID v4. Example: "550e8400-e29b-41d4-a716-446655440000".
ISO 8601 datestringOptionalDate in YYYY-MM-DD format. Example: "2026-08-15".
ISO 8601 datetimestringOptionalTimestamp in UTC with timezone suffix. Example: "2026-07-29T10:30:00Z". All timestamps are UTC.
booleanbooleanOptionalJSON true or false. Not 1/0 or "true"/"false".
nullnullOptionalJSON null indicates the field has no value. Nullable fields are marked as "or null" in response field tables. When updating, send null to clear a field (where supported).
integerintegerOptionalWhole number. Example: 42.
numbernumberOptionalDecimal number. Example: 25.00.
string (URL)stringOptionalFully qualified URL with scheme. HTTPS required for webhook URLs.
string (hex)stringOptionalHex color code. Example: "#E50914". Must match /^#[0-9a-fA-F]{6}$/.
string[]arrayOptionalJSON array of strings. Example: ["smartlinks:read", "smartlinks:write"].

IP Allowlisting

Restrict API key usage to specific IP addresses for added security. When an allowlist is set, requests from IPs not on the list will receive a 403 response.

ParameterTypeRequiredDescription
allowed_ipsstring[]OptionalArray of IPv4 or IPv6 addresses. Max 10 IPs per key. null or omitted = no restriction.
Validation-OptionalIPs are validated using Node.js net.isIP(). Both IPv4 (e.g. "52.14.1.10") and IPv6 (e.g. "::1") are accepted.
Setting via API-OptionalPass allowedIps in the POST /api/enterprise/v1/keys request body when creating a key.
Setting via dashboard-OptionalUse the API Keys settings page to manage IP allowlists for existing keys.
POST: Create key with IP allowlist
curl -X POST "https://enterprise.soundyaad.com/api/enterprise/v1/keys" \
  -H "x-api-key: sy_ent_yourcompany_..." \
  -H "Content-Type: application/json" \
  -d '{
    "keyName": "Production Server",
    "allowedIps": ["52.14.1.10", "52.14.1.11"],
    "scopes": ["smartlinks:read", "smartlinks:write"]
  }'

Tier Features

FeatureStarterGrowthProUnlimited
Monthly links5001,5005,00025,000
API keys351010
Custom domainNoYesYesYes
Hide brandingNoNoYesYes
WebhooksYesYesYesYes
Analytics history30 days1 yearUnlimitedUnlimited
Fan data history30 days1 yearUnlimitedUnlimited
Team membersNoNo3Unlimited

Changelog

v1.38

Artist Identity Hardening

November 19, 2026
Improved
  • Roster dedupe upgraded: artist matching now uses the same alphanumeric-normalized key as DSP profile matching, so punctuation/case variants ("Nata!" vs "Nata", "dj_hallad" vs "Dj hallad") resolve to one artist.
  • Primary-artist resolution: credited names with featuring markers (feat./ft./with/vs.) or comma-separated lists resolve to the primary artist instead of creating a separate roster entry.
  • Roster cleanup: artist rows with zero releases and zero store identities are hidden from the roster and swept automatically at the end of a backfill run.
Fixed
  • artist_name no longer defaults: smart-link creation previously attributed unnamed releases to "Various Artists" (single endpoint) or the account name (batch). Omit it now and the release stays unattributed until resolution identifies the artist.
  • Smart Upsert rename: resubmitting a release with a new artist_name now re-resolves the roster artist, matching the batch and single-release update endpoints.
  • Roster sort=created_at: now sorts in the database as documented instead of silently falling back to name order.
v1.37

Fan Name Capture

December 8, 2026
Added
  • fan_capture_name_mode account setting: controls whether smart-link signup forms ask for the fan's name at first touch — hidden (default), optional, or required. Set via PATCH /api/enterprise/account or Defaults → Fan Capture.
  • Progressive profiling: fans who join without a name are now asked once after capture ("What should {artist} call you?"), whichever mode is configured. Presave and post-presave dialogs also carry an optional name field.
v1.36

Richer Fan List Filters

December 5, 2026
Added
  • artist_id on GET /v1/fans: filters the list to fans who signed up on any release of one enterprise artist.
  • channel on GET /v1/fans: comma-separated first-touch channel keys; the direct token selects fans with no recorded channel.
  • Multi-value release_id and country: both now accept comma-separated lists. All filters apply to the JSON list, ?format=csv, and POST /v1/fans/export.
Fixed
  • release_id now matches any saved release: it previously filtered on the fan's first-touch release only, so fans who joined elsewhere and later saved the release were missed.
v1.35

Exact Dashboard Analytics

December 4, 2026
Improved
  • GET /api/enterprise/dashboard/analytics is now a single server-side aggregation: breakdowns are computed exactly over the full window — no 10k event sampling. events_truncated and unique_views_approx are retained for compatibility and are always false; events_sampled is the exact number of events in the window.
  • previous.unique_views is now period-distinct visitors: it was a sum of per-day uniques, so the Unique Visitors delta now compares like with like.
Fixed
  • Traffic source Twitter grouping: now matches t.co, twitter.com and x.com — previously twitter.com was listed separately, and reddit.com/pinterest.com could be misfiled as Twitter.
v1.34

Normalized Label Names

December 3, 2026
Fixed
  • label values are normalized: upstream metadata sometimes supplies the phonographic copyright line (e.g. 2025 TXC Enterprises (PTY) LTD, under exclusive license to LVRN Records) instead of a label name. label on GET /v1/artists, GET /v1/artists/{id}, and values accepted by PATCH /v1/smart-links/{id} are now normalized to the rights-holder name — copyright markers, leading years, and license/distribution clauses are stripped.
v1.33

Artist-Scoped Analytics & List Sorting

December 2, 2026
Added
  • artist_id on GET /api/enterprise/dashboard/analytics: scopes every metric — totals, previous-window deltas, top links, fan counts, and breakdowns — to one roster artist's releases. Combinable with sub_distributor_id; non-UUID values return 400.
  • dir on GET /v1/fans: asc|desc for the default created_at ordering — honored on the JSON list, filtered/resolved-id paths, and the ?format=csv export. Ignored when sort=releases_saved.
  • sort=superfans on GET /v1/artists: ranks the roster by the superfan rollup (fans with 2+ saved releases) alongside the existing fans/releases sorts.
v1.32

Precise Fan Acquisition Links

November 27, 2026
Added
  • via.source_url: every per-save via object on GET /v1/fans/{id} now carries the exact capture-page URL recorded at signup (fan_events.metadata.source_url).
  • first_touch.capture_url & first_touch.slug: the fan's first touch now resolves to the precise public link they signed up on (e.g. label.sya.to/agba-singing) — the recorded source URL when present, else capture host + slug, else the release's canonical smart link. The dashboard shows this link instead of the bare capture subdomain.
Fixed
  • Non-release first touches: first_touch previously only considered signup events carrying a release_id, so fans acquired on artist pages or Vault surfaces showed no origin. The earliest signup event of any page_type now wins (release_id/title are null for non-release surfaces).
v1.31

Analytics Correctness & Sampling Transparency

November 25, 2026
Fixed
  • Boundary-day drop: dated-range charts seeded one bucket per calendar day, but the window is days×24h and touches one extra partial date — boundary-day views, clicks and fans counted in totals yet vanished from the chart. Buckets now cover every date the window touches.
  • Vault signups mis-bucketed: page_type='vault' writes source='presave_link' at capture, so vault captures were counted as smart links in fans_by_source. Any non-release/artist page_type now lands in other.
  • Duplicated artist-page signups: on catalogs over ~150 releases the null-release fan-event lookup ran once per ID chunk, multiplying artist-page UTM/referrer counts. Null-release events are now fetched exactly once (and skipped under sub_distributor_id, which can't attribute them).
  • Previous-window retention leak: on 30-day-retention tiers, a 90d request clamps to 30d — its "previous" window then sat entirely outside retention, producing fabricated deltas or leaking pre-retention data. previous is now null whenever the prior window would extend beyond the retention floor.
  • unique_views denominator: it summed per-day rollup uniques, counting a returning visitor once per day. It is now a period-distinct visitor_id count from the same event sample the outcome split uses — matching denominators for clicked_store_pct and fan_capture_pct.
  • Missing release markers: releases without release_date silently produced no timeline marker — created_at is now the documented fallback.
  • Invalid sub_distributor_id: non-UUID values hit PostgREST as a type error (500) — they now return 400 with a message.
Added
  • previous.unique_views: period-over-period delta for unique visitors.
  • events_truncated/events_sampled/unique_views_approx: sampling transparency flags — when the 10k event cap binds, the response now says so instead of silently charting a partial window.
v1.30

Executive Analytics: Outcome Split, Period Deltas & Print Report

November 24, 2026
Added
  • outcome on GET /api/enterprise/dashboard/analytics: unique-visitor outcome split — store_clickers (distinct visitors with a click), clicked_store_pct, fan_capture_pct, no_action_pct. Click and fan rates are measured independently rather than as a sequence, since fan events carry no visitor_id.
  • previous window totals: dated ranges now return prior equal-length views/clicks/fans_captured for period-over-period deltas. null on range=all — all-time has no honest comparison period.
  • release_markers[]: every catalog release dated inside the window (release_id, title, date) so traffic can be read against release days.
  • fans_by_artist[] & fans_over_time[]: distinct captured fans per roster artist (release-attributed) and a new-fans-per-bucket series aligned to the timeseries granularity.
  • Printable report: /enterprise/dashboard/analytics/report renders a print-optimized executive summary (KPI band with deltas, outcome split, capture attribution, traffic detail) — the Report button on the Analytics page opens it for the active range.
Improved
  • Dashboard redesign: the Analytics page now leads with a visitor outcome split instead of a linear funnel — store clicks and fan signups are alternative outcomes, not stages. Stat cards show period deltas on dated ranges, the timeline flags release days, and breakdowns are channel-colored with brand icons.
  • Capture-surface labels: the fan-source split is labeled Smart links / Artist pages / Other — presave_link is a legacy field name, not all smart links are pre-save links. Vault signups now bucket correctly by page_type instead of masquerading as link captures.
  • Channel attribution: UTM tags and browser-reported referrers resolve to channel identities (t.co + twitter.com → X / Twitter) at render time; internal hosts (*.sya.to, verified custom domains) are excluded from external sources.
Fixed
  • Denominator consistency: the fan-source split now sums exactly to totals.fans_captured — each captured fan attributes once (earliest in-window signup) and eventless fans (imports, API captures) fold into Other instead of silently under-counting.
  • Single-slice donut guard: a one-slice capture split renders as a metric, not a circle around a number.
v1.29

Fan CRM Hardening: Tenant Column, PII Minimization & Consent Integrity

November 23, 2026
Added
  • fans:pii capability: raw fan contact fields are now a declared capability. Owner/manager/admin sessions and owner-issued API keys keep raw email/phone/primary_contact; viewer sessions receive masked values (j•••@gmail.com) plus pii_masked: true on list, artist-fans, and detail responses.
  • Human-readable CSV columns: fan exports (sync ?format=csv and async POST /v1/fans/export) now include release_title and sub_distributor columns alongside the raw UUIDs.
  • Fan detail depth: GET /v1/fans/{id} now returns per-save via attribution (page type, UTM, capture host, external referrer), artist_name per release, first_touch, last_activity_at, consent evidence (consent_version/consent_text/consent_captured_at), unsubscribed_at, and the owning sub_distributor.
  • Update auditing: PATCH /v1/fans/{id} writes an enterprise.fans.update audit-log entry recording which consent flags and tags changed.
Improved
  • Tenant-isolated fan events: fan_events rows now carry enterprise_customer_id directly (backfilled from the owning release; written at capture). Every fan-activity read — list counts, min_releases, detail history, artist fan discovery, dashboard analytics — filters on the tenant column in addition to the release-set join.
  • Search minimization: ?search= matches email/phone only for roles with fans:pii; viewer search is name-only so it cannot confirm a specific contact's presence in the database.
Fixed
  • PATCH authorization: PATCH /v1/fans/{id} previously ran without a role check — any session role (including read-only viewer) could flip consent flags and attach tags. It now requires the dedicated fans:write capability (manager/owner), matching the erasure gate.
  • Unsubscribe integrity: setting email_allowed: true is now ignored when a fan_unsubscribes tombstone exists — the same rule the capture bridge applies, so an explicit opt-out can't be reversed from the dashboard.
  • Cross-artist tag guard: tag display now verifies each fan_tag_links row's tag belongs to the fan's own artist — a malformed link can no longer surface a foreign artist's tag label.
v1.28

Artist Roster & Superfan Ranking

November 14, 2026
Added
  • Artist roster API: GET /v1/artists, GET /v1/artists/{id}, GET /v1/artists/{id}/releases, and GET /v1/artists/{id}/fans. Every smart link now resolves to a customer-scoped artist entity — automatically by store artist profile (Spotify/Apple artist IDs) when DSP resolution finds one, otherwise by normalized name.
  • Roster backfill: POST /v1/artists/backfill links pre-existing releases to artist entities and enriches identity (store IDs, artwork, label) from cached resolution data. Idempotent.
  • Superfan ranking: GET /v1/fans?sort=releases_saved ranks fans by distinct saved releases — including inside min_releases cohorts — with correct pagination.
  • Artist-scoped fan history: GET /v1/fans/{id}?artist_id=… scopes releases_saved and the release history to a single artist.
v1.28

Fan Email Notifications Toggle

November 22, 2026
Added
  • fan_email_notifications_enabled account switch: PATCH /api/enterprise/account accepts a boolean (default true). When false, presave fans stop receiving automatic release-morning emails across every link on the account — fans are still captured, DSP autosaves still run, and suppressed fans are never retro-emailed if you turn it back on.
  • Per-workspace override: PATCH /v1/sub-distributors/:id accepts fan_email_notifications_enabled as true/false/null — null clears the override and inherits the account default. GET on both endpoints returns the current value.
  • Dashboard toggles: the switch lives under Defaults → Fan Capture (account default) and the sub-distributor Manage drawer (per-workspace Inherit / On / Off).
v1.27

Fan CRM: Superfan Filters & Saved Releases

November 13, 2026
Added
  • Fans list filters: GET /v1/fans (and the ?format=csv and POST /v1/fans/export paths) now accept min_releases (distinct saved-release threshold, e.g. 2 for superfans), has_whatsapp (phone present + WhatsApp opt-in), and has_email (email present + email opt-in).
  • releases_saved: every fan row now carries the count of distinct releases that fan saved — in the JSON list, CSV export column, and fan detail response.
  • Fan detail releases history: GET /v1/fans/{id} returns the fan's saved releases (up to 50, most recent first) with release_id, title, slug, and saved_at.
Improved
  • Fan list scale: tag and min_releases filters that resolve to very large fan-id sets are now chunked server-side — no request-size limit on filtered lists, CSV, or async exports.
  • Export downloads: GET /v1/fans/export/{export_id} re-mints a fresh 24h signed download_url on every poll, so links fetched after completion never expire.
  • Sync CSV parity: GET /v1/fans?format=csv now shares the async export's tighter rate-limit bucket and writes the same enterprise.fans.export audit-log entry.
Fixed
  • No silent empty results: backend lookup failures in fan list/detail resolution now return 500 instead of an empty list or zeroed counts.
  • date_to inclusive: a bare YYYY-MM-DD value now covers the whole day (through 23:59:59.999 UTC) instead of cutting off at midnight.
v1.26

Multi-Workspace Switcher & Shared Permission Matrix

November 13, 2026
Added
  • GET /api/enterprise/workspaces: lists every workspace the session user belongs to — owned workspaces plus active team memberships — with role, tier, billing access state, and the currently active selection. Session-authenticated; API keys always resolve to their single workspace.
  • POST /api/enterprise/workspace/switch: persists the active workspace in the enterprise_workspace httpOnly cookie (Bearer clients can use the x-enterprise-workspace header). The target is re-validated against real ownership/membership on every request — a stale or forged selection falls back to the default workspace and can never grant foreign access. Rate limited.
  • Dashboard workspace switcher: users who own or belong to multiple workspaces get a switcher in the dashboard header showing each workspace with its role badge; single-workspace users see the unchanged account pill.
  • Shared permission matrix: role gating across enterprise routes is now driven by one declarative capability map (src/lib/enterprisePermissions.ts) shared by the API wrapper and the dashboard UI — server and client can no longer drift on what owner/manager/viewer/api-read/api-write may do.
v1.25

Authenticated Workspace Creation

November 13, 2026
Added
  • POST /api/enterprise/workspaces: session-authenticated workspace creation for accounts that already exist — including OAuth-only users with no password, who previously hit a "contact support" 409 on public signup. Free-tier workspaces activate instantly with the 3-link trial grant; paid tiers create a pending workspace for the session email and return a Bachs checkout_url that flows through the existing /enterprise/activate path, binding users.id on payment.
  • Signup conflict recovery: when a signed-in user hits the "account already exists" 409 on /enterprise/signup, the page now offers a one-click "Create workspace as you" action instead of a support dead-end.
  • Pending signup adoption: a verified signed-in session can resume an abandoned pending signup created for the same email, or link an unclaimed admin-created workspace — no support ticket required.
v1.24

Owner Invite Link Sunset

November 13, 2026
Added
  • Legacy invite self-heal: POST /api/enterprise/invite/legacy-refresh accepts the invite_id from a deprecated ?invite=<uuid> email link and, when it still names a pending admin invite, mails a fresh single-use 72-hour token link to the owner. Responses are always generic and the endpoint is rate limited (3 per invite / 10 per IP per hour) so it cannot enumerate pending invites. The signup page calls it automatically when a legacy link is opened.
Deprecated
  • Bare-UUID owner invites removed: POST /api/enterprise/signup no longer activates via inviteId — owner invites now require the inviteToken from the emailed link, and legacy ids return 410 LEGACY_INVITE_EXPIRED. The GET /api/enterprise/invite?id=<uuid> lookup was removed in favor of ?token=.
v1.23

Free Trial Links & Post-Payment Activation

November 17, 2026
Added
  • 3 free smart links: every new pay-as-you-go workspace — and existing free workspaces that never held credits — now starts with 3 standard link credits on sya.to. No card required; once exhausted, the normal credit-pack/upgrade path applies. Verified custom domains still require domain credits.
  • Post-payment activation: subscription checkout now returns to /enterprise/activate, which polls GET /api/enterprise/activate while the webhook activates the workspace — then signs the owner in and drops them on the dashboard. Expired or invalid tokens fall back to sign-in.
  • Import history: GET /v1/smart-links/imports lists your catalog CSV imports newest-first with aggregate counters and progress. The dashboard gains an Imports page (Smart Links → Imports) that polls this endpoint — in-flight imports now surface live progress and per-row errors instead of disappearing into the background.
Improved
  • Onboarding gate: free workspaces with usable credits (trial grant or purchased packs) now unlock the dashboard without buying a pack first. A verified custom domain parks standard credits, so the gate uses the usable pool, not the raw total.
v1.22

Security Hardening

November 13, 2026
Fixed
  • Fan PII export restricted: POST /v1/fans/export, GET /v1/fans/export/:export_id, and the GET /v1/fans?format=csv fast path now require the owner or manager role. Viewer sessions and API keys receive 403.
  • Signup account protection: POST /api/enterprise/signup no longer sets a password on existing password-less (OAuth) accounts — it returns 409 with sign-in guidance instead.
  • Custom-domain takeover closed: signup rejects domains already claimed by another workspace, and unverified domains no longer resolve on the public release router.
  • Artwork URL hardening: remote artwork_url fetches now block private/internal IPs, validate every redirect hop, and only accept JPEG/PNG/WebP verified by magic bytes.
  • URL scheme validation: artwork_url and distributor_link accept only http(s) URLs.
  • Invite & checkout-resume tokens: owner invites now carry single-use, SHA-256-hashed tokens that expire after 72 hours (legacy ?invite=<id> links keep working during the transition), and resuming a pending paid signup requires the issued checkout_token — knowing the workspace email alone can no longer overwrite pending credentials.
  • Honest prepaid billing copy: signup, pricing, onboarding, and billing surfaces now describe non-USD plans as one-time prepaid periods (30 days monthly / 12 months yearly) instead of recurring monthly billing, and payment receipts label the date Paid access until instead of Next billing date. USD plans keep recurring labels.
  • Corrected custom-domain lapse behavior: lifecycle emails, the cancellation dialog, and the billing page now state that links on your custom domain pause after the 72-hour grace period and resume on renewal, while sya.to links and the dashboard stay live — matching actual resolver behavior.
Added
  • Prepaid renewal reminders: manual-renewal (non-USD) plans now get owner emails 7, 3, and 1 days before current_period_end, riding the existing enterprise_lifecycle_notices cron lane with no new infrastructure. The day-3 reminder emits the subscription.expiring webhook in place of the generic expiring notice; day-7 and day-1 are email-only. A billing-page banner now warns prepaid customers to renew before the period ends to keep custom-domain links live.
Improved
  • Fan exports audited: each export request now writes an enterprise.fans.export audit-log entry.
  • API key display: key_prefix now shows the key's stable prefix plus its last 4 characters.
  • Cron authentication: cron endpoints authenticate via the x-cron-secret header only, compared in constant time.
v1.21

Scoped Slug Namespaces, Renames & Vanity Aliases

November 12, 2026
Added
  • Slug rename: PATCH/PUT /api/enterprise/v1/smart-links/:id accepts slug. The old slug is recorded in release_slug_entries and permanently permanent-redirects to the new canonical URL — existing shares keep working. Conflicts return 409 SLUG_TAKEN with a suggestion.
  • Vanity aliases: add_aliases/remove_aliases attach extra URLs that permanently redirect to the canonical link; retire_slugs frees old slugs. GET :id now returns slug_entries with per-entry hit counters.
  • Scoped namespaces: slugs are unique per owner — enterprise account, sub-distributor, or artist — instead of globally. Two owners may share a slug; bare-domain hits resolve only when unambiguous.
Improved
  • link.updated webhook: payload now includes old_slug, aliases_added, and retired_slugs when slugs change.
  • Sub-distributor reassign guard: moving a link across namespaces now fails with SLUG_CONFLICT_ON_REASSIGN instead of silently colliding.
v1.20

Needs Attention Feed & Capacity-Aware Dashboard

November 16, 2026
Added
  • Attention feed: new session-authenticated GET /api/enterprise/attention returns stable-keyed operational conditions (credit pools, domain verification, link resolution, webhook circuit, subscription state) with severities — the dashboard generates notification entries from it and auto-resolves them when conditions clear.
  • Recent-link resolution status: GET /api/enterprise/dashboard/overview recent links now include resolution_status.
Improved
  • Header capacity chip: shows the usable balance that actually gates link creation — domain credits when a verified domain is live on free tier, standard + domain otherwise — and opens the notification panel where both pools and the active-pool rule are explained.
  • Dashboard attention strip: the overview renders the same computed conditions as an actionable list, so low credits, unverified domains, failed resolutions, and subscription issues surface before they block work.
  • Account response: GET /api/enterprise/account now returns id on the account object.
v1.19

Prepaid Period Billing for Non-USD Currencies

November 11, 2026
Added
  • Local-currency plan checkout: enterprise plan checkout in NGN and other non-USD currencies now works — previously it failed at the provider (NGN_SUBSCRIPTIONS_NOT_AVAILABLE) because Bachs bills subscriptions on USD cards only. Non-USD billing now checks out as a one-time prepaid period that activates the tier for the selected cycle.
  • subscription_payment_mode: GET /api/enterprise/billing/subscription returns recurring (USD billing) or prepaid (all other currencies) so dashboards can label plan purchase accurately.
Improved
  • Manual renewal semantics: prepaid customers re-pay each cycle; early same-tier renewals stack onto the live window, tier changes start immediately, and prepaid windows run the same 72-hour grace/expiry lifecycle as provider-billed subscriptions.
v1.18

Credit Pool Hardening & CSV Imports

November 15, 2026
Added
  • Total links counter: GET /api/enterprise/v1/usage now returns links.created_total — links created this period across quota AND credit funding. On free tier links.used stays 0 (no monthly quota); read created_total for real activity.
  • Low-credit notifications: workspaces get a "credits running low" email when a claim drains their usable pool to ≤10 credits (domain pool only while a verified domain is live on free tier). The flag resets on every credit purchase.
Improved
  • CSV imports spend credits: POST /v1/smart-links/batch-csv now funds rows from the same quota→credit pipeline as JSON batches. Free-tier workspaces can import against credit balances; each imported link is stamped with its funding pool so archiving refunds correctly. The preflight check returns needs_domain_credits + pool balances when capacity is short.
  • Verified-domain gating: the domain-credit guardrail now keys on custom_domain_verified — an attached-but-unverified domain no longer parks standard credits, since links still serve sya.to. needs_domain_credits everywhere reflects the verified state.
Fixed
  • Batch pool attribution: batch-created links are now stamped in the same order the claim filled the pools — standard-first when no domain is live, domain-first when one is — so archive refunds always return to the funding pool.
v1.17

Standard & Domain Credit Pools

November 14, 2026
Added
  • Two credit pools: prepaid credits now split into standard credits (₦100/link — sya.to links) and domain credits (₦150/link — a superset that powers links anywhere, including custom domains). GET /api/enterprise/v1/usage returns credits.standard, credits.domain, credits.needs_domain_credits, and per-pool prices (standard_price_ngn, domain_price_ngn); GET /api/enterprise/account exposes link_credits_standard / link_credits_domain.
  • Pack pool selection: POST /api/enterprise/billing/link-packs accepts an optional pool field (standard | domain) — the server prices the pack by pool, not by client-supplied pricing.
Improved
  • Domain consumption guardrail: pay-as-you-go workspaces with a custom domain attached spend domain credits only — standard credits park until the domain detaches. Quota-exceeded responses (429) now include link_credits_standard, link_credits_domain, and needs_domain_credits so clients can name the right pack.
  • Pool-accurate refunds: every link records the exact pool it consumed; archiving or failed inserts refund standard/domain pools independently — no cross-pool leakage.
  • Cancellation reason: DELETE /api/enterprise/billing/subscription accepts an optional reason body field (too_expensive | not_enough_features | switching_alternative | temporary_pause | other) — stored on the cancellation billing event and audit log.
v1.16

Store Resolution Visibility, Pixels & Domains for All Plans

November 13, 2026
Added
  • Resolution summary: GET /api/enterprise/v1/smart-links/:id now returns a resolution block — status, resolved_count, searching, pending_jobs, and last_error. List rows expose resolved_count and searching too.
  • Meta Conversions API: set meta_capi_token via PATCH /api/enterprise/account and fan captures send a server-side Lead event to your Meta pixel, deduplicated against the browser event by event_id. GET /account exposes meta_capi_token_set (never the raw token).
Improved
  • Custom domains on every plan: Starter now joins Growth, Pro, Unlimited, and free pay-as-you-go — all tiers can configure a custom domain. Free workspaces pay ₦150/link on credit packs with a domain configured; paid plans include the domain at no extra cost.
  • Branded onboarding: free workspaces now pick where links live before paying — Soundyaad subdomain at ₦100/link or their own domain at ₦150/link — with an explicit detach path when switching to the subdomain.
  • Update response field: PATCH responses now return resolution_note instead of resolution — the key now consistently carries the structured resolution summary across endpoints.
v1.15

Free Pay-As-You-Go Tier

November 11, 2026
Added
  • Free tier: sign up with no subscription — workspace activates instantly, buy prepaid link packs and pay per link created. Free workspaces can configure a custom domain, workspace logo, and website link at signup or later in account settings.
  • Domain pricing: link credits are ₦100/link by default; free-tier workspaces with a custom domain configured pay ₦150/link on pack purchases. Paid tiers always pay ₦100 — the domain is bundled in the plan.
Improved
  • Signup without checkout: POST /api/enterprise/signup with tier: 'free' creates and activates the workspace immediately — no payment redirect. Optional custom_domain, website_url, and brand_logo_url fields are accepted at signup for all tiers.
  • Subscription response: GET /api/enterprise/billing/subscription now returns link_price_ngn — the workspace's effective per-link price after domain pricing and any negotiated override.
  • Onboarding gate: free workspaces land on /enterprise/onboarding until they hold usable credits, buy a credit pack, or upgrade — the dashboard unlocks when onboarding_completed_at is set or a usable credit balance exists (exposed on GET /api/enterprise/account).
  • Checkout return_url: POST /api/enterprise/billing/link-packs and PATCH /api/enterprise/billing/subscription accept an optional same-site return_url; success returns with ?checkout=success, cancellations with ?checkout=cancelled.
v1.14

Prepaid Link Credits

November 10, 2026
Added
  • Prepaid link credits: POST /api/enterprise/billing/link-packs opens a Bachs checkout for credit packs at ₦100/link. Credits never expire and are consumed automatically once the monthly tier quota is exhausted — no upgrade required for burst months.
  • Usage credit fields: GET /v1/usage now returns a credits block — balance, used_this_period, total_available, and buy_url.
  • 429 top-up hints: quota-exceeded responses now include link_credits and buy_links_url so integrators can deep-link customers into a top-up instead of an upgrade.
Improved
  • Pool-aware refunds: archiving a smart link returns the slot to the pool it was created from — credit-funded links refund a credit, quota-funded links restore the monthly slot.
  • Batch quota claims: POST /v1/smart-links/batch claims its whole batch atomically across quota then credits, and releases unclaimed slots when items are skipped, updated, or fail to insert.
v1.13

Richer Update Responses & Distributor Fields

October 26, 2026
Added
  • New update fields: PATCH/PUT /v1/smart-links/:id now accepts label, distributor, and copyright, and release_date can be cleared with null or an empty string.
  • Update response parity: the response now returns the full updated resource plus updated_fields (exactly what was applied) and resolution — whether platform links were re-queued or left untouched.
Improved
  • Distributor-of-record baseline: fields set via PATCH become the authoritative baseline for DSP sync — upstream metadata updates can still land later without the field freezing permanently.
  • link.updated payload: updated_fields now lists public field names only (artist_name, release_type, …) instead of internal column names.
v1.12

API Key Scope Parity, Batch Hardening & Analytics

October 20, 2026
Improved
  • API key scope coverage: x-api-key authentication now supports /v1/usage, /v1/sub-distributors*, /catalog-lookup, /upload/artwork, and fans:write / fans:read export operations.
  • Smart link updates: PATCH/PUT /v1/smart-links/:id now supports updating release_type and status, and GET /v1/smart-links/:id/analytics honors ?range=7d|30d|90d.
Fixed
  • Batch endpoint parity: POST /v1/smart-links/batch now accepts artist_name, emits canonical .sya.to URLs, increments monthly link usage, and marks supplied artwork as manual overrides.
v1.11

Instant Artwork Overrides

October 16, 2026
Added
  • POST/DELETE /smart-links/:id/artwork: Push new cover art (base64 upload or remote URL) and it appears on the smart link immediately — ahead of or independent of DSP ingestion. The image is re-hosted on our CDN, marked as your override, and never overwritten by metadata sync. DELETE reverts to DSP-sourced art on the next sync. Dashboard users get the same control from the smart-link detail page.
Improved
  • Artwork ownership: artwork_url set via PATCH now marks the field artwork_source = manual (previously external) and proxies the image to our CDN, so your artwork survives DSP sync and dead origin URLs.
v1.10

Webhook Signature Compatibility

October 14, 2026
Improved
  • Signature format compatibility: Endpoints can now opt into a bare hex X-Soundyaad-Signature header (no sha256= prefix) for receivers that compare the digest literally. The documented sha256=<digest> format remains the default for all endpoints.
v1.9

Link Resolution Reliability

September 25, 2026
Fixed
  • Union resolution: Link resolution now merges the source-URL, UPC, and ISRC lookups into one result set, so majors surfaced by the identifiers (Apple Music, Deezer, YouTube) are no longer dropped when a source URL returns a smaller set.
  • No more vanishing links: DSP sync only removes a platform link it previously observed upstream — a partial lookup response can no longer wipe live links, and the manual Resolve action runs a single link writer instead of two racing reconciliations.
  • Release-day freshness: "Not found" lookups now expire after 2 hours instead of 7 days, resolutions within the drop window always re-check upstream, and a manual Resolve bypasses all cached answers for a true live rescan.
v1.8

DSP Metadata Sync

September 17, 2026
Added
  • Automatic DSP sync: Smart links now continuously reconcile against streaming platforms — release dates, titles, cover art, and metadata updated at the distributor are detected and applied. Upcoming releases sync daily; recent releases weekly; older catalogs on manual refresh.
  • release_timezone: Create, update, and batch endpoints accept an IANA timezone so countdowns and presave timing match the release's intended local midnight.
  • Manual link protection: Platform links you added or edited yourself are never overwritten or removed by automated sync — only resolver-managed rows reconcile.
Improved
  • Resolve endpoint: POST /v1/smart-links/:id/resolve now returns metadata_sync — an inline report of fields updated from the DSPs — alongside queued link resolution.
  • Date drift handling: When the DSP moves a release date into the future, drop-day link resolution re-arms automatically for the new date.
v1.7

Subscription Expiry Grace & Access States

September 16, 2026
Added
  • 72-hour grace period: After current_period_end, paid features and the existing quota window continue for exactly 72 hours. Usage is not reset and the same billing period key is used.
  • Access states: Account and billing responses now include an access object with state (active | grace | restricted | unactivated | suspended), grace_ends_at, paid_features, dashboard_access, and basic_links.
  • Restricted mode: Beyond grace, existing smart links keep resolving and the dashboard stays available, but paid API operations return 402 SUBSCRIPTION_REQUIRED. Administratively suspended accounts are blocked separately with 403 ACCOUNT_SUSPENDED.
  • Durable webhook delivery: Events are persisted before any network call and retried at 1m/5m/15m with stable delivery IDs (at-least-once), an open-circuit pause after repeated failures, and owner-confirmed replay. Test deliveries are persisted in the same log.
  • Lifecycle webhooks: subscription.* events keep delivering for opted-in endpoints while paid features are paused; product events pause and resume on renewal.
Improved
  • Renewal: Same-tier renewal is accepted for expired or restricted subscriptions, and invoice events never move the stored period end backwards or reactivate an administratively suspended account.
v1.7

Smart Link Display Controls

November 2026
Added
  • Platform visibility: enabled_platforms on the account (PATCH /api/enterprise/account) and each sub-distributor controls which DSPs appear on smart links. Per-release, hidden_platforms on PATCH /v1/smart-links/:id subtracts specific platforms from a single link.
  • Fan capture controls: fan_capture_enabled and fan_capture_position ("top" | "bottom") are configurable at the account, sub-distributor, and per-release level — release values win, then sub-distributor, then the account default.
v1.6

Admin Grant Monthly Quota Cycles

September 2026
Improved
  • Quota cycle vs access window: Admin-provisioned grants keep access dates on the customer record. Monthly link quota now resets each UTC calendar-month slice inside that grant. Paid Bachs/Flutterwave windows are unchanged and still advance only on invoice.
  • GET /v1/usage: billing_period is the current quota cycle. The response also includes start_at, end_at, access_start_at, access_end_at, and status.
v1.5

CRM Agent Runtime Reliability

August 2026
Added
  • Durable Reply Processing: Inbound CRM replies now use atomic claims, expiring leases, bounded retries, and dead-letter handling.
  • Live Product Metrics: The admin copilot can answer allowlisted user, artist, release, fan, contact, enterprise, page-event, and agent-run count questions from current production data.
Improved
  • Operational Health: CRM cron jobs now record run health, assistant counts fail closed on query errors, and model-backed runs retain provider and token telemetry.
v1.4

Verified Product Reply Intelligence

August 2026
Added
  • Governed Product Knowledge: CRM reply drafting now supports deployed-version source synchronization, structured product facts, approved documentation retrieval, freshness checks, and conflict reporting.
  • Human-Reviewed Reply Playbooks: Product, pricing, integration, objection, feature-request, demo, and referral replies carry internal evidence and validation metadata into the admin review queue.
Improved
  • Operational Safety: Reply drafts are excluded from generic auto-approval, generation uses action-aware policy gates, and unsupported numerical or availability claims are blocked before review.
v1.3

Self-Serve Checkout Reliability

August 2026
Fixed
  • Paid Workspace Activation: Bachs subscription webhooks now create or link the workspace owner, activate the enterprise account, apply tier limits, and clear pending signup credentials idempotently.
  • Retry-Safe Webhooks: Incomplete activation returns a retryable failure instead of acknowledging a partially activated subscription.
  • Checkout Recovery: Cancelled self-serve checkout can resume the existing pending workspace, while paid-but-inactive Bachs signups are retried by the recovery job.
v1.2

Documentation Portal & DX Overhaul

August 2026
Added
  • Discrete Page Architecture: Redesigned documentation into modular discrete page views (?page=...) eliminating single-page scrolling jitter and supporting instant bookmarking.
  • Command Palette Search (Ctrl+K): Real-time instant search indexing all 30+ pages, HTTP endpoints, parameters, and reference items with keyboard navigation.
  • Multi-Language Code Tabs: Interactive language switchers (cURL, JavaScript (Node.js), Python) with persistent user preference memory across pages.
  • Contextual Per-Page Table of Contents: Dynamic right sidebar displaying nested subheadings exclusively for the active page with active scroll-spy tracking.
  • Page Header Actions: Added "Copy Page URL" and "Copy as Markdown" actions to the header of every doc page.
Improved
  • Clean Sub-Header Navigation: Moved major documentation category tabs into a secondary horizontal sub-header bar with active underline indicators.
  • Simplified Header: Removed redundant "for Developers" text, displaying clean Soundyaad branding.
v1.2

Multi-Tenant White-Label Sub-Distributor Provisioning

August 2026
Added
  • Sub-Distributor Provisioning API: Complete CRUD REST endpoints (/api/enterprise/v1/sub-distributors) enabling enterprise distributors to provision child tenants with dedicated subdomain slugs (https://<slug>.sya.to) and custom white-label domains.
  • Sub-Distributor Custom Domain & SSL Engine: Dedicated domain attachment and verification endpoints (/api/enterprise/v1/sub-distributors/:id/domain) with automated DNS validation.
  • Multi-Tenant Smart Link Routing: Smart links API now accepts sub_distributor_id or sub_distributor_slug, inheriting child branding, colors, logos, and custom marketing pixels while drawing from the master enterprise quota pool.
  • Sub-Distributor Webhook Events: Added sub_distributor.created, sub_distributor.updated, sub_distributor.deleted, and sub_distributor.domain_verified webhooks.
  • Sub-Distributor Capacity Add-On ($20/slot): Instant self-serve checkout and expansion quota billing allowing organizations to add extra sub-distributor accounts on demand beyond base tier allowances.
v1.1

Asset Storage & Enterprise Billing

August 2026
Added
  • Cloudflare R2 Direct Uploads: Edge-accelerated artwork storage with presigned direct browser upload endpoints (POST /api/enterprise/v1/assets/upload-url) and fallback storage.
  • Bachs Enterprise Billing & Invoicing: Automated subscription tiers (Starter, Growth, Pro, Enterprise), seat allocations, and payment reconciliation via Bachs.
  • Catalog Batch Lookup: Automated UPC, ISRC, and Spotify album metadata resolution endpoint (POST /api/enterprise/catalog-lookup).
Improved
  • Multi-DSP Resolution Engine: Expanded automated link resolution to support Audiomack, Deezer, Boomplay, Tidal, and YouTube Music in addition to Spotify and Apple Music.
v1.0

Initial Public Enterprise API Release

July 2026
Added
  • Smart Links CRUD API: Complete REST endpoints for creating, listing, retrieving, updating, and archiving smart release links.
  • Smart Upsert Idempotency: Automatic deduplication via client_release_id and upc to safely handle retry loops.
  • Real-Time Webhooks Engine: Event delivery with HMAC-SHA256 signatures for link.resolved, fan.created, link.failed, and link.updated.
  • Custom Domains with Automated SSL: Support for white-labeled CNAME subdomains (links.your-label.com) with automatic certificate provisioning.
  • Granular Analytics Engine: Real-time tracking of views, clicks, DSP conversions, referrers, geographic locations, and fan captures.
  • RFC 7807 Error Responses: Machine-readable JSON error payloads with request ID traceability (X-Request-Id).

Support & Community

Need Help Integrating?

If you run into issues while integrating, reach out with the following information for the fastest response:

  • • Your X-Request-Id from the response header
  • • The endpoint path and HTTP method
  • • The request body (redact any sensitive data)
  • • The full error response JSON
  • • Your enterprise customer ID (found in dashboard settings)
Get Your API Keys