User API
Get Direct Login URL (New Users Only)
Create a new ChatSyncs user and return a one-time login URL via the API, returning an error instead of a URL if the user already exists. Use when a developer asks how to provision brand-new accounts only, without accidentally logging into an existing one.
GET
Get Direct Login URL (New Users Only)
Like Get Direct Login URL, but only for new users —
if the email already exists, it returns
{"status":"0","message":"User already existed"}
instead of a login URL.
New Users Only vs. Get Direct Login URL
| Get Direct Login URL (New Users Only) | Get Direct Login URL | |
|---|---|---|
| Email is new | Creates the account, returns a login link | Creates the account, returns a login link |
| Email already exists | Fails — "User already existed" | Returns a login link — no error |
| Use it for | Sign-up forms only — guarantees you never log into an existing account by mistake | Any normal “log in” button — works for new and returning customers |
Query Parameters
Your ChatSyncs API key (not a WhatsApp/Meta access token). Where to find it.
Example:
"API-KEY"
The new user's email.
Example:
"user@example.com"
The package ID to assign. Where to find it.
Example:
1
Package expiry date, e.g. 2026-05-05.
Example:
"2026-05-05"
Get Direct Login URL (New Users Only)

