Partner API · v1

HTTP API for the Wav Linq attribution protocol — asynchronous detection via job polling, plus federated embed so credit resolves against your catalog, not ours. Sign up or login to your developer account to get started.

Base URL https://wavlinq.com
1

Get your API key

Create a developer account and request a key from the API keys page. Pass it on every request as a Bearer token or X-API-Key header.

2

Submit a detection job

POST /api/detect/jobs with an audio file. You receive a job_id immediately — processing runs in the background.

3

Poll until terminal

GET /api/detect/jobs/{job_id} with exponential backoff until status is succeeded or failed. Latency depends strongly on whether a mark is present — see Latency before sizing your poll loop.

4

Embed + register (optional)

Join the federated network — embed a Linq ID and register your resolver URL so attribution resolves against your catalog when others run detection.


1. Authentication

All endpoints require a partner API key. Include it on every request using one of the headers below.

Authorization: Bearer YOUR_API_KEY
X-API-Key: YOUR_API_KEY

Headers

Name Description
Authorizationrequired Bearer <key> — standard OAuth-style header
X-API-Key Alternative to Authorization — pass the raw key value
Create and rotate keys on the API keys page. Live and test environments use separate keys. A missing key returns 401; an invalid key or a key not authorized for that job returns 403.

2. Detection jobs

Upload audio, receive a job_id, then poll until the job reaches a terminal state.

1

Submit a detection job

Upload an audio file to start asynchronous attribution detection. Returns a job_id immediately.

POST https://wavlinq.com/api/detect/jobs
Authorization: Bearer YOUR_API_KEY
Content-Type: multipart/form-data
Idempotency-Key: optional-unique-id

Body parameters

Name Type Description
audio_filerequired file Audio file to analyze (multipart field)
extraction_mode string quick, standard (default), or exhaustive. Governs how hard the decoder searches — see Extraction modes
priority string Queue priority. Defaults to standard
idempotency_key string Form-field alternative to the Idempotency-Key header

Accepted audio

Property Value
Formats .wav · .mp3 · .flac · .aiff · .m4a
Maximum request size 60 MB. Larger requests are rejected with 413 before reaching the queue
Shortest reliable clip Around 4 seconds. Shorter submissions are accepted, but recall falls off and a miss is not evidence the source was unmarked
An unsupported extension is rejected with 400 and the body {"error": "File type .xyz not allowed"}. This rejection happens during request validation, ahead of the endpoint itself, so the body carries error without the success field that the endpoint's own errors include. Treat a missing success key as a rejection rather than assuming the field is always present.

Response · 202 Accepted

{ "job_id": "abc123-def456", "status": "queued", "status_url": "/api/detect/jobs/abc123-def456" }
Pass Idempotency-Key on retries — the same key returns the same job_id with 200 instead of 202.
2

Poll job status

Poll until status is succeeded or failed. Use exponential backoff — do not poll faster than once per second.

GET https://wavlinq.com/api/detect/jobs/{job_id}
Authorization: Bearer YOUR_API_KEY

Response · 200 — mark recovered

// the job object is nested under "job" { "success": true, "job": { "job_id": "abc123-def456", "status": "succeeded", "created_at": "2026-10-30T12:00:00+00:00", "started_at": "2026-10-30T12:00:01+00:00", "finished_at": "2026-10-30T12:00:02+00:00", "filename": "track.wav", "extraction_mode": "standard", "priority": "standard", "queue_wait_ms": 142, "processing_time_ms": 718, "error": null, "result": { "success": true, "composite_signature": "A1B2C3D4E5F6G7H8I9J0", "attribution_source": "partner_registry:live", "metadata": { "song_title": "Song Title", "title": "Song Title", "artist": "Artist Name", "isrc": "USABC2400001", "rights_holder": "Label Name" } } } }

Response · 200 — no mark present

