# pub.chive.actor.getProfileConfig

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.actor.getProfileConfig)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.actor.getProfileConfig/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.actor.getProfileConfig/examples)

## Definitions

### `pub.chive.actor.getProfileConfig`

**Type**: `query`

Get profile configuration for a user

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` | Yes | DID of the user |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` | Yes | DID of the user |
| `uri` | `string` | No | AT-URI of the profile config record |
| `sections` | `array` | Yes | Profile display sections |
| `profileType` | `string` | Yes | Profile type identifier |
| `featuredCollectionUri` | `string` | No | AT-URI of the featured collection |

### `pub.chive.actor.getProfileConfig#sectionConfig`

**Type**: `object`

Section-specific display configuration. Properties vary by section type.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `sortBy` | `string` | No | Sort order for section items |
| `maxItems` | `integer` | No | Maximum number of items to display |
| `collectionUri` | `string` | No | AT-URI of a collection to feature |

### `pub.chive.actor.getProfileConfig#profileSectionView`

**Type**: `object`

Configuration for a profile display section

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `type` | `string` | Yes | Section type identifier |
| `order` | `integer` | Yes | Display order of the section |
| `config` | `ref` → `#sectionConfig` | No | Section-specific configuration |
| `visible` | `boolean` | Yes | Whether the section is visible |

## Raw Schema

```json
{
  "id": "pub.chive.actor.getProfileConfig",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "did",
            "profileType",
            "sections"
          ],
          "properties": {
            "did": {
              "type": "string",
              "description": "DID of the user"
            },
            "uri": {
              "type": "string",
              "description": "AT-URI of the profile config record"
            },
            "sections": {
              "type": "array",
              "items": {
                "ref": "#profileSectionView",
                "type": "ref"
              },
              "description": "Profile display sections"
            },
            "profileType": {
              "type": "string",
              "description": "Profile type identifier"
            },
            "featuredCollectionUri": {
              "type": "string",
              "description": "AT-URI of the featured collection"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "did"
        ],
        "properties": {
          "did": {
            "type": "string",
            "description": "DID of the user"
          }
        }
      },
      "description": "Get profile configuration for a user"
    },
    "sectionConfig": {
      "type": "object",
      "properties": {
        "sortBy": {
          "type": "string",
          "description": "Sort order for section items"
        },
        "maxItems": {
          "type": "integer",
          "description": "Maximum number of items to display"
        },
        "collectionUri": {
          "type": "string",
          "description": "AT-URI of a collection to feature"
        }
      },
      "description": "Section-specific display configuration. Properties vary by section type."
    },
    "profileSectionView": {
      "type": "object",
      "required": [
        "type",
        "visible",
        "order"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "Section type identifier"
        },
        "order": {
          "type": "integer",
          "description": "Display order of the section"
        },
        "config": {
          "ref": "#sectionConfig",
          "type": "ref",
          "description": "Section-specific configuration"
        },
        "visible": {
          "type": "boolean",
          "description": "Whether the section is visible"
        }
      },
      "description": "Configuration for a profile display section"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
