Analyzes a text message/comment and returns its moderation classification, severity, target, detected language, and a recommended moderation action.
Before diving in, we recommend reading the text taxonomy to understand the classifications, severities, and moderation signals returned by this endpoint.
POST
/
analyze
/
v1
/
text
curl --request POST \ --url https://api.bodyguard.ai/analyze/v1/text \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "channelId": "<your-channel-id>", "text": "Einstein is an asshole", "publishedAt": "2026-04-23T10:30:00.000Z"}'
API key authentication. Provide your key in the Authorization
header with the ApiKey scheme:
Authorization: ApiKey <your-api-key>
Body
application/json
channelId
string<uuid>
required
Identifier of the channel the text belongs to. Provided by Bodyguard.
text
string
required
The text content to analyze.
Maximum string length: 10000
Example:
"I love this product!"
publishedAt
string<date-time>
Publication date of the message. Defaults to the current date and time if omitted. This value must be stable across retries or resubmissions of the same message — changing it will cause the message to be duplicated in Bodyguard's records. Dates before 2020-01-01 are not supported.
reference
string
Your own stable identifier for this piece of content (e.g. a comment ID from your database). Bodyguard echoes it back in webhooks and stored results, making it easy to correlate analysis with your own records. If omitted, a random reference is automatically generated.
Maximum string length: 256
permalink
string<uri>
A public URL pointing to the content, if available.
language
string
Language of the content as an ISO 639-1 code (e.g. en, fr). If set, the analysis is forced in this language and auto-detection is disabled. If omitted, language is auto-detected.
Required string length: 2
Example:
"en"
post
object
Metadata about the post the analyzed content belongs to. Optional, but strongly recommended: it powers context-aware moderation based on the post topic, which can't work without it. This information also appears on the Dashboard analytics through post-level data.
Option 1
Option 2
Show child attributes
author
object
Metadata about the author of the content. Optional, but strongly recommended: some features only work with it — for example, spam management is tracked per author. This information also appears on the Dashboard analytics through author-level data.
Option 1
Option 2
Show child attributes
Response
200 - application/json
Analysis completed.
textAnalysis
object
Moderation result for a piece of text.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Bodyguard","description":"Bodyguard Product Documentation","colors":{"primary":"#003c7c","light":"#24bfe2","dark":"#00356b"},"logo":{"light":"https://mintcdn.com/bodyguardai/CXXaMNDOCYmwXYkN/images/logo-light.svg?fit=max\u0026auto=format\u0026n=CXXaMNDOCYmwXYkN\u0026q=85\u0026s=53fbcc63f9cb65a2b24e72faf85fcbc6","dark":"https://mintcdn.com/bodyguardai/CXXaMNDOCYmwXYkN/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=CXXaMNDOCYmwXYkN\u0026q=85\u0026s=6493bb8bbf5fcf8d13db821f0694db4f","href":"/en/documentation/introduction"},"favicon":"https://mintcdn.com/bodyguardai/bT4NridthvvIprMF/images/favicon.svg?fit=max\u0026auto=format\u0026n=bT4NridthvvIprMF\u0026q=85\u0026s=2b8d9703c3fcc88f4fb43893eeee43db","appearance":{"default":"light"},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://app.bodyguard.ai"}},"footer":{"socials":{"x":"https://twitter.com/Bodyguard_intl","facebook":"https://www.facebook.com/Bodyguard.intl","instagram":"https://www.instagram.com/bodyguard.ai","linkedin":"https://www.linkedin.com/company/bodyguard-intl"},"links":[{"header":"Resources","items":[{"label":"Status page","href":"https://status.bodyguard.ai"}]}]},"seo":{"indexing":"all"},"fonts":{"family":"Inter"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","latex":false},"navigation":{"languages":[{"language":"en","href":"en/documentation/introduction"},{"language":"fr","href":"fr/documentation/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"bodyguardai","hasAudioNarration":false,"actualSubdomain":"bodyguardai","customDomains":["docs.bodyguard.ai"],"gitSource":{"type":"github","owner":"bodyguard-ai","repo":"documentation","deployBranch":"main","isPrivate":true,"contentDirectory":"","mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af70386e0d078336552c1f4","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"en","tag":"API Reference","count":8},{"language":"fr","tag":"Référence API","count":8},{"language":"en","tag":"Documentation","count":6},{"language":"fr","tag":"Documentation","count":6},{"language":"default","tag":"API Reference","count":6},{"language":"default","tag":"Reference","count":6},{"language":"en","tag":"Webhooks","count":5},{"language":"fr","tag":"Webhooks","count":5},{"language":"en","tag":"API Documentation","count":3},{"language":"en","tag":"Taxonomy","count":3},{"language":"fr","tag":"Documentation API","count":3},{"language":"fr","tag":"Taxonomie","count":3},{"language":"default","tag":"Analyze","count":3},{"language":"default","tag":"Feedback","count":3},{"language":"en","tag":"How-to","count":2},{"language":"fr","tag":"Guides pratiques","count":2},{"language":"en","tag":"Reference","count":1},{"language":"en","tag":"Getting started","count":1},{"language":"fr","tag":"Référence","count":1},{"language":"fr","tag":"Pour commencer","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":"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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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":"api-reference/analyze/analyze-a-text-message","slug":"/api-reference/analyze/analyze-a-text-message","pageMetadata":{"title":"Analyze a text message","description":"Analyzes a text message/comment and returns its moderation classification, severity, target, detected language, and a recommended moderation action.\n\nBefore diving in, we recommend reading the [text taxonomy](/en/documentation/taxonomy/text-classifications) to understand the classifications, severities, and moderation signals returned by this endpoint.\n","deprecated":null,"version":null,"openapi":"/openapi/analyze.openapi.yaml post /analyze/v1/text","href":"/api-reference/analyze/analyze-a-text-message","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Analyzes a text message/comment and returns its moderation classification, severity, target, detected language, and a recommended moderation action.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Before diving in, we recommend reading the \", _jsx(_components.a, {\n href: \"/en/documentation/taxonomy/text-classifications\",\n children: \"text taxonomy\"\n }), \" to understand the classifications, severities, and moderation signals returned by this endpoint.\"]\n })]\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Analyze a text message","description":"Analyzes a text message/comment and returns its moderation classification, severity, target, detected language, and a recommended moderation action.\n\nBefore diving in, we recommend reading the [text taxonomy](/en/documentation/taxonomy/text-classifications) to understand the classifications, severities, and moderation signals returned by this endpoint.\n","deprecated":null,"version":null,"openapi":"/openapi/analyze.openapi.yaml post /analyze/v1/text","href":"/api-reference/analyze/analyze-a-text-message","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Analyze"],"operationId":"bodyguard.analyze.v1.AnalyzeText","summary":"Analyze a text message","description":"Analyzes a text message/comment and returns its moderation classification, severity, target, detected language, and a recommended moderation action.\n\nBefore diving in, we recommend reading the [text taxonomy](/en/documentation/taxonomy/text-classifications) to understand the classifications, severities, and moderation signals returned by this endpoint.\n","requestBody":"8df8445f-1b0b-4fa6-bafd-c58adc7ce8e1","responses":{"200":"fa9627a7-27e0-47ec-a3a8-fa7d87f23c80"},"method":"post","type":"path","servers":["1dc84158-06de-45a4-852f-82acf66f3420"],"security":["08eccfac-2df3-486f-8b0a-e4db630cfb1b"],"path":"/analyze/v1/text","baseUrlOptions":["https://api.bodyguard.ai"],"title":"Analyze a text message","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["channelId","text"],"properties":{"channelId":{"type":"string","format":"uuid","description":"Identifier of the [channel](/en/api-reference/concepts#channel) the text belongs to. Provided by Bodyguard.","isRequired":true,"uniqueKey":"channelId","typeLabel":"string\u003cuuid>"},"text":{"type":"string","maxLength":10000,"description":"The text content to analyze.","example":"I love this product!","isRequired":true,"uniqueKey":"text","typeLabel":"string"},"publishedAt":{"type":"string","format":"date-time","description":"[Publication date](/en/api-reference/concepts#publication-date-publishedat) of the message. Defaults to the current date and time if omitted. This value must be stable across retries or resubmissions of the same message — changing it will cause the message to be duplicated in Bodyguard's records. Dates before 2020-01-01 are not supported.","uniqueKey":"publishedAt","typeLabel":"string\u003cdate-time>"},"reference":{"type":"string","maxLength":256,"description":"Your own stable identifier for this piece of content (e.g. a comment ID from your database). Bodyguard echoes it back in webhooks and stored results, making it easy to correlate analysis with your own records. If omitted, a random reference is automatically generated.","uniqueKey":"reference","typeLabel":"string"},"permalink":{"type":"string","format":"uri","description":"A public URL pointing to the content, if available.","uniqueKey":"permalink","typeLabel":"string\u003curi>"},"language":{"type":"string","minLength":2,"maxLength":2,"description":"Language of the content as an ISO 639-1 code (e.g. `en`, `fr`). If set, the analysis is forced in this language and auto-detection is disabled. If omitted, language is auto-detected.","example":"en","uniqueKey":"language","typeLabel":"string"},"post":{"oneOf":[{"type":"object","description":"Metadata about the post the analyzed content belongs to. Optional, but strongly recommended: it powers context-aware moderation based on the post topic, which can't work without it. This information also appears on the Dashboard analytics through post-level data.","required":["title"],"properties":{"title":{"type":"string","maxLength":2048,"description":"Title or short description of the post. Can be omitted or left empty, in which case `reference` is required.","isRequired":true,"uniqueKey":"post.oneOf.0.title","typeLabel":"string"},"reference":{"type":"string","maxLength":256,"description":"Your own stable identifier for this post (e.g. a post ID from your database). Bodyguard echoes it back in webhooks and stored results, making it easy to correlate analysis with your own records. Required if `title` is omitted or empty. If omitted, a reference is automatically generated from `publishedAt` and `title` — meaning two posts with the same title and publication date will be considered the same post.","uniqueKey":"post.oneOf.0.reference","typeLabel":"string"},"publishedAt":{"type":"string","format":"date-time","description":"[Publication date](/en/api-reference/concepts#publication-date-publishedat) of the post. Defaults to 00:00 of the current day if omitted. This value must be stable across all messages belonging to the same post — changing it will cause the post to be duplicated in Bodyguard's records. Dates before 2020-01-01 are not supported.","uniqueKey":"post.oneOf.0.publishedAt","typeLabel":"string\u003cdate-time>"},"permalink":{"type":"string","format":"uri","description":"Public URL of the post.","uniqueKey":"post.oneOf.0.permalink","typeLabel":"string\u003curi>"},"countryCodes":{"type":"array","description":"Countries the post is aimed at, as uppercase ISO 3166-1 alpha-2 codes (e.g. `US`, `FR`). A post can target several countries. Helps Bodyguard resolve words whose meaning changes from one country to another. If omitted, no country context is applied for the post.","items":{"type":"string","minLength":2,"maxLength":2,"uniqueKey":"post.oneOf.0.countryCodes.items.[INDEX]","typeLabel":"string"},"example":["US","CA"],"uniqueKey":"post.oneOf.0.countryCodes","typeLabel":"string[]"}},"uniqueKey":"post.oneOf.0","typeLabel":"object"},{"type":"object","description":"Metadata about the post the analyzed content belongs to. Optional, but strongly recommended: it powers context-aware moderation based on the post topic, which can't work without it. This information also appears on the Dashboard analytics through post-level data.","required":["reference"],"properties":{"reference":{"type":"string","maxLength":256,"description":"Your own stable identifier for this post (e.g. a post ID from your database). Bodyguard echoes it back in webhooks and stored results, making it easy to correlate analysis with your own records. Required if `title` is omitted or empty. If omitted, a reference is automatically generated from `publishedAt` and `title` — meaning two posts with the same title and publication date will be considered the same post.","isRequired":true,"uniqueKey":"post.oneOf.1.reference","typeLabel":"string"},"title":{"type":"string","maxLength":2048,"description":"Title or short description of the post. Can be omitted or left empty, in which case `reference` is required.","uniqueKey":"post.oneOf.1.title","typeLabel":"string"},"publishedAt":{"type":"string","format":"date-time","description":"[Publication date](/en/api-reference/concepts#publication-date-publishedat) of the post. Defaults to 00:00 of the current day if omitted. This value must be stable across all messages belonging to the same post — changing it will cause the post to be duplicated in Bodyguard's records. Dates before 2020-01-01 are not supported.","uniqueKey":"post.oneOf.1.publishedAt","typeLabel":"string\u003cdate-time>"},"permalink":{"type":"string","format":"uri","description":"Public URL of the post.","uniqueKey":"post.oneOf.1.permalink","typeLabel":"string\u003curi>"},"countryCodes":{"type":"array","description":"Countries the post is aimed at, as uppercase ISO 3166-1 alpha-2 codes (e.g. `US`, `FR`). A post can target several countries. Helps Bodyguard resolve words whose meaning changes from one country to another. If omitted, no country context is applied for the post.","items":{"type":"string","minLength":2,"maxLength":2,"uniqueKey":"post.oneOf.1.countryCodes.items.[INDEX]","typeLabel":"string"},"example":["US","CA"],"uniqueKey":"post.oneOf.1.countryCodes","typeLabel":"string[]"}},"uniqueKey":"post.oneOf.1","typeLabel":"object"}],"uniqueKey":"post","typeLabel":"object"},"author":{"oneOf":[{"type":"object","description":"Metadata about the author of the content. Optional, but strongly recommended: some features only work with it — for example, spam management is tracked per author. This information also appears on the Dashboard analytics through author-level data.","required":["username"],"properties":{"username":{"type":"string","maxLength":255,"description":"Display name / username of the author. Can be omitted or left empty, in which case `reference` is required.","isRequired":true,"uniqueKey":"author.oneOf.0.username","typeLabel":"string"},"reference":{"type":"string","maxLength":256,"description":"Your own stable identifier for this author (e.g. a user ID from your database). Bodyguard echoes it back in webhooks and stored results, making it easy to correlate analysis with your own records. Required if `username` is omitted or empty. If omitted, a reference is automatically generated from `username` — meaning two authors with the same username will be considered the same author.","uniqueKey":"author.oneOf.0.reference","typeLabel":"string"},"permalink":{"type":"string","format":"uri","description":"Public URL of the author's profile.","uniqueKey":"author.oneOf.0.permalink","typeLabel":"string\u003curi>"},"profilePictureUrl":{"type":"string","format":"uri","description":"URL of the author's profile picture.","uniqueKey":"author.oneOf.0.profilePictureUrl","typeLabel":"string\u003curi>"},"countryCode":{"type":"string","minLength":2,"maxLength":2,"description":"Country the author is located in, as an uppercase ISO 3166-1 alpha-2 code (e.g. `US`, `FR`). Helps Bodyguard resolve words whose meaning changes from one country to another. If omitted, no country context is applied for the author.","example":"US","uniqueKey":"author.oneOf.0.countryCode","typeLabel":"string"}},"uniqueKey":"author.oneOf.0","typeLabel":"object"},{"type":"object","description":"Metadata about the author of the content. Optional, but strongly recommended: some features only work with it — for example, spam management is tracked per author. This information also appears on the Dashboard analytics through author-level data.","required":["reference"],"properties":{"reference":{"type":"string","maxLength":256,"description":"Your own stable identifier for this author (e.g. a user ID from your database). Bodyguard echoes it back in webhooks and stored results, making it easy to correlate analysis with your own records. Required if `username` is omitted or empty. If omitted, a reference is automatically generated from `username` — meaning two authors with the same username will be considered the same author.","isRequired":true,"uniqueKey":"author.oneOf.1.reference","typeLabel":"string"},"username":{"type":"string","maxLength":255,"description":"Display name / username of the author. Can be omitted or left empty, in which case `reference` is required.","uniqueKey":"author.oneOf.1.username","typeLabel":"string"},"permalink":{"type":"string","format":"uri","description":"Public URL of the author's profile.","uniqueKey":"author.oneOf.1.permalink","typeLabel":"string\u003curi>"},"profilePictureUrl":{"type":"string","format":"uri","description":"URL of the author's profile picture.","uniqueKey":"author.oneOf.1.profilePictureUrl","typeLabel":"string\u003curi>"},"countryCode":{"type":"string","minLength":2,"maxLength":2,"description":"Country the author is located in, as an uppercase ISO 3166-1 alpha-2 code (e.g. `US`, `FR`). Helps Bodyguard resolve words whose meaning changes from one country to another. If omitted, no country context is applied for the author.","example":"US","uniqueKey":"author.oneOf.1.countryCode","typeLabel":"string"}},"uniqueKey":"author.oneOf.1","typeLabel":"object"}],"uniqueKey":"author","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"simpleComment":{"title":"simpleComment","summary":"Simple comment analysis","value":{"channelId":"\u003cyour-channel-id>","text":"Einstein is an asshole","publishedAt":"2026-04-23T10:30:00.000Z"}},"commentWithContext":{"title":"commentWithContext","summary":"Comment with an author and post context","value":{"channelId":"\u003cyour-channel-id>","text":"Einstein is an asshole","publishedAt":"2026-04-23T10:30:00.000Z","language":"en","reference":"comment-12346","author":{"username":"johndoe","reference":"user-987","permalink":"https://example.com/users/johndoe","profilePictureUrl":"https://cdn.example.com/avatars/johndoe.jpg","countryCode":"US"},"post":{"title":"New product launch","reference":"post-42","publishedAt":"2025-01-15T09:00:00Z","permalink":"https://example.com/posts/42","countryCodes":["US"]}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"fa9627a7-27e0-47ec-a3a8-fa7d87f23c80":{"description":"Analysis completed.","content":{"application/json":{"schema":{"type":"object","properties":{"textAnalysis":{"type":"object","description":"Moderation result for a piece of text.","properties":{"type":{"type":"string","description":"The broad category of the analyzed content. For finer-grained detail, see `classifications`. See the [text taxonomy](/en/documentation/taxonomy/text-classifications) for the full description of each value.","enum":["NEUTRAL","HATEFUL","POSITIVE","NONE","HATE_SPEECH","CRITICISM","UNDESIRABLE"],"uniqueKey":"textAnalysis.type","typeLabel":"enum\u003cstring>"},"classifications":{"type":"array","description":"Fine-grained labels describing the content (e.g. `INSULT`, `SPAM`). See the [text taxonomy](/en/documentation/taxonomy/text-classifications) for the full list and descriptions of each classification.","items":{"type":"string","uniqueKey":"textAnalysis.classifications.items.[INDEX]","typeLabel":"string"},"uniqueKey":"textAnalysis.classifications","typeLabel":"string[]"},"severity":{"type":"string","description":"Severity of the detected issue, if any. See the [text taxonomy](/en/documentation/taxonomy/text-classifications) for the full description of each value.","enum":["LOW","MEDIUM","HIGH","CRITICAL","NONE"],"uniqueKey":"textAnalysis.severity","typeLabel":"enum\u003cstring>"},"directedAt":{"type":"string","description":"Who or what the content is directed at. See the [text taxonomy](/en/documentation/taxonomy/text-classifications) for the full description of each value.","enum":["USER","USER_FAMILY","SINGLE_PERSON","GROUP","EVERYONE","AUTHOR_OF_COMMENT","HATERS","NONE","ENTITY"],"uniqueKey":"textAnalysis.directedAt","typeLabel":"enum\u003cstring>"},"language":{"type":"string","description":"Detected language as an ISO 639-1 code.","uniqueKey":"textAnalysis.language","typeLabel":"string"},"recommendedAction":{"type":"string","description":"The moderation action Bodyguard recommends you apply to this content.","enum":["KEEP","REMOVE","WATCH"],"uniqueKey":"textAnalysis.recommendedAction","typeLabel":"enum\u003cstring>"},"censoredText":{"type":"string","description":"The original text with sensitive content censored with `*`.","uniqueKey":"textAnalysis.censoredText","typeLabel":"string"},"classificationMeta":{"type":"object","additionalProperties":{"type":"object","description":"Additional metadata for each detected classification.\n**Important:** Bodyguard cannot guarantee that this metadata will be present for every classification — for example, some non-toxic classifications may not have any.\"\n","properties":{"severity":{"type":"string","description":"Severity of the detected issue, if any. See the [text taxonomy](/en/documentation/taxonomy/text-classifications) for the full description of each value.","enum":["LOW","MEDIUM","HIGH","CRITICAL","NONE"],"uniqueKey":"textAnalysis.classificationMeta.additionalProperties.severity","typeLabel":"enum\u003cstring>"}},"uniqueKey":"textAnalysis.classificationMeta.additionalProperties","typeLabel":"object"},"uniqueKey":"textAnalysis.classificationMeta","typeLabel":"object"},"detectedUrls":{"type":"array","description":"URLs found in the text. Empty if no URL was found.","items":{"type":"object","description":"A URL found in the analyzed content.","properties":{"url":{"type":"string","description":"The URL found in the content.","uniqueKey":"textAnalysis.detectedUrls.items.[INDEX].url","typeLabel":"string"}},"uniqueKey":"textAnalysis.detectedUrls.items.[INDEX]","typeLabel":"object"},"uniqueKey":"textAnalysis.detectedUrls","typeLabel":"object[]"},"textSequence":{"type":"object","description":"Present only when the [text sequence](/en/api-reference/concepts#text-sequence) ending with this text was detected as problematic. Absent otherwise.","properties":{"references":{"type":"array","description":"The `reference` of every text in the sequence, in order, including the current one.","items":{"type":"string","uniqueKey":"textAnalysis.textSequence.references.items.[INDEX]","typeLabel":"string"},"uniqueKey":"textAnalysis.textSequence.references","typeLabel":"string[]"},"textAnalysis":{"oneOf":[{"$circularRef":"d2d86bf0-3623-4a70-887b-fce0dd39cff4"}],"uniqueKey":"textAnalysis.textSequence.textAnalysis","typeLabel":"any"}},"uniqueKey":"textAnalysis.textSequence","typeLabel":"object"}},"uniqueKey":"textAnalysis","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"toxic":{"title":"toxic","summary":"Toxic, remove","value":{"textAnalysis":{"type":"HATEFUL","classifications":["INSULT"],"severity":"HIGH","directedAt":"AUTHOR_OF_COMMENT","language":"en","recommendedAction":"REMOVE","censoredText":"Einstein is an *******","classificationMeta":{"INSULT":{"severity":"MEDIUM"}},"detectedUrls":[]}}},"neutral":{"title":"neutral","summary":"Neutral, keep","value":{"textAnalysis":{"type":"POSITIVE","classifications":["SUPPORTIVE"],"severity":"NONE","directedAt":"NONE","language":"en","recommendedAction":"KEEP","censoredText":"Awesome news !","classificationMeta":{},"detectedUrls":[]}}},"withUrl":{"title":"withUrl","summary":"Text containing a URL","value":{"textAnalysis":{"type":"NEUTRAL","classifications":[],"severity":"NONE","directedAt":"NONE","language":"en","recommendedAction":"KEEP","censoredText":"More details on https://www.example.com/shop","classificationMeta":{},"detectedUrls":[{"url":"https://www.example.com/shop"}]}}},"textSequence":{"title":"textSequence","summary":"Last text of a toxic text sequence","value":{"textAnalysis":{"type":"NEUTRAL","classifications":[],"severity":"NONE","directedAt":"NONE","language":"en","recommendedAction":"KEEP","censoredText":"you","classificationMeta":{},"detectedUrls":[],"textSequence":{"references":["comment-1001","comment-1002","comment-1003"],"textAnalysis":{"type":"HATEFUL","classifications":["THREAT"],"severity":"CRITICAL","directedAt":"SINGLE_PERSON","language":"en","recommendedAction":"REMOVE","censoredText":"I am going to **** you","classificationMeta":{"THREAT":{"severity":"CRITICAL"}},"detectedUrls":[]}}}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"08eccfac-2df3-486f-8b0a-e4db630cfb1b":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization","x-default":"ApiKey \u003cyour-api-key>","description":"API key authentication. Provide your key in the `Authorization`\nheader with the `ApiKey` scheme:\n```\nAuthorization: ApiKey \u003cyour-api-key>\n```\n","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"1dc84158-06de-45a4-852f-82acf66f3420":{"url":"https://api.bodyguard.ai"}},"schemas":{"d2d86bf0-3623-4a70-887b-fce0dd39cff4":{"type":"object","description":"Moderation result for a piece of text.","properties":{"type":{"type":"string","description":"The broad category of the analyzed content. For finer-grained detail, see `classifications`. See the [text taxonomy](/en/documentation/taxonomy/text-classifications) for the full description of each value.","enum":["NEUTRAL","HATEFUL","POSITIVE","NONE","HATE_SPEECH","CRITICISM","UNDESIRABLE"]},"classifications":{"type":"array","description":"Fine-grained labels describing the content (e.g. `INSULT`, `SPAM`). See the [text taxonomy](/en/documentation/taxonomy/text-classifications) for the full list and descriptions of each classification.","items":{"type":"string"}},"severity":{"type":"string","description":"Severity of the detected issue, if any. See the [text taxonomy](/en/documentation/taxonomy/text-classifications) for the full description of each value.","enum":["LOW","MEDIUM","HIGH","CRITICAL","NONE"]},"directedAt":{"type":"string","description":"Who or what the content is directed at. See the [text taxonomy](/en/documentation/taxonomy/text-classifications) for the full description of each value.","enum":["USER","USER_FAMILY","SINGLE_PERSON","GROUP","EVERYONE","AUTHOR_OF_COMMENT","HATERS","NONE","ENTITY"]},"language":{"type":"string","description":"Detected language as an ISO 639-1 code."},"recommendedAction":{"type":"string","description":"The moderation action Bodyguard recommends you apply to this content.","enum":["KEEP","REMOVE","WATCH"]},"censoredText":{"type":"string","description":"The original text with sensitive content censored with `*`."},"classificationMeta":{"type":"object","additionalProperties":{"type":"object","description":"Additional metadata for each detected classification.\n**Important:** Bodyguard cannot guarantee that this metadata will be present for every classification — for example, some non-toxic classifications may not have any.\"\n","properties":{"severity":{"type":"string","description":"Severity of the detected issue, if any. See the [text taxonomy](/en/documentation/taxonomy/text-classifications) for the full description of each value.","enum":["LOW","MEDIUM","HIGH","CRITICAL","NONE"]}}}},"detectedUrls":{"type":"array","description":"URLs found in the text. Empty if no URL was found.","items":{"type":"object","description":"A URL found in the analyzed content.","properties":{"url":{"type":"string","description":"The URL found in the content."}}}},"textSequence":{"type":"object","description":"Present only when the [text sequence](/en/api-reference/concepts#text-sequence) ending with this text was detected as problematic. Absent otherwise.","properties":{"references":{"type":"array","description":"The `reference` of every text in the sequence, in order, including the current one.","items":{"type":"string"}},"textAnalysis":{"oneOf":[{}]}}}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","x-default":"ApiKey \u003cyour-api-key>","description":"API key authentication. Provide your key in the `Authorization`\nheader with the `ApiKey` scheme:\n```\nAuthorization: ApiKey \u003cyour-api-key>\n```\n","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"Authorization","type":"string","description":"API key authentication. Provide your key in the `Authorization`\nheader with the `ApiKey` scheme:\n```\nAuthorization: ApiKey \u003cyour-api-key>\n```\n","isRequired":true,"default":"ApiKey \u003cyour-api-key>","typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"Authorization"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi/analyze.openapi.yaml"},"subdomain":"bodyguardai","siteName":"Bodyguard","title":"Analyze a text message - Bodyguard","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/analyze/analyze-a-text-message","matchLevel":0},"fr":{"href":"/api-reference/analyze/analyze-a-text-message","matchLevel":0}}},"lastModified":"2026-11-09T17:04:19.685Z","originalFileLocation":"api-reference/analyze/analyze-a-text-message.mdx","locale":"en"},"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=\"light\"}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=\"Analyzes a text message/comment and returns its moderation classification, severity, target, detected language, and a recommended moderation action. Before diving in, we recommend reading the text taxonomy to understand the classifications, severities, and moderation signals returned by this endpoint.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Bodyguard\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/bodyguardai/E1zFw9LKjEKggkfV/_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/bodyguardai/E1zFw9LKjEKggkfV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/bodyguardai/E1zFw9LKjEKggkfV/_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/bodyguardai/E1zFw9LKjEKggkfV/_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/bodyguardai/E1zFw9LKjEKggkfV/_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/bodyguardai/E1zFw9LKjEKggkfV/_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/bodyguardai/E1zFw9LKjEKggkfV/_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/bodyguardai/E1zFw9LKjEKggkfV/_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/bodyguardai/E1zFw9LKjEKggkfV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Analyze a text message - Bodyguard\">\u003cmeta data-mint-head property=\"og:description\" content=\"Analyzes a text message/comment and returns its moderation classification, severity, target, detected language, and a recommended moderation action. Before diving in, we recommend reading the text taxonomy to understand the classifications, severities, and moderation signals returned by this endpoint.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Bodyguard\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.bodyguard.ai/api-reference/analyze/analyze-a-text-message\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://bodyguardai.mintlify.site/_mintlify/api/og/v2?division=Analyze\u0026amp;title=Analyze+a+text+message\u0026amp;description=Analyzes+a+text+message%2Fcomment+and+returns+its+moderation+classification%2C+severity%2C+target%2C+detected+language%2C+and+a+recommended+moderation+action.%0A%0ABefore+div\u0026amp;theme=3d68e2413a8292ff1be9b1e3\u0026amp;signature=46433b2f38d15e27602a5f760850afd0cad30361fbd71b919c0ad2c96d61d66a\">\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=\"Analyze a text message - Bodyguard\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Analyzes a text message/comment and returns its moderation classification, severity, target, detected language, and a recommended moderation action. Before diving in, we recommend reading the text taxonomy to understand the classifications, severities, and moderation signals returned by this endpoint.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bodyguardai.mintlify.site/_mintlify/api/og/v2?division=Analyze\u0026amp;title=Analyze+a+text+message\u0026amp;description=Analyzes+a+text+message%2Fcomment+and+returns+its+moderation+classification%2C+severity%2C+target%2C+detected+language%2C+and+a+recommended+moderation+action.%0A%0ABefore+div\u0026amp;theme=3d68e2413a8292ff1be9b1e3\u0026amp;signature=46433b2f38d15e27602a5f760850afd0cad30361fbd71b919c0ad2c96d61d66a\">\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/bodyguardai/E1zFw9LKjEKggkfV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Bodyguard\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#003c7c\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.bodyguard.ai/api-reference/analyze/analyze-a-text-message\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/analyze/analyze-a-text-message.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.bodyguard.ai/#organization\",\"name\":\"Bodyguard\",\"url\":\"https://docs.bodyguard.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/bodyguardai/CXXaMNDOCYmwXYkN/images/logo-light.svg?fit=max\u0026auto=format\u0026n=CXXaMNDOCYmwXYkN\u0026q=85\u0026s=53fbcc63f9cb65a2b24e72faf85fcbc6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.bodyguard.ai#website\",\"name\":\"Bodyguard\",\"url\":\"https://docs.bodyguard.ai\",\"publisher\":{\"@id\":\"https://docs.bodyguard.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-a-text-message#webpage\",\"url\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-a-text-message\",\"name\":\"Analyze a text message\",\"description\":\"Analyzes a text message/comment and returns its moderation classification, severity, target, detected language, and a recommended moderation action. Before diving in, we recommend reading the text taxonomy to understand the classifications, severities, and moderation signals returned by this endpoint.\",\"dateModified\":\"2026-11-09T17:04:19.685Z\",\"isPartOf\":{\"@id\":\"https://docs.bodyguard.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-a-text-message#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-a-text-message#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Bodyguard\",\"item\":\"https://docs.bodyguard.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Analyze a text message\",\"item\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-a-text-message\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-a-text-message#apireference\",\"headline\":\"Analyze a text message\",\"name\":\"Analyze a text message\",\"description\":\"Analyzes a text message/comment and returns its moderation classification, severity, target, detected language, and a recommended moderation action. Before diving in, we recommend reading the text taxonomy to understand the classifications, severities, and moderation signals returned by this endpoint.\",\"url\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-a-text-message\",\"mainEntityOfPage\":{\"@id\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-a-text-message#webpage\"},\"dateModified\":\"2026-11-09T17:04:19.685Z\",\"publisher\":{\"@id\":\"https://docs.bodyguard.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.bodyguard.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Bodyguard\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Bodyguard\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/analyze/analyze-a-text-message.md","siteName":"Bodyguard","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/en/documentation/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","expanded":true,"pages":[{"title":"Introduction","href":"/en/api-reference/introduction"},{"title":"Key concepts","href":"/en/api-reference/concepts"},{"title":"Reseller Guide","href":"/en/api-reference/reseller"}]},{"group":"Webhooks","expanded":true,"pages":[{"title":"Introduction to webhooks","sidebarTitle":"Introduction","href":"/en/api-reference/webhooks/introduction"},{"title":"Webhooks quick start","sidebarTitle":"Quick start","href":"/en/api-reference/webhooks/quick-start"},{"title":"Webhook configuration","sidebarTitle":"Configuration","href":"/en/api-reference/webhooks/configuration"},{"title":"Handling webhook errors","sidebarTitle":"Handling errors","description":"Understand which responses Bodyguard accepts from your endpoint, the retry policy, and the emails sent when deliveries fail.","href":"/en/api-reference/webhooks/handling-errors"}]},{"group":"Reference","expanded":true,"pages":[{"group":"Analyze","expanded":true,"pages":[{"title":"Analyze a text message","deprecated":null,"version":null,"openapi":"/openapi/analyze.openapi.yaml post /analyze/v1/text","href":"/api-reference/analyze/analyze-a-text-message"},{"title":"Analyze an image","description":"Analyzes an image by URL or by image bytes. Returns a list of classifications for the image and, when OCR is enabled, the text extracted from the image along with its own text analysis.\n\nSend the image in one of two ways:\n\n- **By URL:** an `application/json` body with `imageUrl`.\n- **By bytes:** a `multipart/form-data` body with the image file in the `imageData` part. The other fields are sent as form fields.\n\nOnly **PNG**, **JPEG** and **WebP** images are accepted, and the image must not exceed **1 MiB** (1,048,576 bytes). Requests with an unsupported format or an oversized image are rejected with a `400 Bad Request`.\n\nBefore diving in, we recommend reading the [image taxonomy](/en/documentation/taxonomy/image-classifications) to understand the classifications returned by this endpoint.\n","deprecated":null,"version":null,"openapi":"/openapi/analyze.openapi.yaml post /analyze/v1/image","href":"/api-reference/analyze/analyze-an-image"},{"title":"Analyze a username","deprecated":null,"version":null,"openapi":"/openapi/analyze.openapi.yaml post /analyze/v1/username","href":"/api-reference/analyze/analyze-a-username"}]},{"group":"Feedback","expanded":true,"pages":[{"title":"Text analysis feedback","deprecated":null,"version":null,"openapi":"/openapi/feedback.openapi.yaml post /feedback/v1/text","href":"/api-reference/feedback/text-analysis-feedback"},{"title":"Image analysis feedback","deprecated":null,"version":null,"openapi":"/openapi/feedback.openapi.yaml post /feedback/v1/image","href":"/api-reference/feedback/image-analysis-feedback"},{"title":"Username analysis feedback","deprecated":null,"version":null,"openapi":"/openapi/feedback.openapi.yaml post /feedback/v1/username","href":"/api-reference/feedback/username-analysis-feedback"}]},{"group":"Webhooks","expanded":true,"pages":[{"title":"Webhook payloads","sidebarTitle":"Payloads","href":"/en/api-reference/reference/webhooks/payloads"}]}]}]},{"tab":"Migration guide","hidden":true,"pages":[{"title":"Migration guide","href":"/en/migration-guide/overview"}]}]},{"language":"fr","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/fr/documentation/introduction"}]},{"tab":"Référence API","groups":[{"group":"Documentation API","expanded":true,"pages":[{"title":"Introduction","href":"/fr/api-reference/introduction"},{"title":"Concepts clés","href":"/fr/api-reference/concepts"},{"title":"Guide Revendeur","href":"/fr/api-reference/reseller"}]},{"group":"Webhooks","expanded":true,"pages":[{"title":"Introduction aux webhooks","sidebarTitle":"Introduction","href":"/fr/api-reference/webhooks/introduction"},{"title":"Démarrage rapide des webhooks","sidebarTitle":"Démarrage rapide","href":"/fr/api-reference/webhooks/quick-start"},{"title":"Configuration des webhooks","sidebarTitle":"Configuration","href":"/fr/api-reference/webhooks/configuration"},{"title":"Gérer les erreurs des webhooks","sidebarTitle":"Gérer les erreurs","description":"Comprenez quelles réponses Bodyguard accepte de votre endpoint, la politique de nouvelle tentative et les e-mails envoyés en cas d'échec de livraison.","href":"/fr/api-reference/webhooks/handling-errors"}]},{"group":"Référence","expanded":true,"pages":[{"group":"Analyze","expanded":true,"pages":[{"title":"Analyze a text message","deprecated":null,"version":null,"openapi":"/openapi/analyze.openapi.yaml post /analyze/v1/text","href":"/api-reference/analyze/analyze-a-text-message"},{"title":"Analyze an image","description":"Analyzes an image by URL or by image bytes. Returns a list of classifications for the image and, when OCR is enabled, the text extracted from the image along with its own text analysis.\n\nSend the image in one of two ways:\n\n- **By URL:** an `application/json` body with `imageUrl`.\n- **By bytes:** a `multipart/form-data` body with the image file in the `imageData` part. The other fields are sent as form fields.\n\nOnly **PNG**, **JPEG** and **WebP** images are accepted, and the image must not exceed **1 MiB** (1,048,576 bytes). Requests with an unsupported format or an oversized image are rejected with a `400 Bad Request`.\n\nBefore diving in, we recommend reading the [image taxonomy](/en/documentation/taxonomy/image-classifications) to understand the classifications returned by this endpoint.\n","deprecated":null,"version":null,"openapi":"/openapi/analyze.openapi.yaml post /analyze/v1/image","href":"/api-reference/analyze/analyze-an-image"},{"title":"Analyze a username","deprecated":null,"version":null,"openapi":"/openapi/analyze.openapi.yaml post /analyze/v1/username","href":"/api-reference/analyze/analyze-a-username"}]},{"group":"Feedback","expanded":true,"pages":[{"title":"Text analysis feedback","deprecated":null,"version":null,"openapi":"/openapi/feedback.openapi.yaml post /feedback/v1/text","href":"/api-reference/feedback/text-analysis-feedback"},{"title":"Image analysis feedback","deprecated":null,"version":null,"openapi":"/openapi/feedback.openapi.yaml post /feedback/v1/image","href":"/api-reference/feedback/image-analysis-feedback"},{"title":"Username analysis feedback","deprecated":null,"version":null,"openapi":"/openapi/feedback.openapi.yaml post /feedback/v1/username","href":"/api-reference/feedback/username-analysis-feedback"}]},{"group":"Webhooks","expanded":true,"pages":[{"title":"Payloads des webhooks","sidebarTitle":"Payloads","href":"/fr/api-reference/reference/webhooks/payloads"}]}]}]},{"tab":"Guide de migration","hidden":true,"pages":[{"title":"Guide de migration","href":"/fr/migration-guide/overview"}]}]}]},"basePath":"","title":"Analyze a text message - Bodyguard","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-jJHA3WSo.js","utils-DbZn3Mjn.js","cloneDeep-CnBnaSyy.js","_Uint8Array-CMQtTgBR.js","isObject-FP1Yky1u.js","utils-Bl2DvzOJ.js","addUniqueKeysToSchema-BwOLo9p1.js","snippetPresets-BBiPpKa-.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-C0px4Tml.js","isEqual-zAyttAAO.js","usePlaygroundInputsStore-Dell6dGw.js","shallow-0VKqkSqN.js","getApiPlaygroundDisplay-CP_ctPEB.js","CodeSnippet-5L35ic0s.js","CodeSnippets-DOXbNhJw.js","Page-DRLI_2Ue.js","getPastedJson-VhzT9m2P.js","icon-CD8_AtCO.js","MethodPill-DGgOMftG.js","DuplicateIcon-DZ6A_EtN.js","createIcon-DUl4oM5f.js","DynamicMarkdown-BGHukeRM.js","SectionHeading-ChrEUs8u.js","axios-vUo_bRtp.js","Markdown-Dj-na-_-.js","dist-C5gjFYHe.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","AssistantPageLink-DEBW87tT.js"]}