docs
  1. Resources
  2. Authenticate (oauth)
  3. Password Reset E-mail

Password Reset E-Mail

1.0.0
OpenAPI 3.0.1

This is the specification of Authentication API. For more information about how to interact with the Authentication API, you can read the respective developer guide.

Getting Started

This API must be only used by backend services

Creating an API Client

First you will need to create a new API client using the SCAYLE Panel to obtain your client_id and client_secret. Make sure to store those credentials safely in your backend.

Authenticating a User

There are three different options on how to authenticate a user:

  1. Register a new user
  2. Login an existing user
  3. Login as a guest customer without a password

All of those endpoints will require you to provide the client_id and client_secret as a Basic Auth header.

Credentials client_id and client_secret don't have any expiration date. After successfully authenticating a user, you will get an access token and a refresh token. Access tokens are valid for 30 days and Refresh Tokens are valid for 60 days.

Validating a token

You will need to call the validation endpoint to check if an access token is still valid.

Refreshing a token

Refreshing a token is done by using the POST token endpoint by using the refresh_token OAuth grant.

You should consider to check the expiration date of the JWT to trigger a refresh early enough.

Server:https://{tenant-space}.auth.scayle.cloud
Client Libraries

OAuth Client endpoints

​

Endpoints for the OAuth clients with Basic Authorization

OAuth Client endpoints Operations

Password Reset E-Mail

​

The password reset endpoint triggers an email to the customer with a reset link, initiating the password reset flow. This ensures secure authentication and password recovery by verifying the user's identity before allowing them to set a new password.

Body

required
application/json
  • The email address of the user

  • Reset URL with a hash parameter

  • Shop ID

Responses

  • Reset password email is sent.

  • application/json
  • application/json
  • User is deactivated

  • application/json
  • Formal validation error (Invalid reset_url hostname for example)

Request Example for post/v1/auth/password/send-reset-email
curl https://TENANT_SPACE.auth.scayle.cloud/v1/auth/password/send-reset-email \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Basic username:password' \
  --data '{
  "shop_id": 139,
  "email": "[email protected]",
  "reset_url": "https://{{tenant-space}}.checkout.scayle.cloud/password/reset?hash={hash}"
}'
No Body

Models

​

Last updated: November 27, 2026