Request Body

loginIdrequired
string

The unique identifier of a user in the database, usually email or phone.

sessionType
string

Session type, browser or mobile.

Expected Response

token
object

When the OwnID makes a request, it expects to receive back a token as a JSON object, often a JWT.

curl --location --request POST 'https://bazco.company/getSessionByLoginId' \
--header 'Content-Type: application/json' \
--data-raw '{
   "loginId":"sol@testmail.com",
   "sessionType":"browser",
}'
{
  "token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}