Add a product
const url = 'http://localhost:8891/api/v1/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/products';const options = { method: 'POST', headers: { 'idempotency-key': '3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"medium":"vinyl","sides":[{"label":"A","tracks":["7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40","7a1f3c4d-5e6f-4708-9a81-0b1c2d3e4f50"]},{"label":"B","tracks":["7a205d6e-7f80-4912-9ab1-1c2d3e4f5061"]}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8891/api/v1/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/products \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'idempotency-key: 3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17' \ --data '{ "medium": "vinyl", "sides": [ { "label": "A", "tracks": [ "7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40", "7a1f3c4d-5e6f-4708-9a81-0b1c2d3e4f50" ] }, { "label": "B", "tracks": [ "7a205d6e-7f80-4912-9ab1-1c2d3e4f5061" ] } ] }'Step 3 — choose the physical format. Adds the sellable, barcoded record: the medium and its ordered sides, drawn from the track pool. Vinyl takes exactly two sides and a CD one; publish takes up to 8 tracks a vinyl side and 25 on a CD. sides may be left out to create the product before the release has any tracks: its sides come back empty, publish refuses it with side_track_count until every side has a track, and no sheet is composed until the first PUT …/tracklist gives it one, or a retry of a PUT …/tracklist asks for it (see that call). A side may also be sent empty, with the same side_track_count until it has a track; an empty side keeps its default label (A, B or CD), since a label is kept only on a side's tracks. Creation allocates the EAN and, under the default Quick artwork method, composes from the release metadata only the faces it owns: the back cover, the spine and the labels (both on vinyl, one on a CD) and the blank inner sleeves on vinyl. The rest are uploads it never generates and reports as artwork_missing until they arrive: the front cover on both media, on a CD its two inside panels (cover_inside_left, cover_inside_right), and on a booklet its twelve panels (vinyl_booklet_1 to vinyl_booklet_12 on vinyl, cd_booklet_1 to cd_booklet_12 on a CD). artwork_method is fixed here for the product's lifetime and selects the part vocabulary: Quick takes one image per printed face, Designer one print-ready PDF per printed sheet and composes nothing, creating an empty slot per sheet instead. The barcode drops its BY ELASTICSTAGE.COM line when the organisation is set up for white-label barcodes (ask elasticStage to enable it); that is read once, here, and the product keeps it for its lifetime. Retry a 500 under the same Idempotency-Key until it answers 201: the product may already be saved, and each retry requests its sheets again. 400 on a side count the medium does not allow, on a side over 25 tracks, on an empty side whose label is not its default, and on a field this operation does not define — the body is strict, sides included, so a misspelled key is named back to you rather than dropped; 404 on an unknown release; 409 on an Idempotency-Key reused for a different request; 422 on an invalid or in-use EAN, a track outside the release's pool, a quantity_limit of 0. A vinyl side of 9 to 25 tracks, over its count, is saved and reported as side_track_count, and a side over its running time is saved and, once every track on it is measured, reported as side_duration, both in validation_errors and both blocking publish until the side fits. Requires the catalogue:write scope. Full flow: see the minimal path guide.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Example
9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70Header Parameters
Section titled “Header Parameters”Example
3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17Unique key for this write. Retrying with the same key replays the first response instead of creating a duplicate; reusing it for a different body is a 409. Keys are scoped to the operation, so the same key may also be sent to a different endpoint.
Request Bodyrequired
Section titled “Request Bodyrequired”object
object
How this product's artwork is prepared. Quick: one image per printed face, everything not supplied is composed for you. Designer: one print-ready PDF per printed sheet, built on the published templates, nothing composed. Chosen when the product is created and fixed for its lifetime.
Example
{ "medium": "vinyl", "sides": [ { "label": "A", "tracks": [ "7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40", "7a1f3c4d-5e6f-4708-9a81-0b1c2d3e4f50" ] }, { "label": "B", "tracks": [ "7a205d6e-7f80-4912-9ab1-1c2d3e4f5061" ] } ]}Responses
Section titled “ Responses ”Default Response
object
How this product's artwork is prepared. Quick: one image per printed face, everything not supplied is composed for you. Designer: one print-ready PDF per printed sheet, built on the published templates, nothing composed. Chosen when the product is created and fixed for its lifetime.
object
object
object
object
Artwork processing lifecycle. composed means the face is printed as part of another face's sheet and has no file of its own — the spine, which is drawn onto the cover wrap. Nothing is owed for it, no upload can be sent to it, and it never blocks publishing; that is what tells it apart from awaiting_upload. ready is reserved for a face whose own artefact exists.
The SHA-256 of the record's file, as declared for its upload, or null when no file has been declared.
object
object
Example
{ "id": "44c8e1f2-3a4b-4c5d-9e60-7f8a9b0c1d2e", "release_id": "9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70", "medium": "vinyl", "status": "draft", "artwork_method": "Quick", "readiness": "processing", "ean": "5063933591880", "catalog_no": "5063933591880", "booklet": false, "price_category": "medium", "release_date": "2026-07-29", "quantity_limit": null, "promo_release": false, "territories": [], "territories_exclude": false, "explicit": false, "sides": [ { "label": "A", "tracks": [ "7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40", "7a1f3c4d-5e6f-4708-9a81-0b1c2d3e4f50" ] }, { "label": "B", "tracks": [ "7a205d6e-7f80-4912-9ab1-1c2d3e4f5061" ] } ], "capacity": [ { "label": "A", "used_seconds": null, "limit_seconds": 1380, "measured": false }, { "label": "B", "used_seconds": null, "limit_seconds": 1380, "measured": false } ], "audio_versions": null, "validation_errors": [ { "code": "artwork_missing", "part": "front_cover", "detail": "Artwork part 'front_cover' is missing." }, { "code": "audio_awaiting_upload", "track": "7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40", "detail": "Track '7a1e2b3c-4d5e-4f60-8a71-9b0c1d2e3f40' is waiting for its audio to be uploaded." }, { "code": "audio_awaiting_upload", "track": "7a1f3c4d-5e6f-4708-9a81-0b1c2d3e4f50", "detail": "Track '7a1f3c4d-5e6f-4708-9a81-0b1c2d3e4f50' is waiting for its audio to be uploaded." }, { "code": "audio_awaiting_upload", "track": "7a205d6e-7f80-4912-9ab1-1c2d3e4f5061", "detail": "Track '7a205d6e-7f80-4912-9ab1-1c2d3e4f5061' is waiting for its audio to be uploaded." }, { "code": "artwork_sheet_missing", "sheet": "cover", "detail": "Artwork sheet 'cover' has not been composed." }, { "code": "artwork_sheet_missing", "sheet": "labels", "disc": 1, "detail": "Artwork sheet 'labels' has not been composed." }, { "code": "artwork_sheet_missing", "sheet": "inner_sleeve", "disc": 1, "detail": "Artwork sheet 'inner_sleeve' has not been composed." } ], "warnings": [], "artwork": [ { "id": "9d3b4c5d-6e7f-4801-9a12-3b4c5d6e7f80", "part": "spine", "status": "composed", "auto_generated": true, "locked": false, "upload": null, "error_code": null, "error_detail": null, "source_image_id": null, "checksum_sha256": null }, { "id": "9e4c5d6e-7f80-4912-9b23-4c5d6e7f8091", "part": "back_cover", "status": "ready", "auto_generated": true, "locked": false, "upload": null, "error_code": null, "error_detail": null, "source_image_id": null, "checksum_sha256": null }, { "id": "9f5d6e7f-8091-4a23-9c34-5d6e7f8091a2", "part": "vinyl_labels_a", "status": "ready", "auto_generated": true, "locked": false, "upload": null, "error_code": null, "error_detail": null, "source_image_id": null, "checksum_sha256": null }, { "id": "a06e7f80-91a2-4b34-9d45-6e7f8091a2b3", "part": "vinyl_labels_b", "status": "ready", "auto_generated": true, "locked": false, "upload": null, "error_code": null, "error_detail": null, "source_image_id": null, "checksum_sha256": null }, { "id": "a17f8091-a2b3-4c45-9e56-7f8091a2b3c4", "part": "inner_sleeve_front", "status": "ready", "auto_generated": true, "locked": false, "upload": null, "error_code": null, "error_detail": null, "source_image_id": null, "checksum_sha256": null }, { "id": "a2890102-b3c4-4d56-9f67-8091a2b3c4d5", "part": "inner_sleeve_back", "status": "ready", "auto_generated": true, "locked": false, "upload": null, "error_code": null, "error_detail": null, "source_image_id": null, "checksum_sha256": null } ], "model": { "status": "pending", "error": null, "built_at": null }, "sheets": [], "factory": { "result": null, "received_at": null, "decided_at": null, "reason": null, "warnings": [] }, "publish_failure": null, "supersedes": null, "superseded_by": null, "created_at": "2026-07-29T10:20:44Z", "updated_at": "2026-07-29T10:20:44Z"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}