Find Queues for Source
Find annotation queues that contain a specific source item.
Find Queues for Source
Find all annotation queues that contain a specific source (e.g., a trace), along with the queue item and any existing annotations.
GET
https://api.futureagi.com/model-hub/annotation-queues/for-source/
Bearer
Click "Try It" to send a request
Authentication
| Header | Description |
|---|---|
X-Api-Key | Your API key |
X-Secret-Key | Your secret key |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
source_type | string | Yes | The type of source (e.g. trace) |
source_id | UUID | Yes | The source object’s UUID |
Response
Returns an array of objects, each containing:
| Field | Type | Description |
|---|---|---|
queue | object | The annotation queue |
item | object or null | The queue item for this source, or null if not found |
labels | array | Labels attached to the queue |
existing_scores | array | Scores already submitted for this source |
existing_notes | array | Notes already submitted for this source |
Code Examples
import requests
resp = requests.get(
"https://api.futureagi.com/model-hub/annotation-queues/for-source/",
headers={"X-Api-Key": "YOUR_KEY", "X-Secret-Key": "YOUR_SECRET"},
params={"source_type": "trace", "source_id": "trace-uuid"}
)
print(resp.json())import axios from 'axios';
const resp = await axios.get(
'https://api.futureagi.com/model-hub/annotation-queues/for-source/',
{
headers: { 'X-Api-Key': 'YOUR_KEY', 'X-Secret-Key': 'YOUR_SECRET' },
params: { sourceType: 'trace', sourceId: 'trace-uuid' }
}
);
console.log(resp.data);curl "https://api.futureagi.com/model-hub/annotation-queues/for-source/?source_type=trace&source_id=trace-uuid" \
-H "X-Api-Key: YOUR_KEY" \
-H "X-Secret-Key: YOUR_SECRET" Was this page helpful?