ONCE Releases API
The Releases API from ONCE — 9 operation(s) for releases.
The Releases API from ONCE — 9 operation(s) for releases.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/once-app:once-app-releases-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: ONCE REST Releases API
version: 1.0.0
description: Human-friendly HTTP API for ONCE music distribution. Same capabilities, authentication, billing, and validation as the ONCE MCP server.
servers:
- url: https://once.app/v1
security:
- bearerAuth: []
tags:
- name: Releases
paths:
/releases:
get:
summary: List recent releases
responses:
'200':
description: Release list
tags:
- Releases
operationId: getReleases
x-operation-id-source: derived
post:
summary: Submit a release for distribution
description: Existing v1 clients may omit expanded metadata and receive server defaults. New clients should provide distribution_store_ids, label, copyright credits, track_type, and role credits explicitly. A 422 validation_failed response carries a details array naming each offending field path, e.g. tracks[0].writers[0].name.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SubmitReleaseRequest'
responses:
'201':
description: Submitted release
tags:
- Releases
operationId: postReleases
x-operation-id-source: derived
/releases/quote:
post:
summary: Price a release before submitting it
description: 'Body: { tracks: [...], token_offset?: boolean } — the same tracks you are about to submit. Prices them with the same code that debits on submit, against the live balance, without creating or charging anything. Returns the per-track breakdown, cost.totalCredits, balance.covered, balance.shortfallCredits, and the cheapest bundle covering the shortfall. Gate your submit button on balance.covered rather than recomputing the cost client-side: an estimate that drifts one credit high silently blocks a user whose balance is sufficient.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- tracks
properties:
tracks:
type: array
items:
type: object
token_offset:
type: boolean
responses:
'200':
description: Release quote
tags:
- Releases
operationId: postReleasesQuote
x-operation-id-source: derived
/releases/{id}:
get:
summary: Merged metadata for a release
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Release metadata
tags:
- Releases
operationId: getReleasesById
x-operation-id-source: derived
/releases/{id}/status:
get:
summary: Store delivery and aggregate status
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Release status
tags:
- Releases
operationId: getReleasesByIdStatus
x-operation-id-source: derived
/releases/{id}/job:
get:
summary: Background processing job state
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Release job
tags:
- Releases
operationId: getReleasesByIdJob
x-operation-id-source: derived
/releases/{id}/distribute:
post:
summary: Deliver an already-submitted release to additional stores
description: 'Body: { store_ids: number[] } with Revelator store ids from GET /distribution-stores. Queues delivery of a live release to the extra stores without re-uploading assets. The response lists what was actually queued; requested stores that could not be delivered (e.g. Content ID without partner approval, UGC stores without a resolvable policy) come back in skippedStoreIds with a reason.'
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Queued store additions
'403':
description: Store not available for this account or region
'409':
description: Release has not been submitted/distributed yet
tags:
- Releases
operationId: postReleasesByIdDistribute
x-operation-id-source: derived
/releases/{id}/takedown:
post:
summary: Take a release down from specific stores or all stores
description: 'Body: { store_ids: number[] } for specific stores, or { store_ids: "all" } (or an empty body) to request removal from every store ONCE distributes to. Takedowns propagate to stores over days and cannot be un-requested.'
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Takedown requested
'409':
description: Release has not been submitted/distributed yet
tags:
- Releases
operationId: postReleasesByIdTakedown
x-operation-id-source: derived
/releases/{id}/stores:
put:
summary: Set the target store list for the next submission or redistribution
description: 'Body: { store_ids: number[] | null }. Pass null to reset to the default set. This only stores targeting for the next submission/redistribution; use POST /releases/{id}/distribute to deliver a live release to more stores now.'
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Stored targeting
tags:
- Releases
operationId: putReleasesByIdStores
x-operation-id-source: derived
/releases/{id}/ugc-policies:
get:
summary: UGC monetization (match) policy selection for a release
description: Current per-platform policy (with ONCE defaults filled in) plus the selectable catalog for YouTube Content ID (307), Facebook Rights Manager (310), and TikTok (319).
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Current selection and available policies
tags:
- Releases
operationId: getReleasesByIdUgcPolicies
x-operation-id-source: derived
put:
summary: Select UGC monetization (match) policies for a release
description: 'Body: { policies: { "": "" } }, e.g. { "policies": { "307": "track", "tiktok": "library_only" } }. Codes per store — 307/youtube_content_id: monetize | track; 310/facebook_rights_manager: claim_ad_earnings | block | monitor; 319/tiktok: monetize | library_only | block. Pass null for a store to reset it to the ONCE default. The selection applies the next time the release is delivered to the affected stores (submission, redistribution, or POST /releases/{id}/distribute).'
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Stored selection
tags:
- Releases
operationId: putReleasesByIdUgcPolicies
x-operation-id-source: derived
components:
schemas:
TrackInput:
type: object
required:
- title
- audio_file_url
- explicit_flag
- writers
properties:
title:
type: string
title_version:
type: string
description: 'Use Remix here for remixes; track_type does not accept remix. Never the bare word "Cover" — mark covers with track_type: "cover"; a version naming the kind of cover (e.g. "Acoustic Cover") is allowed.'
primary_artist_name:
type: string
primary_artists:
type: array
items:
$ref: '#/components/schemas/PrimaryArtistInput'
description: Primary artists for this track, in credit order, when they differ from the release. Same shape and behaviour as release.primary_artists.
audio_file_url:
type: string
explicit_flag:
type: boolean
track_type:
type: string
enum:
- original
- cover
- public_domain
isrc:
type: string
description: Optional valid ISRC
genre:
type: string
language:
type: string
examples:
- en
language_and_script_code:
type: string
examples:
- ja-Kana
description: Optional. Script the track metadata is written in. Must name the same language as the track's language when one is sent. See GET /language-script-codes.
lyrics:
type: string
description: Plain-text lyrics
preview_start_seconds:
type: integer
minimum: 0
description: Preview/clip start time in seconds. Where the clip starts when a listener previews the track. Defaults to 15 when omitted.
pline_year:
type: string
pline_owner:
type: string
cline_year:
type: string
cline_owner:
type: string
writers:
type: array
items:
$ref: '#/components/schemas/WriterInput'
contributors:
type: array
items:
$ref: '#/components/schemas/ContributorInput'
artist_locals:
type: array
items:
$ref: '#/components/schemas/ArtistLocalizationInput'
title_locals:
type: array
items:
$ref: '#/components/schemas/TitleLocalizationInput'
description: Optional localized track titles. Same shape as release.title_locals.
ReleaseInput:
type: object
required:
- title
- primary_artist_name
- genre
- release_date
- cover_art_file_url
properties:
title:
type: string
title_version:
type: string
description: Version qualifier (e.g. Remix, Acoustic Cover). Never the bare word "Cover" — mark covers with track_type instead.
primary_artist_name:
type: string
primary_artists:
type: array
items:
$ref: '#/components/schemas/PrimaryArtistInput'
description: Every primary artist in credit order. The first entry is the main primary artist and must match primary_artist_name when both are sent; the rest are added as "Primary Artist" contributors. Each entry's profile links map that artist to their existing store profile.
spotify_artist_urls:
type: array
items:
type:
- string
- 'null'
description: 'Positional alternative to primary_artists: entry N is the Spotify artist profile link for primary artist N. Use null to hold a position. Cannot be longer than the primary artist list.'
apple_music_artist_urls:
type: array
items:
type:
- string
- 'null'
description: Positional Apple Music artist profile links, matched to the primary artists by index.
spotify_artist_url:
type: string
description: Spotify artist profile URL for the main primary artist.
apple_music_artist_url:
type: string
description: Apple Music artist profile URL for the main primary artist.
genre:
type: string
sub_genre:
type: string
description: Optional second genre
second_genre:
type: string
description: Accepted alias for sub_genre
release_date:
type: string
format: date
label:
type: string
description: Record label name
audio_language:
type: string
examples:
- en
metadata_language:
type: string
examples:
- en
metadata_language_country:
type: string
language_and_script_code:
type: string
examples:
- ja-Kana
description: Optional. Script the release metadata is written in. Must name the same language as metadata_language. See GET /language-script-codes.
distribution_store_ids:
oneOf:
- type: array
items:
type: integer
minItems: 1
- type: 'null'
description: New clients should send a non-empty array of supported DSP store IDs, or null for all supported stores. Omitted legacy payloads default to all supported stores.
pline_year:
type: string
pline_owner:
type: string
cline_year:
type: string
cline_owner:
type: string
cover_art_file_url:
type: string
contributors:
type: array
items:
$ref: '#/components/schemas/ContributorInput'
artist_locals:
type: array
items:
$ref: '#/components/schemas/ArtistLocalizationInput'
title_locals:
type: array
items:
$ref: '#/components/schemas/TitleLocalizationInput'
description: Optional localized release titles, delivered to stores alongside the main title so the release is searchable in more than one script.
TitleLocalizationInput:
type: object
description: A localized title. One entry per language — to ship the same title in a second script, send that entry with its own language_and_script_code.
properties:
name:
type: string
description: The localized title. `title` is accepted as an alias.
language:
type: string
description: ISO 639-1 code such as ko, zh, ja; resolved to the Revelator language ID at submission. Preferred over languageId.
languageId:
type: number
description: Revelator-internal numeric language ID.
phoneticName:
type: string
description: Phonetic reading of the localized title.
language_and_script_code:
type: string
examples:
- ja-Latn
description: Script (writing system) this entry is written in, as a language and script code such as ja-Kana, ja-Hira, or ja-Latn for a Latin transliteration. Must name the same language as this entry. Valid values come from GET /language-script-codes; a code that does not pair with the language is dropped at submission.
SubmitReleaseRequest:
type: object
required:
- release
- tracks
properties:
release:
$ref: '#/components/schemas/ReleaseInput'
tracks:
type: array
items:
$ref: '#/components/schemas/TrackInput'
release_id:
type: string
conversation_id:
type: string
token_offset:
type: boolean
distributors:
type: object
skip_adapters:
type: boolean
rights_confirmed:
type: boolean
description: Set true only after the user confirms they own or control the rights to every track Pex Search matched. Without it a matched release returns 409 pex_search_rights_confirmation_required with one details entry per matched track.
ContributorInput:
type: object
properties:
name:
type: string
role:
type: string
examples:
- Producer
- Engineer
- Remixer
roleId:
type: number
contributorRoleGroupId:
type: number
PrimaryArtistInput:
type: object
required:
- name
description: One primary artist plus that artist's own store profile links. Used to pin each artist of a collaboration to their existing artist page.
properties:
name:
type: string
spotify_artist_url:
type: string
description: Spotify artist profile URL (https://open.spotify.com/artist/…). Album/song links are rejected.
apple_music_artist_url:
type: string
description: Apple Music artist profile URL (https://music.apple.com/<storefront>/artist/<slug>/<id>). Album/song links are rejected.
soundcloud_artist_url:
type: string
meta_artist_url:
type: string
WriterInput:
type: object
required:
- name
properties:
name:
type: string
description: Full legal name
society:
type: string
ipi:
type: string
share_percent:
type: number
ArtistLocalizationInput:
type: object
properties:
name:
type: string
language:
type: string
description: ISO 639-1 code such as ko, zh, ja; resolved to the Revelator language ID at submission. Preferred over languageId.
languageId:
type: number
description: Revelator-internal numeric language ID; provide language instead when only the ISO code is known.
phoneticName:
type: string
language_and_script_code:
type: string
examples:
- ja-Latn
description: Script (writing system) this entry is written in, as a language and script code such as ja-Kana, ja-Hira, or ja-Latn for a Latin transliteration. Must name the same language as this entry. Valid values come from GET /language-script-codes; a code that does not pair with the language is dropped at submission.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT or once_pat_*