RefreshToken
API
Property
Value
API
/v2/refresh_token
Title
RefreshToken
Description
For refreshing token
Method
POST
Request Parameters
Name
Type
Required
Description
refresh_token
string
YES
You can acquire the refresh_token by the API GetToken.
Parameter Content Type
application/json
Request and Response Example
Request
cURL Code
curl -X 'POST' \
'https://api.tako.so/v2/refresh_token' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZGRyZXNzIjoiMHg0REQzREI1ZDBCOWFBZjBCMGEyZkJEMzdhNDg5ZDJmMGUzRjIzNEE5IiwidHlwZSI6InJlZnJlc2hfdG9rZW4iLCJleHAiOjE2OTEwNDYyNDd9.ghFd7X-FHnYW16VWyi-75tzEh5L_r06vjAIo3kKcGKM"
}'
Request URL
https://api.tako.so/v2/refresh_token
Response
NOTE: The token is the only credential to access APIs, so you must save it securely. Its validity period is
3600
seconds. You can use the refresh_token to refresh the token. Its validity period is86400
seconds.
{
"status": "success",
"data": {
"token_type": "Bearer",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZGRyZXNzIjoiMHg0REQzREI1ZDBCOWFBZjBCMGEyZkJEMzdhNDg5ZDJmMGUzRjIzNEE5IiwidHlwZSI6InRva2VuIiwiZXhwIjoxNjkwOTYzNzQyfQ.p822O9AwphgUSftpUIswjNtW7BjW8CQQ3u1yydlyMGM",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZGRyZXNzIjoiMHg0REQzREI1ZDBCOWFBZjBCMGEyZkJEMzdhNDg5ZDJmMGUzRjIzNEE5IiwidHlwZSI6InJlZnJlc2hfdG9rZW4iLCJleHAiOjE2OTEwNDY1NDJ9.El2EHD_3PhK_3MGiE_bSxbW2IyTJHn3xe3B0rVGQbWs",
"expires_in": 3600
}
}
Last updated