김인턴
APIReferenceSite

site_serve

Serve a site project directory you built in the workspace: preview mode returns a temporary review URL, publish mode deploys to the public URL. First serve allocates the slug from the title; pass siteReference to update an existing served site. `site_publish` · v3

POST
/tools/site_serve/invoke

Authorization

memberToken
AuthorizationBearer <token>

Tokens

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

text/plain

text/plain

text/plain

text/plain

curl -X POST "https://example.com/tools/site_serve/invoke" \  -H "Content-Type: application/json" \  -d '{    "input": {      "mode": "preview",      "sourceWorkspacePath": "string",      "title": "string"    }  }'
{  "toolName": "string",  "status": "string",  "content": "string",  "isError": true,  "message": "string",  "errorCode": "string",  "retryable": true,  "result": null}