// a conclusive negative is reported as status "failed" with result null { "success": true, "job": { "job_id": "abc123-def456", "status": "failed", "result": null, "error": "No Linq ID found", "processing_time_ms": 15950 } }
Read this before writing your retry logic. A job that finds no mark is reported as status: "failed" with result: null and an error string. That is a conclusive negative, not a system error — the decoder searched and found nothing. Do not re-submit it. Re-submitting conclusive negatives is the most expensive thing you can do to this API and to your own rate limit, because a negative costs roughly 20× a positive to compute. Branch on the error string, not on status alone — see Failure handling for the exact mapping.

status values

Value Terminal? Meaning
queued no Accepted and waiting for a worker
processing no A worker is decoding the file
succeeded yes A Linq ID was recovered; result is populated
failed yes No mark found, or the job errored. error distinguishes the two

attribution_source values

Value Description
direct Metadata resolved from a Wav Linq embed record
partner_registry:live Live call to your resolver endpoint succeeded
partner_registry:cache Metadata served from a fresh cache entry
partner_registry:stale_cache Your resolver was unreachable; a previously cached response was served instead. Treat the metadata as possibly out of date
partner_registry:registry_only Signature found in the registry but no metadata returned
Clients must tolerate unrecognized attribution_source values — new values may be added within v1. Do not use an exhaustive switch that throws on the default branch.
A populated composite_signature means a Wav Linq Linq ID was recovered from the signal and passed the protocol's integrity validation — a CRC-16 checksum over the recovered payload plus a minimum acceptance score from the decoder. The CRC is an integrity check, not a cryptographic signature: it establishes that the recovered bits are self-consistent, not who embedded them. Provenance comes from the registry record bound to that ID, not from the payload itself.

3. Throughput & latency

Detection cost is asymmetric. Size your integration against your expected miss rate, not your hit rate.

Latency

When a mark is present, decoding typically completes in under one second per 30-second window. When no mark is present, the decoder must exhaust its search across offsets, occupancy plans and geometries before it can conclude nothing is there — which takes substantially longer, on the order of 15 seconds for the same window. Negatives cost roughly 20× positives.

Practical consequence: a pipeline scanning audio you did not mark is dominated by miss latency. Use a poll interval that starts around 1 second and backs off to several seconds, set client timeouts above 30 seconds, and never block a user-facing request on a detection job. Each job also waits roughly 20–30 seconds to start, because it runs in a fresh worker, so end to end a marked file typically takes about 30 seconds; allow up to a minute.

Extraction modes

Mode Use when Trade-off
quick High-volume triage where you expect most files to be marked and can tolerate missing marginal cases Lowest latency; lower recall on degraded or short audio
standarddefault General use. Retries across sample rates and channel strategies Balanced
exhaustive Disputes, spot checks, or short clips where a miss is costly Highest recall; highest latency, especially on unmarked audio
A common pattern for catalog work: run quick across the whole set, then re-run only the misses under exhaustive. Running exhaustive across a large unmarked catalog is the worst case for both sides and will exhaust your rate limit.

Rate limits

20 requests/minute per API key for POST /api/detect/jobs during beta. Over limit returns 429 with a Retry-After header — honor it and do not tight-loop.

This is a published floor, not a capacity ceiling: sustained throughput above it is available by agreement, and catalog backfills are sized as a separate exercise rather than drawn from the per-minute limit. Contact us before a bulk run so we can provision for it — a backfill submitted against the standard limit will be throttled rather than queued.


4. Federated embed

How it works

Join the network as a node — embed a Linq ID and register a resolver URL pointing to your catalog. When anyone runs detection, Wav Linq calls your node's HTTPS endpoint to fetch track metadata. We never store it ourselves. Apply partner_registry.sql in your database before first use.

1

Embed + register resolver

Embeds a Linq ID and registers your resolver URL in one step. Returns attributed audio/wav as a download.

POST https://wavlinq.com/api/v1/partner/embed
Authorization: Bearer YOUR_API_KEY
Content-Type: multipart/form-data

Body parameters

