mcp
v3.14.0PSD mockup render API: your own Photoshop templates plus 6,900+ ready-made mockups, from $0.002.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_mockups
List the mockup templates in your own account with UUIDs, names, and thumbnails. Use returned UUIDs with render_mockup or get_mockup_details. To find a ready-made mockup from SudoMock's free library instead, use search_ready_made_mockups.
| Parameter | Type | Description |
|---|---|---|
created_after | string | Only mockups created after this ISO 8601 timestamp |
created_before | string | Only mockups created before this ISO 8601 timestamp |
folder_uuid | string | Only mockups in this folder. Send `root` for the ones at the top of the library. Leave it out for every mockup, wherever it is. |
limit | number | Results per page (1-100, default 20) |
name | string | Filter by name (case-insensitive substring match) |
offset | number | Pagination offset (default 0) |
sort_by | string | Sort field |
sort_order | string | Sort direction |
get_mockup_details
Get full details of a mockup: smart object UUIDs, layer names, dimensions, positions, blend modes, and thumbnail URLs. A smart object whose contents hold smart objects or live text lists them in its own smart_objects and text_layers; fill any of them by UUID in the same render, like a top-level one. Set include_layers to true to also get data.layers: every layer of the template, nested the way Photoshop's Layers panel shows it and listed front-most first, each with uuid, name, kind, visible and children. An artboard has kind artboard; its own layers are listed right before it at the top level,…
| Parameter | Type | Description |
|---|---|---|
mockup_uuid * | string | The UUID of the mockup to inspect |
include_layers | boolean | Also return every layer of the template in data.layers, with the uuids hidden_layers takes. Default false. |
update_mockup
Rename a mockup template.
| Parameter | Type | Description |
|---|---|---|
mockup_uuid * | string | The UUID of the mockup to rename |
name * | string | New display name for the mockup |
delete_mockup
Permanently delete a mockup template. Cannot be undone.
| Parameter | Type | Description |
|---|---|---|
mockup_uuid * | string | The UUID of the mockup to delete |
render_mockup
Render a PSD mockup with artwork, editable text, or both. Supports one or multiple smart objects and preserves the template's authored appearance. Name what to fill with any of these, alone or together: smart_object_uuid + artwork_url for one smart object, smart_objects entries ({uuid, asset or color}) for one or more, text_layers entries ({uuid, text or segments}), or text_layer_uuid + text for one text layer. Sent together they are combined into one render: the smart_object_uuid entry comes before the smart_objects entries, and the text_layer_uuid entry before the text_layers entries. Use te…
remove_background
Remove the background from any image and return a transparent-PNG cutout with clean, production-ready edges. The returned URL is valid for 7 days and can be used as artwork_url during that window. Costs 5 credits per image; credits are refunded automatically if processing fails.
| Parameter | Type | Description |
|---|---|---|
image_url * | string | Public URL of the image (PNG/JPG/WebP) to process |
check_seams
Check whether a repeating pattern tile joins without a visible seam, before you render it with tile. Returns status: seamless, faint_seam or visible_seam. seams lists each side that does not join cleanly (left_right where the right edge meets the left, top_bottom where the bottom edge meets the top) with the pixel ranges along it. When status is visible_seam and fixable is true, suggest fix_seams; when fixable is false, unfixable_reason says why (transparent_edges or too_large). previous_fix holds your latest fix of the same image, if there is one, so it can be reused instead of fixed again. S…
| Parameter | Type | Description |
|---|---|---|
image_url * | string | Public URL of the pattern tile image (PNG/JPG/WebP) |
crop_aspect | number | Width divided by height of one tile in the render that will use this image, e.g. 1 for square tiles. The image is cropped to that shape the same way fit 'crop' crops it, then checked. Omit to use the… |
fix_seams
Repair a repeating pattern tile so it repeats without a visible seam. Check the tile with check_seams first: a seamless tile needs no fix, and its previous_fix may already hold one. Always async: returns a job_id at once; read the result with get_job or wait_for_job. The finished job carries result_url, alternative_url (a second repaired version when one is available, otherwise null), result_status (the seam check of the result: seamless, faint_seam or visible_seam) and changes (edges when only the edges changed, whole_tile when the change reaches across the tile, rearranged when motifs were m…
| Parameter | Type | Description |
|---|---|---|
image_url * | string | Public URL of the pattern tile image (PNG/JPG/WebP) |
crop_aspect | number | Width divided by height of one tile in the render that will use this image, e.g. 1 for square tiles. The image is cropped to that shape the same way fit 'crop' crops it, then fixed. Omit to use the im… |
idempotency_key | string | Optional retry-stable key for this fix request |
list_fonts
List fonts available for text layers: the shared system catalog plus any fonts you have uploaded. Filter by family name (search), by category (serif, sans-serif, display), or by scope ('all', 'system', or 'custom' for your uploads only); results are paginated (per_page up to 100). Use a font's uuid or postscript_name as the font of a text_layers entry when rendering with render_mockup. Costs 0 credits.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category, e.g. 'serif', 'sans-serif', 'display' |
page | integer | Page number (1-based, default 1) |
per_page | integer | Results per page (1-100, default 50) |
scope | string | Which fonts to return: 'all' (system fonts plus your uploads, the default), 'system', or 'custom' (your uploads only) |
search | string | Filter by family name (case-insensitive contains), e.g. 'sans' |
create_2d_mockup
Create a reusable photo mockup from a public image URL. Returns the mockup ID and public render targets synchronously. Costs 25 credits. If the image is unsuitable, the 25 credits are refunded automatically. Set is_async=true to queue instead and receive a job_id to poll with get_job or wait_for_job. Correct a print area with update_2d_print_areas and a surface that does not match the product with delete_photo_mockup_surface; the dashboard is for looking at the result.
| Parameter | Type | Description |
|---|---|---|
source_url * | string | Public HTTPS URL of the product image |
idempotency_key | string | Optional retry-stable key for this create request |
is_async | boolean | Queue creation instead of waiting. When true the API returns 202 with a job_id immediately -- poll with get_job, or call wait_for_job to block until it finishes and returns the mockup. Default false r… |
name | string | Optional display name for the photo mockup |
print_areas | array | Optional print areas to draw on the new mockup, 0 to 8 four-point quads in source-image pixels, each with an optional name. The create call assigns every area its own print_area_id, so leave print_are… |
render_2d_surface
Render artwork across a whole surface: an all-over print. Every printable product in the photo, and the main wall of a room photo, is a surface with its own surface_uuid, listed by get_2d_mockup. Returns print_files (each with an export_path) and a render_uuid. Costs 5 credits. Correct a print area with update_2d_print_areas and a surface that does not match the product with delete_photo_mockup_surface; the dashboard is for looking at the result.
| Parameter | Type | Description |
|---|---|---|
artwork_url * | string | Public URL of the artwork image (PNG/JPG/WebP) to place on the mockup |
mockup_uuid * | string | UUID of the photo mockup template (from list_2d_mockups, returned as mockup_id). |
surface_uuid * | string | UUID of a surface from get_2d_mockup's surfaces[]: a printable product in the photo, or the main wall of a room photo. |
brightness | number | Brightness adjustment (-150 to 150) |
contrast | number | Contrast adjustment (-100 to 100) |
coverage | number | How much of the surface the artwork spans, as a percentage (10-100). Omit to span the whole surface, which is what an all-over print usually wants. Send width and height instead to give the artwork an… |
height | number | Artwork height in pixels. Send together with width, and without coverage. The two axes are independent, so any aspect ratio is allowed. |
image_format | string | Output format - 'webp' (smaller, recommended), 'png' (lossless), 'jpg' |
image_size | number | Length of the output's longer side in pixels (100-10000); the other side follows the product photo's proportions. An account in trial renders up to 1024 on the longer side: when image_size is omitted… |
is_async | boolean | Queue the render instead of waiting. When true the API returns 202 with a job_id immediately; poll with get_job, or call wait_for_job to block until it finishes and hands back result_url. Default fals… |
offset_x | integer | Pixel offset along the X axis from the anchored position. Omit to sit exactly on the anchor. |
offset_y | integer | Pixel offset along the Y axis from the anchored position. Omit to sit exactly on the anchor. |
opacity | number | Artwork opacity percentage (0-100) |
position | string | Where the artwork sits within its target. Omit to accept the renderer's anchor, which is the center. |
quality | number | Compression quality for webp/jpg (1-100, default 90) |
remove_background | boolean | Remove the artwork's background before placing it. Adds 5 credits per artwork. |
rotation | number | Rotate artwork in degrees (-360 to 360). Omit to leave it unrotated. |
saturation | number | Saturation adjustment (-100 to 100) |
tile | boolean | Repeat the artwork as a pattern across the whole target. The sizing answer (coverage, fit, or width and height) is one tile, and position with offset_x and offset_y sets where the grid starts. Require… |
tile_spacing | number | Gap between tiles as a percentage of the tile size, 0 to 100. The horizontal gap is that percent of the tile width, the vertical gap that percent of the tile height. Used only when tile is true. |
width | number | Artwork width in pixels, drawn at that exact size rather than as a percentage of the surface. Send together with height, and without coverage. |
render_2d_print_area
Render artwork onto one saved print area, a bounded zone somebody drew on the product, such as a chest logo. Read the print_area_id values from get_2d_mockup. Returns print_files (each with an export_path) and a render_uuid. Costs 5 credits. Correct a print area with update_2d_print_areas and a surface that does not match the product with delete_photo_mockup_surface; the dashboard is for looking at the result.
| Parameter | Type | Description |
|---|---|---|
artwork_url * | string | Public URL of the artwork image (PNG/JPG/WebP) to place on the mockup |
mockup_uuid * | string | UUID of the photo mockup template (from list_2d_mockups, returned as mockup_id). |
print_area_uuid * | string | UUID of a saved print area from get_2d_mockup's print_areas[] (its print_area_id). |
brightness | number | Brightness adjustment (-150 to 150) |
contrast | number | Contrast adjustment (-100 to 100) |
fit | string | How the artwork meets the print area, which it always fills edge to edge: 'fit' keeps the proportions and fits inside (the default), 'fill' stretches to the edges, 'crop' fills and crops the overflow.… |
height | number | Artwork height in print-area pixels. Send together with width. Sending only one of the two is rejected rather than silently completed, so the aspect ratio is never guessed for you. |
image_format | string | Output format - 'webp' (smaller, recommended), 'png' (lossless), 'jpg' |
image_size | number | Length of the output's longer side in pixels (100-10000); the other side follows the product photo's proportions. An account in trial renders up to 1024 on the longer side: when image_size is omitted… |
is_async | boolean | Queue the render instead of waiting. When true the API returns 202 with a job_id immediately; poll with get_job, or call wait_for_job to block until it finishes and hands back result_url. Default fals… |
offset_x | integer | Pixel offset along the X axis from the anchored position. Omit to sit exactly on the anchor. |
offset_y | integer | Pixel offset along the Y axis from the anchored position. Omit to sit exactly on the anchor. |
opacity | number | Artwork opacity percentage (0-100) |
position | string | Where the artwork sits within its target. Omit to accept the renderer's anchor, which is the center. |
quality | number | Compression quality for webp/jpg (1-100, default 90) |
remove_background | boolean | Remove the artwork's background before placing it. Adds 5 credits per artwork. |
rotation | number | Rotate artwork in degrees (-360 to 360). Omit to leave it unrotated. |
saturation | number | Saturation adjustment (-100 to 100) |
tile | boolean | Repeat the artwork as a pattern across the whole target. The sizing answer (coverage, fit, or width and height) is one tile, and position with offset_x and offset_y sets where the grid starts. Require… |
tile_spacing | number | Gap between tiles as a percentage of the tile size, 0 to 100. The horizontal gap is that percent of the tile width, the vertical gap that percent of the tile height. Used only when tile is true. |
width | number | Artwork width in print-area pixels. Send together with height, and without fit. Width and height are independent, so any aspect ratio is allowed - stretching on one axis only is a supported placement. |
list_2d_mockups
List your saved photo mockup templates (no PSD). Returns each mockup's mockup_id, name, status, thumbnail, dimensions, and print_areas. Use the mockup_id with get_2d_mockup to read the print-area and surface UUIDs a render needs. Costs 0 credits.
| Parameter | Type | Description |
|---|---|---|
customizable_only | boolean | Return only mockups ready for shopper customization |
folder_uuid | string | Only mockups in this folder. Send `root` for the ones at the top of the library. Leave it out for every mockup, wherever it is. |
limit | number | Results per page (1-100, default 20) |
offset | number | Pagination offset (default 0) |
get_2d_mockup
Get one photo mockup's full details: the saved print_areas[] somebody drew on it, and the surfaces[], one entry per printable product in the photo and one for the main wall of a room photo, each with a label. Pass a print_area_id to render_2d_print_area, or a surfaces[].surface_uuid to render_2d_surface. Costs 0 credits.
| Parameter | Type | Description |
|---|---|---|
mockup_id * | string | UUID of the photo mockup (mockup_id from list_2d_mockups) |
update_2d_print_areas
Replace a photo mockup's print areas with up to 8 four-point quads and return the updated geometry. An area sent with print_area_id keeps that id; an area without one gets a new id. An empty list is accepted only for verified full surfaces. Costs 0 credits.
| Parameter | Type | Description |
|---|---|---|
mockup_id * | string | UUID of the photo mockup to update |
print_areas * | array | Replacement print areas (0-8 four-point quads, each with an optional name and print_area_id) |
delete_2d_mockup
Permanently delete a photo mockup template and all of its data. Cannot be undone. Costs 0 credits.
| Parameter | Type | Description |
|---|---|---|
mockup_id * | string | UUID of the photo mockup to delete (mockup_id from list_2d_mockups) |
delete_photo_mockup_surface
Permanently delete one of a photo mockup's surfaces: how a surface that does not match the product gets dropped, so no render can target it. Cannot be undone. Returns the mockup's remaining surfaces and print areas. A photo mockup always keeps at least one surface, so deleting its only one is refused as a conflict (409), and a surface_uuid that is unknown or belongs to another mockup is not found (404). Costs 0 credits.
| Parameter | Type | Description |
|---|---|---|
mockup_id * | string | UUID of the photo mockup the surface belongs to (mockup_id from list_photo_mockups) |
surface_uuid * | string | UUID of the surface to delete (a surfaces[].surface_uuid from get_photo_mockup) |
list_folders
List the folders in your mockup library. PSD mockups and photo mockups share one tree, and every mockup sits in exactly one folder or at the top of the library. Each folder returns its uuid, name, parent_uuid (null at the top of the library) and how many folders, PSD mockups and photo mockups it holds directly. Pass a folder's uuid to list_mockups or list_photo_mockups as folder_uuid to see what is inside it. Costs 0 credits.
| Parameter | Type | Description |
|---|---|---|
limit | number | Results per page (1-100, default 20) |
offset | number | Pagination offset (default 0) |
parent_uuid | string | Folder whose subfolders to list. Send `root` for the folders at the top of the library. Leave it out to list every folder you have. |
create_folder
Create a folder in your mockup library, at the top of it or inside another folder. A name has to be unique among the folders beside it, whatever the capitalisation, so calling it twice never builds a second copy; the second call returns FOLDER_NAME_TAKEN. Returns the new folder's uuid for move_to_folder and for the folder_uuid filter on the mockup lists. Costs 0 credits.
| Parameter | Type | Description |
|---|---|---|
name * | string | The folder's name |
parent_uuid | string | The folder to create this one in. Leave it out to create it at the top of the library. |
move_to_folder
Move any mix of PSD mockups, photo mockups and folders into one folder, or to the top of the library. Everything named in the call moves together or nothing does, so there is no half finished move to handle. Moving never changes a mockup's id, so renders, webhooks and integrations keep working against the ids they already hold. A folder moves with everything inside it. Costs 0 credits.
| Parameter | Type | Description |
|---|---|---|
folder_uuids | array | Folders to move, with everything inside them, up to 500 |
photo_mockup_uuids | array | Photo mockups to move, up to 500 |
psd_mockup_uuids | array | PSD mockups to move, up to 500 |
target_folder_uuid | string | The folder everything listed moves into. Leave it out to move it all to the top of the library. |
upload_psd
Upload a Photoshop PSD/PSB file as a new mockup template. The PSD must have at least one Smart Object layer. Processing takes 5-30 seconds.
| Parameter | Type | Description |
|---|---|---|
psd_file_url * | string | Public URL to a .psd or .psb file (up to Adobe's official PSD file size limit) |
is_async | boolean | Queue the upload instead of blocking. When true the API returns 202 with a job_id immediately -- poll with get_job (or wait_for_job) to learn when processing finishes and get the new mockup_uuid. Alwa… |
psd_name | string | Display name for the template (auto-generated from filename if omitted) |
get_job
Get the current status of any async render, video, upload, photo mockup, or seam fix job by its job_id. Returns status (queued|running|succeeded|failed), completed-result details and credits charged, or an error if failed. A seam fix job also reports stage (queued, fixing, finishing) while it runs. To block until done, use wait_for_job instead.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The job_id returned by any async submission |
list_jobs
List your async jobs, including PSD renders, videos, uploads, photo mockup creation and renders, and seam fixes, newest first. Use this when you do not already hold a job_id. Pass the returned next_cursor to fetch the next page.
| Parameter | Type | Description |
|---|---|---|
cursor | string | Opaque keyset cursor from a prior page's next_cursor |
kind | string | Filter by job kind. A photo mockup job has two spellings of its kind (photo_mockup_create / photo_mockup_render, or the legacy 2d_create / 2d_render); either spelling selects both. Omit for all kinds. |
limit | integer | Max jobs per page (1-50, default 20) |
mockup_uuid | string | Filter by source mockup UUID (e.g. one mockup's videos). Raw-image videos are never returned by this filter. |
wait_for_job
Poll any async render, video, upload, photo mockup, or seam fix job until it succeeds or fails, then return the final result and credits charged. Blocks while polling.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The job_id to wait on (from an async submission or render_video) |
poll_interval_seconds | number | Seconds between status checks (1-30, default 3) |
timeout_seconds | number | Give up after this many seconds if the job has not finished (5-900, default 300) |
render_video
Create a short AI video from either a mockup with artwork or a public image URL. Supply exactly one input mode. Always async: returns a job_id immediately for get_job or wait_for_job. Credit cost depends on clip length, audio, and the automatically selected quality. Unsupported durations are rejected.
| Parameter | Type | Description |
|---|---|---|
advanced_model | string | Advanced override for the automatic quality selection. Unsupported values are rejected. Omit for automatic selection (recommended). |
artwork_base64 | string | RENDER MODE: raw base64-encoded artwork bytes (no data: prefix). Provide this OR artwork_url. |
artwork_content_type | string | MIME type for artwork_base64 (defaults to image/png if omitted). |
artwork_url | string | RENDER MODE: public URL of the artwork image (PNG/JPG/WebP) to place on the mockup before animating. Provide this OR artwork_base64. Omit in raw-image mode. |
asset_height | integer | RENDER MODE: custom artwork height in pixels (overrides fit sizing). |
asset_left | integer | RENDER MODE: artwork left offset in pixels within the smart object area. |
asset_top | integer | RENDER MODE: artwork top offset in pixels within the smart object area. |
asset_width | integer | RENDER MODE: custom artwork width in pixels (overrides fit sizing). |
audio | boolean | Generate audio. Default off; enabling it may cost more credits. |
duration_seconds | integer | Clip length in seconds. Unsupported values are rejected. Longer clips cost more credits. |
fit | string | RENDER MODE: how the artwork meets the smart object area in the still frame. 'fill' stretches the artwork to the bounds, 'fit' fits it inside keeping its proportions, 'crop' covers the area keeping it… |
image_format | string | Output format of the still input frame |
image_size | number | Width in pixels of the still input frame. Leave it out for the default: 2048, or 1024 while the account is in trial. |
image_url | string | RAW-IMAGE MODE: a public https png/jpg URL to animate without a mockup. Supply this OR (mockup_uuid + smart_object_uuid + artwork), never both. |
mockup_uuid | string | RENDER MODE: UUID of the mockup to animate (from list_mockups or upload_psd). Required in render mode. In raw-image mode it is an optional association (groups the clip under that mockup's 'Past clips'… |
motion | string | 'ambient' = subtle looping hero motion that keeps the print readable; 'showcase' = one deliberate camera/product move. |
quality | number | Compression quality for the still input frame (webp/jpg, default 90) |
smart_object_uuid | string | RENDER MODE: UUID of the smart object layer to place artwork on (from get_mockup_details). Required in render mode; omit in raw-image mode. |
tile | boolean | RENDER MODE: Repeat the artwork as a pattern across the whole smart object. size is one tile, fit places the artwork inside each tile, and position sets where the grid starts. Requires size. Check the… |
tile_spacing | number | RENDER MODE: Gap between tiles as a percentage of the tile size, 0 to 100. The horizontal gap is that percent of the tile width, the vertical gap that percent of the tile height. Used only when tile i… |
webhook_url | string | Optional completion webhook URL. Best-effort push; polling get_job remains the source of truth. |
get_account
Get your account info: the organization the API key belongs to, subscription plan, remaining credits, prepaid balance, usage stats, billing period, and API key details. The plan, credits and balance belong to that organization, so name it when you report them. An account is funded by a subscription allowance or by a prepaid balance, so read both: an account paying as it goes reports 0 credits and pays from its balance. Quote funding_summary rather than reading the credits fields alone.
create_webhook_endpoint
Register a webhook endpoint that SudoMock calls when async jobs finish. The signing secret is returned IN FULL exactly once here -- store it to verify the HMAC carried in the X-SudoMock-Signature header (with X-SudoMock-Timestamp) on incoming deliveries. URL must be https and publicly routable.
| Parameter | Type | Description |
|---|---|---|
url * | string | https endpoint URL to receive POST deliveries (publicly routable; private/loopback hosts are rejected) |
description | string | Optional human-readable label for this endpoint |
event_naming | string | Which spelling of the photo mockup events this endpoint receives: 'current' (photo_mockup.*, photo_mockup_render.*, kind photo_mockup_create/photo_mockup_render) or 'legacy' (2d_mockup.*, 2d_render.*,… |
event_types | array | Event types to subscribe to. Supports render, upload, video, photo mockup create (photo_mockup.*), photo mockup render (photo_mockup_render.*), seam fix (seam_fix.*), and webhook.test events; the lega… |
list_webhook_endpoints
List your registered webhook endpoints (id, url, subscribed event_types, enabled state). Secrets are NOT returned here -- only at creation and rotation.
update_webhook_endpoint
Update a webhook endpoint in place: change its url, description, subscribed event_types, its event_naming pin, or enable/disable it (enabled:false pauses deliveries without losing the signing secret). All fields optional -- only the ones you pass are changed. The secret is NOT rotated or returned here.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The id of the webhook endpoint to update (from list_webhook_endpoints) |
description | string | New human-readable label |
enabled | boolean | Set false to pause deliveries (secret preserved), true to resume |
event_naming | string | Re-pin which spelling of the photo mockup events this endpoint receives: 'current' (photo_mockup.*, photo_mockup_render.*, kind photo_mockup_create/photo_mockup_render) or 'legacy' (2d_mockup.*, 2d_re… |
event_types | array | Replacement list of subscribed event types. Pass an empty array to subscribe to ALL events. |
url | string | New https endpoint URL (publicly routable; private/loopback hosts are rejected) |
delete_webhook_endpoint
Permanently delete a webhook endpoint. SudoMock stops delivering to it. Cannot be undone.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The id of the webhook endpoint to delete (from list_webhook_endpoints) |
rotate_webhook_secret
Rotate the signing secret for a webhook endpoint. A new secret is returned IN FULL exactly once -- update your verifier with it. The old secret stops being valid.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The id of the webhook endpoint to rotate (from list_webhook_endpoints) |
test_webhook_endpoint
Send a signed webhook.test event to verify endpoint reachability and signature handling. Returns a test job_id; check the result with list_webhook_deliveries.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The id of the webhook endpoint to test (from list_webhook_endpoints) |
list_webhook_deliveries
List delivery attempts for a webhook endpoint (status, event_type, response code, timestamps). Use this to debug failed deliveries before replaying them.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The id of the webhook endpoint (from list_webhook_endpoints) |
event_type | string | Filter by event type |
limit | integer | Max deliveries to return (1-200, default 50) |
status | string | Filter by delivery status (e.g. 'failed', 'succeeded') |
replay_webhook_delivery
Replay a single webhook delivery while preserving its event identity, e.g. after fixing your endpoint. Get delivery_id from list_webhook_deliveries.
| Parameter | Type | Description |
|---|---|---|
delivery_id * | string | The id of the delivery to replay (from list_webhook_deliveries) |
endpoint_id * | string | The id of the webhook endpoint (from list_webhook_endpoints) |
replay_failed_webhook_deliveries
Re-send every failed or dead delivery for a webhook endpoint in one call, e.g. after fixing your endpoint. Returns status and count: how many deliveries were queued to be sent again. To re-send a single delivery, use replay_webhook_delivery.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The id of the webhook endpoint whose failed deliveries are all sent again (from list_webhook_endpoints) |
upload_local_file
Upload a file from this machine and get back a URL for it. Use this when the file exists on disk and a tool needs a URL: pass the returned file_url as psd_file_url to upload_psd, or as artwork_url to any render tool. Set kind to "psd" for a .psd/.psb template or "artwork" for a .png/.jpg/.webp/.gif image. Costs 0 credits.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the file on this machine. Relative paths resolve against the server's working directory. |
kind | string | "psd" for a .psd or .psb template, "artwork" for an image. |
create_upload_url
Get a place to send a file that only exists on your machine. Every other tool takes a URL, so a local file has to be uploaded first. Returns an upload_url to PUT the bytes to and the file_url they will have afterwards; pass that file_url as psd_file_url to upload_psd, or as artwork_url to any render tool. Set kind to "psd" for a .psd or .psb template, or "artwork" for a .png, .jpg, .webp or .gif image. The upload target is scoped to a single file and cannot be overwritten or read back through the same URL. When the file is on the machine running this server, upload_local_file uploads it in one…
| Parameter | Type | Description |
|---|---|---|
filename * | string | The file's name, e.g. shirt.psd. Only its extension is read, and a type that cannot be processed is refused. |
kind | string | "psd" for a .psd or .psb template, "artwork" for a .png, .jpg, .webp or .gif image. |
search_ready_made_mockups
Search SudoMock's free library of ready-made mockups. Nothing here needs a Photoshop file or a product photo of your own: 6,900+ ready-made mockups across 104 product types. A mockup is one view of a product scene (front, folded, flat lay, lifestyle, close-up) and a template is the set of views of that scene, 912 of them. Search by free text, category, product type or tag and you get templates back with every mockup they hold, each carrying the address to render from, so one call is enough to act on. Pass slug=<a hit's slug> to read one template with its long-form copy. Then send a mockup's so…
| Parameter | Type | Description |
|---|---|---|
category | string | Keep only one top category: apparel, home-living, accessories, drinkware, signage-advertising, print-paper, packaging, branding. |
limit | number | How many templates one page of results carries, 1 to 50. |
page | number | Which page of results to return, counting from 1. |
product_type | string | Keep only one product type, the narrowest level: crewneck-short-sleeve, classic-ceramic-mug, wall-mural, tote-bag. |
search | string | Free text matched against a template's title and description, so "coffee mug" or "oversized tee" both work. Leave it out to list the library. |
slug | string | Read ONE template instead of searching, for its long-form copy and the facets it is listed under. The slug comes from a search hit. |
tag | string | Keep only templates carrying this tag, such as t-shirt-mockup. Several tags are comma-separated. |
list_psd_mockups
List the mockup templates in your own account with UUIDs, names, and thumbnails. Use returned UUIDs with render_mockup or get_mockup_details. To find a ready-made mockup from SudoMock's free library instead, use search_ready_made_mockups. Family-name spelling of list_mockups: one tool under two names, same arguments, same behavior. Either name works.
| Parameter | Type | Description |
|---|---|---|
created_after | string | Only mockups created after this ISO 8601 timestamp |
created_before | string | Only mockups created before this ISO 8601 timestamp |
folder_uuid | string | Only mockups in this folder. Send `root` for the ones at the top of the library. Leave it out for every mockup, wherever it is. |
limit | number | Results per page (1-100, default 20) |
name | string | Filter by name (case-insensitive substring match) |
offset | number | Pagination offset (default 0) |
sort_by | string | Sort field |
sort_order | string | Sort direction |
get_psd_mockup
Get full details of a mockup: smart object UUIDs, layer names, dimensions, positions, blend modes, and thumbnail URLs. A smart object whose contents hold smart objects or live text lists them in its own smart_objects and text_layers; fill any of them by UUID in the same render, like a top-level one. Set include_layers to true to also get data.layers: every layer of the template, nested the way Photoshop's Layers panel shows it and listed front-most first, each with uuid, name, kind, visible and children. An artboard has kind artboard; its own layers are listed right before it at the top level,…
| Parameter | Type | Description |
|---|---|---|
mockup_uuid * | string | The UUID of the mockup to inspect |
include_layers | boolean | Also return every layer of the template in data.layers, with the uuids hidden_layers takes. Default false. |
update_psd_mockup
Rename a mockup template. Family-name spelling of update_mockup: one tool under two names, same arguments, same behavior. Either name works.
| Parameter | Type | Description |
|---|---|---|
mockup_uuid * | string | The UUID of the mockup to rename |
name * | string | New display name for the mockup |
delete_psd_mockup
Permanently delete a mockup template. Cannot be undone. Family-name spelling of delete_mockup: one tool under two names, same arguments, same behavior. Either name works.
| Parameter | Type | Description |
|---|---|---|
mockup_uuid * | string | The UUID of the mockup to delete |
render_psd_mockup
Render a PSD mockup with artwork, editable text, or both. Supports one or multiple smart objects and preserves the template's authored appearance. Name what to fill with any of these, alone or together: smart_object_uuid + artwork_url for one smart object, smart_objects entries ({uuid, asset or color}) for one or more, text_layers entries ({uuid, text or segments}), or text_layer_uuid + text for one text layer. Sent together they are combined into one render: the smart_object_uuid entry comes before the smart_objects entries, and the text_layer_uuid entry before the text_layers entries. Use te…
create_photo_mockup
Create a reusable photo mockup from a public image URL. Returns the mockup ID and public render targets synchronously. Costs 25 credits. If the image is unsuitable, the 25 credits are refunded automatically. Set is_async=true to queue instead and receive a job_id to poll with get_job or wait_for_job. Correct a print area with update_2d_print_areas and a surface that does not match the product with delete_photo_mockup_surface; the dashboard is for looking at the result. Family-name spelling of create_2d_mockup: one tool under two names, same arguments, same behavior. Either name works.
| Parameter | Type | Description |
|---|---|---|
source_url * | string | Public HTTPS URL of the product image |
idempotency_key | string | Optional retry-stable key for this create request |
is_async | boolean | Queue creation instead of waiting. When true the API returns 202 with a job_id immediately -- poll with get_job, or call wait_for_job to block until it finishes and returns the mockup. Default false r… |
name | string | Optional display name for the photo mockup |
print_areas | array | Optional print areas to draw on the new mockup, 0 to 8 four-point quads in source-image pixels, each with an optional name. The create call assigns every area its own print_area_id, so leave print_are… |
list_photo_mockups
List your saved photo mockup templates (no PSD). Returns each mockup's mockup_id, name, status, thumbnail, dimensions, and print_areas. Use the mockup_id with get_2d_mockup to read the print-area and surface UUIDs a render needs. Costs 0 credits. Family-name spelling of list_2d_mockups: one tool under two names, same arguments, same behavior. Either name works.
| Parameter | Type | Description |
|---|---|---|
customizable_only | boolean | Return only mockups ready for shopper customization |
folder_uuid | string | Only mockups in this folder. Send `root` for the ones at the top of the library. Leave it out for every mockup, wherever it is. |
limit | number | Results per page (1-100, default 20) |
offset | number | Pagination offset (default 0) |
get_photo_mockup
Get one photo mockup's full details: the saved print_areas[] somebody drew on it, and the surfaces[], one entry per printable product in the photo and one for the main wall of a room photo, each with a label. Pass a print_area_id to render_2d_print_area, or a surfaces[].surface_uuid to render_2d_surface. Costs 0 credits. Family-name spelling of get_2d_mockup: one tool under two names, same arguments, same behavior. Either name works.
| Parameter | Type | Description |
|---|---|---|
mockup_id * | string | UUID of the photo mockup (mockup_id from list_2d_mockups) |
update_photo_mockup_print_areas
Replace a photo mockup's print areas with up to 8 four-point quads and return the updated geometry. An area sent with print_area_id keeps that id; an area without one gets a new id. An empty list is accepted only for verified full surfaces. Costs 0 credits. Family-name spelling of update_2d_print_areas: one tool under two names, same arguments, same behavior. Either name works.
| Parameter | Type | Description |
|---|---|---|
mockup_id * | string | UUID of the photo mockup to update |
print_areas * | array | Replacement print areas (0-8 four-point quads, each with an optional name and print_area_id) |
delete_photo_mockup
Permanently delete a photo mockup template and all of its data. Cannot be undone. Costs 0 credits. Family-name spelling of delete_2d_mockup: one tool under two names, same arguments, same behavior. Either name works.
| Parameter | Type | Description |
|---|---|---|
mockup_id * | string | UUID of the photo mockup to delete (mockup_id from list_2d_mockups) |
get_2d_mockup_details
Get one photo mockup's full details: the saved print_areas[] somebody drew on it, and the surfaces[], one entry per printable product in the photo and one for the main wall of a room photo, each with a label. Pass a print_area_id to render_2d_print_area, or a surfaces[].surface_uuid to render_2d_surface. Costs 0 credits. Second name of get_2d_mockup: one tool under two names, same arguments, same behavior. Either name works.
| Parameter | Type | Description |
|---|---|---|
mockup_id * | string | UUID of the photo mockup (mockup_id from list_2d_mockups) |
send_webhook_test_event
Send a signed webhook.test event to verify endpoint reachability and signature handling. Returns a test job_id; check the result with list_webhook_deliveries. Second name of test_webhook_endpoint: one tool under two names, same arguments, same behavior. Either name works.
| Parameter | Type | Description |
|---|---|---|
endpoint_id * | string | The id of the webhook endpoint to test (from list_webhook_endpoints) |
render_photo_mockup
Render artwork onto a saved photo mockup. Name exactly one target: a print_area_uuid (a bounded zone somebody drew on the product, such as a chest logo; sized by fit or by width + height) or a surface_uuid (a whole printable product or the main wall of a room photo, for an all-over print; sized by coverage or by width + height). Read both from get_photo_mockup. Returns print_files (each with an export_path) and a render_uuid. Costs 5 credits. Family-name spelling of render_2d_surface and render_2d_print_area, which stay available and behave exactly as they did. Correct a print area with update…
| Parameter | Type | Description |
|---|---|---|
artwork_url * | string | Public URL of the artwork image (PNG/JPG/WebP) to place on the mockup |
blend_mode | string | How the artwork sits on the product: 'multiply' (the default) keeps the material texture visible, 'normal' reproduces the artwork colors exactly. 'screen', 'lighten', 'soft_light', 'overlay' and 'dark… |
brightness | number | Brightness adjustment (-150 to 150) |
contrast | number | Contrast adjustment (-100 to 100) |
coverage | number | How much of the surface the artwork spans, as a percentage (10-100). Belongs to surface_uuid; sending it with print_area_uuid is refused. Omit to span the whole surface, which is what an all-over prin… |
fit | string | How the artwork meets the print area, which it always fills edge to edge: 'fit' keeps the proportions and fits inside (the default), 'fill' stretches to the edges, 'crop' fills and crops the overflow.… |
height | number | Artwork height in pixels. Send together with width. Sending only one of the two is rejected rather than silently completed, so the aspect ratio is never guessed for you. |
image_format | string | Output format - 'webp' (smaller, recommended), 'png' (lossless), 'jpg' |
image_size | number | Length of the output's longer side in pixels (100-10000); the other side follows the product photo's proportions. An account in trial renders up to 1024 on the longer side: when image_size is omitted… |
is_async | boolean | Queue the render instead of waiting. When true the API returns 202 with a job_id immediately; poll with get_job, or call wait_for_job to block until it finishes and hands back result_url. Default fals… |
mockup_id | string | UUID of the photo mockup (mockup_id from list_photo_mockups, get_photo_mockup or create_photo_mockup). Send this or mockup_uuid. |
mockup_uuid | string | Same as mockup_id, under the name the hosted server uses. Send this or mockup_id; if both are sent they must match. |
offset_x | integer | Pixel offset along the X axis from the anchored position. Omit to sit exactly on the anchor. |
offset_y | integer | Pixel offset along the Y axis from the anchored position. Omit to sit exactly on the anchor. |
opacity | number | Artwork opacity percentage (0-100) |
position | string | Where the artwork sits within its target. Omit to accept the renderer's anchor, which is the center. |
print_area_uuid | string | UUID of a saved print area from get_photo_mockup's print_areas[] (its print_area_id): a bounded zone somebody drew on the product, such as a chest logo. Omit when surface_uuid is used. |
quality | number | Compression quality for webp/jpg (1-100, default 90) |
remove_background | boolean | Remove the artwork's background before placing it. Adds 5 credits per artwork. |
rotation | number | Rotate artwork in degrees (-360 to 360). Omit to leave it unrotated. |
saturation | number | Saturation adjustment (-100 to 100) |
surface_uuid | string | UUID of a product surface from get_photo_mockup's surfaces[]: a whole printable product or the main wall of a room photo, for an all-over print. Omit when print_area_uuid is used. |
tile | boolean | Repeat the artwork as a pattern across the whole target. The sizing answer (coverage, fit, or width and height) is one tile, and position with offset_x and offset_y sets where the grid starts. Require… |
tile_spacing | number | Gap between tiles as a percentage of the tile size, 0 to 100. The horizontal gap is that percent of the tile width, the vertical gap that percent of the tile height. Used only when tile is true. |
width | number | Artwork width in pixels, drawn at that exact size instead of by coverage or fit. Send together with height, and without coverage or fit. Width and height are independent, so any aspect ratio is allowe… |
render_2d_mockup
Render artwork onto a saved photo mockup. Name exactly one target: a print_area_uuid (a bounded zone somebody drew on the product, such as a chest logo; sized by fit or by width + height) or a surface_uuid (a whole printable product or the main wall of a room photo, for an all-over print; sized by coverage or by width + height). Read both from get_2d_mockup. Returns print_files (each with an export_path) and a render_uuid. Costs 5 credits. Second name of render_photo_mockup: the same tool and behavior, with the mockup passed as mockup_uuid. Correct a print area with update_2d_print_areas and a…
| Parameter | Type | Description |
|---|---|---|
artwork_url * | string | Public URL of the artwork image (PNG/JPG/WebP) to place on the mockup |
mockup_uuid * | string | UUID of the photo mockup template (from list_2d_mockups, returned as mockup_id). |
blend_mode | string | How the artwork sits on the product: 'multiply' (the default) keeps the material texture visible, 'normal' reproduces the artwork colors exactly. 'screen', 'lighten', 'soft_light', 'overlay' and 'dark… |
brightness | number | Brightness adjustment (-150 to 150) |
contrast | number | Contrast adjustment (-100 to 100) |
coverage | number | How much of the surface the artwork spans, as a percentage (10-100). Belongs to surface_uuid; sending it with print_area_uuid is refused. Omit to span the whole surface, which is what an all-over prin… |
fit | string | How the artwork meets the print area, which it always fills edge to edge: 'fit' keeps the proportions and fits inside (the default), 'fill' stretches to the edges, 'crop' fills and crops the overflow.… |
height | number | Artwork height in pixels. Send together with width. Sending only one of the two is rejected rather than silently completed, so the aspect ratio is never guessed for you. |
image_format | string | Output format - 'webp' (smaller, recommended), 'png' (lossless), 'jpg' |
image_size | number | Length of the output's longer side in pixels (100-10000); the other side follows the product photo's proportions. An account in trial renders up to 1024 on the longer side: when image_size is omitted… |
is_async | boolean | Queue the render instead of waiting. When true the API returns 202 with a job_id immediately; poll with get_job, or call wait_for_job to block until it finishes and hands back result_url. Default fals… |
offset_x | integer | Pixel offset along the X axis from the anchored position. Omit to sit exactly on the anchor. |
offset_y | integer | Pixel offset along the Y axis from the anchored position. Omit to sit exactly on the anchor. |
opacity | number | Artwork opacity percentage (0-100) |
position | string | Where the artwork sits within its target. Omit to accept the renderer's anchor, which is the center. |
print_area_uuid | string | UUID of a saved print area from get_photo_mockup's print_areas[] (its print_area_id): a bounded zone somebody drew on the product, such as a chest logo. Omit when surface_uuid is used. |
quality | number | Compression quality for webp/jpg (1-100, default 90) |
remove_background | boolean | Remove the artwork's background before placing it. Adds 5 credits per artwork. |
rotation | number | Rotate artwork in degrees (-360 to 360). Omit to leave it unrotated. |
saturation | number | Saturation adjustment (-100 to 100) |
surface_uuid | string | UUID of a product surface from get_photo_mockup's surfaces[]: a whole printable product or the main wall of a room photo, for an all-over print. Omit when print_area_uuid is used. |
tile | boolean | Repeat the artwork as a pattern across the whole target. The sizing answer (coverage, fit, or width and height) is one tile, and position with offset_x and offset_y sets where the grid starts. Require… |
tile_spacing | number | Gap between tiles as a percentage of the tile size, 0 to 100. The horizontal gap is that percent of the tile width, the vertical gap that percent of the tile height. Used only when tile is true. |
width | number | Artwork width in pixels, drawn at that exact size instead of by coverage or fit. Send together with height, and without coverage or fit. Width and height are independent, so any aspect ratio is allowe… |