From 800ce8a7493fbc0e411c975593a121e8a19f8b96 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 02d040bf23..4f34ba6a00 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 bf02eaa9246ff7ca44751c921f397ca1f16b420a 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 4f34ba6a00..1208c36ce7 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)" } } ```