API Reference
Auth Endpoints
Register, login, and Google OAuth.
Register
POST
/api/v1/auth/register{ "email": "[email protected]", "name": "Your Name", "password": "minimum8chars"}Response (201):
{ "user": { "id": "...", "email": "...", "name": "...", "plan": "free" }, "token": "eyJ...", "api_key": "sm_live_..."}The
api_key is only returned once. Save it immediately.Login
POST
/api/v1/auth/login{ "email": "[email protected]", "password": "yourpassword" }Response (200):
{ "user": { "id": "...", "email": "...", "plan": "free" }, "token": "eyJ..."}Google OAuth
GET
/api/v1/auth/googleRedirects to Google sign-in. After authentication, redirects to:
- Browser: https://deployzy.com/auth/callback?token=...
- CLI: http://127.0.0.1:PORT/callback?token=... (when ?callback= param is passed)
Was this page helpful?
