Auth Integration - Login

In case you want the user to be able to login from within the FastEditor, please provide a login API endpoint according to the following specifications.

Endpoint

The endpoints for this request (for staging/production environments) should be provided by you and shared with your account manager at FastEditor.

Authorization

When sending the login request to your endpoint, we will add the X-Api-Key header to the request so you can verify the sender. The value of this X-Api-Key will be shared by your account manager on start start of the integration process.

Request

This request body is a JSON objects with the following parameters:

ParameterRequiredDescriptionData TypeExample(s)
userNameYesThe username (usually the email address) that's used by the user to login to your systemstringhello@login.com
passwordYesThe password used by the user to login to your systemstring#9ske%ls9#DS1
languageYesThe language in which FastEditor is shown to the user. This can be used to send localized emails or save to the user's account.stringnl en en-gb

Example Request

Below an example request to your login endpoint:

Javascript
Copy

Success Response

Your endpoint should return a 201 response with the following JSON body. Only the id parameter is required, the rest is optional and depending on your level of integration.

JSON
Copy

Error response

In case something is wrong, you should return a status code in the 400 or 500 range. If you want to show a message to the user in the application, it should return JSON in the following format:

JSON
Copy

###

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard