---
title: "Create Style Endpoint"
method: POST
path: "/styles"
tags: ["styles"]
---

# Create Style Endpoint

`POST /styles`

## Request

- Base URL: `https://api.framesail.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.framesail.com/styles`
- Auth: HTTP bearer

## Response `201`

Successful Response

- StyleResponse: Public style shape returned to the frontend. `fields` is included so the frontend can render content from a single query — no separate /analysis endpoint needed. "Analysis done" is `fields.art_style.value` non-empty; "in flight" is an ai_jobs row observed by useJobWatcher (keyed on style_id).
  - `id` string, required
  - `channel_id` string, required
  - `name` string, required
  - `inputs` object[]
  - `fields` object
  - `inputs_stale` boolean
  - `created_at` string, nullable
  - `updated_at` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/framesail/apis/framesail-api.md) · [All operations](https://skmtc.dev/framesail/apis/framesail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/framesail/apis/framesail-api/revisions/12602eae0820?raw)
