Skip to main content
POST
/
api
/
signup
Sign Up
curl --request POST \
  --url https://api.example.com/api/signup \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "email": "<string>",
  "password": "<string>"
}
'
{
  "id": 123,
  "name": "<string>",
  "email": "<string>"
}
Creates a new user account in the EduMate system. This endpoint validates that the email is not already registered and securely hashes the password before storing it.

Request

name
string
required
The full name of the user
email
string
required
The email address for the user account. Must be unique.
password
string
required
The password for the account. Will be securely hashed before storage.

Response

id
integer
The unique identifier for the newly created user
name
string
The user’s full name
email
string
The user’s email address

Example Request

curl -X POST http://localhost:8000/api/signup \
  -H "Content-Type: application/json" \
  -d '{
    "name": "John Doe",
    "email": "[email protected]",
    "password": "securepassword123"
  }'

Example Response

{
  "id": 1,
  "name": "John Doe",
  "email": "[email protected]"
}

Error Responses

Build docs developers (and LLMs) love