Authentication

All API endpoints require authentication. You can authenticate using either:

  1. Bearer token in the Authorization header

  2. API token as a query parameter

Authentication Methods

Bearer Token

curl -H "Authorization: Bearer LUW_API_TOKEN"

Response Example

{
  "status": true,
  "materials": [
    {
      "id": 1,
      "prompt_type": "Material",
      "title": "Marble",
      "extra": "White marble with grey veins",
      "image": "https://cdn.luw.ai/materials/marble.jpg"
    }
  ]
}

Last updated