Auth Integration - Signup

In case you want the user to be able to signup from within the FastEditor, please provide a signup 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
userNameYesThe username (usually the email address) the user choose to create the account withstringhello@login.com
passwordYesThe password the user has chosenstring#9ske%ls9#DS1
firstNameNoFirst name of the userstringJohn
lastNameNoLast name of the userstringDoe
languageYesThe language in which FastEditor is shown to the user. This can be used to send localized emails or save to the user's accountstringnl 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