GenuineAIGenuineAI
For usersFor developers
  • Overview
  • Guides
  • How-to
  • API reference
Documentation
  • Quickstart
  • Authentication
  • Errors
  • Rate limits
  • API reference
Platform
  • Platform overview
  • Solutions
  • Pricing
  • Sign in
Company
  • Status
  • Trust Center
  • Contact
  • Terms of Service
  • Privacy Policy

© 2026 GenuineAI Ventures LLC

support@genuinehq.com
Overview
Core
Media library
AI
Documents
Knowledge
    Knowledge bases
    Knowledge base records
    Knowledge base schemas
      List schemasgetCreate a schemapostGet a schemagetDelete a schemadeleteUpdate a schemapatch
    Objects
    Object taxonomies
    Object schemas
    Object lifecycle flows
    Object sources
Creative
Website & content
Automation
Customer channels
Administration
Schemas
GenuineAI API
GenuineAI API

Knowledge base schemas

The record shapes form-backed knowledge bases use, including the standard templates a new base starts from.


List schemas

GET
https://api.genuineai.app/api/v1
/knowledge-base-schemas

Returns the record schemas knowledge bases can be built from — the workspace's own and the standard templates the product ships.

List schemas › query Parameters

cursor
​string · maxLength: 512 · pattern: ^[A-Za-z0-9_-]+$
form_active
​boolean
​object · style: deepObject · explode: true
form_created
​array
form_description
​string
form_id
​string · uuid
form_managed_by
​string · uuid
form_name
​string
form_updated
​array
limit
​integer
offset
​integer · min: 0
sort
​string · minLength: 1 · maxLength: 64 · pattern: ^-?[a-z0-9_]+$

List schemas › Headers

X-Tenant-Id
​string · uuid · required

The workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.

List schemas › Responses

Success

​KnowledgeBaseSchema[] · required
has_more
​boolean · required

Whether more rows exist past this page.

next_cursor
​string | null · required

Pass back as cursor for the next page. Null on the last page.

GET/knowledge-base-schemas
curl https://api.genuineai.app/api/v1/knowledge-base-schemas \ --header 'X-Tenant-Id: <string>' \ --header 'X-Api-Key: <api-key>'
Example Responses
{ "data": [ { "form_id": "00000000-0000-0000-0000-000000000000", "form_name": "form_name", "form_description": "form_description", "form_config": {}, "form_metadata": {}, "form_managed_by": "form_managed_by", "form_active": true, "form_created": "2024-08-25T15:00:00Z", "form_updated": "2024-08-25T15:00:00Z" } ], "has_more": true, "next_cursor": "next_cursor" }
json
application/json

Create a schema

POST
https://api.genuineai.app/api/v1
/knowledge-base-schemas

Creates an empty schema to define fields on. POST /knowledge-bases with ds_type: form and no schema named also creates one, already linked to the base.

Create a schema › Headers

X-Tenant-Id
​string · uuid · required

The workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.

Create a schema › Request Body

form_name
​string · minLength: 1 · required
form_description
​string
form_config
​object
form_metadata
​object

Create a schema › Responses

Created

The record shape of a form-backed knowledge base. Product-shipped schemas are the standard templates a new base starts from; a fork copies one into the workspace.
KnowledgeBaseSchema
form_id
​string · uuid
form_name
​string
form_description
​string
form_config
​object
form_metadata
​object
form_managed_by
​string
form_active
​boolean
form_created
​string · date-time
form_updated
​string · date-time
POST/knowledge-base-schemas
curl https://api.genuineai.app/api/v1/knowledge-base-schemas \ --request POST \ --header 'Content-Type: application/json' \ --header 'X-Tenant-Id: <string>' \ --header 'X-Api-Key: <api-key>' \ --data '{ "form_name": "form_name", "form_description": "form_description", "form_config": {}, "form_metadata": {} }'
Example Request Body
{ "form_name": "form_name", "form_description": "form_description", "form_config": {}, "form_metadata": {} }
json
Example Responses
{ "form_id": "00000000-0000-0000-0000-000000000000", "form_name": "form_name", "form_description": "form_description", "form_config": {}, "form_metadata": {}, "form_managed_by": "form_managed_by", "form_active": true, "form_created": "2024-08-25T15:00:00Z", "form_updated": "2024-08-25T15:00:00Z" }
json
application/json

