# Get service account key in project

`GET /v1/projects/{project}/serviceAccounts/{serviceAccount}/keys/{key}`, operation `serviceAccounts.GetServiceAccountKeyInProject`

Gets a key, without its secret.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `project` | path | Yes | `string` | The project's ID. |
| `serviceAccount` | path | Yes | `string` | The service account's ID. |
| `key` | path | Yes | `string` | The key's ID. |

## Responses

### 200

OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `createTime` | `string (date-time)` | Yes | When the key was created. |
| `expireTime` | `string (date-time)` | Yes | When the key stops working. |
| `lastUseTime` | `string (date-time)` | No | When the key was last used, if it was. |
| `name` | `string` | Yes | Resource name, the service account's name followed by /keys/{key_id}. |
| `secret` | `string` | No | The secret, which is the API key, sent as a bearer token. Only in the response that creates the key: it cannot be read again. Audit log entries never keep it. |

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.