Skip to main content
POST

Authorizations

x-api-key
string
header
required

API key with sm_ prefix. Get your key at https://sudomock.com/dashboard/api-keys

Body

application/json
version
integer
required

Version of the Studio action message format.

request_id
string<uuid>
required
uuid

Identifier of the action message, so a repeated call returns the same receipt.

Example:

"0f9c2d1e-7b44-4a2f-9a0d-6c1f2b8e5d33"

message_session_id
string<uuid>
required
uuid

Identifier of the Studio session that emitted the action.

Example:

"7d1b4a90-2e63-4f18-bb27-1c9a0e4d7f52"

type
enum<string>
required

Studio result this request confirms.

Available options:
studio.mockup-saved,
studio.design-submitted
payload
StudioActionPayload · object
required

Identifiers and parameters of the Studio action to confirm.

Response

200 - application/json

Successful Response

replayed
boolean
required

True when this action was already confirmed and its receipt is returned again.

Example:

false

receipt
StudioActionReceipt · object
required

Confirmed record of the Studio action.

success
boolean
default:true

Always true when the action was confirmed.

order_assets
StudioOrderAssets · object | null

Preview, artwork and print file links to keep on the order line. Returned for a submitted design of an add-to-cart session when files were kept for it. A repeat returns the links the order has at that time. Left out otherwise.