API Documentation for Authentication

POST /auth/token

Authenticates a user and returns a token.

Parameters:

  • email: The user's email
  • password: The user's password

Response:

Success
{
    "status": true,
    "token": "random_key"
}
Error
{
    "status": false,
    "message": "invalid username or password"
}

Sample Request:

curl -X POST -H "Content-Type: application/json" -d '{"email":"your_email","password":"your_password"}' http://api.invidtech.com/api/auth/token

Sample Headers:

{
    "Content-Type": "application/json"
}

Sample Payload:

{
    "email": "your_email",
    "password": "your_password"
}