Authentication with server

account/click_reminder

URL: https://fleep.io/api/account/click_reminder

Informs backend that given reminder has been show to the user.

Input:

reminder_id         uuid            -

account/login

URL: https://fleep.io/api/account/login

Handle user login business logic. If login is successful, it sets session token and returns account info.

Input:

email               text            - email
password            text            - user password
remember_me         boolean = False - whether user wants long-term session cookie

Output:

account_id          text            - internal account id
display_name        text            - name to be displayed in conversations
profiles            list            - stream of ContactInfo records (always only one record)
ticket              text            - must be sent as parameter to all subsequent api calls

ContactInfo:

account/logout

URL: https://fleep.io/api/account/logout

Close session.

account/register

URL: https://fleep.io/api/account/register

Create new account and send verification email.

Input:

email               text            - email
display_name        text            - name to be displayed in conversations
password            text            - initial password to set
referer             text = None     - page that referred used to fleep
                                    - needs to be given manually only in some special cases
use_code            boolean         - use flow based on registration code

account/register/v2

URL: https://fleep.io/api/account/register/v2

Trigger registration code email.

Input:

email               text            - email
referer             text = None     - page that referred used to fleep
                                    - needs to be given manually only in some special cases

account/reset_password

URL: https://fleep.io/api/account/reset_password

Request password reset email for active account. Password is not reset yet just email with rest token is sent out. User must click on link in email and then enter new passord to rest it.

Input:

email               text            - email