Quickstart
- Contact us at api@mysasy.com to register your application, set up
Callback URL
and receive yourClient secret
andApplication ID
. - Now, you can use endpoint
/developer
and make your first succesful API call. - Start building your application by obtaining user's
Auth token
via procedure described bellow. - Done. With valid
Auth token
, you can call all remaining API endpoints.
How to obtain user's Auth token
From your application, prompt user to log in to mySASY website and give consent to the requesting application (your application).
Redirect your user to URL https://client.mysasy.com/profile/connect/idOfYourApplication
, where idOfYourApplication
you will receive from us.
This is what your user will see:
After the users accepts or rejects the authorization request, mySASY redirects the user to a Callback URL
specified during registration of your application.
In Callback URL
, there will be added:
- Parameter
success
, value1
implies that user accepted authorization request,0
means rejected authorization. - If user accepted authorization, parameter
token
contains user'sAuth token
.Auth token
is considered as non-expiring access token.- You should securely store this
Auth token
and use it during API calls, that are accessing user's data. - Be aware, that token will be revoked if user cancels authorization request later on (in mySASY application).
This is example of response via Callback URL
: