Skip to main content
Yes, an API can edit the type inside a Photoshop file. SudoMock reads the live text layers on upload and renders new wording, font, size and colour at request time, without opening Photoshop and without flattening the design around the text. Two calls do it. The first is setup and runs once per template; the second is the one your product calls.

1. Upload the PSD and find the text layers

The response lists every text layer it found, each with a uuid and its current values.
Keep the mockup uuid and the layer uuid. Those two values are the whole interface from here on.

2. Render with your own wording

The finished image is at data.print_files[0].export_path. Everything you did not name keeps its authored appearance, so the rest of the card renders exactly as the designer drew it. The request needs no smart object and no artwork. A text-only personalisation is a valid render on its own.

Do it for a list

One template and a list of names is a run of finished images. Nothing is re-uploaded between them.

Change the typeface too

font, font_size and color are optional on the same entry, and fall back to the layer’s authored values when you leave them out.
font is a catalogue font uuid or its PostScript name, from the 2,000+ family open-licensed catalogue, or from a typeface you uploaded yourself on Pro and Scale. Fonts covers both. fit: "shrink" keeps a long replacement inside the layer’s area rather than letting it run past. Fitting and colour covers the other options, and the outlines and mixed-style layers alongside them.

What to check before you ship

Read three fields from the upload response and you know what a template can do.
  • is_editable false means the layer keeps its original appearance in this version. The reason and the workaround are in the support matrix on Text layers.
  • font_available false means the layer’s own typeface is not in your catalogue, so it would fall back. Upload that font, or set font explicitly.
  • segment_count above 1 means the layer mixes styles and takes segments rather than text.

Text layers

The full override contract, warning codes and support matrix.

Fonts

Browse the catalogue, or upload your brand typeface.