# codes.advent.challenge.getCode

> Published by [advent.codes](https://lexicon.garden/identity/did:plc:birdjt6dgvncxbevjj53kuiy)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:birdjt6dgvncxbevjj53kuiy/codes.advent.challenge.getCode)
- [Documentation](https://lexicon.garden/lexicon/did:plc:birdjt6dgvncxbevjj53kuiy/codes.advent.challenge.getCode/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:birdjt6dgvncxbevjj53kuiy/codes.advent.challenge.getCode/examples)

## Definitions

### `codes.advent.challenge.getCode`

**Type**: `query`

A protected XRPC endpoint to get an at://advent challenge code for the user

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `code` | `string` | Yes |  |

## Raw Schema

```json
{
  "id": "codes.advent.challenge.getCode",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "code"
          ],
          "properties": {
            "code": {
              "type": "string"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "A protected XRPC endpoint to get an at://advent challenge code for the user"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
