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 queueconst res = await queue.getItem(itemId);console.log(res);
Response
The QueueItemResponse object contains the following properties:
string
required
The ID of the moderation request.Example: 27fbdc0b-b295-46ce-93f5-81b2fc08a381
string
required
The type of the item.Example: text
boolean
required
Wether the item has been accepted or not.Example: true
string
required
The status of the item.
available status values are:
processing
pending
accepted
rejected
Example: accepted
string
required
The original content of the item.Example: Hello world
object
Show Moderation
string
required
The ID of the moderation request.Example: 27fbdc0b-b295-46ce-93f5-81b2fc08a381
boolean
required
Whether the text is considered safe.Example: true
number
required
Confidence of the safety of the text from 1-100.Example: 90
string
required
Sentiment of the text, either negative, neutral or positive.available sentiment values are:
negative
neutral (default)
positive
Example: positive
number
required
Sentiment score from 1-100 (negative, neutral, positive).Example: 90
object
required
Overall risk score from 1-100.Example: 90
array
required
General topics the text depicts, lowercase and no punctuation.Example: ["politics", "sports"]
array
required
An array of the categories of the text.
The available categories are:
adult_content
suggestive_imagery
strong_language
violence_gore
horror_disturbing
alcohol
tobacco
substance_use
gambling
dating_relationship
medical_procedures”
crude_humor
political_content
Example: [{"category": "sexual", "severity": 90}]
object
required
Summary of the text.Example: {"profanity": true, "totalFlags": 1, "contentRating": "G", "language": "en"}
object
required
Suggested actions for the text.
Hide Suggested Actions
boolean
required
Whether to reject the text.Example: true
boolean
required
Whether to flag the text.Example: true
Example: {"reject": true, "review": true}
string
required
The original text.Example: This is the original text
string
required
The text with profanity replaced by *.Example: This is a filtered text
object
required
The request object.Example: {"requestId": "27fbdc0b-b295-46ce-93f5-81b2fc08a381", "timestamp": "2023-04-05T12:00:00.000Z"}
object
required
The metadata of the request object that the user provided.Example: {"userId": "12345"}
string
required
The SHA-256 hash of the text.
Used for content comparison purposes.
Example: 93a08bd10cd367bf83f12ba6590fcaef2f8deec8a47ce4ce88a15c7dda325ffa
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"ContentMod","colors":{"primary":"#e11d48","light":"#e11d48","dark":"#e11d48"},"favicon":"https://mintcdn.com/contentmod/oumHUMwl6XQIdT3A/favicon.svg?fit=max\u0026auto=format\u0026n=oumHUMwl6XQIdT3A\u0026q=85\u0026s=51de65eadf0abcb170ba537bde497499","logo":{"light":"https://mintcdn.com/contentmod/oumHUMwl6XQIdT3A/logo/light.svg?fit=max\u0026auto=format\u0026n=oumHUMwl6XQIdT3A\u0026q=85\u0026s=b33f093d38d39b8b8d47c9353bb04db9","dark":"https://mintcdn.com/contentmod/oumHUMwl6XQIdT3A/logo/dark.svg?fit=max\u0026auto=format\u0026n=oumHUMwl6XQIdT3A\u0026q=85\u0026s=83c12c944f99efb4d57dabe0d168569e"},"navbar":{"links":[{"label":"Support","href":"mailto:[email protected]"}],"primary":{"type":"button","label":"Dashboard","href":"https://contentmod.io/dashboard"}},"footer":{"socials":{"x":"https://x.com/contentmod","github":"https://github.com/contentmod-io","linkedin":"https://linkedin.com/contentmod"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"contentmod","hasAudioNarration":false,"actualSubdomain":"contentmod","customDomains":["docs.contentmod.io"],"gitSource":{"type":"github","owner":"contentmod-io","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6addc4719602829e4e1ba8fe","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Documentation","count":35},{"language":"default","tag":"API Reference","count":9},{"language":"default","tag":"SDKS","count":8},{"language":"default","tag":"TypeScript / JavaScript","count":8},{"language":"default","tag":"Queues","count":5},{"language":"default","tag":"Image Moderation","count":3},{"language":"default","tag":"Text Moderation","count":3},{"language":"default","tag":"Projects","count":2},{"language":"default","tag":"Images","count":2},{"language":"default","tag":"Text","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"sdks/typescript/get-queue-item","slug":"/sdks/typescript/get-queue-item","pageMetadata":{"title":"Get Queue Item","description":"Get an item that has been added to a queue","href":"/sdks/typescript/get-queue-item"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Get an item that has been added to a queue\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`To get an item that has been added to a queue you can use the `,_jsx(_components.code,{children:`queue().getItem`}),` method.`]}),`\n`,_jsx(CodeBlock,{filename:`index.ts`,numberOfLines:`16`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { ContentMod } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@contentmod/sdk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` contentMod = `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ContentMod({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` publicKey: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cYOUR_PUBLIC_KEY>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` secretKey: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cYOUR_SECRET_KEY>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` queueId = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cQUEUE_ID>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` queue = contentMod.queue(queueId);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` itemId = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cITEM_ID>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Add an item to the queue`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` res = `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` queue.getItem(itemId);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`console.log(res);`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`QueueItemResponse`}),` object contains the following properties:`]}),`\n`,_jsxs(ResponseField,{name:`id`,type:`string`,required:true,id:`param-id`,children:[_jsx(_components.p,{children:`The ID of the moderation request.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`27fbdc0b-b295-46ce-93f5-81b2fc08a381`})]})]}),`\n`,_jsxs(ResponseField,{name:`type`,type:`string`,required:true,id:`param-type`,children:[_jsx(_components.p,{children:`The type of the item.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`text`})]})]}),`\n`,_jsxs(ResponseField,{name:`accepted`,type:`boolean`,required:true,id:`param-accepted`,children:[_jsx(_components.p,{children:`Wether the item has been accepted or not.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`true`})]})]}),`\n`,_jsxs(ResponseField,{name:`status`,type:`string`,required:true,id:`param-status`,children:[_jsx(_components.p,{children:`The status of the item.\navailable status values are:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`processing`}),`\n`,_jsx(_components.li,{children:`pending`}),`\n`,_jsx(_components.li,{children:`accepted`}),`\n`,_jsx(_components.li,{children:`rejected`}),`\n`]}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`accepted`})]})]}),`\n`,_jsxs(ResponseField,{name:`content`,type:`string`,required:true,id:`param-content`,children:[_jsx(_components.p,{children:`The original content of the item.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`Hello world`})]})]}),`\n`,_jsx(ResponseField,{name:`moderation`,type:`object`,optional:true,id:`param-moderation`,children:_jsxs(Expandable,{title:`Moderation`,children:[_jsxs(ResponseField,{name:`id`,type:`string`,required:true,id:`param-id-1`,children:[_jsx(_components.p,{children:`The ID of the moderation request.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`27fbdc0b-b295-46ce-93f5-81b2fc08a381`})]})]}),_jsxs(ResponseField,{name:`isSafe`,type:`boolean`,required:true,id:`param-is-safe`,children:[_jsx(_components.p,{children:`Whether the text is considered safe.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`true`})]})]}),_jsxs(ResponseField,{name:`confidence`,type:`number`,required:true,id:`param-confidence`,children:[_jsx(_components.p,{children:`Confidence of the safety of the text from 1-100.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`90`})]})]}),_jsxs(ResponseField,{name:`sentiment`,type:`string`,required:true,id:`param-sentiment`,children:[_jsx(_components.p,{children:`Sentiment of the text, either negative, neutral or positive.`}),_jsx(_components.p,{children:`available sentiment values are:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`negative`}),`\n`,_jsx(_components.li,{children:`neutral (default)`}),`\n`,_jsx(_components.li,{children:`positive`}),`\n`]}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`positive`})]})]}),_jsxs(ResponseField,{name:`sentimentScore`,type:`number`,required:true,id:`param-sentiment-score`,children:[_jsx(_components.p,{children:`Sentiment score from 1-100 (negative, neutral, positive).`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`90`})]})]}),_jsxs(ResponseField,{name:`riskScores`,type:`object`,required:true,id:`param-risk-scores`,children:[_jsx(_components.p,{children:`Overall risk score from 1-100.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`90`})]})]}),_jsxs(ResponseField,{name:`topics`,type:`array`,required:true,id:`param-topics`,children:[_jsx(_components.p,{children:`General topics the text depicts, lowercase and no punctuation.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`[\"politics\", \"sports\"]`})]})]}),_jsxs(ResponseField,{name:`nsfwCategories`,type:`array`,required:true,id:`param-nsfw-categories`,children:[_jsx(_components.p,{children:`An array of the categories of the text.\nThe available categories are:`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`adult_content`}),`\n`,_jsx(_components.li,{children:`suggestive_imagery`}),`\n`,_jsx(_components.li,{children:`strong_language`}),`\n`,_jsx(_components.li,{children:`violence_gore`}),`\n`,_jsx(_components.li,{children:`horror_disturbing`}),`\n`,_jsx(_components.li,{children:`alcohol`}),`\n`,_jsx(_components.li,{children:`tobacco`}),`\n`,_jsx(_components.li,{children:`substance_use`}),`\n`,_jsx(_components.li,{children:`gambling`}),`\n`,_jsx(_components.li,{children:`dating_relationship`}),`\n`,_jsx(_components.li,{children:`medical_procedures”`}),`\n`,_jsx(_components.li,{children:`crude_humor`}),`\n`,_jsx(_components.li,{children:`political_content`}),`\n`]}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`[{\"category\": \"sexual\", \"severity\": 90}]`})]})]}),_jsxs(ResponseField,{name:`summary`,type:`object`,required:true,id:`param-summary`,children:[_jsx(_components.p,{children:`Summary of the text.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`{\"profanity\": true, \"totalFlags\": 1, \"contentRating\": \"G\", \"language\": \"en\"}`})]})]}),_jsxs(ResponseField,{name:`suggestedActions`,type:`object`,required:true,id:`param-suggested-actions`,children:[_jsx(_components.p,{children:`Suggested actions for the text.`}),_jsxs(Expandable,{title:`Suggested Actions`,defaultOpen:true,children:[_jsxs(ResponseField,{name:`reject`,type:`boolean`,required:true,id:`param-reject`,children:[_jsx(_components.p,{children:`Whether to reject the text.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`true`})]})]}),_jsxs(ResponseField,{name:`review`,type:`boolean`,required:true,id:`param-review`,children:[_jsx(_components.p,{children:`Whether to flag the text.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`true`})]})]})]}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`{\"reject\": true, \"review\": true}`})]})]}),_jsxs(ResponseField,{name:`content`,type:`string`,required:true,id:`param-content-1`,children:[_jsx(_components.p,{children:`The original text.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`This is the original text`})]})]}),_jsxs(ResponseField,{name:`filteredContent`,type:`string`,required:true,id:`param-filtered-content`,children:[_jsx(_components.p,{children:`The text with profanity replaced by *.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`This is a filtered text`})]})]}),_jsxs(ResponseField,{name:`request`,type:`object`,required:true,id:`param-request`,children:[_jsx(_components.p,{children:`The request object.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`{\"requestId\": \"27fbdc0b-b295-46ce-93f5-81b2fc08a381\", \"timestamp\": \"2023-04-05T12:00:00.000Z\"}`})]})]}),_jsxs(ResponseField,{name:`meta`,type:`object`,required:true,id:`param-meta`,children:[_jsx(_components.p,{children:`The metadata of the request object that the user provided.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`{\"userId\": \"12345\"}`})]})]}),_jsx(ResponseField,{name:`hash`,type:`string`,required:true,id:`param-hash`,children:_jsxs(_components.p,{children:[`The SHA-256 hash of the text.\nUsed for content comparison purposes.\nExample: `,_jsx(_components.code,{children:`93a08bd10cd367bf83f12ba6590fcaef2f8deec8a47ce4ce88a15c7dda325ffa`})]})})]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get Queue Item","description":"Get an item that has been added to a queue","href":"/sdks/typescript/get-queue-item"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"contentmod","siteName":"ContentMod","title":"Get Queue Item - ContentMod","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T04:50:46.263Z","originalFileLocation":"sdks/typescript/get-queue-item.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Get an item that has been added to a queue\">\u003cmeta data-mint-head name=\"application-name\" content=\"ContentMod\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/contentmod/p8aAJDEdQSQVabSQ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/contentmod/p8aAJDEdQSQVabSQ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/contentmod/p8aAJDEdQSQVabSQ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/contentmod/p8aAJDEdQSQVabSQ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/contentmod/p8aAJDEdQSQVabSQ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/contentmod/p8aAJDEdQSQVabSQ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/contentmod/p8aAJDEdQSQVabSQ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/contentmod/p8aAJDEdQSQVabSQ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/contentmod/p8aAJDEdQSQVabSQ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Queue Item - ContentMod\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get an item that has been added to a queue\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ContentMod\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.contentmod.io/sdks/typescript/get-queue-item\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://contentmod.mintlify.site/_mintlify/api/og/v2?division=Queues\u0026amp;title=Get+Queue+Item\u0026amp;description=Get+an+item+that+has+been+added+to+a+queue\u0026amp;theme=2f7b82754988a1af011ba36f\u0026amp;signature=7d781988abb4c3fddfa11ed190ad58bd3fb20c5118144ad8d3710727ef1a2005\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get Queue Item - ContentMod\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get an item that has been added to a queue\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://contentmod.mintlify.site/_mintlify/api/og/v2?division=Queues\u0026amp;title=Get+Queue+Item\u0026amp;description=Get+an+item+that+has+been+added+to+a+queue\u0026amp;theme=2f7b82754988a1af011ba36f\u0026amp;signature=7d781988abb4c3fddfa11ed190ad58bd3fb20c5118144ad8d3710727ef1a2005\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/contentmod/p8aAJDEdQSQVabSQ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ContentMod\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#e11d48\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.contentmod.io/sdks/typescript/get-queue-item\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sdks/typescript/get-queue-item.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.contentmod.io/#organization\",\"name\":\"ContentMod\",\"url\":\"https://docs.contentmod.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/contentmod/oumHUMwl6XQIdT3A/logo/light.svg?fit=max\u0026auto=format\u0026n=oumHUMwl6XQIdT3A\u0026q=85\u0026s=b33f093d38d39b8b8d47c9353bb04db9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.contentmod.io#website\",\"name\":\"ContentMod\",\"url\":\"https://docs.contentmod.io\",\"publisher\":{\"@id\":\"https://docs.contentmod.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.contentmod.io/sdks/typescript/get-queue-item#webpage\",\"url\":\"https://docs.contentmod.io/sdks/typescript/get-queue-item\",\"name\":\"Get Queue Item\",\"description\":\"Get an item that has been added to a queue\",\"dateModified\":\"2026-01-07T04:50:46.263Z\",\"isPartOf\":{\"@id\":\"https://docs.contentmod.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.contentmod.io/sdks/typescript/get-queue-item#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.contentmod.io/sdks/typescript/get-queue-item#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SDKS\",\"item\":\"https://docs.contentmod.io/sdks/typescript/installation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"TypeScript / JavaScript\",\"item\":\"https://docs.contentmod.io/sdks/typescript/installation\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Queues\",\"item\":\"https://docs.contentmod.io/sdks/typescript/add-queue-item\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Get Queue Item\",\"item\":\"https://docs.contentmod.io/sdks/typescript/get-queue-item\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.contentmod.io/sdks/typescript/get-queue-item#article\",\"headline\":\"Get Queue Item\",\"name\":\"Get Queue Item\",\"description\":\"Get an item that has been added to a queue\",\"url\":\"https://docs.contentmod.io/sdks/typescript/get-queue-item\",\"mainEntityOfPage\":{\"@id\":\"https://docs.contentmod.io/sdks/typescript/get-queue-item#webpage\"},\"dateModified\":\"2026-01-07T04:50:46.263Z\",\"publisher\":{\"@id\":\"https://docs.contentmod.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.contentmod.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ContentMod\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ContentMod\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/sdks/typescript/get-queue-item.md","siteName":"ContentMod","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"}]},{"group":"Integrations","pages":[{"title":"Discord","icon":"discord","href":"/integrations/discord"}]},{"group":"Queues","pages":[{"title":"Review Queues","href":"/queues/intro"}]},{"group":"SDKS","pages":[{"group":"TypeScript / JavaScript","icon":"js","pages":[{"title":"Installation","href":"/sdks/typescript/installation"},{"group":"Text","icon":"text","pages":[{"title":"Moderate Text","href":"/sdks/typescript/moderate-text"},{"title":"Get Text Moderation","href":"/sdks/typescript/get-text"}]},{"group":"Images","icon":"Image","pages":[{"title":"Moderate Image","href":"/sdks/typescript/moderate-image"},{"title":"Get Image Moderation","href":"/sdks/typescript/get-image"}]},{"group":"Queues","icon":"Files","pages":[{"title":"Add Queue Item","description":"Add an item to a queue","href":"/sdks/typescript/add-queue-item"},{"title":"Get Queue Item","href":"/sdks/typescript/get-queue-item"}]},{"title":"Webhooks","description":"Parse webhooks received from ContentMod","icon":"Webhook","href":"/sdks/typescript/webhooks"}]}]},{"group":"Projects","pages":[{"title":"Introduction","href":"/projects/intro"},{"title":"Billing","href":"/projects/billing"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]}]},{"anchor":"Documentation","href":"https://docs.contentmod.io/introduction","icon":"book-open-cover"},{"anchor":"Support","href":"mailto:[email protected]","icon":"envelope"}]},"basePath":"","title":"Get Queue Item - ContentMod","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}