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.
HTTP request
GET https://apikeys.googleapis.com/v2/keys:lookupKey
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-05-25 UTC."],[[["This API endpoint `keys:lookupKey` retrieves information about an API key, including its parent project and resource name."],["The endpoint uses a `GET` request to `https://apikeys.googleapis.com/v2/keys:lookupKey` and requires the `keyString` query parameter to identify the API key."],["The request body must be empty, as all input is provided via the `keyString` query parameter."],["A successful response includes the `parent` field indicating the project owning the key, and the `name` field, which is the resource name of the API key or is empty if the key has been purged."],["Accessing this endpoint requires the service account to have the `apikeys.keys.lookup` permission and one of two OAuth scopes: `https://www.googleapis.com/auth/cloud-platform.read-only` or `https://www.googleapis.com/auth/cloud-platform`."]]],[]]