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"
}
}
]
}
}Auth
Pre login
Verifies email and password without creating a session. Returns the user identity and all company contexts the user can log into. Use the returned companyId values with the login endpoint.
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
Response
Credentials validated. Returns the user profile and the list of companies they can log into.
Show child attributes
Show child attributes
⌘I
