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.
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 -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
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
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.
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.
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.
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).
Verify the result
Call GET /api/enterprise/v1/smart-links/{id}to confirm the links array is populated anddistributor_link_status is RESOLVED.
// 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.
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.
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.
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.
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).
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.
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 minuteAuthentication
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 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.
Smart Links
Smart links are the core resource. Each smart link represents a release (single, album, or EP) and resolves to a public page with links to streaming platforms.
Public URL Formats
The generated smart_link URL in API responses reflects the most specific public URL available for your account:
https://{slug}.sya.to/{song-slug}https://{your-domain.com}/{song-slug}Slug uniqueness is per enterprise account. Two different accounts can both have a smart link named love-song, but they resolve to different releases based on the hostname.
/api/enterprise/v1/smart-linksCreate or update a smart link for a release. Supports Smart Upsert via client_release_id or upc: if a matching record exists, updates changed metadata (artwork, release date, title, DSP link, pixels) and returns 200 OK with action: 'updated'.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| title | string | Required | Release title. Max 200 characters. |
| artist_name | string | Optional | Artist name. Optional — when omitted the release stays unattributed until DSP resolution identifies the artist. Featuring credits (e.g. "A feat. B") resolve to the primary artist. Max 200 characters. |
| release_type | string | Optional | One of: single, album, ep. Defaults to single. |
| release_date | string (ISO date) | Optional | e.g. "2026-08-15". Must be a valid ISO date. |
| upc | string | Optional | Universal Product Code. Max 20 characters. At least one of upc/isrc/source_link is required. |
| isrc | string | Optional | International Standard Recording Code. Max 20 characters. |
| source_link | string (URL) | Optional | Distributor or streaming platform URL. Used for DSP link resolution. |
| artwork_url | string (URL) | Optional | Cover art image URL. Will be proxied to R2 storage asynchronously. |
| custom_slug | string | Optional | Custom URL slug. Max 100 characters. Auto-generated if omitted. |
| client_release_id | string | Optional | Your internal release ID. Enables idempotency and Smart Upsert: duplicate requests update changed fields automatically. Max 120 characters. |
| pixels.meta_pixel_id | string | Optional | Meta (Facebook) pixel ID. Max 50 characters. |
| pixels.tiktok_pixel_id | string | Optional | TikTok pixel ID. Max 50 characters. |
| pixels.google_tag_id | string | Optional | Google Tag Manager ID. Max 50 characters. |
Request Example
{
"title": "Midnight Drive",
"artist_name": "Lola Rae",
"release_type": "single",
"release_date": "2026-08-15",
"upc": "0123456789012",
"isrc": "USABC2600001",
"source_link": "https://distro.com/release/123",
"artwork_url": "https://cdn.com/art.jpg",
"custom_slug": "lola-rae-midnight",
"client_release_id": "REL-001",
"pixels": {
"meta_pixel_id": "123456789",
"tiktok_pixel_id": "C1234",
"google_tag_id": "AW-123"
}
}Response (201 Created)
{
"success": true,
"data": {
"id": "uuid",
"slug": "lola-rae-midnight",
"smart_link": "https://your-label.sya.to/lola-rae-midnight",
"status": "published",
"link_resolution_status": "RESOLVED",
"resolved_platforms": ["spotify", "apple_music"],
"created_at": "2026-07-29T10:30:00Z"
}
}Response Fields
| Field | Type | Description |
|---|---|---|
| data.id | string (UUID) | Unique identifier for the smart link. |
| data.slug | string | URL slug used in the public smart link URL. |
| data.smart_link | string (URL) | Full public URL of the smart link. |
| data.status | string | Link status: published, archived, pending, draft. |
| data.link_resolution_status | string | DSP resolution status: RESOLVED, PENDING, FAILED, or null if not yet attempted. |
| data.resolved_platforms | string[] | Array of platform names that have been resolved (e.g. spotify, apple_music). |
| data.created_at | string (ISO 8601) | Timestamp of creation. |
Smart Upsert Response (200 OK)
{
"success": true,
"action": "updated",
"message": "Smart link metadata updated successfully",
"data": {
"id": "uuid",
"slug": "lola-rae-midnight",
"smart_link": "https://your-label.sya.to/lola-rae-midnight",
"status": "published",
"updated_fields": ["artwork_url", "release_date"]
}
}curl Example
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","upc":"0123456789012"}'Node.js Example
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", upc: "0123456789012", client_release_id: "release-001", }), } ); const data = await res.json(); console.log(data.data.smart_link);
Python Example
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", "upc": "0123456789012", "client_release_id": "release-001", }, ) data = res.json() print(data["data"]["smart_link"])
Try It
/api/enterprise/v1/smart-linksList smart links for your enterprise account with pagination, search, and filtering.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | Optional | Page number (1-based). Defaults to 1. |
| limit | integer | Optional | Results per page. Max 100, default 20. |
| search | string | Optional | Search by title, artist name, UPC, or slug. |
| status | string | Optional | Filter by status: published, archived, pending, draft. Default: all. |
| sort | string | Optional | Sort order: newest (default), oldest, title. |
Response (200 OK)
{
"success": true,
"count": 2,
"total": 42,
"page": 1,
"limit": 20,
"totalPages": 3,
"data": [
{
"id": "uuid",
"title": "Midnight Drive",
"status": "published",
"release_date": "2026-08-15",
"artwork_url": "https://cdn.com/art.jpg",
"slug": "lola-rae-midnight",
"upc": "0123456789012",
"isrc": "USABC2600001",
"smart_link": "https://your-label.sya.to/lola-rae-midnight"
},
{
"id": "uuid",
"title": "Summer Rain",
"status": "published",
"release_date": "2026-07-01",
"artwork_url": "https://cdn.com/art2.jpg",
"slug": "lola-rae-summer-rain",
"upc": "0123456789013",
"isrc": null,
"smart_link": "https://your-label.sya.to/lola-rae-summer-rain"
}
]
}Response Fields
| Field | Type | Description |
|---|---|---|
| count | integer | Number of items returned in this page. |
| total | integer | Total number of matching records across all pages. |
| page | integer | Current page number (1-based). |
| limit | integer | Number of results per page requested. |
| totalPages | integer | Total number of pages available. |
| data[] | array | Array of smart link objects. See Get Smart Link for field details. |
curl Example
curl "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links?limit=50&status=published&sort=newest" \ -H "x-api-key: sy_ent_yourcompany_..."
Node.js Example
const res = await fetch( "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links?limit=50&status=published", { headers: { "x-api-key": "sy_ent_yourcompany_..." } } ); const data = await res.json(); console.log(data.data); 238
Python Example
import requests res = requests.get( "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links", headers={"x-api-key": "sy_ent_yourcompany_..."}, params={"limit": 50, "status": "published"}, ) data = res.json() print(data["data"])
Try It
/api/enterprise/v1/smart-links/{id}Get details for a single smart link by its UUID or slug, including resolved platform links.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Required | The smart link UUID or slug. |
Response (200 OK)
{
"success": true,
"data": {
"id": "uuid",
"title": "Midnight Drive",
"type": "single",
"release_date": "2026-08-15",
"status": "published",
"artwork_url": "https://cdn.com/art.jpg",
"slug": "lola-rae-midnight",
"upc": "0123456789012",
"isrc": "USABC2600001",
"client_release_id": "REL-001",
"campaign_artist_name": "Lola Rae",
"distributor_link_status": "RESOLVED",
"meta_pixel_id": "123456789",
"tiktok_pixel_id": "C1234",
"google_tag_id": "AW-123",
"smart_link": "https://your-label.sya.to/lola-rae-midnight",
"sub_distributor": null,
"links": [
{ "id": "uuid", "platform": "spotify", "url": "https://open.spotify.com/track/...", "display_order": 1 },
{ "id": "uuid", "platform": "apple_music", "url": "https://music.apple.com/album/...", "display_order": 2 }
],
"slug_entries": [
{ "slug": "midnight-drive", "kind": "history", "hits": 128 }
],
"resolution": {
"status": "RESOLVED",
"resolved_count": 2,
"searching": false,
"pending_jobs": 0,
"last_error": null
}
}
}Response Fields
| Field | Type | Description |
|---|---|---|
| data.id | string (UUID) | Unique identifier for the smart link. |
| data.title | string | Release title. |
| data.type | string | Release type: single, album, or ep. |
| data.release_date | string (ISO date) | Release date or null. |
| data.status | string | Link status: published, archived, pending, draft. |
| data.artwork_url | string (URL) | Cover art image URL or null. |
| data.slug | string | URL slug. |
| data.upc | string | Universal Product Code or null. |
| data.isrc | string | ISRC or null. |
| data.client_release_id | string | Your internal release ID or null. |
| data.campaign_artist_name | string | Artist name. |
| data.distributor_link_status | string | DSP resolution status: RESOLVED, PENDING, FAILED, or null. |
| data.meta_pixel_id | string | Meta pixel ID or null. |
| data.tiktok_pixel_id | string | TikTok pixel ID or null. |
| data.google_tag_id | string | Google Tag ID or null. |
| data.smart_link | string (URL) | Full public URL of the smart link. |
| data.sub_distributor | object | null | Assigned sub-distributor { id, name, slug }, or null when the link lives in the main workspace. |
| data.links[] | array | Resolved platform links. Each has id, platform, url, display_order. |
| data.slug_entries[] | array | Slug history and vanity aliases recorded for this link — old slugs and aliases permanent-redirect to the canonical slug. Each entry has slug, kind (history | alias), and hit counters. |
| data.resolution.status | string | Resolution state: RESOLVED, PENDING, FAILED, or NO_SOURCE. |
| data.resolution.resolved_count | number | Number of store destination URLs indexed for this link. |
| data.resolution.searching | boolean | True while resolve/enrich jobs are still running — more stores may appear. |
| data.resolution.pending_jobs | number | Open resolution jobs queued or running for this link. |
| data.resolution.last_error | string | null | Most recent resolver error, if any. |
curl Example
curl "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight" \ -H "x-api-key: sy_ent_yourcompany_..."
Node.js Example
const res = await fetch( "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight", { headers: { "x-api-key": "sy_ent_yourcompany_..." } } ); const data = await res.json(); console.log(data.data.title, data.data.links);
Python Example
import requests res = requests.get( "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight", headers={"x-api-key": "sy_ent_yourcompany_..."}, ) data = res.json() print(data["data"]["title"], data["data"]["links"])
Try It
/api/enterprise/v1/smart-links/{id}Update fields on an existing smart link. Send only the fields you want to change: all fields are optional. Fires a link.updated webhook on success.
Request Body (all optional)
All fields are optional — send only what changed. Metadata updates apply instantly; they do not wait for DSP stores to ingest the change. Changing upc, isrc, or distributor_link re-queues platform-link resolution automatically. Fields you set here become the distributor-of-record baseline: future DSP syncs treat them as authoritative and will not overwrite them.
| Parameter | Type | Required | Description |
|---|---|---|---|
| title | string | Optional | Release title. Max 200 characters. |
| artist_name | string | Optional | Artist name. Max 200 characters. |
| release_type | string | Optional | One of: single, album, ep. |
| status | string | Optional | One of: published, archived, pending, draft. |
| release_date | string (ISO date) | null | Optional | Release date. Set to null or empty string to clear. |
| release_timezone | string (IANA) | Optional | Timezone the release_date is interpreted in. Defaults to UTC. |
| artwork_url | string (URL) | null | Optional | Cover art image URL — fetched and re-hosted on our CDN, then locked as a manual override (DSP syncs will not replace it until reverted). Set to null to clear. |
| upc | string | null | Optional | Universal Product Code. Max 20 characters. Changing it re-queues resolution. Set to null to clear. |
| isrc | string | null | Optional | ISRC. Max 20 characters. Changing it re-queues resolution. Set to null to clear. |
| distributor_link | string (URL) | null | Optional | A DSP/store URL to resolve links from. Changing it re-queues resolution. |
| label | string | null | Optional | Record label. Max 200 characters. |
| distributor | string | null | Optional | Distributor name. Max 200 characters. |
| copyright | string | null | Optional | Copyright line (e.g. "℗ 2026 Label"). Max 300 characters. |
| sub_distributor_id | string (uuid) | null | Optional | Move the link to one of your sub-distributor workspaces. Must belong to your account and be active. Set to null to move back to the main workspace. Fails with SLUG_CONFLICT_ON_REASSIGN if the slug is taken in the target namespace. |
| slug | string | Optional | Rename the canonical link slug. Scoped to your namespace — only conflicts within your own account (or sub-distributor) are rejected. The old slug keeps working: it permanently redirects to the new one and stays reserved. Returns 409 SLUG_TAKEN with a suggested alternative if taken. Reserved words and paths are rejected. |
| add_aliases | string[] | Optional | Extra vanity slugs that permanent-redirect to the canonical link (also accepts a single string as add_alias). Same uniqueness rules as slug. |
| remove_aliases | string[] | Optional | Retire alias slugs — they stop redirecting and are freed for reuse (also accepts remove_alias). |
| retire_slugs | string[] | Optional | Retire history slugs — stops the redirect and frees the slug for reuse (also accepts retire_slug). |
| pixels.meta_pixel_id | string | Optional | Meta pixel ID. Set to null to clear. |
| pixels.tiktok_pixel_id | string | Optional | TikTok pixel ID. Set to null to clear. |
| pixels.google_tag_id | string | Optional | Google Tag ID. Set to null to clear. |
| hidden_platforms | string[] | null | Optional | Per-release list of DSP platforms to hide from this link (e.g. ["Pandora", "JOOX"]). Subtractive on top of your account platform visibility. Send null or [] to clear. |
| fan_capture_enabled | boolean | null | Optional | Override the account fan-capture setting for this link. true forces the "Get notified" signup on, false turns it off. null inherits the account default. |
| fan_capture_position | "top" | "bottom" | null | Optional | Where the signup form renders relative to the store links. null inherits the account default. |
Request Example
{
"title": "Midnight Drive (Deluxe)",
"artwork_url": "https://cdn.com/new-art.jpg",
"pixels": { "meta_pixel_id": "987654321" }
}Response (200 OK)
{
"success": true,
"message": "Smart link updated successfully",
"data": {
"id": "uuid",
"slug": "lola-rae-midnight",
"title": "Midnight Drive (Deluxe)",
"updated_fields": ["title", "artwork_url"],
"resolution_note": "Metadata applied instantly — platform links unchanged",
"updated_at": "2026-07-29T12:00:00Z"
}
}updated_fields echoes exactly which fields were applied — use it to confirm an update landed. resolution_note tells you whether platform links were re-queued (identifier change) or left untouched (metadata-only change). A link.updated webhook fires with the same field list.
Slug namespaces: slugs are unique per owner — your account, each sub-distributor, and every artist each has its own namespace. Renaming a slug records the old one in release_slug_entries (visible as slug_entries on GET) and it permanent-redirects forever until retired — the response includes slug_redirect on a rename. Aliases redirect identically. The webhook payload includes old_slug, aliases_added, and retired_slugs when applicable.
curl Example
curl -X PATCH "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight" \
-H "x-api-key: sy_ent_yourcompany_..." \
-H "Content-Type: application/json" \
-d '{"title":"Midnight Drive (Deluxe)"}'Node.js Example
const res = await fetch( "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight", { method: "PATCH", headers: { "x-api-key": "sy_ent_yourcompany_...", "Content-Type": "application/json", }, body: JSON.stringify({ title: "Midnight Drive (Deluxe)" }), } ); const data = await res.json(); console.log(data.success);
Python Example
import requests res = requests.patch( "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight", headers={ "x-api-key": "sy_ent_yourcompany_...", "Content-Type": "application/json", }, json={"title": "Midnight Drive (Deluxe)"}, ) data = res.json() print(data["success"])
Try It
Error Responses
{
"success": false,
"error": "No valid fields to update."
}{
"success": false,
"error": "Smart link not found or update failed"
}/api/enterprise/v1/smart-links/{id}Archive a smart link. The link stops resolving publicly and its usage count for the current billing period is decremented (if created in the current period). Fires a link.archived webhook.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Required | The smart link UUID or slug. |
Response (200 OK)
{
"success": true,
"message": "Smart link archived successfully"
}curl Example
curl -X DELETE "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight" \ -H "x-api-key: sy_ent_yourcompany_..."
Node.js Example
const res = await fetch( "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight", { method: "DELETE", headers: { "x-api-key": "sy_ent_yourcompany_..." }, } ); const data = await res.json(); console.log(data.success);
Python Example
import requests res = requests.delete( "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight", headers={"x-api-key": "sy_ent_yourcompany_..."}, ) data = res.json() print(data["success"])
Try It
Error Responses
{
"success": false,
"error": "Smart link not found or already archived"
}/api/enterprise/v1/smart-links/{id}/resolveTrigger DSP link resolution for a smart link. The system crawls streaming platforms using ISRC/UPC/source_link and writes back resolved links. On completion, fires a link.resolved or link.failed webhook.
Response (202 Accepted)
{
"success": true,
"message": "DSP resolution queued",
"status": "RESOLVING"
}Resolution is asynchronous. The endpoint returns immediately with a 202 status. Listen for the link.resolved webhook to know when platform links are available. If no UPC, ISRC, or source link is available, returns 400.
curl Example
curl -X POST "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight/resolve" \ -H "x-api-key: sy_ent_yourcompany_..."
Node.js Example
const res = await fetch( "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight/resolve", { method: "POST", headers: { "x-api-key": "sy_ent_yourcompany_..." }, } ); const data = await res.json(); console.log(data.status); 263
Python Example
import requests res = requests.post( "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight/resolve", headers={"x-api-key": "sy_ent_yourcompany_..."}, ) data = res.json() print(data["status"]) # "RESOLVING"
Try It
Error Responses
{
"success": false,
"error": "No UPC, ISRC, or source link available for resolution"
}{
"success": false,
"error": "Smart link not found"
}Catalog Lookup
/api/enterprise/catalog-lookupLook 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| identifier | string | Required | A UPC, ISRC, or song URL (Spotify, Apple Music, etc.). The type is auto-detected. |
Response (200 OK: Found)
{
"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)
{
"success": true,
"found": false
}Response Fields (when found)
| Field | Type | Description |
|---|---|---|
| found | boolean | Whether metadata was found for the identifier. |
| source | string | Source of the data: musicfetch or internal. |
| title | string | Release title. |
| artist_name | string | Artist name. |
| release_type | string | single, album, or ep. |
| release_date | string (ISO date) | Release date or null. |
| upc | string | Universal Product Code or null. |
| isrc | string | ISRC or null. |
| artwork_url | string (URL) | Cover art image URL or null. |
| source_link | string (URL) | Source streaming URL or null. |
| links[] | array | Resolved 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
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
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
Error Responses
{
"success": false,
"error": "A UPC, ISRC, or song URL is required"
}Catalog Import
/api/enterprise/v1/smart-links/batchCreate 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| links | object[] | Required | Array of 1 to 100 release objects (title, artist_name, release_type, release_date, upc, isrc, distributor_link, artwork_url, client_release_id). |
Request Example
{
"links": [
{
"title": "Midnight Drive",
"artist_name": "Lola Rae",
"release_type": "single",
"upc": "0123456789012",
"client_release_id": "REL-001"
}
]
}Response (201 Created / 200 OK)
{
"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"
}
]
}/api/enterprise/v1/smart-links/batch-csvUpload 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| csv_data | string | Required | Raw 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. |
| filename | string | Optional | Original filename for reference. Defaults to catalog_import.csv. |
CSV Headers
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)
{
"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
| Field | Type | Description |
|---|---|---|
| import_id | string (UUID) | Unique identifier for the import. Use this with the status endpoint. |
| total_rows | number | Number of data rows parsed from the CSV. |
| status | string | Always processing at accept time. |
| status_url | string | Relative URL to poll for progress. |
Error Responses
{
"success": false,
"error": "CSV file contains no valid data rows"
}{
"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
}
}{
"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
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
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
/api/enterprise/v1/smart-links/importsList 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | string | Optional | Optional filter: processing, completed, stalled, quota_exceeded — or failed, an umbrella matching stalled + quota_exceeded + failed. |
| page | number | Optional | Page number. Default 1. |
| limit | number | Optional | Items per page. Default 20, max 100. |
Response (200 OK)
{
"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
/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
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string (UUID) | Required | The import_id returned by POST /batch-csv. |
Response (200 OK)
{
"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
| Field | Type | Description |
|---|---|---|
| import_id | string (UUID) | Import identifier. |
| filename | string | Original filename. |
| status | string | One of: processing, completed, quota_exceeded, stalled. |
| total_rows | number | Total rows parsed from the CSV. |
| processed_rows | number | Rows that have been processed so far. |
| successful_rows | number | Rows that became smart links. |
| skipped_rows | number | Rows skipped as duplicates or already existing. |
| failed_rows | number | Rows that failed validation or insert. |
| last_processed_offset | number | Zero-based offset of the last processed row. |
| next_offset | number | null | Offset the worker will resume from, or null if complete. |
| progress_pct | number | Percentage of rows processed (0-100). |
| eta_seconds | number | null | Estimated seconds until completion. |
| errors | array | Per-row errors. Each item has row and error. |
| created_at | string (ISO 8601) | Import creation timestamp. |
| updated_at | string (ISO 8601) | Last update timestamp. |
Error Responses
{
"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
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
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
Analytics
/api/enterprise/v1/smart-links/{id}/analyticsRetrieve view and click analytics for a specific smart link over the last 30 days. Includes platform, device, OS, UTM, geo, and referrer breakdowns. Available on all tiers; historical depth is limited by your tier's analytics retention window.
Response (200 OK)
{
"success": true,
"data": {
"id": "uuid",
"title": "Midnight Drive",
"total_views": 1240,
"total_clicks": 380,
"conversion_rate": "30.6%",
"fans_captured": 15,
"top_platforms": [
{ "platform": "spotify", "clicks": 210 },
{ "platform": "apple_music", "clicks": 120 },
{ "platform": "youtube_music", "clicks": 50 }
],
"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
| Field | Type | Description |
|---|---|---|
| data.id | string (UUID) | Smart link identifier. |
| data.title | string | Release title. |
| data.total_views | integer | Total page views over the last 30 days. |
| data.total_clicks | integer | Total platform link clicks. |
| data.conversion_rate | string | Clicks ÷ views as a percentage string. |
| data.fans_captured | integer | Number of fans who submitted email/phone. |
| data.top_platforms[] | array | Click breakdown by platform. Each has platform and clicks. |
| data.geo[] | array | View count by country (ISO code). |
| data.referrers[] | array | View count by referring domain. |
| data.devices[] | array | View count by device type: mobile, tablet, desktop, bot, unknown. |
| data.os[] | array | View count by operating system. |
| data.utm_sources[] | array | View count by utm_source query param, top 20. |
| data.utm_mediums[] | array | View count by utm_medium query param, top 20. |
| data.utm_campaigns[] | array | View count by utm_campaign query param, top 20. |
| data.referrer_paths[] | array | View count by full referrer URL, top 50. |
curl Example
curl "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight/analytics" \ -H "x-api-key: sy_ent_yourcompany_..."
Node.js Example
const res = await fetch( "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight/analytics", { headers: { "x-api-key": "sy_ent_yourcompany_..." } } ); const data = await res.json(); console.log(data.data.total_views);
Python Example
import requests res = requests.get( "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight/analytics", headers={"x-api-key": "sy_ent_yourcompany_..."}, ) data = res.json() print(data["data"]["total_views"])
Try It
/api/enterprise/dashboard/analyticsAggregate analytics across all your smart links. Supports date range filtering and CSV export.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| range | string | Optional | Date range: 7d, 30d, 90d, or all. Default: 30d. Ranges wider than the tier retention bound are clamped. |
| format | string | Optional | Set to "csv" to download as CSV file. Default: JSON. |
| sub_distributor_id | string | Optional | Scope all metrics to one sub-distributor account (UUID), or "main" for the parent account only. Non-UUID values return 400. |
| artist_id | string (UUID) | Optional | Scope 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)
{
"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
| Field | Type | Description |
|---|---|---|
| totals.views | integer | Total page views across all smart links in the date range. |
| totals.unique_views | integer | Period-distinct visitors (by visitor_id) across all smart links — a returning visitor counts once, not once per day. |
| totals.clicks | integer | Total platform link clicks. |
| totals.fans_captured | integer | Distinct fan rows created in the window. |
| totals.conversion_rate | string | Clicks ÷ views as a percentage string (e.g. "30.6%"). |
| previous | object | null | Same-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_truncated | boolean | Always false — retained for compatibility. Breakdowns are computed exactly over the full window (server-side aggregation, no event sampling). |
| events_sampled | integer | Number of page events in the window the breakdowns were computed over (exact, not a capped sample). |
| unique_views_approx | boolean | Always false — retained for compatibility. unique_views is always a period-distinct count. |
| outcome | object | Visitor 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[] | array | Catalog releases dated inside the window (release_id, title, date) — every release in the window, not just top performers. |
| timeseries[] | array | Daily breakdown. Each has date (YYYY-MM-DD), views, clicks. |
| fans_over_time[] | array | New fans per bucket on the same date granularity as timeseries. |
| top_platforms[] | array | Click breakdown by platform (max 10). Each has platform, clicks. |
| top_links[] | array | Per-link breakdown (max 10, sorted by views). Each has id, title, slug, views, clicks. |
| fans_by_source | object | Capture-surface split (presave_link = smart links, artist_page, other) plus utm[] and external_referrers[] channel lists. Sums to totals.fans_captured. |
| fans_by_artist[] | array | Distinct 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[] | array | Signup events per release (max 10). Each has release_id, title, slug, count. |
| fans_by_country | object | Fan rows by ISO country (rows[]: country, count). truncated/sampled retained for compatibility — the breakdown is exact over the full window. |
| traffic_sources[] | array | External 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
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
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
/api/enterprise/v1/analytics/overviewAggregate 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| range | string | Optional | Date range: 7d, 30d, or 90d. Default: 30d. |
| format | string | Optional | Set to "csv" to download a CSV of the daily timeseries. Default: JSON. |
| geo_daily | string | Optional | Set to "true" to include a per-day country breakdown in each timeseries entry. Default: false. |
Response (200 OK)
{
"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
| Field | Type | Description |
|---|---|---|
| data.totals.unique_views | integer | Distinct visitor_id count across all views in the range. |
| data.geo[] | array | View count by country (ISO code), top 20. |
| data.referrers[] | array | View count by referring domain, top 20. |
| data.devices[] | array | View count by device type: mobile, tablet, desktop, bot, unknown. |
| data.os[] | array | View count by operating system. |
| data.utm_sources[] | array | View count by utm_source query param, top 20. |
| data.utm_mediums[] | array | View count by utm_medium query param, top 20. |
| data.utm_campaigns[] | array | View count by utm_campaign query param, top 20. |
| data.referrer_paths[] | array | View 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
/api/enterprise/v1/analytics/links/{id}Detailed analytics for a single smart link: timeseries, device/OS/UTM/geo/referrer breakdowns, and the view → modal-open → signup funnel. Available on all tiers; the requested range is clamped to your tier's analytics retention window. {id} may be the release UUID or slug.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| range | string | Optional | Date range: 7d, 30d, or 90d. Default: 30d. |
Response (200 OK)
{
"success": true,
"data": {
"id": "uuid",
"title": "Midnight Drive",
"slug": "lola-rae-midnight",
"totals": {
"views": 1240,
"unique_views": 890,
"clicks": 380,
"fans_captured": 15,
"conversion_rate": "30.6%"
},
"timeseries": [{ "date": "2026-07-15", "views": 45, "clicks": 12 }],
"top_platforms": [{ "platform": "spotify", "clicks": 210 }],
"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 }],
"funnel": [
{ "stage": "view", "count": 1240 },
{ "stage": "modal_open", "count": 210 },
{ "stage": "signup", "count": 15 }
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
| data.funnel[] | array | Conversion funnel stages: view (page load), modal_open (presave modal opened), signup (fan captured). |
curl Example
curl "https://enterprise.soundyaad.com/api/enterprise/v1/analytics/links/lola-rae-midnight?range=30d" \ -H "x-api-key: sy_ent_yourcompany_..."
Try It
/api/enterprise/v1/analytics/geoCountry 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| range | string | Optional | Date range: 7d, 30d, or 90d. Default: 30d. |
Response (200 OK)
{
"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
/api/enterprise/v1/analytics/fans-growthDaily 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| range | string | Optional | Date range: 7d, 30d, or 90d. Default: 30d. |
Response (200 OK)
{
"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
Fans CRM
/api/enterprise/v1/fansList 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | Optional | Page number (1-based). Defaults to 1. |
| limit | integer | Optional | Results per page (max 100). Defaults to 20. |
| search | string | Optional | Filter by fan name, email, or phone. Viewer role matches name only. |
| country | string | Optional | Two-letter ISO country code, or a comma-separated list (e.g. NG,US). |
| release_id | string (UUID) | Optional | UUID or comma-separated list. Matches fans who signed up on ANY of the listed releases, not only their first capture. |
| artist_id | string (UUID) | Optional | Filter fans who signed up on any release of this enterprise artist. |
| channel | string | Optional | Comma-separated first-touch channel keys (e.g. instagram,t.co). Use "direct" for fans with no recorded channel. |
| sub_distributor_id | string (UUID) | Optional | Filter fans captured under a specific sub-distributor. |
| min_releases | integer | Optional | Only 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_whatsapp | string | Optional | Pass "true" to only return fans with a phone number who opted in to WhatsApp. |
| has_email | string | Optional | Pass "true" to only return fans with an email address who opted in to email. |
| sort | string | Optional | Pass "releases_saved" to rank fans by distinct saved releases (highest first). Default: most recently captured. |
| dir | string | Optional | "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. |
| format | string | Optional | Pass "csv" for a synchronous CSV export (max 5,000 rows, owner/manager role). Larger exports: POST /v1/fans/export. |
Response (200 OK)
{
"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
}/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
| Parameter | Type | Required | Description |
|---|---|---|---|
| artist_id | string (UUID) | Optional | Optional. 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)
{
"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
| Parameter | Type | Required | Description |
|---|---|---|---|
| email_allowed | boolean | Optional | Set email consent. Re-enabling is ignored while a fan_unsubscribes tombstone exists — an explicit unsubscribe cannot be silently reversed. |
| whatsapp_allowed | boolean | Optional | Set WhatsApp consent. |
| tags | string[] | Optional | Tag 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.
/api/enterprise/v1/fans/exportStart an asynchronous CSV export of captured fans matching optional filters. Returns an export_id to poll.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| search | string | Optional | Optional search filter. |
| country | string | Optional | Optional two-letter country code filter. |
| release_id | string (UUID) | Optional | Optional release UUID filter. |
| sub_distributor_id | string (UUID) | Optional | Optional sub-distributor UUID filter. |
| min_releases | string | Optional | Optional. Pass an integer as a string (e.g. "2") — only fans with that many distinct saved releases are exported. |
| has_whatsapp | string | Optional | Optional. Pass "true" — only fans with a phone number and WhatsApp opt-in. |
| has_email | string | Optional | Optional. Pass "true" — only fans with an email address and email opt-in. |
Response (202 Accepted)
{
"success": true,
"export_id": "uuid",
"status": "pending",
"status_url": "/api/enterprise/v1/fans/export/uuid"
}/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)
{
"success": true,
"export_id": "uuid",
"status": "completed",
"row_count": 420,
"download_url": "https://assets.soundyaad.com/exports/fans-uuid.csv"
}Artists
POST /v1/artists/backfill once to build the roster for releases created before this feature./api/enterprise/v1/artistsList your artist roster with release counts, metadata label, and deduplicated fan totals. Requires the smartlinks:read scope.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | Optional | Page number (1-based). Defaults to 1. |
| limit | integer | Optional | Results per page (max 100). Defaults to 20. |
| search | string | Optional | Filter by artist name. |
| sort | string | Optional | "name" (default), "fans", "superfans", "releases", or "created_at". Count sorts rank by the rollup first; name/created_at sort in the database. |
| dir | string | Optional | "asc" (default) or "desc" — applies to both name and rollup sorts. |
Response (200 OK)
{
"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
}/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)
{
"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" }
]
}
}/api/enterprise/v1/artists/{id}/releasesList the releases attached to one artist, most recent first. Requires the smart-links read scope.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | Optional | Page number (1-based). Defaults to 1. |
| limit | integer | Optional | Results per page (max 100). Defaults to 20. |
Response (200 OK)
{
"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
}/api/enterprise/v1/artists/{id}/fansList 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | Optional | Page number (1-based). Defaults to 1. |
| limit | integer | Optional | Results per page (max 100). Defaults to 20. |
| search | string | Optional | Filter by fan name, email, or phone. |
| sort | string | Optional | Pass "releases_saved" to rank by artist-scoped saved releases. |
Response (200 OK)
{
"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
}/api/enterprise/v1/artists/backfillBuild 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| offset | integer | Optional | Release cursor — pass the previous response's next_offset. Defaults to 0. |
| batch | integer | Optional | Releases processed per call (max 1000). Defaults to 500. |
Response (200 OK)
{
"success": true,
"data": {
"scanned": 500,
"linked": 214,
"enriched": 96,
"errors": 0,
"next_offset": 500,
"done": false
}
}Artwork Upload
/api/enterprise/upload/artworkGet a presigned URL to upload artwork directly to Cloudflare R2 storage. The upload URL is valid for 10 minutes.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| content_type | string | Required | MIME type: image/jpeg, image/png, or image/webp. |
| filename | string | Optional | Filename 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)
{
"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
| Field | Type | Description |
|---|---|---|
| upload_url | string (URL) | Presigned R2 upload URL. Valid for 10 minutes. |
| public_url | string (URL) | Public CDN URL of the uploaded file. Use as artwork_url. |
| expires_in | integer | Time in seconds until the upload_url expires (600 = 10 minutes). |
| max_file_size | integer | Maximum 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
Error Responses
{
"success": false,
"error": "Parameter 'content_type' must be image/jpeg, image/png, or image/webp"
}/api/enterprise/v1/smart-links/{id}/artworkSet or revert the cover art on an existing smart link. Upload a base64 image or pass a remote URL: the image is proxied to our CDN and shows on the smart link immediately, ahead of any DSP ingestion. Artwork set this way is marked as yours and is never overwritten by DSP metadata sync. DELETE removes the override; the DSP cover returns on the next sync.
Request Body (POST)
| Parameter | Type | Required | Description |
|---|---|---|---|
| data_url | string | Optional | Base64 data URL of the image (data:image/jpeg|png|webp;base64,...). Max 10 MB raw. |
| artwork_url | string (URL) | Optional | Publicly reachable image URL. Fetched and re-hosted on our CDN. Provide either data_url or artwork_url. |
Response (200 OK)
{
"success": true,
"message": "Artwork updated. It now overrides DSP-sourced art and will not be replaced by metadata sync.",
"data": {
"artwork_url": "https://assets.soundyaad.com/artists/.../releases/.../artwork.jpg",
"artwork_source": "manual"
}
}curl Example
curl -X POST "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight/artwork" \
-H "x-api-key: sy_ent_yourcompany_..." \
-H "Content-Type: application/json" \
-d '{"artwork_url": "https://your-cdn.com/new-cover.jpg"}'Revert to DSP Artwork
curl -X DELETE "https://enterprise.soundyaad.com/api/enterprise/v1/smart-links/lola-rae-midnight/artwork" \ -H "x-api-key: sy_ent_yourcompany_..."
Try It
Setting artwork fires a link.updated webhook with updated_fields: ["artwork_url"]. The same override is available inline via PATCH /smart-links/:id with an artwork_url field.
Usage
/api/enterprise/v1/usageCurrent billing-period usage and quota for the authenticated customer: links created vs. max, period boundaries, and tier feature flags.
Response (200 OK)
{
"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
| Field | Type | Description |
|---|---|---|
| data.billing_period.start | string (ISO 8601) | Start of the current usage period. |
| data.billing_period.end | string (ISO 8601) | End of the current usage period. |
| data.links.used | integer | Smart links created in the current billing period against the monthly quota. |
| data.links.max | integer | Maximum links allowed this period (tier default or negotiated override). |
| data.links.remaining | integer | max minus used, floored at 0. |
| data.links.created_total | integer | Every link created this period across quota AND credit funding — read this on free tier, where links.used stays 0. |
| data.credits.standard | integer | Standard credit balance — powers links on sya.to. |
| data.credits.domain | integer | Domain credit balance — a superset that powers links anywhere, including a custom domain. |
| data.credits.balance | integer | Combined prepaid credit balance (standard + domain). |
| data.credits.used_this_period | integer | Credits consumed this billing period. |
| data.credits.total_available | integer | Total credits usable right now. |
| data.credits.needs_domain_credits | boolean | True when a verified custom domain gates spending to the domain pool only. |
| data.credits.buy_url | string | Dashboard route to top up credits. |
| data.billing_period.access_start_at / access_end_at | string (ISO 8601) | Grant access window — differs from the quota cycle on admin-provisioned grants. |
| data.billing_period.status | string | Access state for the current window. |
| data.tier.name | string | Current tier: starter, growth, pro, or unlimited. |
| data.tier.analytics | boolean | Whether the Analytics endpoints are available on this tier. |
| data.tier.fan_data | boolean | Whether fan data capture/export is available on this tier. |
| data.tier.analytics_retention_days | integer | How many days of analytics history can be queried. -1 means unlimited. |
| data.tier.fan_data_retention_days | integer | How 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
Prepaid Link Credits — Standard & Domain Pools
Link creation draws from the monthly tier quota first, then prepaid credits. Credits come in two pools: standard credits (₦100/link — power links on sya.to) and domain credits (₦150/link — a superset that powers links anywhere, including a custom domain). Free-tier workspaces have no monthly quota — every link uses a credit. Credits never expire and carry across billing cycles. Purchase packs via POST /api/enterprise/billing/link-packs (optional pool field: standard | domain) or the billing dashboard.
Consumption order with a custom domain
credits.needs_domain_credits: true). An attached-but-unverified domain does not gate the pools — links keep serving sya.to on standard credits until verification completes. Paid tiers bundle custom domains, so their links drain domain credits first once verified and fall back to standard freely. With no domain attached, standard credits drain first so the premium pool is preserved. CSV catalog imports consume the same pools per chunk — quota first, then credits — and refund unclaimed slots for skipped or failed rows.HTTP 429 Quota Exceeded
429 Too Many Requests with code PLAN_QUOTA_EXCEEDED. The response includes link_credits_standard, link_credits_domain, and a buy_links_url for topping up. When needs_domain_credits is true, standard credits cannot power links until the custom domain is detached — buy a domain pack or remove the domain. Existing links remain online and active.Webhooks
Configure a webhook URL and secret from your webhooks dashboard page. Soundyaad sends POST requests to your URL when events occur.
Event Types
| Parameter | Type | Required | Description |
|---|---|---|---|
| link.created | event | Optional | A new smart link was created. |
| link.updated | event | Optional | A smart link's fields were updated. Payload includes updated_fields array. |
| link.archived | event | Optional | A smart link was archived. |
| link.resolved | event | Optional | DSP resolution completed successfully. Payload includes platform links. |
| link.milestone | event | Optional | A smart link crossed a view-count milestone (100, 500, 1K, 5K, 10K, 50K, 100K). |
| link.failed | event | Optional | DSP resolution failed: no streaming links found. |
| fan.created | event | Optional | A new fan was captured via a smart link presave/signup form. |
| fan.unsubscribed | event | Optional | A fan opted out of email communications. |
| subscription.activated | event | Optional | Your enterprise subscription became active. |
| subscription.cancelled | event | Optional | Your subscription was cancelled. |
| subscription.payment_failed | event | Optional | A recurring charge failed. |
Webhook Payload Structure
All webhooks share the same envelope. The data object varies by event type. Examples for each event below.
{
"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.
{
"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.
{
"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.
{
"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.
{
"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.
{
"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.
{
"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.
{
"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.
{
"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.
{
"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.
{
"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.
{
"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.
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
| Parameter | Type | Required | Description |
|---|---|---|---|
| Max attempts | integer | Optional | 4 total attempts (1 initial + 3 retries). After the 4th failure, the delivery is marked exhausted and no further retries are made. |
| Retry delays | - | Optional | 1 minute after 1st failure, 5 minutes after 2nd failure, 15 minutes after 3rd failure. |
| Timeout | integer | Optional | 15 seconds per attempt. If your endpoint does not respond within 15s, the attempt is marked as failed. |
| Circuit breaker | - | Optional | If 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 | - | Optional | Any non-2xx HTTP response or connection failure (timeout, DNS error, refused). 2xx responses are considered delivered. |
| Retry cron | - | Optional | Retries 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.
/api/enterprise/webhook/deliveriesList recent webhook delivery attempts for your account, including response status, attempt count, and retry schedule.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| limit | integer | Optional | Number of results. Max 100, default 20. |
Response (200 OK)
{
"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
| Field | Type | Description |
|---|---|---|
| data[].id | string (UUID) | Delivery record identifier. |
| data[].event_type | string | Webhook event type (e.g. link.resolved). |
| data[].response_status | integer | HTTP status returned by your endpoint. null if delivery failed. |
| data[].attempt_count | integer | Number of delivery attempts made. |
| data[].delivered_at | string (ISO 8601) | Timestamp of successful delivery or null. |
| data[].next_retry_at | string (ISO 8601) | Scheduled retry time or null if delivered/ exhausted. |
| data[].created_at | string (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
/api/enterprise/webhook/testSend 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)
| Parameter | Type | Required | Description |
|---|---|---|---|
| event_type | string | Optional | Custom event type for the test payload. Defaults to "link.test". |
Response (200 OK)
{
"success": true,
"delivered": true,
"statusCode": 200
}Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the test webhook was sent successfully. |
| delivered | boolean | Whether your endpoint returned a 2xx response. |
| statusCode | integer | HTTP 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
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
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
Error Responses
{
"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.
/api/enterprise/domainAdd 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)
{
"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)
{
"success": true,
"domain": null,
"verified": false,
"dnsInstructions": null
}GET: Response Fields
| Field | Type | Description |
|---|---|---|
| domain | string | Configured custom domain or null. |
| verified | boolean | Whether DNS verification passed. |
| configured | boolean | Whether Vercel confirms the domain is configured. |
| misconfigured | boolean | Whether Vercel reports a misconfiguration. |
| verification | object | Vercel verification details or null. |
| dnsInstructions[] | array | Required 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
curl "https://enterprise.soundyaad.com/api/enterprise/domain" \ -H "x-api-key: sy_ent_yourcompany_..."
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
Error Responses
{
"success": false,
"error": "Custom domains require Growth tier or above"
}/api/enterprise/domain/verifyTrigger 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)
| Parameter | Type | Required | Description |
|---|---|---|---|
| domain | string | Optional | Domain to verify. If omitted, verifies the currently configured domain. Must match your configured domain if provided. |
Response (200 OK: Verified)
{
"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)
{
"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
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
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
Billing
/api/enterprise/billing/subscriptionManage your enterprise subscription through Bachs.
GET: Subscription Details
Returns tier, status, period dates, monthly limit, and links used.
GET: Response (200 OK)
{
"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
| Field | Type | Description |
|---|---|---|
| tier | string | Current tier: starter, growth, pro, or unlimited. |
| status | string | Subscription status: active, cancelled, trialing, past_due, or expired. |
| current_period_start | string (ISO 8601) | Start of the current billing period or null. |
| current_period_end | string (ISO 8601) | End of the current billing period or null. |
| cancelled_at | string (ISO 8601) | When the subscription was cancelled, or null if active. |
| trial_ends_at | string (ISO 8601) | When the trial ends, or null if not on trial. |
| subscription_id | string | Bachs subscription ID or null. |
| billing_cycle | string | Current billing cycle: monthly or yearly. |
| monthly_limit | integer | Monthly link creation limit for the current tier. |
| links_used | integer | Links created in the current billing period. |
| period_end | string (ISO 8601) | End of the current usage period (from usage tracking). |
PATCH: Response (200 OK)
{
"success": true,
"checkout_url": "https://checkout.bachs.io/session/..."
}PATCH: Response Fields
| Field | Type | Description |
|---|---|---|
| checkout_url | string (URL) | Bachs checkout URL the customer must complete to activate the new tier. |
DELETE: Response (200 OK)
{
"success": true,
"access_until": "2026-08-29T10:00:00Z"
}DELETE: Response Fields
| Field | Type | Description |
|---|---|---|
| access_until | string (ISO 8601) | Date and time when access to enterprise features will end. |
curl Examples
curl "https://enterprise.soundyaad.com/api/enterprise/billing/subscription" \ -H "x-api-key: sy_ent_yourcompany_..."
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"}'
curl -X DELETE "https://enterprise.soundyaad.com/api/enterprise/billing/subscription" \ -H "x-api-key: sy_ent_yourcompany_..."
Try It
Error Responses
{
"success": false,
"error": "Owner access required"
}/api/enterprise/billing/invoicesFetch billing history for your account, including admin-provisioned events, payments, and subscription changes. Supports pagination.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | Optional | Page number (1-based). Defaults to 1. |
| limit | integer | Optional | Results per page. Max 50, default 20. |
Response (200 OK)
{
"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
| Field | Type | Description |
|---|---|---|
| data[].id | string (UUID) | Billing event identifier. |
| data[].event_type | string | Event type (e.g. enterprise.admin.provisioned, enterprise.charge.completed, enterprise.admin.tier_changed). |
| data[].provider | string | Payment provider or source (e.g. bachs, admin). |
| data[].provider_ref | string | Payment provider transaction reference or admin reference. |
| data[].amount_usd | number | Amount in USD or null for non-payment events. |
| data[].amount_ngn | number | Amount in NGN or null for non-payment events. |
| data[].created_at | string (ISO 8601) | When the event was recorded. |
| total | integer | Total number of billing events. |
| page | integer | Current page number. |
| limit | integer | Results per page. |
| total_pages | integer | Total 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
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
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
/api/enterprise/billing/portalCreate an authenticated Bachs Customer Portal session to manage saved cards, billing details, and invoices. Owner access only.
Response (200 OK)
{
"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
Error Responses
{
"success": false,
"error": "Owner access required"
}/api/enterprise/billing/link-packsPurchase prepaid smart-link credits (₦100/link; ₦150/link for free-tier workspaces with a custom domain). Credits never expire and are consumed automatically once the monthly tier quota is exhausted — on the free tier every link uses a credit.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| quantity | integer | Required | Number of credits to purchase. Accepts 1–100,000. |
| pool | string | Optional | Optional: standard | domain. The server prices the pack by pool, not by client-supplied pricing. Defaults to the pool your workspace currently draws from. |
| return_url | string (URL) | Optional | Optional same-site URL to return to after checkout — success lands with ?checkout=success, cancellations with ?checkout=cancelled. |
Request Example
{
"quantity": 500,
"pool": "domain"
}Response (200 OK)
{
"success": true,
"checkout_url": "https://checkout.bachs.io/session/sess_..."
}Redirect the customer to checkout_url. On payment, the Bachs webhook credits the balance atomically — replays are idempotent per checkout intent, so credits are never granted twice.
Try It
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).
/api/enterprise/teamInvite and manage team members.
GET: Response (200 OK)
{
"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
| Field | Type | Description |
|---|---|---|
| data[].id | string (UUID) | Team member record ID. |
| data[].user_id | string (UUID) | Linked user ID if accepted, null if pending. |
| data[].role | string | Role: owner, manager, or viewer. |
| data[].invited_email | string | Email address of the invitee. |
| data[].status | string | Invitation status: pending or active. |
| data[].created_at | string (ISO 8601) | When the member was added/invited. |
| data[].updated_at | string (ISO 8601) | When the record was last updated. |
| data[].expires_at | string (ISO 8601) | When the invitation expires, or null if active. |
| isOwner | boolean | Whether 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
curl "https://enterprise.soundyaad.com/api/enterprise/team" \ -H "x-api-key: sy_ent_yourcompany_..."
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"}'
curl -X DELETE "https://enterprise.soundyaad.com/api/enterprise/team/uuid-here" \ -H "x-api-key: sy_ent_yourcompany_..."
Try It
Error Responses
{
"success": false,
"error": "Forbidden: only account owners can invite or remove team members."
}{
"success": false,
"error": "Team member limit reached for this plan. Upgrade to add more."
}Account & API Keys
/api/enterprise/workspacesCreate 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| company_name | string | Required | Workspace display name. 1–120 characters. |
| tier | string | Required | Plan tier: free, starter, growth, pro, or unlimited. |
| cycle | string | Optional | Billing cycle for paid tiers: monthly (default) or yearly. Ignored on the free tier. |
Response (200 OK)
{
"success": true,
"status": "active",
"customerId": "uuid",
"tier": "free",
"resumed": false,
"request_id": "uuid"
}{
"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
{
"success": false,
"error": "Sign in to create an enterprise workspace.",
"code": "AUTH_REQUIRED",
"request_id": "uuid"
}{
"success": false,
"error": "This account already has an enterprise workspace. Open your dashboard instead.",
"code": "WORKSPACE_EXISTS",
"status_code": 409,
"request_id": "uuid"
}{
"success": false,
"error": "Verify your email address to resume this workspace signup.",
"code": "EMAIL_VERIFICATION_REQUIRED",
"status_code": 403,
"request_id": "uuid"
}/api/enterprise/accountRead 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)
{
"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
| Field | Type | Description |
|---|---|---|
| account.company_name | string | Company or label name. |
| account.slug | string | URL slug for the enterprise subdomain. |
| account.owner_email | string | Email of the account owner. |
| account.tier | string | Current tier: starter, growth, pro, or unlimited. |
| account.brand_color | string (hex) | Brand color in hex format. Default: #DB2C2C. |
| account.brand_logo_url | string (URL) | Brand logo URL or null. |
| account.hide_soundyaad_branding | boolean | Whether Soundyaad branding is hidden. Pro tier only. |
| account.custom_domain | string | Custom domain or null. |
| account.custom_domain_verified | boolean | Whether the custom domain is verified. |
| account.webhook_url | string (URL) | Webhook delivery URL or null. |
| account.has_webhook_secret | boolean | Whether a webhook secret is set. |
| account.max_monthly_links | integer | Monthly link creation limit for the current tier. |
| account.links_used | integer | Links created in the current billing period. |
| account.current_period_end | string (ISO 8601) | End of the current billing period. |
| account.subscription_status | string | Subscription status: active, cancelled, trial, etc. |
| account.role | string | Your role: owner, manager, or viewer. |
| account.is_owner | boolean | Whether you are the account owner. |
| account.enabled_platforms | string[] | null | DSP allowlist for smart link pages, or null for all platforms. |
| account.fan_capture_enabled | boolean | null | Account default for the "Get notified" fan-capture form. |
| account.fan_email_notifications_enabled | boolean | Account default for automatic release-morning emails to presave fans. false suppresses them account-wide; sub-distributors can override. |
| account.fan_capture_position | string | Default signup-form placement: top or bottom. |
| account.fan_capture_name_mode | string | First-touch name field on the signup form: hidden (default), optional, or required. |
| account.meta_capi_token_set | boolean | Whether a Meta Conversions API token is configured (the token itself is never returned). |
| account.link_credits_standard | integer | Standard prepaid credit balance. |
| account.link_credits_domain | integer | Domain prepaid credit balance. |
| account.onboarding_completed_at | string (ISO 8601) | null | Set once the workspace has finished onboarding (bought a credit pack or upgraded) — gates the dashboard on the free tier. |
| account.access | object | Access 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)
| Parameter | Type | Required | Description |
|---|---|---|---|
| brand_color | string (hex) | Optional | Brand color in hex format (e.g. #E50914). Must match /^#[0-9a-fA-F]{6}$/. |
| brand_logo_url | string (URL) | Optional | URL to your brand logo. Must be HTTP(S) URL pointing to an image file. Set to empty string to clear. |
| distributor_display_name | string | Optional | Custom label shown as "Distributed by [Name]" on smart link pages. Max 80 chars. |
| website_url | string (URL) | Optional | Destination URL when visitors click your distributor credit. |
| hide_soundyaad_branding | boolean | Optional | Hide Soundyaad branding from smart link pages. Pro and Unlimited tiers only. |
| webhook_url | string (URL) | Optional | HTTPS URL for webhook deliveries. Set to null or empty string to clear. |
| webhook_name | string | Optional | Optional nickname for your webhook endpoint. Max 80 chars. |
| webhook_enabled | boolean | Optional | Enable or pause webhook deliveries. |
| webhook_events_subscribed | string[] | null | Optional | Array of subscribed event names, or null to subscribe to all events. |
| rotate_webhook_secret | boolean | Optional | Set to true to generate and return a new HMAC signing secret. |
| reset_webhook_circuit | boolean | Optional | Set to true to reset the webhook circuit breaker and resume paused deliveries. |
| preferred_store_order | string[] | Optional | Ordered array of DSP platform names for smart link pages. |
| meta_pixel_id | string | Optional | Meta pixel ID. 1-64 alphanumeric chars. Set to empty string to clear. |
| tiktok_pixel_id | string | Optional | TikTok pixel ID. 1-64 alphanumeric chars. |
| google_tag_id | string | Optional | Google Tag ID. 1-64 alphanumeric chars. |
| meta_capi_token | string | null | Optional | Meta 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_platforms | string[] | null | Optional | Account-wide DSP allowlist — controls which platforms appear on smart link pages. Send an array to set, null to restore all platforms. |
| fan_capture_enabled | boolean | null | Optional | Account default for the fan-capture signup form on smart links. |
| fan_email_notifications_enabled | boolean | Optional | Send 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" | null | Optional | Default position of the signup form relative to store links. null clears to the default. |
| fan_capture_name_mode | "hidden" | "optional" | "required" | null | Optional | Whether 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)
{
"success": true
}Try It
PATCH: Error Responses
{
"success": false,
"error": "brand_color must be a valid hex color (e.g. #E50914)."
}{
"success": false,
"error": "Forbidden: owner access only."
}/api/enterprise/v1/keysManage your API keys programmatically or from the dashboard settings page.
GET: Response (200 OK)
{
"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
| Field | Type | Description |
|---|---|---|
| keys[].id | string (UUID) | API key identifier. |
| keys[].key_name | string | Human-readable name for the key. |
| keys[].key_prefix | string | First 18 characters of the key + "...". Used for identification after creation. |
| keys[].scopes | string[] | Permission scopes: smartlinks:read, smartlinks:write. |
| keys[].allowed_ips | string[] | IP allowlist (IPv4/IPv6). null = no restriction. Max 10 IPs. |
| keys[].created_at | string (ISO 8601) | When the key was created. |
| keys[].revoked_at | string (ISO 8601) | When the key was revoked, or null if active. |
| keys[].expires_at | string (ISO 8601) | When the key expires, or null if no expiry. |
| keys[].created_by | string (UUID) | User ID who created the key. |
POST: Response (201 Created)
{
"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
| Field | Type | Description |
|---|---|---|
| rawKey | string | The full API key. Shown only once: store it securely. |
| key.id | string (UUID) | API key identifier. |
| key.key_name | string | Human-readable name for the key. |
| key.key_prefix | string | First 18 characters + "..." for identification. |
| key.scopes | string[] | Permission scopes granted to this key. |
| key.allowed_ips | string[] | IP allowlist or null. |
| key.created_at | string (ISO 8601) | When the key was created. |
| key.expires_at | string (ISO 8601) | When the key expires, or null if no expiry. |
POST: Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| keyName | string | Required | Human-readable name. 1-100 characters. |
| scopes | string[] | Optional | Permission scopes. Defaults to ["smartlinks:read", "smartlinks:write"]. Valid values: smartlinks:read, smartlinks:write, analytics:read, fans:read, fans:write. |
| allowedIps | string[] | Optional | IPv4/IPv6 addresses to restrict key usage. Max 10 IPs. null = no restriction. |
| expiresAt | string (ISO 8601) | Optional | Future expiry date. null = no expiry. |
DELETE: Response (200 OK)
{
"success": true
}DELETE: Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| keyId | string (UUID) | Required | ID 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
curl "https://enterprise.soundyaad.com/api/enterprise/v1/keys" \ -H "x-api-key: sy_ent_yourcompany_..."
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"}'
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
/api/enterprise/reset-passwordTrigger 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
/api/enterprise/invite/legacy-refreshSelf-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
| Parameter | Type | Required | Description |
|---|---|---|---|
| invite_id | string (UUID) | Required | The enterprise_customers UUID carried by the legacy ?invite= link. |
Response (200 OK)
{ "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
/api/enterprise/attentionReturns 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)
{
"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
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | Required | Stable condition key — dedupe client-side so a condition alerts once per trip, not per page load. |
| severity | string | Required | "critical" blocks link creation or payments, "warning" needs action soon, "info" is ambient context. |
| title | string | Required | Short headline for lists and notifications. |
| message | string | Required | One-line explanation including the business reason. |
| href | string | Optional | Dashboard route that resolves or explains the condition. |
| actionLabel | string | Optional | CTA 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.
| Field | Type | Description |
|---|---|---|
| link_credits_exhausted / link_credits_low | critical / warning | Free tier: usable pool (domain credits when a verified domain is live, otherwise standard + domain) is empty or at ≤10. |
| quota_exhausted / quota_spending_credits | critical / warning | Paid tier: monthly quota used up — with no prepaid credits left creation pauses; with credits, new links draw from the prepaid reserve. |
| standard_credits_parked | info | Free + verified custom domain: standard credits are held while links spend domain credits. |
| domain_unverified | warning | A custom domain is attached but DNS is not verified — links still serve sya.to. |
| links_failed / links_resolving | warning / info | Smart links failed store resolution, or have been pending over 24h. |
| webhook_failing / webhook_paused | critical / info | Circuit breaker parked deliveries after repeated failures, or the endpoint is configured but disabled. |
| subscription_grace / subscription_paused | warning / critical | Billing window ended — in the 72h grace window, or paid features already restricted. |
/api/enterprise/workspacesLists 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)
{
"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
| Field | Type | Description |
|---|---|---|
| id | string (UUID) | enterprise_customers id — the value passed to the switch endpoint. |
| company_name | string | Workspace display name. |
| role | string | Your role in that workspace: owner, manager, or viewer. |
| status | string | "owner" for owned workspaces, otherwise the membership status (active). |
| is_owner | boolean | Whether you own the workspace (enterprise_customers.user_id). |
| is_active | boolean | Whether this workspace is the one your session currently resolves to. |
| access_state | string | Billing 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>"
/api/enterprise/workspace/switchPersists 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace_id | string (UUID) | Required | The enterprise_customers id of the workspace to activate — from GET /api/enterprise/workspaces. |
Response (200 OK)
{
"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
{
"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.
/api/enterprise/v1/sub-distributorsProvision 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Company or brand name of the child distributor. Max 200 characters. |
| slug | string | Optional | Desired subdomain handle for https://<slug>.sya.to. Lowercase letters and numbers only. Auto-generated from name if omitted. |
| link_domain_type | string | Optional | Default routing domain: "sya_to" or "custom". Defaults to "sya_to". |
| custom_domain | string | Optional | Dedicated white-label custom domain (e.g. music.clientdistro.com). Requires custom-domain tier entitlement. |
| distributor_display_name | string | Optional | Public footer and metadata label. |
| brand_color | string | Optional | Brand accent hex color (e.g. #DB2C2C). |
| brand_logo_url | string (URL) | Optional | Direct image URL for the child distributor logo. |
| website_url | string (URL) | Optional | Apex redirect URL when a visitor navigates to the root domain. |
| meta_pixel_id | string | Optional | Meta Pixel ID for conversion tracking on smart links. |
| tiktok_pixel_id | string | Optional | TikTok Pixel ID. |
| google_tag_id | string | Optional | Google Analytics / Tag Manager measurement ID (G-XXXXX). |
| preferred_store_order | string[] | Optional | Ordered list of DSP platform keys shown on public link pages. |
| webhook_url | string (URL) | Optional | HTTPS webhook URL for tenant-specific event forwarding. |
| webhook_secret | string | Optional | Signing secret used to verify tenant webhook deliveries. |
Request Example
{
"name": "AfroVibe Records",
"slug": "afrovibe",
"brand_color": "#DB2C2C",
"website_url": "https://afroviberecords.com"
}Response (201 Created)
{
"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
| Parameter | Type | Required | Description |
|---|---|---|---|
| 403 UPGRADE_REQUIRED | error | Optional | Tier does not include sub-distributor multi-tenancy. |
| 403 SUB_DISTRIBUTOR_LIMIT_REACHED | error | Optional | Sub-distributor quota exhausted for your plan. |
| 409 SLUG_TAKEN | error | Optional | Requested slug is already in use. |
| 409 DOMAIN_ALREADY_EXISTS | error | Optional | Custom domain already claimed by another sub-distributor. |
/api/enterprise/v1/sub-distributorsList and filter all provisioned sub-distributor tenants under your enterprise account.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| search | string | Optional | Filter by name, slug, custom domain, or display name. |
| status | string | Optional | "all", "active", or "inactive". Defaults to "all". |
| sort | string | Optional | "newest", "oldest", or "name". Defaults to "newest". |
| page | integer | Optional | Page number (1-based). Defaults to 1. |
| limit | integer | Optional | Results per page (max 100). Defaults to 20. |
Response (200 OK)
{
"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
fan_email_notifications_enabled accepts true/false/null — null clears the override so release-day fan emails follow the account default.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.
/api/enterprise/v1/sub-distributors/:id/domainAttach a dedicated custom domain to a sub-distributor tenant. GET returns current config; DELETE removes it.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| domain | string | Required | Fully qualified domain or subdomain (e.g. music.afroviberecords.com). |
Response (200 OK)
{
"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" }
]
}/api/enterprise/v1/sub-distributors/:id/domain/verifyTrigger an on-demand DNS check and SSL certificate provisioning for the tenant's custom domain.
Response (200 OK)
{
"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:
// 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
/api/enterprise/healthUnauthenticated 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)
{
"success": true,
"status": "ok",
"checks": {
"database": true,
"billing_provider": true
},
"response_time_ms": 42,
"timestamp": "2026-07-29T10:30:00Z"
}Response (503: Degraded)
{
"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
const res = await fetch("https://enterprise.soundyaad.com/api/enterprise/health"); const data = await res.json(); console.log(data.status); 140
Python Example
import requests res = requests.get("https://enterprise.soundyaad.com/api/enterprise/health") data = res.json() print(data["status"]) # "ok"
Try It
Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether all checks passed. |
| status | string | Overall status: ok, degraded, or down. |
| checks.database | boolean | Whether the database is reachable. |
| checks.billing_provider | boolean | Whether the Bachs billing API is reachable. |
| response_time_ms | integer | Time taken to run all checks in milliseconds. |
| timestamp | string (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:
| Parameter | Type | Required | Description |
|---|---|---|---|
| X-RateLimit-Limit | integer | Optional | Maximum requests allowed in the current window (100). |
| X-RateLimit-Remaining | integer | Optional | Requests remaining in the current window. Decrements with each request. |
| X-RateLimit-Reset | integer | Optional | Unix timestamp (seconds) when the current window resets and the count returns to full. |
| Retry-After | integer | Optional | Only present on 429 responses. Seconds until you can make another request. |
{
"success": false,
"error": "Rate limit exceeded. Too many requests.",
"retryAfter": 42,
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}Error Response Format
{
"success": false,
"error": "Parameter 'title' is required"
}HTTP Status Codes
200: Success (or idempotent duplicate)201: Created202: 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 found429: Rate limit exceeded500: Internal server error503: Service unavailable (health check degraded)Common Error Responses
{
"success": false,
"error": "Invalid or missing API key"
}{
"success": false,
"error": "Account is disabled or access denied"
}{
"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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| Parameter 'title' is required | 400 | Optional | The title field is missing in the request body for create/update. |
| Invalid or missing API key | 401 | Optional | The x-api-key header is missing or the key doesn't match any record. |
| Unauthorized: invalid or expired token. | 401 | Optional | Dashboard session JWT is expired. Re-authenticate. |
| Unauthorized: api key has expired. | 401 | Optional | The API key's expires_at date has passed. Generate a new key. |
| Forbidden: account is disabled. | 403 | Optional | Enterprise account is deactivated. Contact support. |
| Forbidden: owner access only. | 403 | Optional | Endpoint requires owner role. Manager/viewer/API key cannot access. |
| Forbidden: read-only access. | 403 | Optional | A 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. | 403 | Optional | Request IP is not in the key's allowed_ips list. |
| Forbidden: API key missing required scope 'smartlinks:write'. | 403 | Optional | The API key lacks the scope needed for this operation. |
| Payment required. Your subscription is not active. | 402 | Optional | Subscription is cancelled/past_due and grace period has ended. Writes are blocked. |
| Smart link not found or already archived | 404 | Optional | The UUID or slug doesn't exist or was archived. |
| No UPC, ISRC, or source link available for resolution | 400 | Optional | Cannot trigger DSP resolution without a UPC, ISRC, or source link. |
| Rate limit exceeded. Too many requests. | 429 | Optional | More than 100 requests/min. Check Retry-After header. |
| brand_color must be a valid hex color (e.g. #E50914). | 400 | Optional | Hex color validation failed on PATCH /account. |
| webhook_url must use HTTPS. | 400 | Optional | Webhook 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. | 429 | Optional | Password reset rate limit (5 per hour) exceeded. |
| Internal server error. | 500 | Optional | Unexpected 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.
Pagination
List endpoints use offset-based pagination with the following response fields:
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | Optional | Current page number (1-based). |
| limit | integer | Optional | Number of results per page. |
| total | integer | Optional | Total number of matching records. |
| totalPages | integer | Optional | Total number of pages. Use to determine if more pages exist. |
# Page 1 GET /api/enterprise/v1/smart-links?page=1&limit=20 # Page 2 GET /api/enterprise/v1/smart-links?page=2&limit=20
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| Idempotency-Key | string (UUID) | Optional | Unique identifier for the request intent generated by your client application. Max 128 chars. |
| Expiration (TTL) | 24 hours | Optional | Cached execution results are stored for 24 hours. Retries with the same key return identical responses. |
| In-Flight Lock (409) | 409 Conflict | Optional | If a duplicate request arrives while the first is still processing, the API returns 409 Conflict with Retry-After header. |
| Deduplication Fallback | 200 OK | Optional | Requests with matching client_release_id or upc automatically return existing link details safely. |
Sending an Idempotent Request (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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| Additive changes | - | Optional | New fields, endpoints, and parameters may be added at any time without a version bump. Your client must ignore unknown fields gracefully. |
| Breaking changes | - | Optional | Removing 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 | - | Optional | When 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 | - | Optional | Endpoints marked as Beta may change without a version bump. Avoid using Beta endpoints in production. |
Data Types
| Parameter | Type | Required | Description |
|---|---|---|---|
| UUID | string | Optional | RFC 4122 UUID v4. Example: "550e8400-e29b-41d4-a716-446655440000". |
| ISO 8601 date | string | Optional | Date in YYYY-MM-DD format. Example: "2026-08-15". |
| ISO 8601 datetime | string | Optional | Timestamp in UTC with timezone suffix. Example: "2026-07-29T10:30:00Z". All timestamps are UTC. |
| boolean | boolean | Optional | JSON true or false. Not 1/0 or "true"/"false". |
| null | null | Optional | JSON 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). |
| integer | integer | Optional | Whole number. Example: 42. |
| number | number | Optional | Decimal number. Example: 25.00. |
| string (URL) | string | Optional | Fully qualified URL with scheme. HTTPS required for webhook URLs. |
| string (hex) | string | Optional | Hex color code. Example: "#E50914". Must match /^#[0-9a-fA-F]{6}$/. |
| string[] | array | Optional | JSON 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
| allowed_ips | string[] | Optional | Array of IPv4 or IPv6 addresses. Max 10 IPs per key. null or omitted = no restriction. |
| Validation | - | Optional | IPs 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 | - | Optional | Pass allowedIps in the POST /api/enterprise/v1/keys request body when creating a key. |
| Setting via dashboard | - | Optional | Use the API Keys settings page to manage IP allowlists for existing keys. |
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
| Feature | Starter | Growth | Pro | Unlimited |
|---|---|---|---|---|
| Monthly links | 500 | 1,500 | 5,000 | 25,000 |
| API keys | 3 | 5 | 10 | 10 |
| Custom domain | No | Yes | Yes | Yes |
| Hide branding | No | No | Yes | Yes |
| Webhooks | Yes | Yes | Yes | Yes |
| Analytics history | 30 days | 1 year | Unlimited | Unlimited |
| Fan data history | 30 days | 1 year | Unlimited | Unlimited |
| Team members | No | No | 3 | Unlimited |
Changelog
Artist Identity Hardening
- 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.
artist_nameno 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_namenow 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.
Fan Name Capture
fan_capture_name_modeaccount setting: controls whether smart-link signup forms ask for the fan's name at first touch —hidden(default),optional, orrequired. Set viaPATCH /api/enterprise/accountor 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.
Richer Fan List Filters
artist_idonGET /v1/fans: filters the list to fans who signed up on any release of one enterprise artist.channelonGET /v1/fans: comma-separated first-touch channel keys; thedirecttoken selects fans with no recorded channel.- Multi-value
release_idandcountry: both now accept comma-separated lists. All filters apply to the JSON list,?format=csv, andPOST /v1/fans/export.
release_idnow 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.
Exact Dashboard Analytics
GET /api/enterprise/dashboard/analyticsis now a single server-side aggregation: breakdowns are computed exactly over the full window — no 10k event sampling.events_truncatedandunique_views_approxare retained for compatibility and are always false;events_sampledis the exact number of events in the window.previous.unique_viewsis now period-distinct visitors: it was a sum of per-day uniques, so the Unique Visitors delta now compares like with like.
- Traffic source
Twittergrouping: 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.
Normalized Label Names
labelvalues 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.labelonGET /v1/artists,GET /v1/artists/{id}, and values accepted byPATCH /v1/smart-links/{id}are now normalized to the rights-holder name — copyright markers, leading years, and license/distribution clauses are stripped.
Artist-Scoped Analytics & List Sorting
artist_idonGET /api/enterprise/dashboard/analytics: scopes every metric — totals, previous-window deltas, top links, fan counts, and breakdowns — to one roster artist's releases. Combinable withsub_distributor_id; non-UUID values return 400.dironGET /v1/fans:asc|descfor the defaultcreated_atordering — honored on the JSON list, filtered/resolved-id paths, and the?format=csvexport. Ignored whensort=releases_saved.sort=superfansonGET /v1/artists: ranks the roster by the superfan rollup (fans with 2+ saved releases) alongside the existingfans/releasessorts.
Precise Fan Acquisition Links
via.source_url: every per-saveviaobject onGET /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.
- Non-release first touches:
first_touchpreviously only considered signup events carrying arelease_id, so fans acquired on artist pages or Vault surfaces showed no origin. The earliest signup event of anypage_typenow wins (release_id/titleare null for non-release surfaces).
Analytics Correctness & Sampling Transparency
- 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'writessource='presave_link'at capture, so vault captures were counted as smart links infans_by_source. Any non-release/artistpage_typenow lands inother. - 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.
previousis nownullwhenever the prior window would extend beyond the retention floor. unique_viewsdenominator: it summed per-day rollup uniques, counting a returning visitor once per day. It is now a period-distinctvisitor_idcount from the same event sample the outcome split uses — matching denominators forclicked_store_pctandfan_capture_pct.- Missing release markers: releases without
release_datesilently produced no timeline marker —created_atis 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.
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.
Executive Analytics: Outcome Split, Period Deltas & Print Report
outcomeonGET /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.previouswindow totals: dated ranges now return prior equal-lengthviews/clicks/fans_capturedfor period-over-period deltas.nullonrange=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/reportrenders 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.
- 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_linkis a legacy field name, not all smart links are pre-save links. Vault signups now bucket correctly bypage_typeinstead 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.
- 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.
Fan CRM Hardening: Tenant Column, PII Minimization & Consent Integrity
fans:piicapability: raw fan contact fields are now a declared capability. Owner/manager/admin sessions and owner-issued API keys keep rawemail/phone/primary_contact;viewersessions receive masked values (j•••@gmail.com) pluspii_masked: trueon list, artist-fans, and detail responses.- Human-readable CSV columns: fan exports (sync
?format=csvand asyncPOST /v1/fans/export) now includerelease_titleandsub_distributorcolumns alongside the raw UUIDs. - Fan detail depth:
GET /v1/fans/{id}now returns per-saveviaattribution (page type, UTM, capture host, external referrer),artist_nameper release,first_touch,last_activity_at, consent evidence (consent_version/consent_text/consent_captured_at),unsubscribed_at, and the owningsub_distributor. - Update auditing:
PATCH /v1/fans/{id}writes anenterprise.fans.updateaudit-log entry recording which consent flags and tags changed.
- Tenant-isolated fan events:
fan_eventsrows now carryenterprise_customer_iddirectly (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 withfans:pii; viewer search is name-only so it cannot confirm a specific contact's presence in the database.
- PATCH authorization:
PATCH /v1/fans/{id}previously ran without a role check — any session role (including read-onlyviewer) could flip consent flags and attach tags. It now requires the dedicatedfans:writecapability (manager/owner), matching the erasure gate. - Unsubscribe integrity: setting
email_allowed: trueis now ignored when afan_unsubscribestombstone 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_linksrow's tag belongs to the fan's own artist — a malformed link can no longer surface a foreign artist's tag label.
Artist Roster & Superfan Ranking
- Artist roster API:
GET /v1/artists,GET /v1/artists/{id},GET /v1/artists/{id}/releases, andGET /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/backfilllinks 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_savedranks fans by distinct saved releases — including insidemin_releasescohorts — with correct pagination. - Artist-scoped fan history:
GET /v1/fans/{id}?artist_id=…scopesreleases_savedand the release history to a single artist.
Fan Email Notifications Toggle
fan_email_notifications_enabledaccount switch: PATCH /api/enterprise/account accepts a boolean (defaulttrue). 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_enabledas 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).
Fan CRM: Superfan Filters & Saved Releases
- Fans list filters:
GET /v1/fans(and the?format=csvandPOST /v1/fans/exportpaths) now acceptmin_releases(distinct saved-release threshold, e.g. 2 for superfans),has_whatsapp(phone present + WhatsApp opt-in), andhas_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
releaseshistory:GET /v1/fans/{id}returns the fan's saved releases (up to 50, most recent first) withrelease_id,title,slug, andsaved_at.
- Fan list scale:
tagandmin_releasesfilters 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 signeddownload_urlon every poll, so links fetched after completion never expire. - Sync CSV parity:
GET /v1/fans?format=csvnow shares the async export's tighter rate-limit bucket and writes the sameenterprise.fans.exportaudit-log entry.
- No silent empty results: backend lookup failures in fan list/detail resolution now return
500instead of an empty list or zeroed counts. date_toinclusive: a bareYYYY-MM-DDvalue now covers the whole day (through 23:59:59.999 UTC) instead of cutting off at midnight.
Multi-Workspace Switcher & Shared Permission Matrix
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 theenterprise_workspacehttpOnly cookie (Bearer clients can use thex-enterprise-workspaceheader). 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 whatowner/manager/viewer/api-read/api-writemay do.
Authenticated Workspace Creation
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 Bachscheckout_urlthat flows through the existing/enterprise/activatepath, bindingusers.idon 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.
Owner Invite Link Sunset
- Legacy invite self-heal:
POST /api/enterprise/invite/legacy-refreshaccepts theinvite_idfrom 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.
- Bare-UUID owner invites removed:
POST /api/enterprise/signupno longer activates viainviteId— owner invites now require theinviteTokenfrom the emailed link, and legacy ids return410 LEGACY_INVITE_EXPIRED. TheGET /api/enterprise/invite?id=<uuid>lookup was removed in favor of?token=.
Free Trial Links & Post-Payment Activation
- 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 pollsGET /api/enterprise/activatewhile 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/importslists 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.
- 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.
Security Hardening
- Fan PII export restricted:
POST /v1/fans/export,GET /v1/fans/export/:export_id, and theGET /v1/fans?format=csvfast path now require the owner or manager role. Viewer sessions and API keys receive403. - Signup account protection:
POST /api/enterprise/signupno longer sets a password on existing password-less (OAuth) accounts — it returns409with 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_urlfetches now block private/internal IPs, validate every redirect hop, and only accept JPEG/PNG/WebP verified by magic bytes. - URL scheme validation:
artwork_urlanddistributor_linkaccept onlyhttp(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 issuedcheckout_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.tolinks and the dashboard stay live — matching actual resolver behavior.
- Prepaid renewal reminders: manual-renewal (non-USD) plans now get owner emails 7, 3, and 1 days before
current_period_end, riding the existingenterprise_lifecycle_noticescron lane with no new infrastructure. The day-3 reminder emits thesubscription.expiringwebhook 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.
- Fan exports audited: each export request now writes an
enterprise.fans.exportaudit-log entry. - API key display:
key_prefixnow shows the key's stable prefix plus its last 4 characters. - Cron authentication: cron endpoints authenticate via the
x-cron-secretheader only, compared in constant time.
Scoped Slug Namespaces, Renames & Vanity Aliases
- Slug rename:
PATCH/PUT /api/enterprise/v1/smart-links/:idacceptsslug. The old slug is recorded inrelease_slug_entriesand permanently permanent-redirects to the new canonical URL — existing shares keep working. Conflicts return409 SLUG_TAKENwith a suggestion. - Vanity aliases:
add_aliases/remove_aliasesattach extra URLs that permanently redirect to the canonical link;retire_slugsfrees old slugs. GET :id now returnsslug_entrieswith 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.
link.updatedwebhook: payload now includesold_slug,aliases_added, andretired_slugswhen slugs change.- Sub-distributor reassign guard: moving a link across namespaces now fails with
SLUG_CONFLICT_ON_REASSIGNinstead of silently colliding.
Needs Attention Feed & Capacity-Aware Dashboard
- Attention feed: new session-authenticated
GET /api/enterprise/attentionreturns 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/overviewrecent links now includeresolution_status.
- 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/accountnow returnsidon the account object.
Prepaid Period Billing for Non-USD Currencies
- 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/subscriptionreturnsrecurring(USD billing) orprepaid(all other currencies) so dashboards can label plan purchase accurately.
- 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.
Credit Pool Hardening & CSV Imports
- Total links counter:
GET /api/enterprise/v1/usagenow returnslinks.created_total— links created this period across quota AND credit funding. On free tierlinks.usedstays 0 (no monthly quota); readcreated_totalfor 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.
- CSV imports spend credits:
POST /v1/smart-links/batch-csvnow 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 returnsneeds_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_creditseverywhere reflects the verified state.
- 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.
Standard & Domain Credit Pools
- 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/usagereturnscredits.standard,credits.domain,credits.needs_domain_credits, and per-pool prices (standard_price_ngn,domain_price_ngn);GET /api/enterprise/accountexposeslink_credits_standard/link_credits_domain. - Pack pool selection:
POST /api/enterprise/billing/link-packsaccepts an optionalpoolfield (standard|domain) — the server prices the pack by pool, not by client-supplied pricing.
- 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, andneeds_domain_creditsso 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/subscriptionaccepts an optionalreasonbody field (too_expensive|not_enough_features|switching_alternative|temporary_pause|other) — stored on the cancellation billing event and audit log.
Store Resolution Visibility, Pixels & Domains for All Plans
- Resolution summary:
GET /api/enterprise/v1/smart-links/:idnow returns aresolutionblock —status,resolved_count,searching,pending_jobs, andlast_error. List rows exposeresolved_countandsearchingtoo. - Meta Conversions API: set
meta_capi_tokenviaPATCH /api/enterprise/accountand fan captures send a server-sideLeadevent to your Meta pixel, deduplicated against the browser event byevent_id.GET /accountexposesmeta_capi_token_set(never the raw token).
- 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_noteinstead ofresolution— the key now consistently carries the structured resolution summary across endpoints.
Free Pay-As-You-Go Tier
- 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.
- Signup without checkout:
POST /api/enterprise/signupwithtier: 'free'creates and activates the workspace immediately — no payment redirect. Optionalcustom_domain,website_url, andbrand_logo_urlfields are accepted at signup for all tiers. - Subscription response:
GET /api/enterprise/billing/subscriptionnow returnslink_price_ngn— the workspace's effective per-link price after domain pricing and any negotiated override. - Onboarding gate: free workspaces land on
/enterprise/onboardinguntil they hold usable credits, buy a credit pack, or upgrade — the dashboard unlocks whenonboarding_completed_atis set or a usable credit balance exists (exposed onGET /api/enterprise/account). - Checkout return_url:
POST /api/enterprise/billing/link-packsandPATCH /api/enterprise/billing/subscriptionaccept an optional same-sitereturn_url; success returns with?checkout=success, cancellations with?checkout=cancelled.
Prepaid Link Credits
- Prepaid link credits:
POST /api/enterprise/billing/link-packsopens 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/usagenow returns acreditsblock —balance,used_this_period,total_available, andbuy_url. - 429 top-up hints: quota-exceeded responses now include
link_creditsandbuy_links_urlso integrators can deep-link customers into a top-up instead of an upgrade.
- 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/batchclaims its whole batch atomically across quota then credits, and releases unclaimed slots when items are skipped, updated, or fail to insert.
Richer Update Responses & Distributor Fields
- New update fields:
PATCH/PUT /v1/smart-links/:idnow acceptslabel,distributor, andcopyright, andrelease_datecan 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) andresolution— whether platform links were re-queued or left untouched.
- 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_fieldsnow lists public field names only (artist_name,release_type, …) instead of internal column names.
API Key Scope Parity, Batch Hardening & Analytics
- API key scope coverage:
x-api-keyauthentication now supports/v1/usage,/v1/sub-distributors*,/catalog-lookup,/upload/artwork, andfans:write/fans:readexport operations. - Smart link updates:
PATCH/PUT /v1/smart-links/:idnow supports updatingrelease_typeandstatus, andGET /v1/smart-links/:id/analyticshonors?range=7d|30d|90d.
- Batch endpoint parity:
POST /v1/smart-links/batchnow acceptsartist_name, emits canonical.sya.toURLs, increments monthly link usage, and marks supplied artwork as manual overrides.
Instant Artwork Overrides
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.
- Artwork ownership:
artwork_urlset via PATCH now marks the fieldartwork_source = manual(previouslyexternal) and proxies the image to our CDN, so your artwork survives DSP sync and dead origin URLs.
Webhook Signature Compatibility
- Signature format compatibility: Endpoints can now opt into a bare hex
X-Soundyaad-Signatureheader (nosha256=prefix) for receivers that compare the digest literally. The documentedsha256=<digest>format remains the default for all endpoints.
Link Resolution Reliability
- 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.
DSP Metadata Sync
- 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.
- Resolve endpoint:
POST /v1/smart-links/:id/resolvenow returnsmetadata_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.
Subscription Expiry Grace & Access States
- 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
accessobject withstate(active | grace | restricted | unactivated | suspended),grace_ends_at,paid_features,dashboard_access, andbasic_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 with403 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.
- 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.
Smart Link Display Controls
- Platform visibility:
enabled_platformson the account (PATCH /api/enterprise/account) and each sub-distributor controls which DSPs appear on smart links. Per-release,hidden_platformson PATCH /v1/smart-links/:id subtracts specific platforms from a single link. - Fan capture controls:
fan_capture_enabledandfan_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.
Admin Grant Monthly Quota Cycles
- 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_periodis the current quota cycle. The response also includesstart_at,end_at,access_start_at,access_end_at, andstatus.
CRM Agent Runtime Reliability
- 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.
- 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.
Verified Product Reply Intelligence
- 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.
- 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.
Self-Serve Checkout Reliability
- 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.
Documentation Portal & DX Overhaul
- 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.
- 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.
Multi-Tenant White-Label Sub-Distributor Provisioning
- 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_idorsub_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, andsub_distributor.domain_verifiedwebhooks. - 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.
Asset Storage & Enterprise Billing
- 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).
- Multi-DSP Resolution Engine: Expanded automated link resolution to support Audiomack, Deezer, Boomplay, Tidal, and YouTube Music in addition to Spotify and Apple Music.
Initial Public Enterprise API Release
- 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_idandupcto safely handle retry loops. - Real-Time Webhooks Engine: Event delivery with HMAC-SHA256 signatures for
link.resolved,fan.created,link.failed, andlink.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
Email Support
[email protected]: Include your X-Request-Id for faster resolution.
Status Page
Real-time uptime and incident history at status.soundyaad.com.
API Docs
This page: reference, guides, and interactive Try It panels.
Need Help Integrating?
If you run into issues while integrating, reach out with the following information for the fastest response:
- • Your
X-Request-Idfrom 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)
