Servetel

The Servetel Developer Hub

Welcome to the Servetel developer hub. You'll find comprehensive guides and documentation to help you start working with Servetel as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Getting Started with Servetel

This page will help you get started with Servetel. You'll be up and running in a jiffy!

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.

Requesting a Token

Token can be requested in the following manner

curl --request POST \
  --url https://api.servetel.in/v1/auth/login \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{"email":"[email protected]","password":"yourpasswordhere"}'

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'

Updated 2 years ago

Getting Started with Servetel


This page will help you get started with Servetel. You'll be up and running in a jiffy!

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.