> For the complete documentation index, see [llms.txt](https://doc.vapi.co/tr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.vapi.co/tr/en/tr-turkey-datasets-and-api-reference/web-token.md).

# Web Token

### Endpoint: /web-token

[API URL](/tr/en/getting-started/api-url.md)

### Request Method: <mark style="color:green;">GET</mark>

### Header Parameters

<table><thead><tr><th width="154">parameter</th><th width="114">type</th><th>definition</th></tr></thead><tbody><tr><td>Authorization</td><td>string</td><td>Bearer &#x3C;API Key><a data-mention href="#curl-istek-oernegi">#curl-istek-oernegi</a> <a data-mention href="/tr/en/getting-started/identity-verfication.md">Identity Verfication</a></td></tr></tbody></table>

### Request Parameters

İstek parametresi bulunmuyor

### Response Parameters

#### <mark style="color:green;">data</mark> [Response Structure](/tr/en/getting-started/response-structure.md)

<table><thead><tr><th width="232">parameter</th><th width="222">type</th><th>definition</th></tr></thead><tbody><tr><td>webToken</td><td>webToken </td><td></td></tr></tbody></table>

#### <mark style="color:green;">webToken</mark>

<table><thead><tr><th width="126">parameter</th><th width="209">type</th><th>definition</th></tr></thead><tbody><tr><td>token</td><td>string </td><td></td></tr><tr><td>expiresAt</td><td>integer</td><td><p>UTC</p><p> <a href="https://en.wikipedia.org/wiki/Unix_time">https://en.wikipedia.org/wiki/Unix_time</a> </p></td></tr></tbody></table>

{% hint style="danger" %}
Each token remains active until the time specified in the expiresAt field. If a new token request is made while the current token is still valid, the existing token expires immediately. Only one token is active at any given time. Therefore, token management must be implemented.
{% endhint %}

### <mark style="color:blue;">curl</mark> Request Example

```powershell
curl --location 'https://api.vapi.co/web-token' \
--header 'Authorization: Bearer <API ANAHTARI'
```

### <mark style="color:blue;">postman</mark> Request Example

<figure><img src="https://content.gitbook.com/content/yoqXCLsgP4CqhklelIUV/blobs/iAP9yy79U6ViAUsDKPfm/Screen%20Shot%202024-03-25%20at%2011.49.58.png" alt=""><figcaption></figcaption></figure>

### Response Example

```json
{
    "success": true,
    "data": {
        "token": "d90857fbd58f5757b81cd4b295cd7cec2596d7bd",
        "expiresAt": 1711358088
    }
}
```
