Skip to main content
GET
/
user
/
get
/
direct-login-url
/
only-new-users
Get Direct Login URL (New Users Only)
curl --request GET \
  --url https://platform.chatsyncs.com/api/v1/user/get/direct-login-url/only-new-users
import requests

url = "https://platform.chatsyncs.com/api/v1/user/get/direct-login-url/only-new-users"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://platform.chatsyncs.com/api/v1/user/get/direct-login-url/only-new-users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.chatsyncs.com/api/v1/user/get/direct-login-url/only-new-users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://platform.chatsyncs.com/api/v1/user/get/direct-login-url/only-new-users"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://platform.chatsyncs.com/api/v1/user/get/direct-login-url/only-new-users")
.asString();
require 'uri'
require 'net/http'

url = URI("https://platform.chatsyncs.com/api/v1/user/get/direct-login-url/only-new-users")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "status": "1",
  "message": {
    "email": "user@domain.com",
    "password": "xxxxxxxxxx",
    "login_url": "https://platform.chatsyncs.com/login",
    "direct_login_url": "https://platform.chatsyncs.com/direct-login/xxxxxxxxxx"
  }
}
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.
Where to find package_id: open Control Panel → User Permission — it’s the Package ID column. See Finding Your IDs & API Token for a screenshot.

New Users Only vs. Get Direct Login URL

Get Direct Login URL (New Users Only)Get Direct Login URL
Email is newCreates the account, returns a login linkCreates the account, returns a login link
Email already existsFails — "User already existed"Returns a login link — no error
Use it forSign-up forms only — guarantees you never log into an existing account by mistakeAny normal “log in” button — works for new and returning customers

Query Parameters

apiToken
string
required

Your ChatSyncs API key (not a WhatsApp/Meta access token). Where to find it.

Example:

"API-KEY"

email
string
required

The new user's email.

Example:

"user@example.com"

package_id
integer
required

The package ID to assign. Where to find it.

Example:

1

expired_date
string
required

Package expiry date, e.g. 2026-05-05.

Example:

"2026-05-05"

Response

200 - application/json

On success, message is an object with email, password, login_url, and direct_login_url — not a plain string.

status
string

"1" = success, "0" = failure.

message
any

On success: an object with email, password, login_url, direct_login_url. On failure: a plain error string.