Register

api-docs Redoc document (api spec)

To use this endpoint, you will need to send an HTTP POST request to the URL /register. The request body should be in JSON format and should contain the following fields:

  • email: a string representing the new user's email address, in the format "[email protected]"

  • password: a string representing the new user's password

Here's an example of what the request body might look like:

If the registration is successful, the API will return a response with a status code of 200 and a JSON body containing the newly registered user's data. The JSON body will look something like this:

If the registration is unsuccessful (e.g. the email address is already in use), the API will return a response with a status code of 400 and a JSON body containing an error message. The JSON body will look something like this:

Last updated