# us.off-the-clock.getPolicy

> Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.getPolicy)
- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.getPolicy/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.getPolicy/examples)

## Definitions

### `us.off-the-clock.getPolicy`

**Type**: `query`

A content space's current policy, for its members whether or not they have accepted it, with a signed URL of its body and the viewer's acceptance.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `space` | `string` | No | A pair's TID; the default pair by default. |

#### Output

**Encoding**: `application/json`

#### Errors

- **InvalidRequest**
- **NotSpaceMember**
- **PolicyNotFound**: The space has no current policy.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A content space's current policy, for its members whether or not they have accepted it, with a signed URL of its body and the viewer's acceptance.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotSpaceMember"
        },
        {
          "description": "The space has no current policy.",
          "name": "PolicyNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "us.off-the-clock.defs#policyView",
          "type": "ref"
        }
      },
      "parameters": {
        "properties": {
          "space": {
            "description": "A pair's TID; the default pair by default.",
            "maxLength": 512,
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "us.off-the-clock.getPolicy",
  "lexicon": 1
}
```
