To get an item that has been added to a queue you can use the queue().getItem method.
index.ts
import { ContentMod } from "@contentmod/sdk";

const contentMod = new ContentMod({
  publicKey: "<YOUR_PUBLIC_KEY>",
  secretKey: "<YOUR_SECRET_KEY>",
});

const queueId = "<QUEUE_ID>";

const queue = contentMod.queue(queueId);

const itemId = "<ITEM_ID>";
// Add an item to the queue
const res = await queue.getItem(itemId);

console.log(res);

Response

The QueueItemResponse object contains the following properties:
id
string
required
The ID of the moderation request.Example: 27fbdc0b-b295-46ce-93f5-81b2fc08a381
type
string
required
The type of the item.Example: text
accepted
boolean
required
Wether the item has been accepted or not.Example: true
status
string
required
The status of the item. available status values are:
  • processing
  • pending
  • accepted
  • rejected
Example: accepted
content
string
required
The original content of the item.Example: Hello world
moderation
object