Skip to content

Create artwork

POST
/api/v1/releases/{id}/products/{productId}/artwork
const url = 'http://localhost:8891/api/v1/releases/9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70/products/44c8e1f2-3a4b-4c5d-9e60-7f8a9b0c1d2e/artwork';
const options = {
method: 'POST',
headers: {
'idempotency-key': '3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: '{"artwork":[{"artwork_id":"1c2a3b4c-5d6e-4f70-8981-0a1b2c3d4e5f","part":"front_cover","filename":"cover.jpg","content_type":"image/jpeg","byte_size":18874368,"checksum_sha256":"5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5a7b9d1f3a5c7e","source_image_id":"5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e"}]}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}

Step 4: under Quick, one front cover is all a plain vinyl product requires, a CD adds its two inside panels (cover_inside_left, cover_inside_right), and a booklet on either medium its twelve panels. A batch returning an upload target per record, exactly as tracks, and the response carries one record per entry in the order you sent them. Artwork belongs to the product, so the accepted parts follow its medium and its artwork_method: Quick names one printed face per part and takes a JPEG or PNG, Designer names one printed sheet and takes a print-ready PDF. A CD's inside panels are 148 × 129.03 mm (1748 × 1524 px at 300 dpi) cut from an image of 2000 to 4000 px a side, uploaded upright and stamped turned 180°. Under Quick every part except front_cover, a CD's two inside panels and a booklet's twelve panels already exists as a generated record and is replaced by what you send (a replaced record keeps the id it already had, so read data[].id rather than assuming the artwork_id you sent), and the spine is always composed and cannot be sent at all. On a product with a booklet, its twelve panels are vinyl_booklet_1 to vinyl_booklet_12 on vinyl and cd_booklet_1 to cd_booklet_12 on a CD, in reading order (1 the front, 12 the back); a vinyl panel is 303.02 × 305.99 mm (3579 × 3614 px at 300 dpi) and a CD panel 123.02 × 124.04 mm (1453 × 1465 px at 300 dpi), each cut from an image of 2000 to 4000 px a side, scaled and centre-cropped to that shape: all twelve are required, each reported as artwork_missing until it arrives, and the booklet composes once the last lands. Under Designer every sheet is created with the product as an empty slot. An entry may name the release artwork pool image its file was made from in source_image_id, such as the photo a face was cropped from, so that image can be cropped again later. 404 on an unknown product; 409 once the product has left draft; 422 on a part invalid for the medium or the method, on a file of the kind the method does not take, and on a source_image_id that is not in this release's pool. The body is strict, the artwork entries included: a key this operation does not define (byteSize for byte_size) is a 400 naming it, never a value quietly dropped. Requires the catalogue:write scope. Full flow: see the minimal path guide.

id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
Example
9c3f1a2b-4d5e-4f60-8a71-2b3c4d5e6f70
productId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
Example
44c8e1f2-3a4b-4c5d-9e60-7f8a9b0c1d2e
idempotency-key
required
string
>= 1 characters
Example
3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17

Unique 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.

Media typeapplication/json
object
artwork
required
Array<object>
>= 1 items <= 40 items
object
artwork_id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
part
required

Artwork part. The accepted set follows the product's artwork_method. Under Quick, vinyl: front_cover · back_cover · spine · vinyl_labels_a · vinyl_labels_b · inner_sleeve_front · inner_sleeve_back · vinyl_booklet_1 to vinyl_booklet_12 on a booklet product (its panels in reading order, 1 the front and 12 the back, each 303.02 × 305.99 mm (3579 × 3614 px at 300 dpi) cut from an image of 2000 to 4000 px a side, all twelve required); CD: front_cover · back_cover · cover_inside_left · cover_inside_right · spine · cd_label · cd_booklet_1 to cd_booklet_12 on a booklet product (its panels in reading order, 1 the front and 12 the back, each 123.02 × 124.04 mm (1453 × 1465 px at 300 dpi) cut from an image of 2000 to 4000 px a side, all twelve required); the spine is always composed and cannot be sent. A CD's cover_inside_left and cover_inside_right are 148 × 129.03 mm (1748 × 1524 px at 300 dpi) cut from an image of 2000 to 4000 px a side, uploaded upright and stamped turned 180°. Under Designer, vinyl: cover · labels · inner_sleeve · booklet (one printed sheet each). Validated against the product's medium and method.

string
>= 1 characters <= 64 characters
content_type
required
string
Allowed values: image/jpeg image/png application/pdf
byte_size
required
integer
> 0 <= 300000000
filename
string
>= 1 characters <= 255 characters
checksum_sha256
required

Hex SHA-256 of the exact bytes you will PUT. Any other bytes are refused: by storage when upload.headers carries it as x-amz-checksum-sha256, otherwise by the ingest. Produce it with shasum -a 256 <file>.

string
/^[a-fA-F0-9]{64}$/
source_image_id

The release artwork pool image this file was made from, such as the photo a face was cropped from. It must be in this release's pool, in any status. Omitted, the record has none: a file sent without it replaces the source along with the file.

string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
Example
{
"artwork": [
{
"artwork_id": "1c2a3b4c-5d6e-4f70-8981-0a1b2c3d4e5f",
"part": "front_cover",
"filename": "cover.jpg",
"content_type": "image/jpeg",
"byte_size": 18874368,
"checksum_sha256": "5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5a7b9d1f3a5c7e",
"source_image_id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e"
}
]
}

Default Response

Media typeapplication/json
object
data
required
Array<object>
object
id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
part
required
string
status
required

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.

string
Allowed values: awaiting_upload processing ready failed upload_expired composed
auto_generated
required
boolean
locked
required
boolean
upload
required
Any of:
object
url
required
string format: uri
method
required
string
Allowed values: PUT
headers
required
object
key
additional properties
string
expires_at
required
string format: date-time
error_code
required
string | null
error_detail
required
string | null
source_image_id
required
Any of:
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
checksum_sha256
required

The SHA-256 of the record's file, as declared for its upload, or null when no file has been declared.

string | null
Example
{
"data": [
{
"id": "1c2a3b4c-5d6e-4f70-8981-0a1b2c3d4e5f",
"part": "front_cover",
"status": "awaiting_upload",
"auto_generated": false,
"locked": false,
"upload": {
"url": "https://uploads.staging.elasticstage.com/uploads/upl_7a1e…?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=…",
"method": "PUT",
"headers": {
"Content-Type": "image/jpeg",
"x-amz-checksum-sha256": "XnudHzpcfpsdP1p8nhs9X3qcHjtdf5ocPlp7nR86XH4="
},
"expires_at": "2026-07-29T23:00:00Z"
},
"error_code": null,
"error_detail": null,
"source_image_id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"checksum_sha256": "5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a1c3e5a7b9d1f3a5c7e"
}
]
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}

Default Response

Media typeapplication/json
object
statusCode
required
number
code
required
string
Allowed values: VALIDATION_ERROR UNAUTHORIZED FORBIDDEN NOT_FOUND CONFLICT IDEMPOTENCY_IN_FLIGHT EAN_REASSIGNED UNPROCESSABLE_ENTITY RATE_LIMITED SERVICE_UNAVAILABLE INTERNAL_ERROR
error
required
string
message
required
string
details
Array
Example
{
"code": "VALIDATION_ERROR"
}