# Web Token

### Uç-nokta: /web-token

[api-url](https://doc.vapi.co/tr/api-klavuzu/api-url "mention")

### İstek Metodu: <mark style="color:green;">GET</mark>

### Header Parametreleri

<table><thead><tr><th width="154">parametre</th><th width="114">tipi</th><th>açıklama</th></tr></thead><tbody><tr><td>Authorization</td><td>string</td><td>Bearer &#x3C;API Anahtarı><a data-mention href="#curl-istek-oernegi">#curl-istek-oernegi</a> <a data-mention href="kimlik-dogrulama">kimlik-dogrulama</a></td></tr></tbody></table>

### İstek Parametreleri

İstek parametresi bulunmuyor

### Cevap Parametreleri

#### <mark style="color:green;">data</mark> [cevap-yapisi](https://doc.vapi.co/tr/api-klavuzu/cevap-yapisi "mention")

<table><thead><tr><th width="232">parametre</th><th width="222">tipi</th><th>açıklama</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">parametre</th><th width="209">tipi</th><th>açıklama</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" %}
Her token **expiresAt** alanında verilen zamana kadar aktif. Mevcut token'ın süresi halen geçerliyken yeni bir token isteği yapıldığında mevcut token geçerliliğini yitiriyor. Her zaman sadece tek bir token aktif. Dolayısıyla bir token yönetimi yapmak gerekli.&#x20;
{% endhint %}

### <mark style="color:blue;">curl</mark> İstek Örneği

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

### <mark style="color:blue;">postman</mark> İstek Örneği

<figure><img src="https://1066508896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFijFX6qkv9C1NPJR2PMY%2Fuploads%2FFso5dlrBINaSweFl4Yug%2FScreen%20Shot%202024-03-25%20at%2011.49.58.png?alt=media&#x26;token=3ae6ff78-fd5c-4af3-b238-4f6c9080ec0d" alt=""><figcaption></figcaption></figure>

### Cevap örneği

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