Persona Endpoints

Persona management endpoints for CRUD operations

Create Persona

GET /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

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

profession

string

Optional Profession of the persona. Learn more

Curl Example

curl -X PUT https://api.luw.ai/v2/personas/123 \
-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

Last updated