Authentication

This endpoint is used to authenticate a user and obtain a token for accessing protected resources.

Auth Login

POST /auth/login

The POST request is used to authenticate and login to YoguPay. Credentials are provided to business accounts by YoguPay

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

The token to be used above will be obtained from the response (expires after 30minutes requires a refresh)

Body

Name
Type
Description

username

string

User name of the user

password

string

Password of the user

Request and Response Example

{
  "password": "1",
  "username": "user@yogupay.com"
}

The token obtained from the response above will be used to authenticate subsequent pages

Last updated