curl --request POST \
--url https://api.extruct.ai/v1/tables \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Supercharged Research",
"kind": "company",
"notify": true,
"column_configs": [
{
"kind": "agent",
"name": "Company Description",
"key": "description",
"value": {
"agent_type": "research_pro",
"prompt": "Research the company {company_name} ({company_website}) and provide a short description.",
"output_format": "text"
}
}
]
}'
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"tags": [
"<string>"
],
"kind": "generic",
"notify": false,
"settings": {
"exclude_from_search": false
},
"columns": [
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"config": {
"kind": "input",
"name": "<string>",
"key": "<string>"
}
}
],
"owner": {
"id": "<string>",
"email": "<string>"
},
"child_relationships": [
{
"table_id": "<string>",
"relationship_type": "company_people"
}
],
"parent_relationships": [
{
"table_id": "<string>",
"relationship_type": "company_people"
}
]
}
Discover how to create a table using the Extruct API.
curl --request POST \
--url https://api.extruct.ai/v1/tables \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Supercharged Research",
"kind": "company",
"notify": true,
"column_configs": [
{
"kind": "agent",
"name": "Company Description",
"key": "description",
"value": {
"agent_type": "research_pro",
"prompt": "Research the company {company_name} ({company_website}) and provide a short description.",
"output_format": "text"
}
}
]
}'
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"tags": [
"<string>"
],
"kind": "generic",
"notify": false,
"settings": {
"exclude_from_search": false
},
"columns": [
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"config": {
"kind": "input",
"name": "<string>",
"key": "<string>"
}
}
],
"owner": {
"id": "<string>",
"email": "<string>"
},
"child_relationships": [
{
"table_id": "<string>",
"relationship_type": "company_people"
}
],
"parent_relationships": [
{
"table_id": "<string>",
"relationship_type": "company_people"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Successful Response
The response is of type object
.