# UserRegistration

Type: UserRegistration

Schema: [UserRegistration](https://sourcey-peertube.pages.dev/api-rest-reference/models/userregistration.md)

- `id` (optional)
  Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
  
  minimum: 1
  
  Example:
  
  ```json
  42
  ```

- `state` (optional)
  Type: object
  
  - `id` (optional)
    Reference: [UserRegistrationState](https://sourcey-peertube.pages.dev/api-rest-reference/models/userregistrationstate.md); Type: UserRegistrationState
    
    The registration state (Pending = `1`, Rejected = `2`, Accepted = `3`)
    
    enum: [1,2,3]
  
  - `label` (optional)
    Type: string

- `registrationReason` (optional)
  Type: string

- `moderationResponse` (optional)
  Type: string; nullable

- `username` (optional)
  Type: string

- `email` (optional)
  Type: string, email

- `emailVerified` (optional)
  Type: boolean

- `accountDisplayName` (optional)
  Type: string

- `channelHandle` (optional)
  Type: string

- `channelDisplayName` (optional)
  Type: string

- `createdAt` (optional)
  Type: string, date-time

- `updatedAt` (optional)
  Type: string, date-time

- `user` (optional)
  Type: object; nullable
  
  If the registration has been accepted, this is a partial user object created by the registration
  
  - `id` (optional)
    Reference: [id](https://sourcey-peertube.pages.dev/api-rest-reference/models/id.md); Type: id
    
    minimum: 1
    
    Example:
    
    ```json
    42
    ```