Skip to main content

Introduction

Superviz API supports token-based authentication via the Bearer token request header. The POST Login API is used to retrieve the authentication token. After the authentication token is obtained, it must be inserted into the Bearer token header for all requests.

All SuperViz authenticated routes need the user to send the token.

It’s necessary to Login first, get the access_token, and pass it on to the header request.

Token Type: JWT Bearer

Curl example:

curl -H 'Accept: application/json' -H "Authorization: Bearer ${TOKEN}" https://{hostname}

Axios default header example:

import axios from 'axios'
axios.defaults.headers.common = {'Authorization': `bearer ${token}`}