Application Programming Interface layer

API Lab

Use this page to demonstrate backend routes, clean contracts, AI endpoints and future external integrations.

GET

/api/health

Deployment and service health check.

POST

/api/ai/design

Returns design ideas from a prompt. Replace with Azure AI later.

POST

/api/ai/rewrite

Rewrites text for marketing copy. Replace with Azure OpenAI later.

GET

/api/mcp/tools

Lists MCP-style tools exposed by WebCut AI.

POST

/api/mcp/call

Executes a safe internal tool call placeholder.

Example request

fetch('/api/ai/design', {\n  method: 'POST',\n  headers: { 'Content-Type': 'application/json' },\n  body: JSON.stringify({ prompt: 'Create a futuristic video thumbnail' })\n});