# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.sceenic.co/watch-together-sdk/sscale-confluence-api-references/cluster-authentication-service-reference-cas-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
