Create Extraction
curl --request POST \
--url https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "config test",
"extractionMode": "ADVANCED",
"elementType": "COLUMN",
"elementId": "40743480-286a-4531-b3f3-7d0b68018c9d",
"storeExtractedData": true,
"scheduleType": "MANUAL",
"schedule": {
"cronExpression": ""
},
"outputConfiguration": {
"createNewWorkbook": true,
"title": "sample transcripts output"
},
"inputTableId": "7963e2b4-dddc-4dd4-8c44-8c70c47da692",
"primaryKeyColumnId": [
"ee42ef18-0d8a-461e-bae1-4370a8c13fec"
],
"columnConfiguration": [
{
"name": "title",
"description": "Transcript title",
"uiMetadata": {
"title": "Title"
},
"uiDataType": "SINGLE_LINE_TEXT"
},
{
"name": "segments",
"description": "Transcript segments",
"uiMetadata": {
"title": "Segments"
},
"uiDataType": "JSON"
}
],
"advancedSchema": {
"properties": {
"title": {
"type": "string"
},
"segments": {
"type": "array"
}
}
}
}
'import requests
url = "https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction"
payload = {
"title": "config test",
"extractionMode": "ADVANCED",
"elementType": "COLUMN",
"elementId": "40743480-286a-4531-b3f3-7d0b68018c9d",
"storeExtractedData": True,
"scheduleType": "MANUAL",
"schedule": { "cronExpression": "" },
"outputConfiguration": {
"createNewWorkbook": True,
"title": "sample transcripts output"
},
"inputTableId": "7963e2b4-dddc-4dd4-8c44-8c70c47da692",
"primaryKeyColumnId": ["ee42ef18-0d8a-461e-bae1-4370a8c13fec"],
"columnConfiguration": [
{
"name": "title",
"description": "Transcript title",
"uiMetadata": { "title": "Title" },
"uiDataType": "SINGLE_LINE_TEXT"
},
{
"name": "segments",
"description": "Transcript segments",
"uiMetadata": { "title": "Segments" },
"uiDataType": "JSON"
}
],
"advancedSchema": { "properties": {
"title": { "type": "string" },
"segments": { "type": "array" }
} }
}
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({
title: 'config test',
extractionMode: 'ADVANCED',
elementType: 'COLUMN',
elementId: '40743480-286a-4531-b3f3-7d0b68018c9d',
storeExtractedData: true,
scheduleType: 'MANUAL',
schedule: {cronExpression: ''},
outputConfiguration: {createNewWorkbook: true, title: 'sample transcripts output'},
inputTableId: '7963e2b4-dddc-4dd4-8c44-8c70c47da692',
primaryKeyColumnId: ['ee42ef18-0d8a-461e-bae1-4370a8c13fec'],
columnConfiguration: [
{
name: 'title',
description: 'Transcript title',
uiMetadata: {title: 'Title'},
uiDataType: 'SINGLE_LINE_TEXT'
},
{
name: 'segments',
description: 'Transcript segments',
uiMetadata: {title: 'Segments'},
uiDataType: 'JSON'
}
],
advancedSchema: {properties: {title: {type: 'string'}, segments: {type: 'array'}}}
})
};
fetch('https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction', 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://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction",
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([
'title' => 'config test',
'extractionMode' => 'ADVANCED',
'elementType' => 'COLUMN',
'elementId' => '40743480-286a-4531-b3f3-7d0b68018c9d',
'storeExtractedData' => true,
'scheduleType' => 'MANUAL',
'schedule' => [
'cronExpression' => ''
],
'outputConfiguration' => [
'createNewWorkbook' => true,
'title' => 'sample transcripts output'
],
'inputTableId' => '7963e2b4-dddc-4dd4-8c44-8c70c47da692',
'primaryKeyColumnId' => [
'ee42ef18-0d8a-461e-bae1-4370a8c13fec'
],
'columnConfiguration' => [
[
'name' => 'title',
'description' => 'Transcript title',
'uiMetadata' => [
'title' => 'Title'
],
'uiDataType' => 'SINGLE_LINE_TEXT'
],
[
'name' => 'segments',
'description' => 'Transcript segments',
'uiMetadata' => [
'title' => 'Segments'
],
'uiDataType' => 'JSON'
]
],
'advancedSchema' => [
'properties' => [
'title' => [
'type' => 'string'
],
'segments' => [
'type' => 'array'
]
]
]
]),
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://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction"
payload := strings.NewReader("{\n \"title\": \"config test\",\n \"extractionMode\": \"ADVANCED\",\n \"elementType\": \"COLUMN\",\n \"elementId\": \"40743480-286a-4531-b3f3-7d0b68018c9d\",\n \"storeExtractedData\": true,\n \"scheduleType\": \"MANUAL\",\n \"schedule\": {\n \"cronExpression\": \"\"\n },\n \"outputConfiguration\": {\n \"createNewWorkbook\": true,\n \"title\": \"sample transcripts output\"\n },\n \"inputTableId\": \"7963e2b4-dddc-4dd4-8c44-8c70c47da692\",\n \"primaryKeyColumnId\": [\n \"ee42ef18-0d8a-461e-bae1-4370a8c13fec\"\n ],\n \"columnConfiguration\": [\n {\n \"name\": \"title\",\n \"description\": \"Transcript title\",\n \"uiMetadata\": {\n \"title\": \"Title\"\n },\n \"uiDataType\": \"SINGLE_LINE_TEXT\"\n },\n {\n \"name\": \"segments\",\n \"description\": \"Transcript segments\",\n \"uiMetadata\": {\n \"title\": \"Segments\"\n },\n \"uiDataType\": \"JSON\"\n }\n ],\n \"advancedSchema\": {\n \"properties\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"segments\": {\n \"type\": \"array\"\n }\n }\n }\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://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"config test\",\n \"extractionMode\": \"ADVANCED\",\n \"elementType\": \"COLUMN\",\n \"elementId\": \"40743480-286a-4531-b3f3-7d0b68018c9d\",\n \"storeExtractedData\": true,\n \"scheduleType\": \"MANUAL\",\n \"schedule\": {\n \"cronExpression\": \"\"\n },\n \"outputConfiguration\": {\n \"createNewWorkbook\": true,\n \"title\": \"sample transcripts output\"\n },\n \"inputTableId\": \"7963e2b4-dddc-4dd4-8c44-8c70c47da692\",\n \"primaryKeyColumnId\": [\n \"ee42ef18-0d8a-461e-bae1-4370a8c13fec\"\n ],\n \"columnConfiguration\": [\n {\n \"name\": \"title\",\n \"description\": \"Transcript title\",\n \"uiMetadata\": {\n \"title\": \"Title\"\n },\n \"uiDataType\": \"SINGLE_LINE_TEXT\"\n },\n {\n \"name\": \"segments\",\n \"description\": \"Transcript segments\",\n \"uiMetadata\": {\n \"title\": \"Segments\"\n },\n \"uiDataType\": \"JSON\"\n }\n ],\n \"advancedSchema\": {\n \"properties\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"segments\": {\n \"type\": \"array\"\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction")
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 \"title\": \"config test\",\n \"extractionMode\": \"ADVANCED\",\n \"elementType\": \"COLUMN\",\n \"elementId\": \"40743480-286a-4531-b3f3-7d0b68018c9d\",\n \"storeExtractedData\": true,\n \"scheduleType\": \"MANUAL\",\n \"schedule\": {\n \"cronExpression\": \"\"\n },\n \"outputConfiguration\": {\n \"createNewWorkbook\": true,\n \"title\": \"sample transcripts output\"\n },\n \"inputTableId\": \"7963e2b4-dddc-4dd4-8c44-8c70c47da692\",\n \"primaryKeyColumnId\": [\n \"ee42ef18-0d8a-461e-bae1-4370a8c13fec\"\n ],\n \"columnConfiguration\": [\n {\n \"name\": \"title\",\n \"description\": \"Transcript title\",\n \"uiMetadata\": {\n \"title\": \"Title\"\n },\n \"uiDataType\": \"SINGLE_LINE_TEXT\"\n },\n {\n \"name\": \"segments\",\n \"description\": \"Transcript segments\",\n \"uiMetadata\": {\n \"title\": \"Segments\"\n },\n \"uiDataType\": \"JSON\"\n }\n ],\n \"advancedSchema\": {\n \"properties\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"segments\": {\n \"type\": \"array\"\n }\n }\n }\n}"
response = http.request(request)
puts response.read_bodyAI Extraction
Create Extraction
Creates an extraction configuration inside a workspace.
Supports both STANDARD and ADVANCED extraction modes.
POST
/
noCo
/
api
/
v2
/
workspaces
/
{workspaceId}
/
extraction
Create Extraction
curl --request POST \
--url https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "config test",
"extractionMode": "ADVANCED",
"elementType": "COLUMN",
"elementId": "40743480-286a-4531-b3f3-7d0b68018c9d",
"storeExtractedData": true,
"scheduleType": "MANUAL",
"schedule": {
"cronExpression": ""
},
"outputConfiguration": {
"createNewWorkbook": true,
"title": "sample transcripts output"
},
"inputTableId": "7963e2b4-dddc-4dd4-8c44-8c70c47da692",
"primaryKeyColumnId": [
"ee42ef18-0d8a-461e-bae1-4370a8c13fec"
],
"columnConfiguration": [
{
"name": "title",
"description": "Transcript title",
"uiMetadata": {
"title": "Title"
},
"uiDataType": "SINGLE_LINE_TEXT"
},
{
"name": "segments",
"description": "Transcript segments",
"uiMetadata": {
"title": "Segments"
},
"uiDataType": "JSON"
}
],
"advancedSchema": {
"properties": {
"title": {
"type": "string"
},
"segments": {
"type": "array"
}
}
}
}
'import requests
url = "https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction"
payload = {
"title": "config test",
"extractionMode": "ADVANCED",
"elementType": "COLUMN",
"elementId": "40743480-286a-4531-b3f3-7d0b68018c9d",
"storeExtractedData": True,
"scheduleType": "MANUAL",
"schedule": { "cronExpression": "" },
"outputConfiguration": {
"createNewWorkbook": True,
"title": "sample transcripts output"
},
"inputTableId": "7963e2b4-dddc-4dd4-8c44-8c70c47da692",
"primaryKeyColumnId": ["ee42ef18-0d8a-461e-bae1-4370a8c13fec"],
"columnConfiguration": [
{
"name": "title",
"description": "Transcript title",
"uiMetadata": { "title": "Title" },
"uiDataType": "SINGLE_LINE_TEXT"
},
{
"name": "segments",
"description": "Transcript segments",
"uiMetadata": { "title": "Segments" },
"uiDataType": "JSON"
}
],
"advancedSchema": { "properties": {
"title": { "type": "string" },
"segments": { "type": "array" }
} }
}
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({
title: 'config test',
extractionMode: 'ADVANCED',
elementType: 'COLUMN',
elementId: '40743480-286a-4531-b3f3-7d0b68018c9d',
storeExtractedData: true,
scheduleType: 'MANUAL',
schedule: {cronExpression: ''},
outputConfiguration: {createNewWorkbook: true, title: 'sample transcripts output'},
inputTableId: '7963e2b4-dddc-4dd4-8c44-8c70c47da692',
primaryKeyColumnId: ['ee42ef18-0d8a-461e-bae1-4370a8c13fec'],
columnConfiguration: [
{
name: 'title',
description: 'Transcript title',
uiMetadata: {title: 'Title'},
uiDataType: 'SINGLE_LINE_TEXT'
},
{
name: 'segments',
description: 'Transcript segments',
uiMetadata: {title: 'Segments'},
uiDataType: 'JSON'
}
],
advancedSchema: {properties: {title: {type: 'string'}, segments: {type: 'array'}}}
})
};
fetch('https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction', 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://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction",
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([
'title' => 'config test',
'extractionMode' => 'ADVANCED',
'elementType' => 'COLUMN',
'elementId' => '40743480-286a-4531-b3f3-7d0b68018c9d',
'storeExtractedData' => true,
'scheduleType' => 'MANUAL',
'schedule' => [
'cronExpression' => ''
],
'outputConfiguration' => [
'createNewWorkbook' => true,
'title' => 'sample transcripts output'
],
'inputTableId' => '7963e2b4-dddc-4dd4-8c44-8c70c47da692',
'primaryKeyColumnId' => [
'ee42ef18-0d8a-461e-bae1-4370a8c13fec'
],
'columnConfiguration' => [
[
'name' => 'title',
'description' => 'Transcript title',
'uiMetadata' => [
'title' => 'Title'
],
'uiDataType' => 'SINGLE_LINE_TEXT'
],
[
'name' => 'segments',
'description' => 'Transcript segments',
'uiMetadata' => [
'title' => 'Segments'
],
'uiDataType' => 'JSON'
]
],
'advancedSchema' => [
'properties' => [
'title' => [
'type' => 'string'
],
'segments' => [
'type' => 'array'
]
]
]
]),
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://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction"
payload := strings.NewReader("{\n \"title\": \"config test\",\n \"extractionMode\": \"ADVANCED\",\n \"elementType\": \"COLUMN\",\n \"elementId\": \"40743480-286a-4531-b3f3-7d0b68018c9d\",\n \"storeExtractedData\": true,\n \"scheduleType\": \"MANUAL\",\n \"schedule\": {\n \"cronExpression\": \"\"\n },\n \"outputConfiguration\": {\n \"createNewWorkbook\": true,\n \"title\": \"sample transcripts output\"\n },\n \"inputTableId\": \"7963e2b4-dddc-4dd4-8c44-8c70c47da692\",\n \"primaryKeyColumnId\": [\n \"ee42ef18-0d8a-461e-bae1-4370a8c13fec\"\n ],\n \"columnConfiguration\": [\n {\n \"name\": \"title\",\n \"description\": \"Transcript title\",\n \"uiMetadata\": {\n \"title\": \"Title\"\n },\n \"uiDataType\": \"SINGLE_LINE_TEXT\"\n },\n {\n \"name\": \"segments\",\n \"description\": \"Transcript segments\",\n \"uiMetadata\": {\n \"title\": \"Segments\"\n },\n \"uiDataType\": \"JSON\"\n }\n ],\n \"advancedSchema\": {\n \"properties\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"segments\": {\n \"type\": \"array\"\n }\n }\n }\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://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"config test\",\n \"extractionMode\": \"ADVANCED\",\n \"elementType\": \"COLUMN\",\n \"elementId\": \"40743480-286a-4531-b3f3-7d0b68018c9d\",\n \"storeExtractedData\": true,\n \"scheduleType\": \"MANUAL\",\n \"schedule\": {\n \"cronExpression\": \"\"\n },\n \"outputConfiguration\": {\n \"createNewWorkbook\": true,\n \"title\": \"sample transcripts output\"\n },\n \"inputTableId\": \"7963e2b4-dddc-4dd4-8c44-8c70c47da692\",\n \"primaryKeyColumnId\": [\n \"ee42ef18-0d8a-461e-bae1-4370a8c13fec\"\n ],\n \"columnConfiguration\": [\n {\n \"name\": \"title\",\n \"description\": \"Transcript title\",\n \"uiMetadata\": {\n \"title\": \"Title\"\n },\n \"uiDataType\": \"SINGLE_LINE_TEXT\"\n },\n {\n \"name\": \"segments\",\n \"description\": \"Transcript segments\",\n \"uiMetadata\": {\n \"title\": \"Segments\"\n },\n \"uiDataType\": \"JSON\"\n }\n ],\n \"advancedSchema\": {\n \"properties\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"segments\": {\n \"type\": \"array\"\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/extraction")
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 \"title\": \"config test\",\n \"extractionMode\": \"ADVANCED\",\n \"elementType\": \"COLUMN\",\n \"elementId\": \"40743480-286a-4531-b3f3-7d0b68018c9d\",\n \"storeExtractedData\": true,\n \"scheduleType\": \"MANUAL\",\n \"schedule\": {\n \"cronExpression\": \"\"\n },\n \"outputConfiguration\": {\n \"createNewWorkbook\": true,\n \"title\": \"sample transcripts output\"\n },\n \"inputTableId\": \"7963e2b4-dddc-4dd4-8c44-8c70c47da692\",\n \"primaryKeyColumnId\": [\n \"ee42ef18-0d8a-461e-bae1-4370a8c13fec\"\n ],\n \"columnConfiguration\": [\n {\n \"name\": \"title\",\n \"description\": \"Transcript title\",\n \"uiMetadata\": {\n \"title\": \"Title\"\n },\n \"uiDataType\": \"SINGLE_LINE_TEXT\"\n },\n {\n \"name\": \"segments\",\n \"description\": \"Transcript segments\",\n \"uiMetadata\": {\n \"title\": \"Segments\"\n },\n \"uiDataType\": \"JSON\"\n }\n ],\n \"advancedSchema\": {\n \"properties\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"segments\": {\n \"type\": \"array\"\n }\n }\n }\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Body
application/json
Response
200
Extraction created successfully