Luw.ai API
  • Luw.ai API Documentation
    • Introduction
      • Getting Started
      • API Reference
      • Authentication
      • Error Handling
      • Rate Limit and Quotas
      • Get Process Results
      • Uploading Files
    • Generators
      • Interior AI
      • Exterior AI
      • Sketch AI
      • Magic Prompt AI
      • Mood Board AI
      • Magic Wand AI
      • Enhance AI
      • Remove Furniture AI
      • Segment AI
      • ArchiGPT
      • Motion AI
      • Video AI
      • Fluw AI
      • Fluw Vector AI
      • 3DGen AI
      • Pattern AI
      • Change Background AI
    • Knowledge
      • Design Styles
      • Video Styles
      • Interior Types
      • Exterior Types
      • Mood Board Types
      • Magic Wand Materials
      • What is Mask Image?
      • Precision Levels
    • Personas
      • Persona Endpoints
      • Training Endpoints
      • Like a Design
      • Persona Slots
    • Projects API
Powered by GitBook
On this page
  • Create Persona
  • List Personas
  • Get Persona
  • Update Persona
  • Delete Persona
  • Profession Types
  1. Luw.ai API Documentation
  2. Personas

Persona Endpoints

Persona management endpoints for CRUD operations

Create Persona

POST /v2/personas

Create persona associated with your account.

Parameters

Name
Type
Description

id

integer

Required ID of the persona to update

name

string

Optional New name for the persona

title

string

Optional New title or description

knows

string

profession

string

Curl Example

curl -X POST https://api.luw.ai/v2/personas \
-H "Authorization: Bearer LUW_API_TOKEN" \
-d "name=Alice" \
-d "knows=Modern,Minimalism"

Response Example

{
  "status": true
}

List Personas

GET /v2/personas

Lists all personas associated with your account.

Curl Example

curl -X GET https://api.luw.ai/v2/personas \
-H "Authorization: Bearer LUW_API_TOKEN"

Response Example

{
  "status": true,
  "personas": [
    {
      "id": 123,
      "name": "Modern Designer",
      "title": "Professional Interior Designer",
      "knows": "Modern,Minimalist",
      "profession": "Interior"
    }
  ]
}

Get Persona

GET /v2/personas/:id

Parameters

Name
Type
Description

id

integer

Required ID of the persona to retrieve

Curl Example

curl -X GET https://api.luw.ai/v2/personas/123 \
-H "Authorization: Bearer LUW_API_TOKEN"

Response Example

{
  "status": true,
  "persona": {
    "id": 123,
    "name": "Modern Designer",
    "title": "Professional Interior Designer",
    "knows": "Modern,Minimalist",
    "profession": "Interior",
    "trainings_count": 3
  }
}

Update Persona

PUT /v2/personas/:id

Updates existing persona details.

Parameters

Name
Type
Description

id

integer

Required ID of the persona to update

name

string

Optional New name for the persona

title

string

Optional New title or description

knows

string

Optional New comma-separated style knowledge

profession

string

Optional New professional field

Curl Example

curl -X PUT https://api.luw.ai/v2/personas/123 \
-H "Authorization: Bearer LUW_API_TOKEN" \
-d "knows=Modern,Minimalist,Industrial"

Response Example

{
  "status": true
}

Delete Persona

DELETE /v2/personas/:id

Parameters

Name
Type
Description

id

integer

Required ID of the persona to delete

Curl Example

curl -X DELETE https://api.luw.ai/v2/personas/123 \
-H "Authorization: Bearer LUW_API_TOKEN"

Response Example

{
  "status": true
}

Profession Types

  • Interior

  • Exterior

  • Sketch

  • Video (Use it for Motion AI)

  • Fluw

  • 3DGen

  • Render

  • MagicWand

  • Enhancer

  • Segment

  • ArchiGPT

PreviousPersonasNextTraining Endpoints

Last updated 4 months ago

Optional New comma-separated style knowledge. List of types for and .

Optional Profession of the persona.

interior
exterior
Learn more