Refresh a Token

This API allows you to refresh an authetication token.

At its core, Servetel uses JWTs to provide a RESTful access to it's resources. Access tokens can be of unlimited lifetime (contact Servetel support for unlimited access tokens) or short lived (1 hour validity)

In the next section, we'll see how to get a token (JWT) using the API.

Refreshing a Token

Tokens have a lifetime of 60 minutes, after which, you will have to request a refresh token, like in the example below.

curl --request POST \
  --url https://api.servetel.in/v1/auth/refresh \
  --header 'accept: application/json' \
  --header 'authorization: Bearer yourtokenhere'
Language
Click Try It! to start a request and see the response here!