ONCE Drafts API

The Drafts API from ONCE — 1 operation(s) for drafts.

GitHub OpenAPI

Operations 1

POST /drafts Upsert a work-in-progress release snapshot #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/once-app:once-app-drafts-api"
All apis
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.

Get an API 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 Specification

once-app-drafts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ONCE REST Drafts 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: Drafts
paths:
  /drafts:
    post:
      summary: Upsert a work-in-progress release snapshot
      description: 'Pass release_id (or conversation_id) to update an existing draft. When neither is provided, a new draft release is created from the payload and its releaseId is returned with releaseCreated: true — reuse it on follow-up calls. Drafts do not enforce submission validation, but the response reports submittable (boolean) and submissionWarnings (array of per-field messages) so an unsubmittable draft surfaces before POST /releases. submissionWarnings also carries non-blocking date warnings (a past release_date, one more than a year out, or an original_release_date that is not in the past) that leave submittable unchanged. On an unsubmitted draft these come from the saved draft, so they repeat until the date is fixed; on a release already submitted only dates sent in that call are checked.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DraftRequest'
      responses:
        '200':
          description: Draft snapshot result
      tags:
      - Drafts
      operationId: postDrafts
      x-operation-id-source: derived
components:
  schemas:
    DraftRequest:
      type: object
      properties:
        release:
          $ref: '#/components/schemas/ReleaseInput'
        tracks:
          type: array
          items:
            $ref: '#/components/schemas/TrackInput'
        track_patches:
          type: array
          items:
            type: object
        upload_requests:
          type: array
          items:
            type: object
        status:
          type: string
        mode:
          type: string
          enum:
          - delta
          - replace
        release_id:
          type: string
          description: Existing draft release to update. Omit together with conversation_id to create a new draft release.
        conversation_id:
          type: string
          description: Existing chat conversation whose draft should be updated.
    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.
    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_*