Wexa.ai
  1. Tables
Wexa.ai
  • Wexa AI
  • Getting Started
  • Use Cases and Workflows
  • API Reference
  • Tutorials
  • Troubleshooting
  • API Endpoints
    • Actions
      • create action
      • get action
    • Agentflows
      • get agent flow
      • failover agentflows
      • Get agentflow by projectId and UserId
      • Verify_quota
      • get agentflow by id
      • create agentflow
      • Add skilled agent to agentflow
      • Update skilled agent
    • Analytics
      • Get analytics
    • Customer
      • get customer
      • Get credit history
    • Coworker schedules
      • get schedules
      • create coworker schedule
      • get schedule coworker by its id
      • update schedule by its id
      • delete schedule by its id
    • Connectors
      • get connectors by projectid
      • get connector by Id
      • Delete a connector
      • connector update status
      • get all available trigger actions
    • Credits
      • Validate user validity
      • validate workspace credits
    • Dashboard
      • get dashboard
      • refresh dashboard
      • delete component in dashboard
    • Executeflow
      • create executeflow
      • get executions
      • pause executeflow
      • resume execution
      • get execution by execution id
      • cancel executeflow
      • verify quota
      • get execution details for monitoring
      • execute agentflow
    • Files
      • get files by fileid
      • get connector by fileid
      • get files by connector_id
      • get total file size
      • upload files
    • Inbox
      • get inbox
    • Marketplace
      • get all connectors
      • get marketplace coworkers
      • get marketplace coworker by id
    • Marketplace coworkers
      • hire a coworker
      • check marketplace coworker update
    • Settings
      • get settings
    • Skills
      • get skills
      • get skills by category'
      • get skills by id
      • skills by name
      • create skill
    • Tags
      • tags
    • Tasks
      • get tasks
      • get task by id
      • resume task
      • Pause running task
      • Stop task
      • Get all tasks
      • get specific task graph
    • Tables
      • create table
        POST
      • create database
        POST
      • get tables
        GET
      • get records list
        GET
      • get table names
        GET
      • delete record
        DELETE
      • delete a coulmn
        DELETE
    • Project member
      • project_member
    • Project
      • Get all projects
      • Get project
      • Get Projects
      • create project
      • update project
      • Delete project
  1. Tables

create table

POST
api.wexa.ai/create/table
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'api.wexa.ai/create/table?projectID=67fdea40aac77be632954f13' \
--header 'x-api-key: {{x-api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "projectID": "67fdea40aac77be632954f13",
    "table_name": "Example table"
}'
Response Response Example
{
    "_id": "68071c551a9ea363140a26cd",
    "projectID": "67fdea40aac77be632954f13",
    "table_name": "Example table",
    "columns": [
        {
            "column_name": "_id",
            "column_type": "string",
            "column_id": "_id",
            "array_type": null,
            "default_value": "",
            "object_fields": null,
            "triggers": null,
            "enum_options": null
        },
        {
            "column_name": "Row ID",
            "column_type": "number",
            "column_id": "row_id",
            "array_type": null,
            "default_value": 1,
            "object_fields": null,
            "triggers": null,
            "enum_options": null
        },
        {
            "column_name": "User ID",
            "column_type": "string",
            "column_id": "coworker_user_id",
            "array_type": null,
            "default_value": "",
            "object_fields": null,
            "triggers": null,
            "enum_options": null
        }
    ],
    "connector_id": "68071c561a9ea363140a26ce",
    "triggers": null,
    "last_row_id": 0
}

Request

Query Params
projectID
string 
required
Example:
67fdea40aac77be632954f13
Header Params
x-api-key
string 
required
Example:
{{x-api-key}}
Body Params application/json
projectID
string 
required
table_name
string 
required
Examples

Responses

🟢200create table
application/json
Body
_id
string 
required
projectID
string 
required
table_name
string 
required
columns
array [object {8}] 
required
column_name
string 
required
column_type
string 
required
column_id
string 
required
array_type
null 
required
default_value
string  | integer 
required
object_fields
null 
required
triggers
null 
required
enum_options
null 
required
connector_id
string 
required
triggers
null 
required
last_row_id
integer 
required
Modified at 2025-04-23 12:50:52
Previous
get specific task graph
Next
create database
Built with