# app.didpic.write.getSelfRecord

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

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.write.getSelfRecord)
- [Documentation](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.write.getSelfRecord/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.write.getSelfRecord/examples)

## Definitions

### `app.didpic.write.getSelfRecord`

**Type**: `query`

Read a record at rkey 'self' from the authenticated viewer's own PDS, mediated by the AppView using its server-held session (confidential OAuth client only). Returns an empty object (not an error) when the record doesn't exist.

#### Parameters

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

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `value` | `unknown` | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Read a record at rkey 'self' from the authenticated viewer's own PDS, mediated by the AppView using its server-held session (confidential OAuth client only). Returns an empty object (not an error) when the record doesn't exist.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "value": {
              "type": "unknown"
            }
          },
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "collection": {
            "type": "string"
          }
        },
        "required": [
          "collection"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "app.didpic.write.getSelfRecord",
  "lexicon": 1
}
```
