1. Request Detail
HTTP Method | POST |
URL PATH | https://my.gstzen.in/accounts/api/login/token/ |
Request Payload Type | Form Data |
Response Type | application/json |
2. Request Payload Example
Form Data
username | example@domain.com |
password | ******** |
3. Response Example
Response Example - With valid credentials
{ "refresh": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicm VmcmVzaCIsImV4cCI6MTY3MjExOTY3NSwiaWF0IjoxNjcxNTE0ODc1LCJqd GkiOiJmY2RhODgxODJjMTc0NDdiOTEyMzFmMGY2ZjM0OTg0MiIsInVzZXJf aWQiOjMwM30.HrAvz7k8JaSk_COy57DFKdQarnEUZpcP7x8RYOkpMjw", "access": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWN jZXNzIiwiZXhwIjoxNjcxNjAxMjc1LCJpYXQiOjE2NzE1MTQ4NzUsImp0aS I6IjM0MGY4YjhhMWFhMjRmMmI5NDIxYzQzNzQ5MGUyZTdkIiwidXNlcl9pZ CI6MzAzfQ.jxbFdXtZYO5TLWw7N8MrtRibMzfFDNz7qMXRLxrSIvY" }
With invalid credentials
{ "detail": "No active account found with the given credentials" }
Authentication will happen from the GSTZen Portal at /accounts/api/login/token/. This will automatically establish a session. Each user account session is identified by an Authentication Token that gets generated during the profile login. The API token is passed as an authorization bearer token in the HTTP header throughout the entire usage period. Use the generated access token for authentication.
Note: Token is valid for 24hrs.