Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 670 Bytes

File metadata and controls

50 lines (33 loc) · 670 Bytes

POST /api/auth/register

Description

This endpoint is used to register a new user.

Request

Parameters

None

Body

{
  "email": "string",
  "password": "string"
}

Headers

None

Response

{
  "success": true,
  "message": "Registration successful"
}

Response Codes

Example:

Code Description
201 Created
400 Bad Request
409 Conflict
429 Too Many Requests
500 Internal Server Error

Cookies

  • token (optional): JWT token used for authentication if the user successfully registered.