Hasura Auth API + Postman collection

In this blog i am going to describe about how to create authorization to the table using postman.

In the previous blog i discussed about the accessing of data of the tables using postman and one can go through my previous blog :

Now here are some of the sample auth API queries made using Postman, referring from Auth documentation and users, roles and sessions (Register, Login, and Logout are POST requests where as User Info is a GET request):

  1. Signup request:

This is a POST request made to URL endpoint : http://auth.c100.hasura.me/signup

fig. shows signup using postman

After making signup request the new user is now given a session token,and he/she is considered as registered and now he/she can sign in as a user.

2) login request:

This is also a POST request made to the URL endpoint : http://auth.c100.hasura.me/login

fig.shows login request of the user using postman

After login one can access the data from the table,and make data API requests.every time when a user logs he/she is given with a session token to access the API.if he /she try’s to access with the invalid token then access is denied.

3)User Info Request :

This is a GET request made to the URL endpoint : http://auth.c100.hasura.me/user/account/info

fig.shows the user/account/info from the table using postman

This used for displaying the user information from the table.

4)Log Out Request :

This is a POST request (but formerly was a GET request in older version of hasura local development) which is made to URL endpoint :


fig.shows logout request of the user using postman

we can check whether the user is logout or not by checking in the user management.

fig.shows user-management