POST
/
v1
/
tables
/
{table_id}
/
columns
curl --request POST \
  --url https://api.extruct.ai/v1/tables/{table_id}/columns \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "column_configs": [
    {
      "kind": "agent",
      "name": "Company Description",
      "key": "description",
      "value": {
        "agent_type": "research_pro",
        "prompt": "Research the company {input} and provide a short description.",
        "output_format": "text"
      }
    },
    {
      "kind": "agent",
      "name": "Company Linkedin URL",
      "key": "linkedin_url",
      "value": {
        "agent_type": "research_pro",
        "prompt": "Find linkedin profile URL of the company {input}",
        "output_format": "url"
      }
    },
    {
      "kind": "agent",
      "name": "Company Linkedin Data",
      "key": "linkedin_data",
      "value": {
        "agent_type": "linkedin",
        "prompt": "{linkedin_url}",
        "output_format": "text"
      }
    },
    {
      "kind": "agent",
      "name": "Linkedin Activity Summary",
      "key": "linkedin_activity",
      "value": {
        "agent_type": "llm",
        "prompt": "Based on the company Linkedin profile data, summarize the recent activity as a bulleted list with names, dates and links. Data: {linkedin_data}",
        "output_format": "text"
      }
    }
  ],
  "insert_after": true
}'
[
  {
    "id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "config": {
      "kind": "input",
      "name": "<string>",
      "key": "<string>"
    }
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

table_id
string
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object[].