> For the complete documentation index, see [llms.txt](https://documentation.sceenic.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.sceenic.co/watch-together-sdk/sscale-confluence-api-references/cluster-authentication-service-reference-cas-2.md).

# Cluster authentication service reference (CAS)

### Steaming Token (Access Token) <a href="#get-steaming-token" id="get-steaming-token"></a>

## \<url>/stream/token/v2/

<mark style="color:blue;">`GET`</mark> `Https://<url>/stream/token/v2/`

#### Path Parameters

| Name           | Type   | Description |
| -------------- | ------ | ----------- |
| /stream/token/ | string |             |

#### Headers

| Name            | Type   | Description         |
| --------------- | ------ | ------------------- |
| Auth-API-Secret | string | Customer api secret |
| Auth-API-Key    | string | Customer api key    |
| Accept          | string | application/json    |

{% tabs %}
{% tab title="200 " %}

```
{
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyaWQiOiJlMDFkYmU0NTg5MzU0YmU3OTc3OTg0ZmU2NjIxMTgwOCIsInVuY3QiOiJiNjA2NGFlZjVkZTU0NWZiODM1...
}
```

{% endtab %}
{% endtabs %}

### Example - acquiring an Access Token <a href="#acquiring-an-access-token" id="acquiring-an-access-token"></a>

{% tabs %}
{% tab title="cUrl(Bash)" %}

```bash
curl -iL --request GET --url https://YOUR_CAS_URL/stream/token/v2/ --header 'auth-api-key: API_KEY'   --header 'auth-api-secret: API_SECRET'
```

{% endtab %}
{% endtabs %}

The `Access Token` is a JWT token - more about JWT you can read - [here](https://en.wikipedia.org/wiki/JSON_Web_Token).

A successful response will look like that:

```
{
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...."
}
```

{% hint style="info" %}
You can get your API\_KEY and API\_SECRET in your private area, [here](https://media.sceenic.co/).
{% endhint %}
