Create a table
curl --request POST \
--url https://api.platform.infino.ws/v1/create_table/{database} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"table_name": "<string>",
"indexes": {
"fts": [
"<string>"
],
"vector": [
{
"column": "<string>",
"dim": 1
}
]
},
"schema": [
{
"name": "<string>",
"type": "<string>",
"dim": 2048,
"item": "<string>",
"nullable": true
}
],
"schema_ipc": "<string>"
}
'import requests
url = "https://api.platform.infino.ws/v1/create_table/{database}"
payload = {
"table_name": "<string>",
"indexes": {
"fts": ["<string>"],
"vector": [
{
"column": "<string>",
"dim": 1
}
]
},
"schema": [
{
"name": "<string>",
"type": "<string>",
"dim": 2048,
"item": "<string>",
"nullable": True
}
],
"schema_ipc": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
table_name: '<string>',
indexes: {fts: ['<string>'], vector: [{column: '<string>', dim: 1}]},
schema: [
{
name: '<string>',
type: '<string>',
dim: 2048,
item: '<string>',
nullable: true
}
],
schema_ipc: '<string>'
})
};
fetch('https://api.platform.infino.ws/v1/create_table/{database}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.platform.infino.ws/v1/create_table/{database}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'table_name' => '<string>',
'indexes' => [
'fts' => [
'<string>'
],
'vector' => [
[
'column' => '<string>',
'dim' => 1
]
]
],
'schema' => [
[
'name' => '<string>',
'type' => '<string>',
'dim' => 2048,
'item' => '<string>',
'nullable' => true
]
],
'schema_ipc' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.platform.infino.ws/v1/create_table/{database}"
payload := strings.NewReader("{\n \"table_name\": \"<string>\",\n \"indexes\": {\n \"fts\": [\n \"<string>\"\n ],\n \"vector\": [\n {\n \"column\": \"<string>\",\n \"dim\": 1\n }\n ]\n },\n \"schema\": [\n {\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"dim\": 2048,\n \"item\": \"<string>\",\n \"nullable\": true\n }\n ],\n \"schema_ipc\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.platform.infino.ws/v1/create_table/{database}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"table_name\": \"<string>\",\n \"indexes\": {\n \"fts\": [\n \"<string>\"\n ],\n \"vector\": [\n {\n \"column\": \"<string>\",\n \"dim\": 1\n }\n ]\n },\n \"schema\": [\n {\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"dim\": 2048,\n \"item\": \"<string>\",\n \"nullable\": true\n }\n ],\n \"schema_ipc\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platform.infino.ws/v1/create_table/{database}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"table_name\": \"<string>\",\n \"indexes\": {\n \"fts\": [\n \"<string>\"\n ],\n \"vector\": [\n {\n \"column\": \"<string>\",\n \"dim\": 1\n }\n ]\n },\n \"schema\": [\n {\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"dim\": 2048,\n \"item\": \"<string>\",\n \"nullable\": true\n }\n ],\n \"schema_ipc\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyTables
Create a table
Create a table with an Arrow schema and optional full-text and vector indexes.
POST
/
v1
/
create_table
/
{database}
Create a table
curl --request POST \
--url https://api.platform.infino.ws/v1/create_table/{database} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"table_name": "<string>",
"indexes": {
"fts": [
"<string>"
],
"vector": [
{
"column": "<string>",
"dim": 1
}
]
},
"schema": [
{
"name": "<string>",
"type": "<string>",
"dim": 2048,
"item": "<string>",
"nullable": true
}
],
"schema_ipc": "<string>"
}
'import requests
url = "https://api.platform.infino.ws/v1/create_table/{database}"
payload = {
"table_name": "<string>",
"indexes": {
"fts": ["<string>"],
"vector": [
{
"column": "<string>",
"dim": 1
}
]
},
"schema": [
{
"name": "<string>",
"type": "<string>",
"dim": 2048,
"item": "<string>",
"nullable": True
}
],
"schema_ipc": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
table_name: '<string>',
indexes: {fts: ['<string>'], vector: [{column: '<string>', dim: 1}]},
schema: [
{
name: '<string>',
type: '<string>',
dim: 2048,
item: '<string>',
nullable: true
}
],
schema_ipc: '<string>'
})
};
fetch('https://api.platform.infino.ws/v1/create_table/{database}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.platform.infino.ws/v1/create_table/{database}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'table_name' => '<string>',
'indexes' => [
'fts' => [
'<string>'
],
'vector' => [
[
'column' => '<string>',
'dim' => 1
]
]
],
'schema' => [
[
'name' => '<string>',
'type' => '<string>',
'dim' => 2048,
'item' => '<string>',
'nullable' => true
]
],
'schema_ipc' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.platform.infino.ws/v1/create_table/{database}"
payload := strings.NewReader("{\n \"table_name\": \"<string>\",\n \"indexes\": {\n \"fts\": [\n \"<string>\"\n ],\n \"vector\": [\n {\n \"column\": \"<string>\",\n \"dim\": 1\n }\n ]\n },\n \"schema\": [\n {\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"dim\": 2048,\n \"item\": \"<string>\",\n \"nullable\": true\n }\n ],\n \"schema_ipc\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.platform.infino.ws/v1/create_table/{database}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"table_name\": \"<string>\",\n \"indexes\": {\n \"fts\": [\n \"<string>\"\n ],\n \"vector\": [\n {\n \"column\": \"<string>\",\n \"dim\": 1\n }\n ]\n },\n \"schema\": [\n {\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"dim\": 2048,\n \"item\": \"<string>\",\n \"nullable\": true\n }\n ],\n \"schema_ipc\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.platform.infino.ws/v1/create_table/{database}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"table_name\": \"<string>\",\n \"indexes\": {\n \"fts\": [\n \"<string>\"\n ],\n \"vector\": [\n {\n \"column\": \"<string>\",\n \"dim\": 1\n }\n ]\n },\n \"schema\": [\n {\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"dim\": 2048,\n \"item\": \"<string>\",\n \"nullable\": true\n }\n ],\n \"schema_ipc\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Target database.
Body
application/json
POST /v1/create_table/{database}.
Index declarations for create_table.
Show child attributes
Show child attributes
JSON column descriptors. Exactly one of schema or schema_ipc is
required. Cannot express nested types; use schema_ipc for those.
Show child attributes
Show child attributes
The table's Arrow schema as a base64-encoded Arrow IPC stream carrying
only the schema message. Exactly one of schema or schema_ipc is
required. Carries any Arrow type the engine accepts, nested included.
Response
Table created.
Last modified on August 19, 2026
Was this page helpful?
⌘I
