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.
Send the image in one of two ways:
By URL: an application/json body with imageUrl.
By bytes: a multipart/form-data body with the image file in the imageData part. The other fields are sent as form fields.
Only 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.
Before diving in, we recommend reading the image taxonomy to understand the classifications returned by this endpoint.
API key authentication. Provide your key in the Authorization
header with the ApiKey scheme:
Authorization: ApiKey <your-api-key>
Body
application/jsonmultipart/form-data
Option 1
Option 2
channelId
string
required
Identifier of the channel the image belongs to. Provided by Bodyguard.
imageUrl
string<uri>
required
Public URL of the image to analyze, sent in an application/json body. The image must be a PNG, JPEG or WebP file no larger than 1 MiB. Only one of imageUrl or imageData can be provided.
When fetching the image, Bodyguard sends the user-agent Bodyguard-Analyze/1.0 (+https://bodyguard.ai/bot). If you allowlist Bodyguard on a CDN or firewall, match on the stable Bodyguard-Analyze product token rather than the full string — the version number and bot URL may change over time. Image fetches are not sent from a fixed set of IP addresses, so the user-agent is the signal to allowlist against.
The image file, sent in a multipart/form-data body. The image must be a PNG, JPEG or WebP file no larger than 1 MiB. Only one of imageUrl or imageData can be provided.
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.
imageAnalysis
object
Moderation result for an image.
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":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/analyze/analyze-an-image","slug":"/api-reference/analyze/analyze-an-image","pageMetadata":{"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","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 code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"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 }), \"\\n\", _jsx(_components.p, {\n children: \"Send the image in one of two ways:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"By URL:\"\n }), \" an \", _jsx(_components.code, {\n children: \"application/json\"\n }), \" body with \", _jsx(_components.code, {\n children: \"imageUrl\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"By bytes:\"\n }), \" a \", _jsx(_components.code, {\n children: \"multipart/form-data\"\n }), \" body with the image file in the \", _jsx(_components.code, {\n children: \"imageData\"\n }), \" part. The other fields are sent as form fields.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Only \", _jsx(_components.strong, {\n children: \"PNG\"\n }), \", \", _jsx(_components.strong, {\n children: \"JPEG\"\n }), \" and \", _jsx(_components.strong, {\n children: \"WebP\"\n }), \" images are accepted, and the image must not exceed \", _jsx(_components.strong, {\n children: \"1 MiB\"\n }), \" (1,048,576 bytes). Requests with an unsupported format or an oversized image are rejected with a \", _jsx(_components.code, {\n children: \"400 Bad Request\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Before diving in, we recommend reading the \", _jsx(_components.a, {\n href: \"/en/documentation/taxonomy/image-classifications\",\n children: \"image taxonomy\"\n }), \" to understand the classifications 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 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","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Analyze"],"operationId":"bodyguard.analyze.v1.AnalyzeImage","summary":"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","requestBody":"07c01898-3aba-4298-8de9-ef8601b60e21","responses":{"200":"9f706c48-a4ad-44c5-a0e4-b38d0b930cf2"},"method":"post","type":"path","servers":["1dc84158-06de-45a4-852f-82acf66f3420"],"security":["08eccfac-2df3-486f-8b0a-e4db630cfb1b"],"path":"/analyze/v1/image","baseUrlOptions":["https://api.bodyguard.ai"],"title":"Analyze an image","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["channelId","imageUrl"],"properties":{"channelId":{"type":"string","description":"Identifier of the [channel](/en/api-reference/concepts#channel) the image belongs to. Provided by Bodyguard.","isRequired":true,"uniqueKey":"oneOf.0.channelId","typeLabel":"string"},"imageUrl":{"type":"string","format":"uri","description":"Public URL of the image to analyze, sent in an `application/json` body. The image must be a PNG, JPEG or WebP file no larger than 1 MiB. Only one of `imageUrl` or `imageData` can be provided.\n\nWhen fetching the image, Bodyguard sends the user-agent `Bodyguard-Analyze/1.0 (+https://bodyguard.ai/bot)`. If you allowlist Bodyguard on a CDN or firewall, match on the stable `Bodyguard-Analyze` product token rather than the full string — the version number and bot URL may change over time. Image fetches are not sent from a fixed set of IP addresses, so the user-agent is the signal to allowlist against.\n","isRequired":true,"uniqueKey":"oneOf.0.imageUrl","typeLabel":"string\u003curi>"},"publishedAt":{"type":"string","format":"date-time","description":"[Publication date](/en/api-reference/concepts#publication-date-publishedat) of the image.","uniqueKey":"oneOf.0.publishedAt","typeLabel":"string\u003cdate-time>"},"imageData":{"type":"string","format":"binary","description":"The image file, sent in a `multipart/form-data` body. The image must be a PNG, JPEG or WebP file no larger than 1 MiB. Only one of `imageUrl` or `imageData` can be provided.","uniqueKey":"oneOf.0.imageData","typeLabel":"file"},"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":"oneOf.0.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":"oneOf.0.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":"oneOf.0.post.oneOf.0.publishedAt","typeLabel":"string\u003cdate-time>"},"permalink":{"type":"string","format":"uri","description":"Public URL of the post.","uniqueKey":"oneOf.0.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":"oneOf.0.post.oneOf.0.countryCodes.items.[INDEX]","typeLabel":"string"},"example":["US","CA"],"uniqueKey":"oneOf.0.post.oneOf.0.countryCodes","typeLabel":"string[]"}},"uniqueKey":"oneOf.0.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":"oneOf.0.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":"oneOf.0.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":"oneOf.0.post.oneOf.1.publishedAt","typeLabel":"string\u003cdate-time>"},"permalink":{"type":"string","format":"uri","description":"Public URL of the post.","uniqueKey":"oneOf.0.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":"oneOf.0.post.oneOf.1.countryCodes.items.[INDEX]","typeLabel":"string"},"example":["US","CA"],"uniqueKey":"oneOf.0.post.oneOf.1.countryCodes","typeLabel":"string[]"}},"uniqueKey":"oneOf.0.post.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.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":"oneOf.0.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":"oneOf.0.author.oneOf.0.reference","typeLabel":"string"},"permalink":{"type":"string","format":"uri","description":"Public URL of the author's profile.","uniqueKey":"oneOf.0.author.oneOf.0.permalink","typeLabel":"string\u003curi>"},"profilePictureUrl":{"type":"string","format":"uri","description":"URL of the author's profile picture.","uniqueKey":"oneOf.0.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":"oneOf.0.author.oneOf.0.countryCode","typeLabel":"string"}},"uniqueKey":"oneOf.0.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":"oneOf.0.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":"oneOf.0.author.oneOf.1.username","typeLabel":"string"},"permalink":{"type":"string","format":"uri","description":"Public URL of the author's profile.","uniqueKey":"oneOf.0.author.oneOf.1.permalink","typeLabel":"string\u003curi>"},"profilePictureUrl":{"type":"string","format":"uri","description":"URL of the author's profile picture.","uniqueKey":"oneOf.0.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":"oneOf.0.author.oneOf.1.countryCode","typeLabel":"string"}},"uniqueKey":"oneOf.0.author.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.author","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["channelId","imageData"],"properties":{"channelId":{"type":"string","description":"Identifier of the [channel](/en/api-reference/concepts#channel) the image belongs to. Provided by Bodyguard.","isRequired":true,"uniqueKey":"oneOf.1.channelId","typeLabel":"string"},"imageData":{"type":"string","format":"binary","description":"The image file, sent in a `multipart/form-data` body. The image must be a PNG, JPEG or WebP file no larger than 1 MiB. Only one of `imageUrl` or `imageData` can be provided.","isRequired":true,"uniqueKey":"oneOf.1.imageData","typeLabel":"file"},"publishedAt":{"type":"string","format":"date-time","description":"[Publication date](/en/api-reference/concepts#publication-date-publishedat) of the image.","uniqueKey":"oneOf.1.publishedAt","typeLabel":"string\u003cdate-time>"},"imageUrl":{"type":"string","format":"uri","description":"Public URL of the image to analyze, sent in an `application/json` body. The image must be a PNG, JPEG or WebP file no larger than 1 MiB. Only one of `imageUrl` or `imageData` can be provided.\n\nWhen fetching the image, Bodyguard sends the user-agent `Bodyguard-Analyze/1.0 (+https://bodyguard.ai/bot)`. If you allowlist Bodyguard on a CDN or firewall, match on the stable `Bodyguard-Analyze` product token rather than the full string — the version number and bot URL may change over time. Image fetches are not sent from a fixed set of IP addresses, so the user-agent is the signal to allowlist against.\n","uniqueKey":"oneOf.1.imageUrl","typeLabel":"string\u003curi>"},"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":"oneOf.1.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":"oneOf.1.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":"oneOf.1.post.oneOf.0.publishedAt","typeLabel":"string\u003cdate-time>"},"permalink":{"type":"string","format":"uri","description":"Public URL of the post.","uniqueKey":"oneOf.1.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":"oneOf.1.post.oneOf.0.countryCodes.items.[INDEX]","typeLabel":"string"},"example":["US","CA"],"uniqueKey":"oneOf.1.post.oneOf.0.countryCodes","typeLabel":"string[]"}},"uniqueKey":"oneOf.1.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":"oneOf.1.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":"oneOf.1.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":"oneOf.1.post.oneOf.1.publishedAt","typeLabel":"string\u003cdate-time>"},"permalink":{"type":"string","format":"uri","description":"Public URL of the post.","uniqueKey":"oneOf.1.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":"oneOf.1.post.oneOf.1.countryCodes.items.[INDEX]","typeLabel":"string"},"example":["US","CA"],"uniqueKey":"oneOf.1.post.oneOf.1.countryCodes","typeLabel":"string[]"}},"uniqueKey":"oneOf.1.post.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.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":"oneOf.1.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":"oneOf.1.author.oneOf.0.reference","typeLabel":"string"},"permalink":{"type":"string","format":"uri","description":"Public URL of the author's profile.","uniqueKey":"oneOf.1.author.oneOf.0.permalink","typeLabel":"string\u003curi>"},"profilePictureUrl":{"type":"string","format":"uri","description":"URL of the author's profile picture.","uniqueKey":"oneOf.1.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":"oneOf.1.author.oneOf.0.countryCode","typeLabel":"string"}},"uniqueKey":"oneOf.1.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":"oneOf.1.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":"oneOf.1.author.oneOf.1.username","typeLabel":"string"},"permalink":{"type":"string","format":"uri","description":"Public URL of the author's profile.","uniqueKey":"oneOf.1.author.oneOf.1.permalink","typeLabel":"string\u003curi>"},"profilePictureUrl":{"type":"string","format":"uri","description":"URL of the author's profile picture.","uniqueKey":"oneOf.1.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":"oneOf.1.author.oneOf.1.countryCode","typeLabel":"string"}},"uniqueKey":"oneOf.1.author.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.author","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"byUrl":{"title":"byUrl","summary":"Analyze an image by URL","value":{"channelId":"\u003cyour-channel-id>","publishedAt":"2026-04-23T10:30:00.000Z","imageUrl":"https://cdn.example.com/uploads/photo.jpg"}},"withContext":{"title":"withContext","summary":"Analyze an image with an author and post context","value":{"channelId":"\u003cyour-channel-id>","publishedAt":"2026-04-23T10:30:00.000Z","imageUrl":"https://cdn.example.com/uploads/photo.jpg","author":{"username":"johndoe","reference":"user-987","countryCode":"US"},"post":{"title":"New product launch","reference":"post-42","publishedAt":"2025-01-15T09:00:00Z","countryCodes":["US","CA"]}}}},"exampleType":"examples"},"multipart/form-data":{"schema":{"oneOf":[{"type":"object","required":["channelId","imageUrl"],"properties":{"channelId":{"type":"string","description":"Identifier of the [channel](/en/api-reference/concepts#channel) the image belongs to. Provided by Bodyguard.","isRequired":true,"uniqueKey":"oneOf.0.channelId","typeLabel":"string"},"imageUrl":{"type":"string","format":"uri","description":"Public URL of the image to analyze, sent in an `application/json` body. The image must be a PNG, JPEG or WebP file no larger than 1 MiB. Only one of `imageUrl` or `imageData` can be provided.\n\nWhen fetching the image, Bodyguard sends the user-agent `Bodyguard-Analyze/1.0 (+https://bodyguard.ai/bot)`. If you allowlist Bodyguard on a CDN or firewall, match on the stable `Bodyguard-Analyze` product token rather than the full string — the version number and bot URL may change over time. Image fetches are not sent from a fixed set of IP addresses, so the user-agent is the signal to allowlist against.\n","isRequired":true,"uniqueKey":"oneOf.0.imageUrl","typeLabel":"string\u003curi>"},"publishedAt":{"type":"string","format":"date-time","description":"[Publication date](/en/api-reference/concepts#publication-date-publishedat) of the image.","uniqueKey":"oneOf.0.publishedAt","typeLabel":"string\u003cdate-time>"},"imageData":{"type":"string","format":"binary","description":"The image file, sent in a `multipart/form-data` body. The image must be a PNG, JPEG or WebP file no larger than 1 MiB. Only one of `imageUrl` or `imageData` can be provided.","uniqueKey":"oneOf.0.imageData","typeLabel":"file"},"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":"oneOf.0.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":"oneOf.0.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":"oneOf.0.post.oneOf.0.publishedAt","typeLabel":"string\u003cdate-time>"},"permalink":{"type":"string","format":"uri","description":"Public URL of the post.","uniqueKey":"oneOf.0.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":"oneOf.0.post.oneOf.0.countryCodes.items.[INDEX]","typeLabel":"string"},"example":["US","CA"],"uniqueKey":"oneOf.0.post.oneOf.0.countryCodes","typeLabel":"string[]"}},"uniqueKey":"oneOf.0.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":"oneOf.0.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":"oneOf.0.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":"oneOf.0.post.oneOf.1.publishedAt","typeLabel":"string\u003cdate-time>"},"permalink":{"type":"string","format":"uri","description":"Public URL of the post.","uniqueKey":"oneOf.0.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":"oneOf.0.post.oneOf.1.countryCodes.items.[INDEX]","typeLabel":"string"},"example":["US","CA"],"uniqueKey":"oneOf.0.post.oneOf.1.countryCodes","typeLabel":"string[]"}},"uniqueKey":"oneOf.0.post.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.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":"oneOf.0.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":"oneOf.0.author.oneOf.0.reference","typeLabel":"string"},"permalink":{"type":"string","format":"uri","description":"Public URL of the author's profile.","uniqueKey":"oneOf.0.author.oneOf.0.permalink","typeLabel":"string\u003curi>"},"profilePictureUrl":{"type":"string","format":"uri","description":"URL of the author's profile picture.","uniqueKey":"oneOf.0.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":"oneOf.0.author.oneOf.0.countryCode","typeLabel":"string"}},"uniqueKey":"oneOf.0.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":"oneOf.0.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":"oneOf.0.author.oneOf.1.username","typeLabel":"string"},"permalink":{"type":"string","format":"uri","description":"Public URL of the author's profile.","uniqueKey":"oneOf.0.author.oneOf.1.permalink","typeLabel":"string\u003curi>"},"profilePictureUrl":{"type":"string","format":"uri","description":"URL of the author's profile picture.","uniqueKey":"oneOf.0.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":"oneOf.0.author.oneOf.1.countryCode","typeLabel":"string"}},"uniqueKey":"oneOf.0.author.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.author","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["channelId","imageData"],"properties":{"channelId":{"type":"string","description":"Identifier of the [channel](/en/api-reference/concepts#channel) the image belongs to. Provided by Bodyguard.","isRequired":true,"uniqueKey":"oneOf.1.channelId","typeLabel":"string"},"imageData":{"type":"string","format":"binary","description":"The image file, sent in a `multipart/form-data` body. The image must be a PNG, JPEG or WebP file no larger than 1 MiB. Only one of `imageUrl` or `imageData` can be provided.","isRequired":true,"uniqueKey":"oneOf.1.imageData","typeLabel":"file"},"publishedAt":{"type":"string","format":"date-time","description":"[Publication date](/en/api-reference/concepts#publication-date-publishedat) of the image.","uniqueKey":"oneOf.1.publishedAt","typeLabel":"string\u003cdate-time>"},"imageUrl":{"type":"string","format":"uri","description":"Public URL of the image to analyze, sent in an `application/json` body. The image must be a PNG, JPEG or WebP file no larger than 1 MiB. Only one of `imageUrl` or `imageData` can be provided.\n\nWhen fetching the image, Bodyguard sends the user-agent `Bodyguard-Analyze/1.0 (+https://bodyguard.ai/bot)`. If you allowlist Bodyguard on a CDN or firewall, match on the stable `Bodyguard-Analyze` product token rather than the full string — the version number and bot URL may change over time. Image fetches are not sent from a fixed set of IP addresses, so the user-agent is the signal to allowlist against.\n","uniqueKey":"oneOf.1.imageUrl","typeLabel":"string\u003curi>"},"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":"oneOf.1.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":"oneOf.1.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":"oneOf.1.post.oneOf.0.publishedAt","typeLabel":"string\u003cdate-time>"},"permalink":{"type":"string","format":"uri","description":"Public URL of the post.","uniqueKey":"oneOf.1.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":"oneOf.1.post.oneOf.0.countryCodes.items.[INDEX]","typeLabel":"string"},"example":["US","CA"],"uniqueKey":"oneOf.1.post.oneOf.0.countryCodes","typeLabel":"string[]"}},"uniqueKey":"oneOf.1.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":"oneOf.1.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":"oneOf.1.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":"oneOf.1.post.oneOf.1.publishedAt","typeLabel":"string\u003cdate-time>"},"permalink":{"type":"string","format":"uri","description":"Public URL of the post.","uniqueKey":"oneOf.1.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":"oneOf.1.post.oneOf.1.countryCodes.items.[INDEX]","typeLabel":"string"},"example":["US","CA"],"uniqueKey":"oneOf.1.post.oneOf.1.countryCodes","typeLabel":"string[]"}},"uniqueKey":"oneOf.1.post.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.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":"oneOf.1.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":"oneOf.1.author.oneOf.0.reference","typeLabel":"string"},"permalink":{"type":"string","format":"uri","description":"Public URL of the author's profile.","uniqueKey":"oneOf.1.author.oneOf.0.permalink","typeLabel":"string\u003curi>"},"profilePictureUrl":{"type":"string","format":"uri","description":"URL of the author's profile picture.","uniqueKey":"oneOf.1.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":"oneOf.1.author.oneOf.0.countryCode","typeLabel":"string"}},"uniqueKey":"oneOf.1.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":"oneOf.1.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":"oneOf.1.author.oneOf.1.username","typeLabel":"string"},"permalink":{"type":"string","format":"uri","description":"Public URL of the author's profile.","uniqueKey":"oneOf.1.author.oneOf.1.permalink","typeLabel":"string\u003curi>"},"profilePictureUrl":{"type":"string","format":"uri","description":"URL of the author's profile picture.","uniqueKey":"oneOf.1.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":"oneOf.1.author.oneOf.1.countryCode","typeLabel":"string"}},"uniqueKey":"oneOf.1.author.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.author","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"byFile":{"title":"byFile","summary":"Analyze an image file","value":{"channelId":"\u003cyour-channel-id>","publishedAt":"2026-04-23T10:30:00.000Z"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"9f706c48-a4ad-44c5-a0e4-b38d0b930cf2":{"description":"Analysis completed.","content":{"application/json":{"schema":{"type":"object","properties":{"imageAnalysis":{"type":"object","description":"Moderation result for an image.","properties":{"classifications":{"type":"array","description":"Classifications detected on the image itself. An empty array means the image was analyzed successfully and Bodyguard did not detect any sensitive content — it can be treated as safe.","items":{"type":"string","uniqueKey":"imageAnalysis.classifications.items.[INDEX]","typeLabel":"string"},"uniqueKey":"imageAnalysis.classifications","typeLabel":"string[]"},"classificationMeta":{"type":"object","additionalProperties":{"type":"object","description":"Additional metadata for each detected image classification. Keys match entries in `classifications`.","properties":{"confidenceScore":{"type":"number","format":"float","minimum":0,"maximum":1,"description":"Bodyguard's confidence that the classification applies to the image, between `0` and `1`. Higher means more confident. Relying on this score is discouraged: Bodyguard already filters out classifications whose confidence is too low, so the presence of a classification in the response is the signal you should use to decide whether to act on it.","uniqueKey":"imageAnalysis.classificationMeta.additionalProperties.confidenceScore","typeLabel":"number\u003cfloat>"}},"uniqueKey":"imageAnalysis.classificationMeta.additionalProperties","typeLabel":"object"},"uniqueKey":"imageAnalysis.classificationMeta","typeLabel":"object"},"detectedUrls":{"type":"array","description":"URLs found in the image itself, for example in a QR code. Empty if no URL was found. URLs found in the text of the image are returned in `ocrAnalysis.textAnalysis.detectedUrls`. Detected URLs do not change the classifications. *Additional pricing may apply.*","items":{"type":"object","description":"A URL found in the analyzed content.","properties":{"url":{"type":"string","description":"The URL found in the content.","uniqueKey":"imageAnalysis.detectedUrls.items.[INDEX].url","typeLabel":"string"}},"uniqueKey":"imageAnalysis.detectedUrls.items.[INDEX]","typeLabel":"object"},"uniqueKey":"imageAnalysis.detectedUrls","typeLabel":"object[]"},"ocrAnalysis":{"oneOf":[{"type":"object","description":"Text extracted from the image by OCR, together with a text analysis. `null` if OCR is disabled or no text was found in the image.","properties":{"text":{"type":"string","description":"The text snippet extracted from the image.","uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.0.text","typeLabel":"string"},"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":"imageAnalysis.ocrAnalysis.oneOf.0.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":"imageAnalysis.ocrAnalysis.oneOf.0.textAnalysis.classifications.items.[INDEX]","typeLabel":"string"},"uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.0.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":"imageAnalysis.ocrAnalysis.oneOf.0.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":"imageAnalysis.ocrAnalysis.oneOf.0.textAnalysis.directedAt","typeLabel":"enum\u003cstring>"},"language":{"type":"string","description":"Detected language as an ISO 639-1 code.","uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.0.textAnalysis.language","typeLabel":"string"},"recommendedAction":{"type":"string","description":"The moderation action Bodyguard recommends you apply to this content.","enum":["KEEP","REMOVE","WATCH"],"uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.0.textAnalysis.recommendedAction","typeLabel":"enum\u003cstring>"},"censoredText":{"type":"string","description":"The original text with sensitive content censored with `*`.","uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.0.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":"imageAnalysis.ocrAnalysis.oneOf.0.textAnalysis.classificationMeta.additionalProperties.severity","typeLabel":"enum\u003cstring>"}},"uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.0.textAnalysis.classificationMeta.additionalProperties","typeLabel":"object"},"uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.0.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":"imageAnalysis.ocrAnalysis.oneOf.0.textAnalysis.detectedUrls.items.[INDEX].url","typeLabel":"string"}},"uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.0.textAnalysis.detectedUrls.items.[INDEX]","typeLabel":"object"},"uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.0.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":"imageAnalysis.ocrAnalysis.oneOf.0.textAnalysis.textSequence.references.items.[INDEX]","typeLabel":"string"},"uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.0.textAnalysis.textSequence.references","typeLabel":"string[]"},"textAnalysis":{"oneOf":[{"$circularRef":"d2d86bf0-3623-4a70-887b-fce0dd39cff4"}],"uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.0.textAnalysis.textSequence.textAnalysis","typeLabel":"any"}},"uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.0.textAnalysis.textSequence","typeLabel":"object"}},"uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.0.textAnalysis","typeLabel":"object"}},"uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.0","typeLabel":"object"},{"type":"null","description":"Text extracted from the image by OCR, together with a text analysis. `null` if OCR is disabled or no text was found in the image.","uniqueKey":"imageAnalysis.ocrAnalysis.oneOf.1","typeLabel":"null"}],"uniqueKey":"imageAnalysis.ocrAnalysis","typeLabel":"object | null"}},"uniqueKey":"imageAnalysis","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"classified":{"title":"classified","summary":"Image classified as sexual content","value":{"imageAnalysis":{"classifications":["PARTIAL_NUDITY"],"classificationMeta":{"PARTIAL_NUDITY":{"confidenceScore":0.92}},"detectedUrls":[],"ocrAnalysis":{"text":"Text extracted from the image","textAnalysis":{"type":"HATEFUL","classifications":["INSULT"],"severity":"HIGH","directedAt":"AUTHOR_OF_COMMENT","language":"en","recommendedAction":"REMOVE","censoredText":"Einstein is an *******","classificationMeta":{"INSULT":{"severity":"MEDIUM"}},"detectedUrls":[]}}}}},"withUrls":{"title":"withUrls","summary":"Image with a QR code and a URL in its text","value":{"imageAnalysis":{"classifications":["QR_CODE"],"classificationMeta":{"QR_CODE":{"confidenceScore":0.98}},"detectedUrls":[{"url":"https://www.example.com/pay"}],"ocrAnalysis":{"text":"Visit https://www.example.com/deals","textAnalysis":{"type":"NEUTRAL","classifications":[],"severity":"NONE","directedAt":"NONE","language":"en","recommendedAction":"KEEP","censoredText":"Visit https://www.example.com/deals","classificationMeta":{},"detectedUrls":[{"url":"https://www.example.com/deals"}]}}}}}},"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 an image - Bodyguard","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/analyze/analyze-an-image","matchLevel":0},"fr":{"href":"/api-reference/analyze/analyze-an-image","matchLevel":0}}},"lastModified":"2026-11-09T17:04:19.700Z","originalFileLocation":"api-reference/analyze/analyze-an-image.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 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. Send the image in one of two ways: - By URL: an application/json body with imageUrl. - By bytes: a multipart/form-data body with the image file in the imageData part. The other fields are sent as form fields. Only 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. Before diving in, we recommend reading the image taxonomy to understand the classifications 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 an image - Bodyguard\">\u003cmeta data-mint-head property=\"og:description\" content=\"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. Send the image in one of two ways: - By URL: an application/json body with imageUrl. - By bytes: a multipart/form-data body with the image file in the imageData part. The other fields are sent as form fields. Only 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. Before diving in, we recommend reading the image taxonomy to understand the classifications 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-an-image\">\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+an+image\u0026amp;description=Analyzes+an+image+by+URL+or+by+image+bytes.+Returns+a+list+of+classifications+for+the+image+and%2C+when+OCR+is+enabled%2C+the+text+extracted+from+the+image+along+wi\u0026amp;theme=3d68e2413a8292ff1be9b1e3\u0026amp;signature=ac4ea90a0809fcad2a1fb21f98005624163a6a7d0e2a42aaafaa472d1d800bd1\">\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 an image - Bodyguard\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"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. Send the image in one of two ways: - By URL: an application/json body with imageUrl. - By bytes: a multipart/form-data body with the image file in the imageData part. The other fields are sent as form fields. Only 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. Before diving in, we recommend reading the image taxonomy to understand the classifications 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+an+image\u0026amp;description=Analyzes+an+image+by+URL+or+by+image+bytes.+Returns+a+list+of+classifications+for+the+image+and%2C+when+OCR+is+enabled%2C+the+text+extracted+from+the+image+along+wi\u0026amp;theme=3d68e2413a8292ff1be9b1e3\u0026amp;signature=ac4ea90a0809fcad2a1fb21f98005624163a6a7d0e2a42aaafaa472d1d800bd1\">\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-an-image\">\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-an-image.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-an-image#webpage\",\"url\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-an-image\",\"name\":\"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. Send the image in one of two ways: - By URL: an application/json body with imageUrl. - By bytes: a multipart/form-data body with the image file in the imageData part. The other fields are sent as form fields. Only 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. Before diving in, we recommend reading the image taxonomy to understand the classifications returned by this endpoint.\",\"dateModified\":\"2026-11-09T17:04:19.700Z\",\"isPartOf\":{\"@id\":\"https://docs.bodyguard.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-an-image#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-an-image#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reference\",\"item\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-a-text-message\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Analyze\",\"item\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-a-text-message\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Analyze an image\",\"item\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-an-image\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-an-image#apireference\",\"headline\":\"Analyze an image\",\"name\":\"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. Send the image in one of two ways: - By URL: an application/json body with imageUrl. - By bytes: a multipart/form-data body with the image file in the imageData part. The other fields are sent as form fields. Only 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. Before diving in, we recommend reading the image taxonomy to understand the classifications returned by this endpoint.\",\"url\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-an-image\",\"mainEntityOfPage\":{\"@id\":\"https://docs.bodyguard.ai/api-reference/analyze/analyze-an-image#webpage\"},\"dateModified\":\"2026-11-09T17:04:19.700Z\",\"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-an-image.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","href":"/en/api-reference/webhooks/handling-errors"}]},{"group":"Reference","expanded":true,"pages":[{"group":"Analyze","expanded":true,"pages":[{"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"},{"title":"Analyze an image","deprecated":null,"version":null,"openapi":"/openapi/analyze.openapi.yaml post /analyze/v1/image","href":"/api-reference/analyze/analyze-an-image"},{"title":"Analyze a username","description":"Analyzes a username string to detect inappropriate, offensive, or otherwise undesirable content and returns a list of classifications.\n\nBefore diving in, we recommend reading the [username taxonomy](/en/documentation/taxonomy/username-classifications) to understand the classifications returned by this endpoint.\n","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","href":"/fr/api-reference/webhooks/handling-errors"}]},{"group":"Référence","expanded":true,"pages":[{"group":"Analyze","expanded":true,"pages":[{"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"},{"title":"Analyze an image","deprecated":null,"version":null,"openapi":"/openapi/analyze.openapi.yaml post /analyze/v1/image","href":"/api-reference/analyze/analyze-an-image"},{"title":"Analyze a username","description":"Analyzes a username string to detect inappropriate, offensive, or otherwise undesirable content and returns a list of classifications.\n\nBefore diving in, we recommend reading the [username taxonomy](/en/documentation/taxonomy/username-classifications) to understand the classifications returned by this endpoint.\n","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 an image - 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"]}