curl --request POST \
--url https://eomer-api.onrender.com/agent/extract \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'file=<string>' \
--form prompt=import requests
url = "https://eomer-api.onrender.com/agent/extract"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"prompt\"\r\n\r\n\r\n-----011000010111000001101001--"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "multipart/form-data"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '<string>');
form.append('prompt', '');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://eomer-api.onrender.com/agent/extract', 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://eomer-api.onrender.com/agent/extract",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"prompt\"\r\n\r\n\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$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://eomer-api.onrender.com/agent/extract"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"prompt\"\r\n\r\n\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://eomer-api.onrender.com/agent/extract")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"prompt\"\r\n\r\n\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://eomer-api.onrender.com/agent/extract")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"prompt\"\r\n\r\n\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"intent": {
"business_objective": "<string>",
"forecast_target": "<string>",
"time_column": "<string>",
"horizon": 2,
"forecast_frequency": "<string>",
"horizon_quantity": 123,
"horizon_unit": "<string>",
"entity_columns": [
"<string>"
],
"grouping_dimensions": [
"<string>"
],
"filters": [
{
"column": "<string>",
"op": "<string>",
"value": "<string>"
}
],
"covariates": [
"<string>"
],
"known_future_features": [
"<string>"
],
"historical_features": [
"<string>"
],
"confidence_intervals": [
123
],
"seasonality": [
123
],
"user_constraints": [
"<string>"
],
"review_status": "draft",
"missing_required_fields": [
"<string>"
],
"clarification_questions": [
{
"field": "<string>",
"question": "<string>",
"suggestions": [
"<string>"
]
}
],
"confidence": 0
},
"columns": [
"<string>"
],
"covariate_suggestions": [
{
"source": "<string>",
"variables": [
"<string>"
],
"rationale": "<string>",
"requirements": {}
}
],
"profile": {
"total_rows": 1,
"num_items": 1,
"min_length": 1,
"max_length": 1,
"avg_length": 1,
"missingness_ratio": 0.5,
"inferred_freq_str": "<string>",
"has_negatives": false,
"covers_weekends": true,
"value_min": 123,
"value_max": 123,
"candidate_seasonality": [
123
],
"suspected_covariates": [
"<string>"
]
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Extract Forecast Intent
Turn a natural-language prompt + dataset into a typed ForecastIntent. Synchronous, no job is created. The intent’s clarification_questions
drive the chat follow-up loop; the frontend fills answers and re-validates
via POST /agent/validate (no model call) before confirming a run.
curl --request POST \
--url https://eomer-api.onrender.com/agent/extract \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'file=<string>' \
--form prompt=import requests
url = "https://eomer-api.onrender.com/agent/extract"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"prompt\"\r\n\r\n\r\n-----011000010111000001101001--"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "multipart/form-data"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '<string>');
form.append('prompt', '');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://eomer-api.onrender.com/agent/extract', 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://eomer-api.onrender.com/agent/extract",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"prompt\"\r\n\r\n\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$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://eomer-api.onrender.com/agent/extract"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"prompt\"\r\n\r\n\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://eomer-api.onrender.com/agent/extract")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"prompt\"\r\n\r\n\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://eomer-api.onrender.com/agent/extract")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"prompt\"\r\n\r\n\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"intent": {
"business_objective": "<string>",
"forecast_target": "<string>",
"time_column": "<string>",
"horizon": 2,
"forecast_frequency": "<string>",
"horizon_quantity": 123,
"horizon_unit": "<string>",
"entity_columns": [
"<string>"
],
"grouping_dimensions": [
"<string>"
],
"filters": [
{
"column": "<string>",
"op": "<string>",
"value": "<string>"
}
],
"covariates": [
"<string>"
],
"known_future_features": [
"<string>"
],
"historical_features": [
"<string>"
],
"confidence_intervals": [
123
],
"seasonality": [
123
],
"user_constraints": [
"<string>"
],
"review_status": "draft",
"missing_required_fields": [
"<string>"
],
"clarification_questions": [
{
"field": "<string>",
"question": "<string>",
"suggestions": [
"<string>"
]
}
],
"confidence": 0
},
"columns": [
"<string>"
],
"covariate_suggestions": [
{
"source": "<string>",
"variables": [
"<string>"
],
"rationale": "<string>",
"requirements": {}
}
],
"profile": {
"total_rows": 1,
"num_items": 1,
"min_length": 1,
"max_length": 1,
"avg_length": 1,
"missingness_ratio": 0.5,
"inferred_freq_str": "<string>",
"has_negatives": false,
"covers_weekends": true,
"value_min": 123,
"value_max": 123,
"candidate_seasonality": [
123
],
"suspected_covariates": [
"<string>"
]
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Successful Response
Response from POST /agent/extract and POST /agent/validate. Carries the typed business intent plus the real dataset columns (so the
frontend can render answer chips for clarification questions) and the
aggregate profile when one could be computed.
Extracted + validated forecasting intent.
Show child attributes
Show child attributes
Real dataset column names (for answer chips).
Proactive, runnable covariate suggestions for the described use-case — the chat offers them as accept/decline chips.
Show child attributes
Show child attributes
Aggregate dataset profile when target/time/entity columns were detected.
Show child attributes
Show child attributes