---
title: "GET /v2/keys:lookupKey"
method: GET
path: "/v2/keys:lookupKey"
tags: ["keys"]
---

# GET /v2/keys:lookupKey

`GET /v2/keys:lookupKey`

Find the parent project and resource name of the API key that matches the key string in the request. If the API key has been purged, resource name will not be set. The service account must have the `apikeys.keys.lookup` permission on the parent project.

## Query parameters

- `keyString` string

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/apikeys.md) · [All operations](https://skmtc.dev/google/apis/apikeys/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/apikeys/revisions/be9946e8f6a0/schema)
