Get Document Jobs
curl --request GET \
--url https://api.stax.ai/document/jobs \
--cookie authToken=import requests
url = "https://api.stax.ai/document/jobs"
headers = {"cookie": "authToken="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'authToken='}};
fetch('https://api.stax.ai/document/jobs', 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.stax.ai/document/jobs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "authToken=",
]);
$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.stax.ai/document/jobs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "authToken=")
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.stax.ai/document/jobs")
.header("cookie", "authToken=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stax.ai/document/jobs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'authToken='
response = http.request(request)
puts response.read_body{
"success": true,
"jobs": [
{
"_id": "<string>",
"team": "<string>",
"user": "<string>",
"success": true,
"working": true,
"error": "<string>",
"worker": "<string>",
"queueTime": "2023-11-07T05:31:56Z",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"jobType": "<string>",
"jobId": "<string>",
"jobData": {}
}
]
}Document
Get Document Jobs
Get processing jobs for a document
GET
/
document
/
jobs
Get Document Jobs
curl --request GET \
--url https://api.stax.ai/document/jobs \
--cookie authToken=import requests
url = "https://api.stax.ai/document/jobs"
headers = {"cookie": "authToken="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'authToken='}};
fetch('https://api.stax.ai/document/jobs', 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.stax.ai/document/jobs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "authToken=",
]);
$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.stax.ai/document/jobs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "authToken=")
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.stax.ai/document/jobs")
.header("cookie", "authToken=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stax.ai/document/jobs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'authToken='
response = http.request(request)
puts response.read_body{
"success": true,
"jobs": [
{
"_id": "<string>",
"team": "<string>",
"user": "<string>",
"success": true,
"working": true,
"error": "<string>",
"worker": "<string>",
"queueTime": "2023-11-07T05:31:56Z",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"jobType": "<string>",
"jobId": "<string>",
"jobData": {}
}
]
}Authorizations
cookieAuthbearerAuth
Cookie-based authentication using userId and authToken cookies
Query Parameters
Document ID MongoDB ObjectId
Pattern:
^[0-9a-fA-F]{24}$⌘I