Kimlik Doğrulama
Request Body
{
"username": "[email protected]",
"password": "Sifreniz"
}Parametreler
Örnek cURL
curl --request POST 'https://public-api.thinkvoice.ai/api/public/auth/token' \
--header 'Content-Type: application/json' --data-raw '{
"username": "[email protected]",
"password": "Sifreniz"
}'Responses
Access token ömrü 7 gündür. Tüm korumalı isteklerde Authorization: Bearer <access_token> header'ı kullanılmalıdır.
Token Yenileme
curl --request POST 'https://public-api.thinkvoice.ai/connect/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=refresh_token' \
--data-urlencode 'client_id=ThinkVoicePublic_App' \
--data-urlencode 'refresh_token=<REFRESH_TOKEN>'⚠️
Token süresi dolduğunda yeniden POST /api/public/auth/token ile giriş yapabilirsin.