# Method: tagKeys.get

- [HTTP request](https://docs.cloud.google.com/resource-manager/reference/rest/v3/tagKeys/get#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/resource-manager/reference/rest/v3/tagKeys/get#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/resource-manager/reference/rest/v3/tagKeys/get#body.request_body)
- [Response body](https://docs.cloud.google.com/resource-manager/reference/rest/v3/tagKeys/get#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/resource-manager/reference/rest/v3/tagKeys/get#body.aspect)
- [Try it!](https://docs.cloud.google.com/resource-manager/reference/rest/v3/tagKeys/get#try-it)

Retrieves a TagKey. This method will return `PERMISSION_DENIED` if the key does not exist or the user does not have permission to view it.

### HTTP request

`GET https://cloudresourcemanager.googleapis.com/v3/{name=tagKeys/*}`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. A resource name in the format `tagKeys/{id}`, such as `tagKeys/123`. |

### Request body

The request body must be empty.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/resource-manager/reference/rest/v3/tagKeys#TagKey`.

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `https://www.googleapis.com/auth/cloud-platform.read-only`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).