> For the complete documentation index, see [llms.txt](https://knowledgebase.fabricdata.com/fabric-knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.fabricdata.com/fabric-knowledge-base/api/record-builder-back-end-and-api-documentation.md).

# Record Builder Back End and API Documentation

<details>

<summary>API</summary>

#### **GraphQL API**

[Data Management GraphQL API Docs](https://fabric-dev-storage.s3.eu-west-2.amazonaws.com/RecordBuilder/index.html)

#### **REST API**

`GET /script/validator/schema?models=id&ghosts=0&flatten=0`

**Parameters**

1. **flatten**
   * **Values**: **`0`** or **`1`**
   * **Description**: Generate a flattened representation of the schema.
2. **models**
   * **Values**: **`id`**, **`title`**, **`synopsis`, `origination`, `origination_v2`**
   * **Description**: Limit the json schema generation to the models in the comma separated list. Empty = all models.
3. **ghosts**
   * Values: `0` or `1`
   * **Description:** Include “ghost” properties that are only useful to the **injection** and **filtering** process.

</details>

<details>

<summary>Access Patterns</summary>

#### GraphQL

You can complete the GraphQL query call with any HTTP library.

```bash

POST /graphql
Content-Type: application/json
{
  "query": "{ getOriginationConfigs { ... } }" //graphql query string
}
```

</details>

<details>

<summary>Payload Structure</summary>

Detailed payload structures for GraphQL API can be found in the GraphQL API documents linked above.

See the [Query](https://fabric-dev-storage.s3.eu-west-2.amazonaws.com/RecordBuilder/index.html#group-Operations-Queries) section for available query options or [Mutation](https://fabric-dev-storage.s3.eu-west-2.amazonaws.com/RecordBuilder/index.html#group-Operations-Mutations) section for the Create and Update operations.

</details>
