POST
/
styles
/
create
Create
curl --request POST \
  --url https://api.buybase.ai/styles/create \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "text": "<string>",
  "profile_id": "<string>"
}'
{
  "success": true,
  "style": {
    "id": "style_12345",
    "text": "Minimalist casual style with neutral colors like black, white, and beige. Preference for cotton fabrics, clean lines, and simple designs without logos or patterns.",
    "profile_id": "prof_67890",
    "created_at": "2023-09-15T14:22:31Z"
  },
  "attached_profile_id": "prof_67890",
  "code": "STYLE_CREATED"
}

Headers

authorization
string
required
Your API key for authorization.

Body Parameters

text
string
required
Descriptive text for the style profile. This should include style preferences, colors, patterns, or any other fashion attributes that define the style.
profile_id
string
required
The ID of the profile to attach this style to.

Response

success
boolean
Indicates whether the operation was successful.
style
object
The created style object.
attached_profile_id
string
The ID of the profile this style is attached to.
code
string
A code indicating the result of the operation. Possible values:
  • STYLE_CREATED: Style created successfully
  • STYLE_PROFILE_CREATION_FAILED: Failed to create style profile
  • STYLE_EXISTS: A style already exists for this profile
error
string
Error message if the request fails.
Only one style is allowed per profile. If you need to modify a style, use the update endpoint instead.
{
  "success": true,
  "style": {
    "id": "style_12345",
    "text": "Minimalist casual style with neutral colors like black, white, and beige. Preference for cotton fabrics, clean lines, and simple designs without logos or patterns.",
    "profile_id": "prof_67890",
    "created_at": "2023-09-15T14:22:31Z"
  },
  "attached_profile_id": "prof_67890",
  "code": "STYLE_CREATED"
}