Get job status
curl --request GET \
--url https://api.legal.usecroma.com/jobs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.legal.usecroma.com/jobs/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.legal.usecroma.com/jobs/{id}', 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.legal.usecroma.com/jobs/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.legal.usecroma.com/jobs/{id}"
req, _ := http.NewRequest("GET", url, nil)
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.get("https://api.legal.usecroma.com/jobs/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.legal.usecroma.com/jobs/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"job": {
"id": "run_abc123def456",
"status": "completed",
"endpoint": "/v1/exports",
"created_at": "2026-08-21T14:03:10.000Z",
"finished_at": "2026-08-21T14:03:41.000Z",
"status_url": "https://api.legal.usecroma.com/jobs/run_abc123def456"
},
"data": {
"url": "https://files.usecroma.com/legal-exports/processes-2026-08-21.csv",
"entity": "processes",
"format": "csv",
"rows": 1280,
"bytes": 418233,
"truncated": false,
"expires_at": "2026-08-22T14:03:10.000Z"
},
"error": null
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Invalid or missing API key."
}
}{
"error": {
"type": "not_found_error",
"code": "job_not_found",
"message": "Job not found."
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "Rate limit exceeded. Try again in 42 seconds."
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "Internal error. Contact support with the X-Request-Id if it persists."
}
}Estado de un trabajo
Poll the state and result of an export job. Returns the job envelope; data is populated once status is completed, error once it is failed. Jobs are scoped to your organization: another organization’s job reads as 404. Polling draws from its own, more generous rate-limit bucket.
GET
/
jobs
/
{id}
Get job status
curl --request GET \
--url https://api.legal.usecroma.com/jobs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.legal.usecroma.com/jobs/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.legal.usecroma.com/jobs/{id}', 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.legal.usecroma.com/jobs/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.legal.usecroma.com/jobs/{id}"
req, _ := http.NewRequest("GET", url, nil)
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.get("https://api.legal.usecroma.com/jobs/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.legal.usecroma.com/jobs/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"job": {
"id": "run_abc123def456",
"status": "completed",
"endpoint": "/v1/exports",
"created_at": "2026-08-21T14:03:10.000Z",
"finished_at": "2026-08-21T14:03:41.000Z",
"status_url": "https://api.legal.usecroma.com/jobs/run_abc123def456"
},
"data": {
"url": "https://files.usecroma.com/legal-exports/processes-2026-08-21.csv",
"entity": "processes",
"format": "csv",
"rows": 1280,
"bytes": 418233,
"truncated": false,
"expires_at": "2026-08-22T14:03:10.000Z"
},
"error": null
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "Invalid or missing API key."
}
}{
"error": {
"type": "not_found_error",
"code": "job_not_found",
"message": "Job not found."
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "Rate limit exceeded. Try again in 42 seconds."
}
}{
"error": {
"type": "api_error",
"code": "internal_error",
"message": "Internal error. Contact support with the X-Request-Id if it persists."
}
}Autorizaciones
Use Authorization: Bearer YOUR_API_KEY
Parámetros de ruta
Job id returned as job.id / X-Job-Id when the export was created.
Respuesta
Job envelope (pending, completed, or failed).
Returned by POST /v1/exports (202) and by GET /jobs/{id}. data holds the export result once status is completed; error is populated once status is failed.
⌘I