Check queue status
Check the status of an enrichment queue.
GET
https://api.up2data.ai/api/open-refresh/statusCheck the status of an enrichment queue to see how many items have been processed. Poll this endpoint until status is "completed", then read the results back with queues-list - see the Queues and polling guide for a full polling example.
#Request
| Field | Type | Notes |
|---|---|---|
queueIdrequired | string |
#Call it
curl -X GET "https://api.up2data.ai/api/open-refresh/status?queueId=507f1f77bcf86cd799439011" \
-H "Authorization: YOUR_ACCESS_TOKEN"import requests
url = "https://api.up2data.ai/api/open-refresh/status?queueId=507f1f77bcf86cd799439011"
headers = {
"Authorization": "YOUR_ACCESS_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())const url = "https://api.up2data.ai/api/open-refresh/status?queueId=507f1f77bcf86cd799439011";
const headers = {
"Authorization": "YOUR_ACCESS_TOKEN",
};
const response = await fetch(url, {
method: "GET",
headers,
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.up2data.ai/api/open-refresh/status?queueId=507f1f77bcf86cd799439011"
req, err := http.NewRequest("GET", url, nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "YOUR_ACCESS_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
respBody, _ := io.ReadAll(resp.Body)
fmt.Println(string(respBody))
}#Response
{
"queueId": "string",
"status": "string (\"pending\" | \"completed\")",
"processed": "number",
"total": "number"
}{
"queueId": "507f1f77bcf86cd799439011",
"status": "pending",
"processed": 35,
"total": 50
}#Errors
No documented errors.
See the Errors guide for every error type this version can return.