---
title: "POST /v1/{+name}:generateSchema"
method: POST
path: "/v1/{+name}:generateSchema"
tags: ["projects"]
---

# POST /v1/{+name}:generateSchema

`POST /v1/{+name}:generateSchema`

Generates GraphQL schema based on a natural language prompt or data description. This allows users to scaffold new types and tables quickly. Streams results with real-time status and output chunks.

## Path parameters

- `name` string, required

## Request body

- GenerateSchemaRequest — Request message for GenerateSchema.
  - `prompt` string — Required. The natural language description of the data model to generate. Example: "A blog system with Users, Posts, and Comments. Users can have multiple posts."

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/firebasedataconnect.md) · [All operations](https://skmtc.net/google/apis/firebasedataconnect/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/firebasedataconnect/versions/dda665bc52bd/schema)
