REST API
Authentication
Vigilry uses JWT-based session cookies for the dashboard and management API. The session cookie is set automatically on login and cleared on logout.
POST
/auth/signupCreate a new account. Automatically creates a user, an organization (named after the user), and an OWNER membership. Sets a JWT session cookie valid for 7 days.
Auth:Public — no auth required
No project or API key is created automatically. Use POST /projects after signup.
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
name | string | required | Full name of the user. |
email | string | required | Email address — must be unique. |
password | string | required | Minimum 8 characters. |
POST
/auth/loginAuthenticate with email and password. Sets a JWT session cookie valid for 7 days.
Auth:Public — no auth required
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
email | string | required | Registered email address. |
password | string | required | Account password. |
POST
/auth/logoutInvalidate the current session by clearing the session cookie.
Auth:JWT Session (cookie)
GET
/auth/meReturn the currently authenticated user and their organization. Useful for initializing client-side session state.
Auth:JWT Session (cookie)