LampBuilder

LampBuilder · Actions GPT

Lamp website builder API

Build a landing pages in seconds using AI.

  • POST /sites/Create a new site. This triggers the build of a simple landing page. Include a concise description of the site.
Schéma original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "Lamp website builder API",
    "version": "1.0.0",
    "description": "Build a landing pages in seconds using AI."
  },
  "servers": [
    {
      "url": "https://api.lampbuilder.com",
      "description": "Root API URL"
    }
  ],
  "paths": {
    "/sites/": {
      "post": {
        "operationId": "sites_create",
        "summary": "Create a new site. This triggers the build of a simple landing page. Include a concise description of the site.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 255,
                    "example": "Example Site"
                  },
                  "description": {
                    "type": "string",
                    "example": "This is a sample site description."
                  }
                },
                "required": [
                  "name",
                  "description"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Building landing page initiated for the created site. The link to the site is included in the preview_url field.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "building",
                        "published",
                        "failed"
                      ]
                    },
                    "domains": {
                      "type": "array",
                      "description": "A list of associated domains for the site. Initially blank, the user needs to publish the site using the preview url.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer"
                          },
                          "domain": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "inactive"
                            ]
                          },
                          "created": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "created": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "preview_url": {
                      "type": "string",
                      "description": "The preview URL of the site. The user can follow this link to view and publish the site."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}