# gpg-key

From **GitHub v3 REST API**.

A unique encryption key

- Type: `object`

## Properties

### `can_certify`

- Required: true
- Type: `boolean`
- Example: `true`

### `can_encrypt_comms`

- Required: true
- Type: `boolean`

### `can_encrypt_storage`

- Required: true
- Type: `boolean`

### `can_sign`

- Required: true
- Type: `boolean`
- Example: `true`

### `created_at`

- Required: true
- Type: `string`
- Format: `date-time`
- Example: `2016-03-24T11:31:04-06:00`

### `emails`

- Required: true
- Type: `array`
- Example: `[
  {
    "email": "mastahyeti@users.noreply.github.com",
    "verified": true
  }
]`

### `expires_at`

- Required: true
- Type: `string`
- Format: `date-time`
- Nullable: true

### `id`

- Required: true
- Type: `integer`
- Example: `3`

### `key_id`

- Required: true
- Type: `string`
- Example: `3262EFF25BA0D270`

### `primary_key_id`

- Required: true
- Type: `integer`
- Nullable: true

### `public_key`

- Required: true
- Type: `string`
- Example: `xsBNBFayYZ...`

### `raw_key`

- Required: true
- Type: `string`
- Nullable: true

### `subkeys`

- Required: true
- Type: `array`
- Example: `[
  {
    "can_certify": false,
    "can_encrypt_comms": true,
    "can_encrypt_storage": true,
    "can_sign": false,
    "created_at": "2016-03-24T11:31:04-06:00",
    "emails": [],
    "expires_at": null,
    "id": 4,
    "key_id": "4A595D4C72EE49C7",
    "primary_key_id": 3,
    "public_key": "zsBNBFayYZ...",
    "subkeys": []
  }
]`

## JSON Schema

```json
{"description":"A unique encryption key","properties":{"can_certify":{"example":true,"type":"boolean"},"can_encrypt_comms":{"type":"boolean"},"can_encrypt_storage":{"type":"boolean"},"can_sign":{"example":true,"type":"boolean"},"created_at":{"example":"2016-03-24T11:31:04-06:00","format":"date-time","type":"string"},"emails":{"example":[{"email":"mastahyeti@users.noreply.github.com","verified":true}],"items":{"properties":{"email":{"type":"string"},"verified":{"type":"boolean"}},"type":"object"},"type":"array"},"expires_at":{"format":"date-time","nullable":true,"type":"string"},"id":{"example":3,"type":"integer"},"key_id":{"example":"3262EFF25BA0D270","type":"string"},"primary_key_id":{"nullable":true,"type":"integer"},"public_key":{"example":"xsBNBFayYZ...","type":"string"},"raw_key":{"nullable":true,"type":"string"},"subkeys":{"example":[{"can_certify":false,"can_encrypt_comms":true,"can_encrypt_storage":true,"can_sign":false,"created_at":"2016-03-24T11:31:04-06:00","emails":[],"expires_at":null,"id":4,"key_id":"4A595D4C72EE49C7","primary_key_id":3,"public_key":"zsBNBFayYZ...","subkeys":[]}],"items":{"properties":{"can_certify":{"type":"boolean"},"can_encrypt_comms":{"type":"boolean"},"can_encrypt_storage":{"type":"boolean"},"can_sign":{"type":"boolean"},"created_at":{"type":"string"},"emails":{"items":{},"type":"array"},"expires_at":{"nullable":true,"type":"string"},"id":{"type":"integer"},"key_id":{"type":"string"},"primary_key_id":{"type":"integer"},"public_key":{"type":"string"},"raw_key":{"nullable":true,"type":"string"},"subkeys":{"items":{},"type":"array"}},"type":"object"},"type":"array"}},"required":["id","primary_key_id","key_id","raw_key","public_key","created_at","expires_at","can_sign","can_encrypt_comms","can_encrypt_storage","can_certify","emails","subkeys"],"title":"GPG Key","type":"object"}
```
