# tools.ozone.inbox.getReport

> Published by [ozone-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:33dt5kftu3jq2h5h4jjlqezt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.inbox.getReport)
- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.inbox.getReport/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.inbox.getReport/examples)

## Definitions

### `tools.ozone.inbox.getReport`

**Type**: `query`

Get a moderation report submitted by the authenticated account to this moderation service.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | No | Reporter to preview. Defaults to the authenticated account; another account requires an active moderator, triage, or admin credential. |
| `id` | `integer` | Yes | Report ID (report table ID), as returned by listReports. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `report` | `ref` → `#reportView` | Yes |  |
| `resolution` | `ref` → `#resolutionView` | No | Present only when the report is resolved. |

#### Errors

- **NotFound**: No report was found, or the authenticated account did not submit it.

### `tools.ozone.inbox.getReport#reportView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `id` | `integer` | Yes | Report ID (report table ID), used by Ozone's report detail page. |
| `reason` | `string` | No |  |
| `reasonType` | `string` | Yes | The exact fully-qualified reason NSID submitted with and stored on the report. |
| `record` | `unknown` | No | Raw record JSON for the subject, when the subject is a record and the record is available. |
| `src` | `string` (did) | Yes | DID of the moderation service that received the report. |
| `status` | `string` | Yes |  |
| `subject` | `union` | Yes |  |
| `updatedAt` | `string` (datetime) | Yes |  |

### `tools.ozone.inbox.getReport#resolutionView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actionTaken` | `string` | No | Public action associated with this report's resolution. See the public action vocabulary table. |
| `outcome` | `string` | Yes |  |
| `resolvedAt` | `string` (datetime) | Yes |  |
| `scope` | `string` | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get a moderation report submitted by the authenticated account to this moderation service.",
      "errors": [
        {
          "description": "No report was found, or the authenticated account did not submit it.",
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "report": {
              "ref": "#reportView",
              "type": "ref"
            },
            "resolution": {
              "description": "Present only when the report is resolved.",
              "ref": "#resolutionView",
              "type": "ref"
            }
          },
          "required": [
            "report"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "description": "Reporter to preview. Defaults to the authenticated account; another account requires an active moderator, triage, or admin credential.",
            "format": "did",
            "type": "string"
          },
          "id": {
            "description": "Report ID (report table ID), as returned by listReports.",
            "type": "integer"
          }
        },
        "required": [
          "id"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "reportView": {
      "properties": {
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "id": {
          "description": "Report ID (report table ID), used by Ozone's report detail page.",
          "type": "integer"
        },
        "reason": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        },
        "reasonType": {
          "description": "The exact fully-qualified reason NSID submitted with and stored on the report.",
          "type": "string"
        },
        "record": {
          "description": "Raw record JSON for the subject, when the subject is a record and the record is available.",
          "type": "unknown"
        },
        "src": {
          "description": "DID of the moderation service that received the report.",
          "format": "did",
          "type": "string"
        },
        "status": {
          "knownValues": [
            "pending",
            "resolved"
          ],
          "type": "string"
        },
        "subject": {
          "refs": [
            "com.atproto.admin.defs#repoRef",
            "com.atproto.repo.strongRef",
            "chat.bsky.convo.defs#messageRef",
            "chat.bsky.convo.defs#convoRef"
          ],
          "type": "union"
        },
        "updatedAt": {
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "src",
        "id",
        "reasonType",
        "subject",
        "status",
        "createdAt",
        "updatedAt"
      ],
      "type": "object"
    },
    "resolutionView": {
      "properties": {
        "actionTaken": {
          "description": "Public action associated with this report's resolution. See the public action vocabulary table.",
          "type": "string"
        },
        "outcome": {
          "knownValues": [
            "actionTaken",
            "noAction",
            "other"
          ],
          "type": "string"
        },
        "resolvedAt": {
          "format": "datetime",
          "type": "string"
        },
        "scope": {
          "knownValues": [
            "network",
            "app",
            "labelOnly"
          ],
          "type": "string"
        }
      },
      "required": [
        "outcome",
        "resolvedAt"
      ],
      "type": "object"
    }
  },
  "id": "tools.ozone.inbox.getReport",
  "lexicon": 1
}
```
