Login
To log in an existing customer, create a form in the store frontend that has fields for:
- Email address
- Password
Once this information is collected, send the data to your backend and then build a request to the Authentication API:
curl -X POST --location 'https://{{tenant-space}}.auth.scayle.cloud/v1/auth/login' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic {base64Encode({client_id}:{client_secret})}' \
--data-raw '{
"email": "[email protected]",
"password": "Test!234",
"shop_id": 1000
}'
This endpoint requires the API client authentication
In the response, you receive an access token and a refresh token which can be used for further interaction with our APIs.
Refer to the Authentication API Specification for further insights on this endpoint.