preview Csv Import
curl --request POST \
--url https://quantura.studio/api/v1/csv-imports/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"csv_text": "<string>",
"content_base64": "<string>",
"request_id": "<string>",
"filename": "<string>",
"name": "<string>",
"ticker": "<string>",
"date_column": "<string>",
"value_column": "<string>",
"metrics": {
"average_wql": 1,
"mape": 1,
"wape": 1,
"rmse": 1,
"mase": 1,
"mae": 1,
"smape": 1
},
"metrics_basis": "<string>",
"visibility": "workspace",
"workspace_id": "<string>",
"publish_confirmed": true
}
'import requests
url = "https://quantura.studio/api/v1/csv-imports/preview"
payload = {
"csv_text": "<string>",
"content_base64": "<string>",
"request_id": "<string>",
"filename": "<string>",
"name": "<string>",
"ticker": "<string>",
"date_column": "<string>",
"value_column": "<string>",
"metrics": {
"average_wql": 1,
"mape": 1,
"wape": 1,
"rmse": 1,
"mase": 1,
"mae": 1,
"smape": 1
},
"metrics_basis": "<string>",
"visibility": "workspace",
"workspace_id": "<string>",
"publish_confirmed": True
}
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({
csv_text: '<string>',
content_base64: '<string>',
request_id: '<string>',
filename: '<string>',
name: '<string>',
ticker: '<string>',
date_column: '<string>',
value_column: '<string>',
metrics: {average_wql: 1, mape: 1, wape: 1, rmse: 1, mase: 1, mae: 1, smape: 1},
metrics_basis: '<string>',
visibility: 'workspace',
workspace_id: '<string>',
publish_confirmed: true
})
};
fetch('https://quantura.studio/api/v1/csv-imports/preview', 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://quantura.studio/api/v1/csv-imports/preview",
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([
'csv_text' => '<string>',
'content_base64' => '<string>',
'request_id' => '<string>',
'filename' => '<string>',
'name' => '<string>',
'ticker' => '<string>',
'date_column' => '<string>',
'value_column' => '<string>',
'metrics' => [
'average_wql' => 1,
'mape' => 1,
'wape' => 1,
'rmse' => 1,
'mase' => 1,
'mae' => 1,
'smape' => 1
],
'metrics_basis' => '<string>',
'visibility' => 'workspace',
'workspace_id' => '<string>',
'publish_confirmed' => true
]),
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://quantura.studio/api/v1/csv-imports/preview"
payload := strings.NewReader("{\n \"csv_text\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"request_id\": \"<string>\",\n \"filename\": \"<string>\",\n \"name\": \"<string>\",\n \"ticker\": \"<string>\",\n \"date_column\": \"<string>\",\n \"value_column\": \"<string>\",\n \"metrics\": {\n \"average_wql\": 1,\n \"mape\": 1,\n \"wape\": 1,\n \"rmse\": 1,\n \"mase\": 1,\n \"mae\": 1,\n \"smape\": 1\n },\n \"metrics_basis\": \"<string>\",\n \"visibility\": \"workspace\",\n \"workspace_id\": \"<string>\",\n \"publish_confirmed\": true\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://quantura.studio/api/v1/csv-imports/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"csv_text\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"request_id\": \"<string>\",\n \"filename\": \"<string>\",\n \"name\": \"<string>\",\n \"ticker\": \"<string>\",\n \"date_column\": \"<string>\",\n \"value_column\": \"<string>\",\n \"metrics\": {\n \"average_wql\": 1,\n \"mape\": 1,\n \"wape\": 1,\n \"rmse\": 1,\n \"mase\": 1,\n \"mae\": 1,\n \"smape\": 1\n },\n \"metrics_basis\": \"<string>\",\n \"visibility\": \"workspace\",\n \"workspace_id\": \"<string>\",\n \"publish_confirmed\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quantura.studio/api/v1/csv-imports/preview")
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 \"csv_text\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"request_id\": \"<string>\",\n \"filename\": \"<string>\",\n \"name\": \"<string>\",\n \"ticker\": \"<string>\",\n \"date_column\": \"<string>\",\n \"value_column\": \"<string>\",\n \"metrics\": {\n \"average_wql\": 1,\n \"mape\": 1,\n \"wape\": 1,\n \"rmse\": 1,\n \"mase\": 1,\n \"mae\": 1,\n \"smape\": 1\n },\n \"metrics_basis\": \"<string>\",\n \"visibility\": \"workspace\",\n \"workspace_id\": \"<string>\",\n \"publish_confirmed\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"success": true
},
"meta": {
"api_version": "v1"
}
}{}{}{}{}{}{}{}{}CSV library
preview Csv Import
POST
/
v1
/
csv-imports
/
preview
preview Csv Import
curl --request POST \
--url https://quantura.studio/api/v1/csv-imports/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"csv_text": "<string>",
"content_base64": "<string>",
"request_id": "<string>",
"filename": "<string>",
"name": "<string>",
"ticker": "<string>",
"date_column": "<string>",
"value_column": "<string>",
"metrics": {
"average_wql": 1,
"mape": 1,
"wape": 1,
"rmse": 1,
"mase": 1,
"mae": 1,
"smape": 1
},
"metrics_basis": "<string>",
"visibility": "workspace",
"workspace_id": "<string>",
"publish_confirmed": true
}
'import requests
url = "https://quantura.studio/api/v1/csv-imports/preview"
payload = {
"csv_text": "<string>",
"content_base64": "<string>",
"request_id": "<string>",
"filename": "<string>",
"name": "<string>",
"ticker": "<string>",
"date_column": "<string>",
"value_column": "<string>",
"metrics": {
"average_wql": 1,
"mape": 1,
"wape": 1,
"rmse": 1,
"mase": 1,
"mae": 1,
"smape": 1
},
"metrics_basis": "<string>",
"visibility": "workspace",
"workspace_id": "<string>",
"publish_confirmed": True
}
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({
csv_text: '<string>',
content_base64: '<string>',
request_id: '<string>',
filename: '<string>',
name: '<string>',
ticker: '<string>',
date_column: '<string>',
value_column: '<string>',
metrics: {average_wql: 1, mape: 1, wape: 1, rmse: 1, mase: 1, mae: 1, smape: 1},
metrics_basis: '<string>',
visibility: 'workspace',
workspace_id: '<string>',
publish_confirmed: true
})
};
fetch('https://quantura.studio/api/v1/csv-imports/preview', 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://quantura.studio/api/v1/csv-imports/preview",
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([
'csv_text' => '<string>',
'content_base64' => '<string>',
'request_id' => '<string>',
'filename' => '<string>',
'name' => '<string>',
'ticker' => '<string>',
'date_column' => '<string>',
'value_column' => '<string>',
'metrics' => [
'average_wql' => 1,
'mape' => 1,
'wape' => 1,
'rmse' => 1,
'mase' => 1,
'mae' => 1,
'smape' => 1
],
'metrics_basis' => '<string>',
'visibility' => 'workspace',
'workspace_id' => '<string>',
'publish_confirmed' => true
]),
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://quantura.studio/api/v1/csv-imports/preview"
payload := strings.NewReader("{\n \"csv_text\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"request_id\": \"<string>\",\n \"filename\": \"<string>\",\n \"name\": \"<string>\",\n \"ticker\": \"<string>\",\n \"date_column\": \"<string>\",\n \"value_column\": \"<string>\",\n \"metrics\": {\n \"average_wql\": 1,\n \"mape\": 1,\n \"wape\": 1,\n \"rmse\": 1,\n \"mase\": 1,\n \"mae\": 1,\n \"smape\": 1\n },\n \"metrics_basis\": \"<string>\",\n \"visibility\": \"workspace\",\n \"workspace_id\": \"<string>\",\n \"publish_confirmed\": true\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://quantura.studio/api/v1/csv-imports/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"csv_text\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"request_id\": \"<string>\",\n \"filename\": \"<string>\",\n \"name\": \"<string>\",\n \"ticker\": \"<string>\",\n \"date_column\": \"<string>\",\n \"value_column\": \"<string>\",\n \"metrics\": {\n \"average_wql\": 1,\n \"mape\": 1,\n \"wape\": 1,\n \"rmse\": 1,\n \"mase\": 1,\n \"mae\": 1,\n \"smape\": 1\n },\n \"metrics_basis\": \"<string>\",\n \"visibility\": \"workspace\",\n \"workspace_id\": \"<string>\",\n \"publish_confirmed\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quantura.studio/api/v1/csv-imports/preview")
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 \"csv_text\": \"<string>\",\n \"content_base64\": \"<string>\",\n \"request_id\": \"<string>\",\n \"filename\": \"<string>\",\n \"name\": \"<string>\",\n \"ticker\": \"<string>\",\n \"date_column\": \"<string>\",\n \"value_column\": \"<string>\",\n \"metrics\": {\n \"average_wql\": 1,\n \"mape\": 1,\n \"wape\": 1,\n \"rmse\": 1,\n \"mase\": 1,\n \"mae\": 1,\n \"smape\": 1\n },\n \"metrics_basis\": \"<string>\",\n \"visibility\": \"workspace\",\n \"workspace_id\": \"<string>\",\n \"publish_confirmed\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"success": true
},
"meta": {
"api_version": "v1"
}
}{}{}{}{}{}{}{}{}Authorizations
bearerAuthclerkOAuth
Scopes
Body
application/json
- Option 1
- Option 2
Provide exactly one of csv_text or content_base64. Source CSV is stored without value/column rewrites. Typed imports are limited to one series, ISO timestamps and3,000,000 decoded UTF-8 bytes. Predictions and observed history cannot be interchanged.
Must be true for public publishing. Only the verified primary email tamzid257@gmail.com may publish; org admin/paid status alone never grants this.
Response
Up to100 original preview rows plus schema and source SHA256
The response is of type object.