Skip to main content
POST
/
v2
/
auth
/
pre-login
Pre login
curl --request POST \
  --url https://staging.api.prexsell.com/v2/auth/pre-login \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "user@example.com",
  "password": "s3cr3tP@ssword"
}
'
{
  "data": {
    "user": {
      "id": "usr_abc123def456",
      "email": "user@example.com",
      "firstName": "Іван",
      "lastName": "Петренко"
    },
    "availableAccesses": [
      {
        "contextType": "COMPANY",
        "companyId": "cmp_xyz789",
        "partnerId": null,
        "role": "ADMIN",
        "company": {
          "id": "cmp_xyz789",
          "name": "Prexsell Bus Lines",
          "slug": "prexsell-bus-lines",
          "tier": "PRO"
        }
      }
    ]
  }
}

Body

application/json

Credentials for pre-login verification. Returns the list of company contexts the user can log into.

email
string<email>
required

The user's email address.

Example:

"user@example.com"

password
string
required

The user's plaintext password.

Example:

"s3cr3tP@ssword"

Response

Credentials validated. Returns the user profile and the list of companies they can log into.

data
object
required