Skip to main content
POST
/
v1
/
users
/
themes
/
import
Import theme from JSON
curl --request POST \
  --url https://api.yalg.ai/v1/users/themes/import \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "Founder voice"
}
'
{
  "id": "018f9f46-9a0e-7afd-b13f-2f63f07aa4f2",
  "name": "Founder voice",
  "description": "Direct, practical, and story-led.",
  "isDefault": false,
  "config": {
    "tone": "direct",
    "pacing": "concise"
  },
  "createdAt": "2026-06-20T17:24:39.000Z",
  "updatedAt": "2026-06-20T17:24:39.000Z"
}

Authorizations

x-api-key
string
header
default:yalg_live_your_api_key
required

YALG Developer API key. Send it in the x-api-key header from a server-side environment only.

Body

application/json
name
string
required

Name for the imported theme

themeData
object
required

Theme payload containing colors, typography, and styling exported from YALG.

Example:
{
"colors": {
"primary": "#e00036",
"background": "#ffffff",
"text": "#111111"
},
"typography": {
"fontFamily": "Inter",
"headingWeight": 700
},
"styling": { "borderRadius": 8, "shadow": "soft" }
}

Response

Theme imported successfully

Reusable YALG writing style theme.

id
string<uuid>

Theme identifier.

Example:

"018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f"

name
string
Example:

"Founder voice"

description
string
Example:

"Opinionated and direct"

isDefault
boolean
Example:

false

config
object
createdAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"

updatedAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"