Moderation API
moderationapiModeration API provides content detection, human review workflows, author management, and moderation actions for online platforms.
Acciones disponibles (11)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Evaluate Content Without StorageMODERATIONAPI_EVALUATE_CONTENTAcciónEvaluate content without retaining it or adding it to a review queue, and return policy findings and the recommended moderation action.
MODERATIONAPI_EVALUATE_CONTENTAcciónEvaluate content without retaining it or adding it to a review queue, and return policy findings and the recommended moderation action.
Parámetros de entrada
channelstringChannel ID or key; omit to use the project's default channel.
contentanyObligatorioText, image, video, audio, or structured object content to moderate.
metadataobjectCaller metadata to include with the moderation request.
author_idstringExternal author ID to associate with the content.
meta_typestringenumBusiness type of the submitted content.
profilemessagepostcommenteventproductreviewvoiceothertimestampnumberUnix timestamp in milliseconds when non-real-time content was created.
content_idstringStable content ID from the caller's system.
client_actionobjectOptional caller recommendation combined with the provider recommendation.
conversation_idstringConversation, room, thread, or parent-post ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Execute Moderation ActionMODERATIONAPI_EXECUTE_ACTIONAcciónApply a discovered moderation action to content items or authors. Actions can reject content or block or suspend authors and may be irreversible; inspect LIST_ACTIONS before calling.
MODERATIONAPI_EXECUTE_ACTIONAcciónApply a discovered moderation action to content items or authors. Actions can reject content or block or suspend authors and may be irreversible; inspect LIST_ACTIONS before calling.
Parámetros de entrada
valuestringAction value when LIST_ACTIONS reports that a value is required.
queue_idstringQueue ID when executing a queue-specific action.
action_keystringObligatorioAction ID or key returned by LIST_ACTIONS.
author_idsstring[]Author IDs to act on; provide author_ids, content_ids, or both.
content_idsstring[]Content IDs to act on; provide content_ids, author_ids, or both.
duration_msnumberDuration in milliseconds for a temporary action.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Account and QuotaMODERATIONAPI_GET_ACCOUNTAcciónReturn the connected Moderation API account, plan, current project, and current quota values.
MODERATIONAPI_GET_ACCOUNTAcciónReturn the connected Moderation API account, plan, current project, and current quota values.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Review QueueMODERATIONAPI_GET_REVIEW_QUEUEAcciónReturn metadata and item counts for a review queue by ID. Requires the paid review-queue add-on; contact Moderation API sales if review queues are not enabled for the connected organization.
MODERATIONAPI_GET_REVIEW_QUEUEAcciónReturn metadata and item counts for a review queue by ID. Requires the paid review-queue add-on; contact Moderation API sales if review queues are not enabled for the connected organization.
Parámetros de entrada
queue_idstringObligatorioReview queue ID obtained from the Moderation API dashboard or configuration.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get WordlistMODERATIONAPI_GET_WORDLISTAcciónReturn one wordlist and its current words by ID.
MODERATIONAPI_GET_WORDLISTAcciónReturn one wordlist and its current words by ID.
Parámetros de entrada
wordlist_idstringObligatorioWordlist ID returned by LIST_WORDLISTS.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Moderation ActionsMODERATIONAPI_LIST_ACTIONSAcciónList moderation actions available to the organization, optionally restricted to a review queue.
MODERATIONAPI_LIST_ACTIONSAcciónList moderation actions available to the organization, optionally restricted to a review queue.
Parámetros de entrada
queue_idstringReturn actions available for this review queue ID; omit to return all organization actions.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Review Queue ItemsMODERATIONAPI_LIST_REVIEW_QUEUE_ITEMSAcciónList and filter one page of moderation items in a review queue. Requires the paid Moderation API review-queue add-on.
MODERATIONAPI_LIST_REVIEW_QUEUE_ITEMSAcciónList and filter one page of moderation items in a review queue. Requires the paid Moderation API review-queue add-on.
Parámetros de entrada
cursorstringContinuation cursor from a previous response's next_cursor. Omit for the first page and pass it back unchanged to fetch the next page.
queue_idstringObligatorioReview queue ID.
author_idstringOnly return items associated with this author ID.
page_sizeintegerMaximum number of queue items to return in this page.
sort_fieldstringenumField used to order queue items.
createdAtseverityreviewedAtsort_directionstringenumDirection used to order queue items.
ascdescinclude_resolvedbooleanWhether to include resolved queue items in the results.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List WordlistsMODERATIONAPI_LIST_WORDLISTSAcciónList the organization's wordlists and their identifiers.
MODERATIONAPI_LIST_WORDLISTSAcciónList the organization's wordlists and their identifiers.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Modify Wordlist WordsMODERATIONAPI_MODIFY_WORDLIST_WORDSAcciónAdd words to or remove words from an existing wordlist.
MODERATIONAPI_MODIFY_WORDLIST_WORDSAcciónAdd words to or remove words from an existing wordlist.
Parámetros de entrada
wordsstring[]ObligatorioNon-empty words to add or remove; duplicate additions are ignored.
operationstringObligatorioenumWhether to add the supplied words or remove them.
addremovewordlist_idstringObligatorioWordlist ID returned by LIST_WORDLISTS.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Set Review Queue Item StatusMODERATIONAPI_SET_REVIEW_QUEUE_ITEM_STATUSAcciónMark a review queue item resolved or return it to pending. Requires the paid review-queue add-on.
MODERATIONAPI_SET_REVIEW_QUEUE_ITEM_STATUSAcciónMark a review queue item resolved or return it to pending. Requires the paid review-queue add-on.
Parámetros de entrada
statusstringObligatorioenumDesired queue item status: resolved or pending.
resolvedpendingcommentstringOptional reason for the status change.
item_idstringObligatorioQueue item ID returned by LIST_REVIEW_QUEUE_ITEMS.
queue_idstringObligatorioReview queue ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Submit Content for ModerationMODERATIONAPI_SUBMIT_CONTENT_FOR_MODERATIONAcciónEvaluate content and allow Moderation API to retain it and add it to a review queue according to the project's configuration.
MODERATIONAPI_SUBMIT_CONTENT_FOR_MODERATIONAcciónEvaluate content and allow Moderation API to retain it and add it to a review queue according to the project's configuration.
Parámetros de entrada
channelstringChannel ID or key; omit to use the project's default channel.
contentanyObligatorioText, image, video, audio, or structured object content to moderate.
metadataobjectCaller metadata to include with the moderation request.
author_idstringExternal author ID to associate with the content.
meta_typestringenumBusiness type of the submitted content.
profilemessagepostcommenteventproductreviewvoiceothertimestampnumberUnix timestamp in milliseconds when non-real-time content was created.
content_idstringStable content ID from the caller's system.
client_actionobjectOptional caller recommendation combined with the provider recommendation.
conversation_idstringConversation, room, thread, or parent-post ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not