Skip to main content
POST
Generate component style alternatives

Authorizations

Authorization
string
header
required

Supabase JWT — Authorization: Bearer <token>.

Body

application/json
portal
enum<string>
required

interview (career and interview portal) or consumer (coaching portal).

Available options:
interview,
consumer
Example:

"interview"

block_type
enum<string>
required

The kind of block to design for.

Available options:
hero,
intro,
media-text,
cards,
feature-grid,
stats,
quote,
testimonials,
video,
video-gallery,
audio,
tabs,
timeline,
jobs,
job-openings,
public-avatar,
easy-apply,
blogs,
rich-text,
divider,
logo-row,
faq,
directory,
cta,
footer,
pricing
Example:

"hero"

merchant_id
string<uuid>

Optional company. Admins and sub-merchant operators only; other callers always use their token's company.

brand_id
string<uuid>

A sub-brand; leave it out for the main brand. Its CSS variables shape the looks.

block
object

The block as it is in page content (its title, text, items, layout), so the looks fit what it holds.

instruction
string

What the person wants, in their words.

Maximum string length: 500
Example:

"Darker, with more space around the title"

count
integer
default:3

How many looks, 1 to 4. Default 3.

Required range: 1 <= x <= 4

Response

The alternatives; fewer than asked when some failed the checks (see warnings).

block_type
string
required
alternatives
object[]
required
warnings
string[]
required