Skip to main content
POST
/
api
/
v1
/
data
/
tables
Create an empty table with a column schema
curl --request POST \
  --url https://{subdomain}.mihu.ai/api/v1/data/tables \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Product Catalog",
  "columns": [
    {
      "name": "sku",
      "data_type": "text"
    }
  ],
  "description": "Catalog of products the agent can answer questions about."
}
'
{
  "success": true,
  "message": "Table created successfully",
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "description": "<string>",
    "type": "custom_table",
    "columns": [
      {
        "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "data_type": "<string>"
      }
    ],
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.mindhunters.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Body

application/json
name
string
required

Table name shown to users and referenced by agents.

Example:

"Product Catalog"

columns
object[]
required

Column schema. Each column needs a name and a data_type.

Minimum array length: 1
description
string | null

Optional description of what this table stores and how the agent should use it.

Example:

"Catalog of products the agent can answer questions about."

Response

Table created successfully

success
boolean
Example:

true

message
string
Example:

"Table created successfully"

data
object