# social.passports.unitedStates.visit

> Published by [passports.social](https://lexicon.garden/identity/did:plc:ssdgllkzfwekkpmu7expw6cv)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ssdgllkzfwekkpmu7expw6cv/social.passports.unitedStates.visit)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ssdgllkzfwekkpmu7expw6cv/social.passports.unitedStates.visit/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ssdgllkzfwekkpmu7expw6cv/social.passports.unitedStates.visit/examples)

## Definitions

### `social.passports.unitedStates.visit`

**Type**: `record`

A visit to a US state or DC. Records the subdivision visited, the city and the place, and optionally the date.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `city` | `string` | Yes | City visited within the subdivision. |
| `createdAt` | `string` (datetime) | Yes |  |
| `note` | `string` | No | The user's note about this visit. |
| `place` | `ref` → `social.passports.place` | No | The place visited, when known. Inline place object — no external fetch required. |
| `subdivision` | `string` | Yes | ISO 3166-2 subdivision code, e.g. 'US-CA', 'US-NY', 'US-HI'. |
| `visitDate` | `string` | No | Date of visit in YYYY-MM-DD format. Nullable — user may not know the exact date. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A visit to a US state or DC. Records the subdivision visited, the city and the place, and optionally the date.",
      "key": "tid",
      "record": {
        "properties": {
          "city": {
            "description": "City visited within the subdivision.",
            "maxLength": 100,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "note": {
            "description": "The user's note about this visit.",
            "maxLength": 3000,
            "type": "string"
          },
          "place": {
            "description": "The place visited, when known. Inline place object — no external fetch required.",
            "ref": "social.passports.place",
            "type": "ref"
          },
          "subdivision": {
            "description": "ISO 3166-2 subdivision code, e.g. 'US-CA', 'US-NY', 'US-HI'.",
            "maxLength": 6,
            "type": "string"
          },
          "visitDate": {
            "description": "Date of visit in YYYY-MM-DD format. Nullable — user may not know the exact date.",
            "maxLength": 10,
            "type": "string"
          }
        },
        "required": [
          "subdivision",
          "city",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "social.passports.unitedStates.visit",
  "lexicon": 1
}
```
