/auth/registerpublicRegister
Creates an account and returns an access token (valid for 7 days). The optional ref parameter is the referral code (id of the inviting user).
Request body (JSON)
email* | string | Email in user@host.tld format |
password* | string | Password, 6–128 characters |
ref | integer | Referral code of the inviting user (optional) |
Request
curl -X POST https://smmglide.site/api/auth/register \
-H "Content-Type: application/json" \
-d '{"email":"you@example.com","password":"secret123"}'Response
{ "token": "eyJzdWIiOiIx..." }