# app.bivri.support.getPolicy

> Published by [lexicons.bivri.app](https://lexicon.garden/identity/did:plc:uqat5a7hrbww3snbbinxgwah)

✓ This is the authoritative definition for this NSID.

## Description

Get a published policy version and its content. Authentication is not required.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.support.getPolicy)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.support.getPolicy/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uqat5a7hrbww3snbbinxgwah/app.bivri.support.getPolicy/examples)

## Definitions

### `app.bivri.support.getPolicy`

**Type**: `query`

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `type` | `string` | Yes |  |
| `version` | `string` | No | Version to return. Omit it to get the currently active version. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `policy` | `ref` → `app.bivri.support.policyDefs#policyView` | Yes |  |

#### Errors

- **PolicyNotActive**
- **PolicyVersionNotFound**
- **InvalidPolicyType**

## Raw Schema

```json
{
  "id": "app.bivri.support.getPolicy",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "PolicyNotActive"
        },
        {
          "name": "PolicyVersionNotFound"
        },
        {
          "name": "InvalidPolicyType"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "policy"
          ],
          "properties": {
            "policy": {
              "ref": "app.bivri.support.policyDefs#policyView",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "knownValues": [
              "terms",
              "privacy"
            ]
          },
          "version": {
            "type": "string",
            "description": "Version to return. Omit it to get the currently active version."
          }
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Get a published policy version and its content. Authentication is not required."
}
```
