# Web Token

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

[API URL](/tr/api-klavuzu/api-url.md)

### İ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="/pages/zRc6fGV2hPXt2r6jcjmm">/pages/zRc6fGV2hPXt2r6jcjmm</a></td></tr></tbody></table>

### İstek Parametreleri

İstek parametresi bulunmuyor

### Cevap Parametreleri

#### <mark style="color:green;">data</mark> [Cevap Yapısı](/tr/api-klavuzu/cevap-yapisi.md)

<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="/files/vg3jGtNDfUNqO2Pdh61J" alt=""><figcaption></figcaption></figure>

### Cevap örneği

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


---

# 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://doc.vapi.co/tr/api-klavuzu/web-token.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.
