Authentication

POST /auth/register Public

Create an account and start a session.

Body

email string required
Account email (canonical key).Example me@example.com
password string required
Account password.
curl
curl -X POST "https://freehire.dev/api/v1/auth/register" \
  -H 'Content-Type: application/json' \
  -c cookies.txt \
  -d '{"email":"me@example.com","password":"hunter2hunter2"}'
json — response
{ "data": { "id": 1, "email": "me@example.com", "role": "user", "created_at": "2026-06-19T10:00:00Z" } }