[Документация Yandex Cloud](../../../../index.md) > [Yandex SmartCaptcha](../../../index.md) > Справочник API > [gRPC (англ.)](../index.md) > [Captcha](index.md) > GetSecretKey

# SmartCaptcha API, gRPC: CaptchaService.GetSecretKey

Returns the secret data of specified Captcha resource.

## gRPC request

**rpc GetSecretKey ([GetCaptchaRequest](#yandex.cloud.smartcaptcha.v1.GetCaptchaRequest)) returns ([CaptchaSecretKey](#yandex.cloud.smartcaptcha.v1.CaptchaSecretKey))**

## GetCaptchaRequest {#yandex.cloud.smartcaptcha.v1.GetCaptchaRequest}

```json
{
  "captcha_id": "string"
}
```

#|
||Field | Description ||
|| captcha_id | **string**

Required field. ID of the Captcha resource to return.

The maximum string length in characters is 50. ||
|#

## CaptchaSecretKey {#yandex.cloud.smartcaptcha.v1.CaptchaSecretKey}

```json
{
  "server_key": "string"
}
```

CaptchaSecretKey object. Contains captcha data that need to keep in secret.

#|
||Field | Description ||
|| server_key | **string**

Server key of the captcha, see [CAPTCHA keys](../../../concepts/keys.md). ||
|#