Read an attached file column's value distribution and raw values
curl --request GET \
--url https://api.getoneprofile.ai/chat-attachments/{attachment_id}/columns/{source_index}/values/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/chat-attachments/{attachment_id}/columns/{source_index}/values/"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/chat-attachments/{attachment_id}/columns/{source_index}/values/', 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://api.getoneprofile.ai/chat-attachments/{attachment_id}/columns/{source_index}/values/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getoneprofile.ai/chat-attachments/{attachment_id}/columns/{source_index}/values/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.getoneprofile.ai/chat-attachments/{attachment_id}/columns/{source_index}/values/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/chat-attachments/{attachment_id}/columns/{source_index}/values/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"distribution": {
"distinct_count": 123,
"empty_count": 123,
"other_count": 123,
"total_count": 123,
"values": [
{
"count": 123,
"percentage": 123,
"value": "<string>"
}
]
},
"name": "<string>",
"offset": 123,
"raw_values": [
"<string>"
],
"source_index": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}assistant
Read an attached file column's value distribution and raw values
Inspect one column of your attached CSV or XLSX file. Counts cover every nonblank data row in its selected sheet, with the top 20 values, percentages of all rows, empty and distinct counts, and other_count. Raw values are paged in file order without coercion. source_index is zero-based.
GET
/
chat-attachments
/
{attachment_id}
/
columns
/
{source_index}
/
values
/
Read an attached file column's value distribution and raw values
curl --request GET \
--url https://api.getoneprofile.ai/chat-attachments/{attachment_id}/columns/{source_index}/values/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/chat-attachments/{attachment_id}/columns/{source_index}/values/"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/chat-attachments/{attachment_id}/columns/{source_index}/values/', 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://api.getoneprofile.ai/chat-attachments/{attachment_id}/columns/{source_index}/values/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getoneprofile.ai/chat-attachments/{attachment_id}/columns/{source_index}/values/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.getoneprofile.ai/chat-attachments/{attachment_id}/columns/{source_index}/values/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/chat-attachments/{attachment_id}/columns/{source_index}/values/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"distribution": {
"distinct_count": 123,
"empty_count": 123,
"other_count": 123,
"total_count": 123,
"values": [
{
"count": 123,
"percentage": 123,
"value": "<string>"
}
]
},
"name": "<string>",
"offset": 123,
"raw_values": [
"<string>"
],
"source_index": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
APIKeyHeaderHTTPBearer
Query Parameters
Required range:
x >= 0Required range:
1 <= x <= 200Was this page helpful?