EddytorDocs & API
Tables

Infer schema from a CSV file

Uploads a CSV file and returns the inferred Arrow schema, detected domain-eligible fields (columns with a small set of distinct values), and the row count. Use this before `CreateTable` to preview and adjust the schema. **Required scope:** `tables:modify`

POST
/v1/tables/infer

Authorization

BearerAuth
AuthorizationBearer <token>

Security scheme for OpenAPI endpoints. Validates both JWT tokens and API keys.

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/tables/infer" \  -F file="string"
{  "schema": {    "fields": [      {        "name": "id",        "data_type": "Int64",        "nullable": false,        "dict_id": 0,        "dict_is_ordered": false,        "metadata": {}      },      {        "name": "name",        "data_type": "Utf8",        "nullable": true,        "dict_id": 0,        "dict_is_ordered": false,        "metadata": {}      }    ],    "metadata": {}  },  "fieldsWithDomains": {    "property1": [      "string"    ],    "property2": [      "string"    ]  },  "length": 0,  "hasHeader": true,  "delimiter": "string"}
Empty
Empty
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}
{  "code": "string",  "message": "string",  "request_id": "string",  "details": [    {      "field": "string",      "message": "string"    }  ]}