Skip to main content
POST
/
api
/
auth
/
login
Authenticate and get bearer token
curl --request POST \
  --url https://api.propops.app/api/auth/login \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "admin@example.com",
  "password": "********"
}
'
{
  "success": true,
  "token": "a1b2c3d4e5f67890...",
  "token_type": "Bearer",
  "expires_at": "2023-11-07T05:31:56Z",
  "user": {
    "name": "John Doe",
    "email": "admin@example.com",
    "account_type": "Staff"
  },
  "usage": "<string>"
}

Body

application/json
email
string<email>
required

Account email address

Example:

"admin@example.com"

password
string<password>
required

Account password

Example:

"********"

Response

Authentication successful

success
boolean
Example:

true

token
string

Bearer token (64-char hex)

Example:

"a1b2c3d4e5f67890..."

token_type
string
Example:

"Bearer"

expires_at
string<date-time>

Token expiry timestamp (90 days from creation)

user
object
usage
string

Example of how to use the token