# club.userstyles.alpha.getUserstyleSourceCode

> Published by [userstyles.club](https://lexicon.garden/identity/did:plc:z6a2tfjek74wmqinw5vjzbed)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.getUserstyleSourceCode)
- [Documentation](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.getUserstyleSourceCode/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.getUserstyleSourceCode/examples)

## Definitions

### `club.userstyles.alpha.getUserstyleSourceCode`

**Type**: `query`

A userstyle's source code.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (at-identifier) | Yes |  |
| `rkey` | `string` (record-key) | Yes |  |

#### Output

**Encoding**: `text/css`

#### Errors

- **ActorNotFound**
- **UserstyleNotFound**
- **SourceUnavailable**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A userstyle's source code.",
      "errors": [
        {
          "name": "ActorNotFound"
        },
        {
          "name": "UserstyleNotFound"
        },
        {
          "name": "SourceUnavailable"
        }
      ],
      "output": {
        "encoding": "text/css"
      },
      "parameters": {
        "properties": {
          "actor": {
            "format": "at-identifier",
            "type": "string"
          },
          "rkey": {
            "format": "record-key",
            "type": "string"
          }
        },
        "required": [
          "actor",
          "rkey"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "club.userstyles.alpha.getUserstyleSourceCode",
  "lexicon": 1
}
```
