Developer API
Server-to-server partner metadata intake · API v1 · OpenAPI reference →
How it works
- 1 · Get accessContact your Muqera operator. They activate your partner account and issue a scoped, 90-day key. The raw key is shown once.
- 2 · Submit metadataPOST
/api/v1/submissions/with Bearer auth and an Idempotency-Key. - 3 · Track reviewPoll
GET /api/v1/submissions/?id=…, or receive signed webhooks (submission.status_changed).
Commercial onboarding, agreements, branding and billing are handled directly with Muqera — they are not part of this API. For record label, white-label or tenant-portal questions, talk to your operator.
Current availability
Metadata intake, the review workflow and signed outbound webhooks are implemented for activated partners. Too Lost / store delivery is not available.
An accepted request enters Muqera Admin review. It is not a published release and not a provider delivery. Delivery will only be enabled after the required provider approval, an approved adapter and integration testing.
1. Request partner access
Contact your Muqera operator. They create and activate your partner account, then issue a scoped key. Keys expire after 90 days; the raw key is shown once. Use separate keys for separate servers. Revoke a compromised key immediately.
2. Authenticate securely
Authorization: Bearer YOUR_PARTNER_API_KEY Content-Type: application/json
Use HTTPS in production. Store keys in a server-side secret manager or environment variable. Never include keys in browser JavaScript, URLs, screenshots or public repositories. API calls do not use dashboard cookies or CSRF tokens. No browser CORS access is enabled.
3. Submit metadata
POST /api/v1/submissions/ · scope submissions:write
MUQERA_BASE_URL=https://muqera.comcurl "$MUQERA_BASE_URL/api/v1/submissions/" \
-H "Authorization: Bearer $MUQERA_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: release-demo-2026-0001' \
--data '{"title":"Your release","artist":"Your artist","format":"Single","rights_confirmed":true}'Required: title (2–200 bytes), artist (2–150 bytes), rights_confirmed (boolean true). Format: Single, EP or Album (default Single). Unknown fields, file URLs and media uploads are rejected. JSON limit 64 KiB. Idempotency-Key: 16–100 letters/digits/hyphens/underscores; reuse only for identical data.
HTTP 201
{"id":"...","status":"pending_review","delivery_enabled":false,
"message":"Metadata intake only. Not delivered to any provider."}Retry the identical request with the same key after a network interruption. Identical replay returns 200; changed data with the same key returns 409. Do not generate another key for every retry.
4. Check review status
GET /api/v1/submissions/?id=SUBMISSION_ID · scope submissions:read
GET /api/v1/submissions/ returns the latest 50 of your own submissions. Review decisions are also pushed as signed outbound webhooks (submission.status_changed); polling works regardless. Pagination/update endpoints are not implemented; other partners' IDs return 404.
- pending_review — received for review
- needs_changes — read the operator's review_note; contact your operator (metadata update endpoint not yet available)
- rejected — not accepted
- approved_waiting_integration — approved for preparation, delivery still blocked
Client-side blueprint — what your system needs
The API is deliberately small; the integration lives in your stack. A complete client system is eight parts. Muqera provides the endpoints, the keys, the review queue and the signed webhooks; you build the rest:
- 1 · Server-side secret storeKeep your
mq_live_…key in an environment variable or secret manager on your server. Never in browser code, a mobile app, a CMS field, a screenshot or git. One key per server; if exposed, ask your operator to revoke it immediately. - 2 · Submitter serviceA server-side module (or cron worker) that POSTs
/api/v1/submissions/withAuthorization: BearerandContent-Type: application/json. Use a 10–15 s timeout; one attempt per invocation; send identical bytes on every retry. - 3 · Idempotency-Key storePersist the key with your record (e.g.
release-2026-0001). Identical retry with the same key returns200and the original id. Changed data under the same key returns409— fix the data or mint a new key, never silently retry with a fresh one. - 4 · Webhook receiverA public HTTPS endpoint on port 443 that verifies
X-Muqera-Signature—sha256=+ HMAC-SHA256 of the raw body with your webhook secret — using a timing-safe compare. Dedupe onX-Muqera-Deliveryand return 2xx quickly. Events:ping,submission.status_changed,release.status_changed. - 5 · Status mirrorReflect review state in your own UI:
pending_review→needs_changes(withreview_note) →rejected/approved_waiting_integration. Either pollGET /api/v1/submissions/?id=…or consume webhooks — polling always works; webhooks just make it real-time. - 6 · Backoff & quotaOn
429 rate_limit_exceededhonorRetry-After: 60. On429 monthly_intake_limit_reachedstop and contact your operator — retrying does not help. On5xxretry later with the same Idempotency-Key. On4xxfix the request; do not retry unchanged. - 7 · Monitoring & key lifecycleLog every delivery id and response code; alert on repeated failures or 401s (an expired key looks like silent breakage to your users). Keys live 90 days — track expiry and rotate before they lapse, one key per environment.
- 8 · Human review flowShow review state to your team: submitted → In review → Needs changes (show
review_note, allow resubmission) or Rejected → Approved. “Approved” means prepared for delivery — provider delivery stays blocked until Muqera completes the Too Lost integration. Nothing publishes automatically.
Verify your webhook before going live — the exact check:
expected = "sha256=" + HMAC_SHA256_HEX(rawBody, WEBHOOK_SECRET)
if (!timingSafeEqual(expected, request.header("X-Muqera-Signature"))) return 401
if (alreadySeen(request.header("X-Muqera-Delivery"))) return 200 // duplicate
handle(request.header("X-Muqera-Event"), JSON.parse(rawBody))
return 200Delivery retries fail over 1m · 5m · 30m · 2h · 12h (max 5 attempts). A ping event is available from Admin setup — use it to prove the path end to end, then send a real submission and poll its status.
Limits & errors
120 authenticated requests per minute per partner/IP, plus an operator-configured monthly new-metadata quota (default 1000). Identical retries do not consume another quota slot. Monthly quota exhaustion returns 429 with monthly_intake_limit_reached; do not retry immediately. HTTP 429 includes Retry-After: 60. Suspended partners and revoked/expired keys are blocked immediately.
| Code | Meaning |
|---|---|
| 400 / 422 | Malformed JSON / invalid fields |
| 401 / 403 | Invalid credentials / missing scope |
| 404 / 405 | Not found / unsupported method |
| 409 / 413 / 415 | Idempotency conflict / too large / JSON required |
| 429 / 503 | Rate limit / storage temporarily unavailable |