Skip to main content
To get an item that has been added to a queue you can use the queue().getItem method.
index.ts

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