Name Type Description
audio_filerequired file Source audio to embed (multipart field)
track_id string Track identifier used in signature generation
song_title string Alternative to track_id for signature generation
resolver_endpoint string Full resolver URL per request (Option A). {signature} and {SIG} are replaced with the uppercase Linq ID. Must be HTTPS on a public host
resolver_base_url string Base URL — Wav Linq appends path template (Option B)
resolver_path_template string Defaults to resolve/{signature}. {signature} and {SIG} both insert the uppercase Linq ID

Accepted audio

Property Value
Source formats .wav · .mp3 · .flac · .aiff · .m4a
Returned format Always uncompressed audio/wav, whatever you send. The mark is placed in a lossless carrier; re-encoding afterwards is yours to do
Maximum request size 60 MB. See the note below — the response, not the request, is the binding constraint here
Size the request against the WAV you get back, not the file you send. Because the response is uncompressed, it runs roughly 4–11× the size of a compressed source depending on its bitrate — a 12 MB 320 kbps MP3 returns around 50 MB of WAV. Responses beyond about 28 MB may be truncated at the edge rather than returning a clean error, and 28 MB is only about two minutes forty-five seconds of 44.1 kHz 16-bit stereo. In practice that means full-length tracks are at or past the limit of what this endpoint can return reliably. For catalogs of complete songs, long-form audio, or any production pipeline, use in-pipeline embedding instead: the audio never leaves your infrastructure, only the registration call crosses the boundary, and there is no response-size ceiling. Treat this endpoint as suited to clips, previews, and integration testing.

Response · 200 audio/wav

X-WavLinq-Signature: A1B2C3D4E5F6G7H8I9J0
X-WavLinq-Partner-Account-ID: your-account-id
X-WavLinq-Key-Fingerprint: key-fingerprint
For resolver URL, pick one approach: pass a full resolver_endpoint per request (placeholders are filled in), or provide resolver_base_url + resolver_path_template and Wav Linq builds https://base/resolve/{SIGNATURE}. HTTP, loopback, private, and link-local hosts are rejected.
This endpoint returns marked audio, which means the source file transits our service. Partners who cannot send audio off their own infrastructure can embed in-pipeline instead, so that only the registration call crosses the boundary and the audio never leaves their network. Ask us about direct integration.

5. Your resolver

Implement on your side — Wav Linq only stores a pointer to your resolver in partner_registry. We GET your HTTPS endpoint; your database stays yours.

1

Resolver contract

Wav Linq calls your registered URL when detection finds a partner-embedded Linq. Return JSON track metadata.

GET https://your-node.example/resolve/{signature}
X-WavLinq-Signature: A1B2C3D4E5F6G7H8I9J0
X-WavLinq-Timestamp: 1710000000 (if HMAC enabled)
X-WavLinq-HMAC: hex-hmac-sha256 (if HMAC enabled)

Request headers

Name Description
X-WavLinq-Signaturerequired 20-character signature (Linq ID) from the detection result
X-WavLinq-Timestamp Unix timestamp (seconds) — sent when HMAC verification is enabled
X-WavLinq-HMAC Hex HMAC-SHA256 of "{timestamp}.{SIGNATURE_UPPER}"

Response · 200 OK

