From 5a828530c0a425529ff7db8cf23ade43ab54cd2c Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Feb 2026 08:40:35 +0000 Subject: [PATCH 1/2] Add userClaim field to custom moderation request payload Add userClaim as a string field to the message object in the custom moderation API request format, at the same level as text and metadata. https://claude.ai/code/session_01L4p6WChnatqPVHnQVH3kS5 --- src/pages/docs/chat/moderation/custom/index.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/docs/chat/moderation/custom/index.mdx b/src/pages/docs/chat/moderation/custom/index.mdx index 7facd5e67f..9d068fb34c 100644 --- a/src/pages/docs/chat/moderation/custom/index.mdx +++ b/src/pages/docs/chat/moderation/custom/index.mdx @@ -39,7 +39,8 @@ The request has the following JSON format. }, "headers": { "key": "string" - } + }, + "userClaim": "string" } } ``` From 4c048896d735ec89bef4f464d0abec507fd300d3 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Feb 2026 08:42:55 +0000 Subject: [PATCH 2/2] Mark userClaim as optional in moderation request payload https://claude.ai/code/session_01L4p6WChnatqPVHnQVH3kS5 --- src/pages/docs/chat/moderation/custom/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/docs/chat/moderation/custom/index.mdx b/src/pages/docs/chat/moderation/custom/index.mdx index 9d068fb34c..80dc8f217a 100644 --- a/src/pages/docs/chat/moderation/custom/index.mdx +++ b/src/pages/docs/chat/moderation/custom/index.mdx @@ -40,7 +40,7 @@ The request has the following JSON format. "headers": { "key": "string" }, - "userClaim": "string" + "userClaim": "string (optional)" } } ```