Get a schema

GET
https://api.genuineai.app/api/v1
/knowledge-base-schemas/{id}

Returns the schema with its field definitions. A knowledge base names its schema in form_id.

Get a schema › path Parameters

id
​string · uuid · required

Get a schema › Headers

X-Tenant-Id
​string · uuid · required

The workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.

Get a schema › Responses

Success

The record shape of a form-backed knowledge base. Product-shipped schemas are the standard templates a new base starts from; a fork copies one into the workspace.
KnowledgeBaseSchema
form_id
​string · uuid
form_name
​string
form_description
​string
form_config
​object
form_metadata
​object
form_managed_by
​string
form_active
​boolean
form_created
​string · date-time
form_updated
​string · date-time
GET/knowledge-base-schemas/{id}
curl https://api.genuineai.app/api/v1/knowledge-base-schemas/:id \ --header 'X-Tenant-Id: <string>' \ --header 'X-Api-Key: <api-key>'
Example Responses
{ "form_id": "00000000-0000-0000-0000-000000000000", "form_name": "form_name", "form_description": "form_description", "form_config": {}, "form_metadata": {}, "form_managed_by": "form_managed_by", "form_active": true, "form_created": "2024-08-25T15:00:00Z", "form_updated": "2024-08-25T15:00:00Z" }
json
application/json

Delete a schema

DELETE
https://api.genuineai.app/api/v1
/knowledge-base-schemas/{id}

Deactivates the schema. Records already collected with it are unaffected. A schema an active knowledge base is built on cannot be removed: deactivate the base first.

Delete a schema › path Parameters

id
​string · uuid · required

Delete a schema › Headers

X-Tenant-Id
​string · uuid · required

The workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.

Delete a schema › Responses

Success. No content.

No data returned
DELETE/knowledge-base-schemas/{id}
curl https://api.genuineai.app/api/v1/knowledge-base-schemas/:id \ --request DELETE \ --header 'X-Tenant-Id: <string>' \ --header 'X-Api-Key: <api-key>'
Example Responses
No example specified for this content type

Update a schema

PATCH
https://api.genuineai.app/api/v1
/knowledge-base-schemas/{id}

Applies the form_-prefixed fields present in the body. Records already collected keep the shape they were collected with. A product-shipped template cannot be changed — fork it through the knowledge base that uses it.

Update a schema › path Parameters

id
​string · uuid · required

Update a schema › Headers

X-Tenant-Id
​string · uuid · required

The workspace this request acts in. Every row the API returns is isolated to it at the database layer by row-level security.

Update a schema › Request Body optional

form_name
​string
form_description
​string
form_active
​boolean
form_config
​object
form_metadata
​object

Update a schema › Responses

Success

The record shape of a form-backed knowledge base. Product-shipped schemas are the standard templates a new base starts from; a fork copies one into the workspace.
KnowledgeBaseSchema
form_id
​string · uuid
form_name
​string
form_description
​string
form_config
​object
form_metadata
​object
form_managed_by
​string
form_active
​boolean
form_created
​string · date-time
form_updated
​string · date-time
PATCH/knowledge-base-schemas/{id}
curl https://api.genuineai.app/api/v1/knowledge-base-schemas/:id \ --request PATCH \ --header 'Content-Type: application/json' \ --header 'X-Tenant-Id: <string>' \ --header 'X-Api-Key: <api-key>' \ --data '{ "form_name": "form_name", "form_description": "form_description", "form_active": true, "form_config": {}, "form_metadata": {} }'
Example Request Body
{ "form_name": "form_name", "form_description": "form_description", "form_active": true, "form_config": {}, "form_metadata": {} }
json
Example Responses
{ "form_id": "00000000-0000-0000-0000-000000000000", "form_name": "form_name", "form_description": "form_description", "form_config": {}, "form_metadata": {}, "form_managed_by": "form_managed_by", "form_active": true, "form_created": "2024-08-25T15:00:00Z", "form_updated": "2024-08-25T15:00:00Z" }
json
application/json

Knowledge base recordsObjects