# <a id="bitdrift.public.unary.admin.v1.KeyResponse"></a>KeyResponse

**Source definition:** [`src/bitdrift/public/unary/admin/v1/keys.proto#L46-L70`](<https://github.com/bitdriftlabs/api/blob/main/src/bitdrift/public/unary/admin/v1/keys.proto#L46-L70>)

<section class="proto-fields-table" markdown>
| Field | Type | Description |
|---|---|---|
| id | <span class="proto-type proto-type-primitive">uint64</span> | The ID of the key to be used for revocation and further operations. |
| created_at | <span class="proto-type proto-type-well-known">[google.protobuf.Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp "google.protobuf.Timestamp")</span> | The creation time of the key. |
| expires_at | <span class="proto-type proto-type-well-known">[google.protobuf.Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp "google.protobuf.Timestamp")</span> | An optional expiration time for the key. If the key expires the behavior will be similar to  revocation which will cause an unauthenticated response to be returned. |
| revoked | <span class="proto-type proto-type-primitive">bool</span> | Whether the key was explicitly revoked. |
| sdk_key | <span class="proto-type proto-type-message">[<i class="proto-type-part">bitdrift</i><i class="proto-type-dot">.</i><i class="proto-type-part">public</i><i class="proto-type-dot">.</i><i class="proto-type-part">unary</i><i class="proto-type-dot">.</i><i class="proto-type-part">admin</i><i class="proto-type-dot">.</i><i class="proto-type-part">v1</i><i class="proto-type-dot">.</i><i class="proto-type-part">SdkKeyResponse</i>](bitdrift_public_unary_admin_v1_SdkKeyResponse.md "bitdrift.public.unary.admin.v1.SdkKeyResponse")</span><span class="proto-field-annotation">only one of <em>sdk_key</em>, or <em>api_key</em> can be set</span> | The SDK key details when this key is an SDK key. |
| api_key | <span class="proto-type proto-type-message">[<i class="proto-type-part">bitdrift</i><i class="proto-type-dot">.</i><i class="proto-type-part">public</i><i class="proto-type-dot">.</i><i class="proto-type-part">unary</i><i class="proto-type-dot">.</i><i class="proto-type-part">admin</i><i class="proto-type-dot">.</i><i class="proto-type-part">v1</i><i class="proto-type-dot">.</i><i class="proto-type-part">ApiKeyResponse</i>](bitdrift_public_unary_admin_v1_ApiKeyResponse.md "bitdrift.public.unary.admin.v1.ApiKeyResponse")</span><span class="proto-field-annotation">only one of <em>api_key</em>, or <em>sdk_key</em> can be set</span> | The API key details when this key is an API key. |
| name | <span class="proto-type proto-type-primitive">string</span> | The name of the key, used for (human) identification purposes. |

</section>
<p class="h4">Example</p>
```json
{
  "created_at": "2024-01-15T09:30:00Z",
  "expires_at": "2024-01-15T09:30:00Z",
  "id": 123,
  "name": "Example key",
  "revoked": false,
  "sdk_key": {
    "app_id_postfix": ".staging",
    "bundle_id_regex": "io.example.app",
    "key": "ZXhhbXBsZS1zZGsta2V5LWJhc2U2NA=="
  }
}
```

