MCP Gateway
ApiAi generation

Create generation job

Start a new MCP server generation job. Creates a job and immediately triggers the analysis pipeline in the background.

POST
/api/v1/servers/generate

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/servers/generate" \  -H "Content-Type: application/json" \  -d '{    "input_type": "openapi_json",    "input_content": "string"  }'
{
  "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
  "status": "pending",
  "server_name": "string",
  "message": "Generation job created"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}