UdiWatch

None

POST /v1/trial

Create a UdiWatch account. Body is company name, email, and password. The response is a session. It does not create an API key.

No auth. Body {"name","email","password"}. Password at least 8 characters. Creates the account. An API key is not included. Create one later with POST /v1/keys if you want one.

curl -sS -X POST "$BASE/v1/trial" \
  -H 'Content-Type: application/json' \
  -d '{"name":"Example Medical","email":"[email protected]","password":"at-least-8"}'
{
  "email": "[email protected]",
  "name": "Example Medical",
  "role": "owner",
  "plan": "trial",
  "watch_cap": 50,
  "watch_count": 0,
  "session": "us_…",
  "existing": false
}

Same email and the right password returns existing: true and a new session. Wrong password on an existing email is 400 and says the account exists. This endpoint is not silent about duplicates. POST /v1/login is.

Limit: 8 creates per IP per hour.

POST /v1/login