Authentication API
## POST /api/auth/register — Sign up ```bash curl -X POST https://prompt.solokit.run/api/auth/register \ -H "Content-Type: application/json" \ -d '{"name":"Jane","email":"jane@example.com","password":"pass1234"}' ``` ## POST /api/auth/login — Sign in ```bash curl -X POST https://prompt.solokit.run/api/auth/login \ -H "Content-Type: application/json" \ -d '{"email":"jane@example.com","password":"pass1234"}' ``` ## POST /api/auth/token — Get API Token ```bash curl -X POST https://prompt.solokit.run/api/auth/token \ -H "Content-Type: application/json" \ -d '{"email":"jane@example.com","password":"pass1234"}' ``` ## GET /api/auth/token — Verify Token ```bash curl https://prompt.solokit.run/api/auth/token \ -H "Authorization: Bearer ph_your_token" ``` ## DELETE /api/auth/token — Revoke & Reset Token ```bash curl -X DELETE https://prompt.solokit.run/api/auth/token \ -H "Authorization: Bearer ph_your_token" ```
Continue Reading