> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bodyguard.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Key concepts

> Understand the core building blocks of the Bodyguard API: organizations, sources, channels, references, and publication dates.

## Organization

An **organization** is the top-level account entity in Bodyguard. It represents your company and owns all the resources associated with your contract — API keys, sources, channels, and usage quotas.

## Source

A **source** represents a platform or integration registered with Bodyguard — for example, your mobile app or your website. Bodyguard provides a source identifier when you set up an integration.

Sources belong to an organization and act as the container for your content. Each source contains one or more channels. Posts and authors are managed at the source level and are shared across all channels belonging to that source.

A good rule of thumb: if two platforms share the same user base, they should be the same source.

Moderation actions on authors — such as mute, ban, temporary mute, and temporary ban — are applied at the source level.
An action taken against an author affects that author across every channel of the source, but never carries over to other sources.

> [!NOTE]
>
> To moderate the same person independently across different platforms — for example, banning a player in one game but not in another — use a separate source for each platform.

## Channel

A **channel** is a logical subdivision of a source — typically mapping to a distinct content stream within your platform, such as a product page, a live stream, or a community forum.

Every analyze request requires a `channelId`, except username analysis, which requires a [`sourceId`](#source). Bodyguard uses the channel to apply the correct moderation configuration and to scope analytics and reporting. Channel identifiers are provided by Bodyguard when you configure your integration.

## Reference

A **reference** is your own stable identifier for a piece of content, an author, or a post. You supply it in the request; Bodyguard stores it and echoes it back in webhooks and stored results so you can correlate moderation data with your own records.

> [!NOTE]
>
> We strongly recommend sending references for messages, posts, and authors. Explicit references unlock the full potential of the Bodyguard platform — including accurate deduplication, reliable author-level analytics, and consistent moderation history.

## Publication date (`publishedAt`)

The `publishedAt` field records when a piece of content was originally published on your platform. Bodyguard uses it to associate messages and posts with the correct time window in analytics and reporting.

> [!WARNING]
>
> The value you send for a given message or post must remain **exactly** the same across all submissions and retries. Changing `publishedAt` for the same content causes it to appear as a duplicate in Bodyguard's records.

## Text sequence

Some users split harmful content across several consecutive texts so that each text looks harmless on its own — for example `I am going to`, then `kill`, then `you`. Bodyguard detects this by also analyzing the recent consecutive texts of the same author, on the same post, as one combined text.

Texts form a sequence only if they are consecutive, sent by the same author, on the same post, within a short time window. Text sequence analysis only runs when each request includes a `reference`, an `author.reference` and a `post.reference` — see [Reference](#reference).

The response works as follows:

* `textAnalysis` always contains the analysis of the current text alone.
* When a sequence is detected as problematic, the response for the **last text** of the sequence also contains a `textSequence` object, with the `references` of every text in the sequence and the `textAnalysis` of the combined text.
* To moderate the whole sequence, apply `textSequence.textAnalysis.recommendedAction` to every text listed in `textSequence.references`.

> [!NOTE]
>
> Text sequence moderation may involve an additional cost. Contact your Bodyguard account manager for details.

## Feedback

A **feedback** tells Bodyguard that a classification returned by the Analyze API does not fit your context — one you would not have applied, one you would have expected, or both. It is designed for edge cases and cases specific to your community: Bodyguard stays the authority on classification, and its moderation teams review your feedback to refine the models.

You can submit feedback on the same content as many times as you like — it won't be rejected as a duplicate.

> [!WARNING]
>
> Feedback informs Bodyguard's moderation teams for future improvements — it does not override moderation decisions in real time.

Each analyze endpoint has a feedback counterpart: [text](https://docs.bodyguard.ai/api-reference/feedback/text-analysis-feedback.md), [image](https://docs.bodyguard.ai/api-reference/feedback/image-analysis-feedback.md), and [username](https://docs.bodyguard.ai/api-reference/feedback/username-analysis-feedback.md).

## Next steps

> [card] [Analyze text](https://docs.bodyguard.ai/api-reference/analyze/analyze-a-text-message.md)
>
> Classify a comment, message, or any piece of text.

> [card] [Analyze an image](https://docs.bodyguard.ai/api-reference/analyze/analyze-an-image.md)
>
> Classify an image by URL or by file upload, with optional OCR.

> [card] [Analyze a username](https://docs.bodyguard.ai/api-reference/analyze/analyze-a-username.md)
>
> Check a username for inappropriate or undesirable content.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.