{ "title": "Track Title", // required "artist": "Artist Name", // required "isrc": "USABC2400001", // optional "rights_holder": "Label Name", // optional "release_date": "2024-03-15", // optional "custom": { /* any additional fields */ } }
Documented resolver fields — title, artist, isrc, rights_holder, release_date, custom, and the provenance set — are copied onto result.metadata. title is also exposed as song_title. Put any extra keys inside custom. Return 404 for unknown signatures; detection still succeeds with registry-only attribution (partner_account_id and registered_at). Reject requests if HMAC skew is too large or MAC verification fails.
2

Generated audio & provenance

If you generate audio rather than distribute recordings, the music fields above do not describe your content — you have no ISRC and no rights holder. Return the provenance set instead. These keys are a convention rather than a separate endpoint: those keys are copied onto result.metadata with the other documented resolver fields.

Response · 200 OK — generated audio

{ "title": "Untitled Render 4821", // required "artist": "Example Studio", // required — the account, if no artist "content_origin": "ai_generated", // or "ai_assisted", "human" "provider_name": "Example Audio Inc.", "system_name": "ExampleVoice", "system_version": "2.4.1", "created_at": "2026-10-30T12:00:00Z" }

Provenance fields

Name Type Description
content_origin string ai_generated, ai_assisted, or human
provider_name string The legal entity that operates the generating system
system_name string Product or model name of the generating system
system_version string Version identifier, so a disclosure can be tied to a specific release
created_at string ISO 8601 UTC timestamp of generation
Wav Linq provides the durable mark and the resolution path. What a given disclosure regime requires you to say is yours to determine with your own counsel — we do not represent that returning these fields satisfies any particular statute.

6. Data retention & export

What we hold, for how long, and what you keep if you leave.

What we store

Data Retention Notes
Submitted audio (detection) Deleted after the job reaches a terminal state Held only to run the job. Not retained for training, benchmarking, or any other purpose
Submitted audio (embed) Deleted after the marked file is returned In-pipeline integration avoids this transit entirely
Job records 30 days Job ID, status, timestamps, filename, timing, and the recovered Linq ID. No audio
Registry records Retained for the life of the ID Linq ID, your account, key version, and your resolver URL. This is what keeps a mark resolvable
Your track metadata Not stored at rest Held in your systems and fetched from your resolver on demand
Resolver cache Short-lived performance copy A cached copy of what your resolver returned, used to answer repeat lookups and to serve stale_cache when you are unreachable

Export & exit

The mapping between your tracks and their Linq IDs is yours. You hold it at the moment of embedding — every embed response returns the X-WavLinq-Signature for that file — and we recommend persisting it on your side as the authoritative record rather than relying on us to reproduce it. A full export of your registry rows is available on request.

Marks already embedded stay resolvable. A Linq ID is embedded in the audio signal, so it does not stop existing when a contract does. If you leave, the registry rows for IDs you already minted remain in place and continue to resolve, which is what protects a historical disclosure obligation from lapsing retroactively. What ends is your ability to mint new IDs and to submit detection jobs.

Offline detection — running the detector inside your own infrastructure, with no call to us — is available under a separate agreement rather than through this API. Partners whose obligations require verification independent of a vendor's continued existence should ask about it explicitly.


7. Operations

Availability

The Partner API is in beta. It runs on managed infrastructure with request-level autoscaling, and current status and advisories are published on API Status.

Beta means no contractual uptime commitment, and that capacity is provisioned against observed partner load rather than a published ceiling. In practice: tell us before you turn on a new workload of material size, design for the failure modes below rather than assuming availability, and treat attribution as an asynchronous enrichment step rather than a dependency in a critical path. Partners who need an SLA should raise it during contracting — it is a commercial conversation, not a configuration flag.

!

Failure handling

Design your pipeline for our worst case scenarios. Note the first two rows especially — they look alike and must be handled differently.

Error handling

Situation We return Recommended behavior
No mark present status: failed, result: null, error: "No composite signature found…" Record as a conclusive negative. Do not retry. Re-running it costs ~20× a positive and returns the same answer
Job errored status: failed with any other error Retry once with backoff; if it persists, capture the job_id and contact us
Job not ready status: queued / processing Keep polling with backoff; don't block user-facing flows
Rate limited 429 + Retry-After Back off per header; queue and retry
Degraded / unreachable 5xx / timeout Fail open — treat attribution as deferred, re-submit later
Auth problem 401 / 403 Surface as config error; verify key matches job owner
Unknown resolver succeeds, registry_only Detection succeeds; metadata absent
Resolver unreachable succeeds, stale_cache Metadata may be out of date; refresh when your resolver recovers

Idempotency & versioning

Pass Idempotency-Key on retries — same key returns the same job_id (200 on replay vs 202 on first submit). The API is versioned (v1). Breaking changes ship under a new version with 90 days notice; additive changes — new response fields, new enum values — ship within v1 without notice, so parse permissively. Subscribe to API Status for advisories.