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

# Video API, gRPC: StreamLineService.GetStreamKey

Retrieves the unique stream key for a push-type stream line.
This key is used to authenticate when pushing video streams to the platform.

## gRPC request

**rpc GetStreamKey ([GetStreamKeyRequest](#yandex.cloud.video.v1.GetStreamKeyRequest)) returns ([PushStreamKey](#yandex.cloud.video.v1.PushStreamKey))**

## GetStreamKeyRequest {#yandex.cloud.video.v1.GetStreamKeyRequest}

```json
{
  "stream_line_id": "string"
}
```

#|
||Field | Description ||
|| stream_line_id | **string**

Required field. ID of the stream line for which to retrieve the stream key.
The stream line must be a push-type input (RTMP push or SRT push).

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

## PushStreamKey {#yandex.cloud.video.v1.PushStreamKey}

```json
{
  "key": "string"
}
```

Represents the stream key used for pushing video streams.

#|
||Field | Description ||
|| key | **string**

The unique stream key. ||
|#