api_token_refresh_create
POST /api/token/refresh/
Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
Request Body required
- refresh string required
Request Body required
- refresh string required
Request Body required
- refresh string required
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
- access string required
{
"access": "string"
}
Request
Request
curl / cURL
curl -L -X POST 'https://docs.kubepay.io/api/token/refresh/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"refresh": "string"
}'
python / requests
curl -L -X POST 'https://docs.kubepay.io/api/token/refresh/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"refresh": "string"
}'
go / native
curl -L -X POST 'https://docs.kubepay.io/api/token/refresh/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"refresh": "string"
}'
nodejs / axios
curl -L -X POST 'https://docs.kubepay.io/api/token/refresh/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"refresh": "string"
}'
ruby / Net::HTTP
curl -L -X POST 'https://docs.kubepay.io/api/token/refresh/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"refresh": "string"
}'
csharp / RestSharp
curl -L -X POST 'https://docs.kubepay.io/api/token/refresh/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"refresh": "string"
}'
php / cURL
curl -L -X POST 'https://docs.kubepay.io/api/token/refresh/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"refresh": "string"
}'
java / OkHttp
curl -L -X POST 'https://docs.kubepay.io/api/token/refresh/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"refresh": "string"
}'
powershell / RestMethod
curl -L -X POST 'https://docs.kubepay.io/api/token/refresh/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"refresh": "string"
}'