# fyi.opensocial.getActor

> Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.getActor)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.getActor/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.getActor/examples)

## Definitions

### `fyi.opensocial.getActor`

**Type**: `query`

Get a person as a view names them: handle, name and avatar. Requires auth. Answers for the caller themselves, or for anyone the host shows — a member of a group it runs, or someone asking to join one.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (did) | Yes | DID of the person. |

#### Output

**Encoding**: `application/json`

#### Errors

- **ActorNotFound**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get a person as a view names them: handle, name and avatar. Requires auth. Answers for the caller themselves, or for anyone the host shows — a member of a group it runs, or someone asking to join one.",
      "errors": [
        {
          "name": "ActorNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "fyi.opensocial.defs#actorView",
          "type": "ref"
        }
      },
      "parameters": {
        "properties": {
          "actor": {
            "description": "DID of the person.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "actor"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "fyi.opensocial.getActor",
  "lexicon": 1
}
```
