Developer Guides
Learn how to authenticate requests, manage granular permission scopes, stay within rate limit boundaries, and interact with the DistroVibe REST API v1.
1. Authentication
The DistroVibe Public REST API v1 uses Bearer token authentication via cryptographically generated live keys (dv_live_...).
Every request must include your secret API key in the Authorization header:
Sandbox
Every application has its own sandbox. Create a sandbox key (dv_test_...) in API Keys: it works as soon as you submit your application, while we review it. Sandbox keys call the same endpoints as live keys, against an isolated test catalogue that starts with a sample artist, a live release with analytics, and a draft.
- Nothing in the sandbox is ever delivered to stores, and no email is sent.
- ISRC and UPC values you send are not stored, so a test can never reserve a real code.
- Submitting a release runs the real QA and release-date checks, then moves it to
PENDINGand sendsrelease.submitted. - Webhooks work as in production, so you can test your receiver end to end.
- Requests count against a separate sandbox allowance, not your live quota.
Simulating review and delivery
Move a submitted sandbox release through its lifecycle, as our review and the stores would. Each call sends release.status_changed.
2. Granular Scopes Matrix
| Scope Identifier | Category | Description | Access Level |
|---|---|---|---|
| artists:read | Catalog | View artist profiles & roster | Standard |
| artists:write | Catalog | Create and update artist profiles | Standard |
| releases:read | Releases | View releases, metadata & submission states | Standard |
| releases:write | Releases | Create & update draft release packages | Standard |
| releases:submit | Releases | Submit release for QA & store delivery | Sensitive |
| catalog:read | Catalog | Enumerate full catalog, query UPCs & ISRCs | Standard |
| analytics:read | Insights | Access stream telemetry & platform breakdown | Standard |
| royalties:read | Financials | Access monthly sales & track royalty ledger | Restricted |
| publishing:read | Publishing | View composition registrations & shares | Standard |
| publishing:write | Publishing | Submit & withdraw composition registrations | Standard |
| teams:read | Organization | View team members & roles | Standard |
| teams:manage | Organization | Invite/remove team members | Sensitive |
| uploads:write | Media | Request presigned direct S3 upload URLs | Standard |
| webhooks:manage | Tools | Manage webhook endpoints & subscriptions | Standard |
3. Rate Limiting & Resource Protection
To ensure stable platform availability, the following limits are enforced per account and shared by all of its API keys:
Sliding minute window
Active in-flight requests
Included with Label Pro · renews monthly · add packages in Usage
HTTP Response Headers
4. Error Handling
The DistroVibe API uses standard HTTP status codes. Error responses always return a structured RFC-compliant JSON object:
{
"error": {
"code": "INSUFFICIENT_SCOPE",
"message": "This API key lacks the required scope: 'royalties:read'.",
"status": 403,
"requiredScope": "royalties:read"
}
}5. Releasing Music
The API follows the same rules as the DistroVibe dashboard. A typical release takes five steps:
POST /v1/releasescreates a draft (scopereleases:write).POST /v1/uploadswithpurpose: "cover_art"or"release_audio", PUT the file to the returned URL (files over 100 MB get one URL per 64 MB part), thenPOST /v1/uploads/{id}/complete(with the part ETags for multipart). DistroVibe checks the size and format — cover art square and at least 3000 × 3000, audio WAV/FLAC at 44.1 kHz or higher — and returns the URL. Uploads reserve storage quota until they complete, fail or expire.- Store the URL with
PATCH /v1/releases/{id}(coverArtUrl) orPATCH /v1/tracks/{id}(audioUrl). POST /v1/releases/{id}/validateruns the QA checks without submitting.POST /v1/releases/{id}/submitwith the three Rights Declaration confirmations (scopereleases:submit). QA failures return 422 with the report.
Only drafts can be changed. Releases by roster artists you manage as a label are readable; writes apply to releases your account owns. A live release can be taken down with POST /v1/releases/{id}/takedown (scope releases:submit).
6. Webhooks
Register an HTTPS endpoint with POST /v1/webhooks and subscribe to events such as release.submitted, release.status_changed, composition.status_changed and team.member_invited. Payloads carry identifiers and the new status; fetch details through the API.
Deliveries follow the Standard Webhooks format: verify the webhook-signature header with your endpoint secret, reject timestamps older than five minutes and de-duplicate on webhook-id. Respond with 2xx within 10 seconds. Failed deliveries are retried after 1 min, 5 min, 30 min, 2 h, 5 h, 10 h and 24 h; an endpoint is disabled after 25 consecutive failures and can be re-enabled with PATCH.
import { Webhook } from "standardwebhooks"
const wh = new Webhook(process.env.DISTROVIBE_WEBHOOK_SECRET) // whsec_...
const event = wh.verify(rawBody, {
"webhook-id": req.headers["webhook-id"],
"webhook-timestamp": req.headers["webhook-timestamp"],
"webhook-signature": req.headers["webhook-signature"],
}) // throws if the signature or timestamp is invalid7. Request IDs, Idempotency and Pagination
Every response carries an X-Request-Id header. Include it when you contact developer@distrovibe.com; your recent requests are listed under Logs.
Send an Idempotency-Key header (any unique string up to 255 characters) on POST, PUT, PATCH and DELETE to make retries safe. Repeating the same request with the same key within 24 hours returns the original response with Idempotent-Replayed: true; reusing a key with a different body returns 422, and a request that is still running returns 409.
List endpoints accept page (from 1) and limit (1–100, default 20) and return a pagination object with totalCount and totalPages.
8. Bulk Jobs
Large operations run asynchronously. POST /v1/jobs with type artists.create, releases.validate or catalog.export, then poll GET /v1/jobs/{id} and read GET /v1/jobs/{id}/results. One failing item does not fail the job. Items per job, concurrent jobs per account and jobs per day are limited.
9. Quotas and Request Packages
Label Pro includes a monthly request allowance that renews on the 1st of each month (UTC). When it is used up, requests are taken from purchased request packages, soonest expiry first. With neither left, the API returns 429 MONTHLY_QUOTA_EXCEEDED — there are no overage charges. Storage quota, monthly upload volume and concurrent uploads are separate limits; see GET /v1/account/limits and the Usage and Storage pages.