https://api.cometondemand.netReplace with your Original API KeyThis section provides interactive documentation for the AtomChat Users API.
You can test the listUsers endpoint below, passing offset and limit parameters.
https://api.cometondemand.netPOST /api/v2/listUsersapi-key (handled securely by our proxy)offset: The starting index for the list of users (e.g., 0).limit: The maximum number of users to return (e.g., 100).Note: All requests made through this documentation interface are routed through our secure backend proxy. Your api-key is never exposed client-side.
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.cometondemand.net/api/v2/listUsers',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array(
'offset' => '0',
'limit' => '100'
),
CURLOPT_HTTPHEADER => array(
'api-key: YOUR_API_KEY_HERE'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Use this section to register a new user with the AtomChat Users API.
https://api.cometondemand.netapi-key (handled securely by our proxy)UID (Required): A unique identifier for the new user (e.g., SUPERHERO10).name (Required): The display name for the user (e.g., John Doe).avatarURL (Optional): User's Avatar URL (Image)profileURL (Optional): User's Profile URLrole (Optional): User's Roleemail (Optional): The email address of the user (e.g., [email protected]).Note: All requests made through this documentation interface are routed through our secure backend proxy. Your api-key is never exposed client-side.
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.cometondemand.net/api/v2/createUser',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array(
'UID' => 'NEW_USER_ID',
'name' => 'John Doe',
'avatarURL' => '',
'profileURL' => '',
'role' => '',
'email' => ''
),
CURLOPT_HTTPHEADER => array(
'api-key: YOUR_API_KEY_HERE'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Use this section to retrieve a specific user's details by their UID.
https://api.cometondemand.netPOST /api/v2/getUserapi-key (required)UID (Required): The unique identifier of the user to retrieve$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.cometondemand.net/api/v2/getUser',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('UID' => 'EXISTING_USER_ID'),
CURLOPT_HTTPHEADER => array(
'api-key: YOUR_API_KEY_HERE'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Use this section to retrieve a specific user's status (Offline/Online) lastactivity by their UIDs.
https://api.cometondemand.netPOST /api/v2/getUserStatusapi-key (required)UIDs (Required): The unique identifier of the users to retrieve<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.cometondemand.net/api/v2/getUserStatus',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('UIDs' => 'UIDs with , seperated'),
CURLOPT_HTTPHEADER => array(
'api-key: 57843x70ae16ff3ac49873c0b09a3043310cb2'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Use this section to delete a specific user by their UID.
https://api.cometondemand.netPOST /api/v2/deleteUserapi-key (required)UIDs (Required): The unique identifier of the users to retrieve<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.cometondemand.net/api/v2/getUserStatus',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('UIDs' => 'UIDs with , seperated'),
CURLOPT_HTTPHEADER => array(
'api-key: 57843x70ae16ff3ac49873c0b09a3043310cb2'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Use this section to update an existing user's information in AtomChat.
https://api.cometondemand.netPOST /api/v2/deleteUserapi-key (required)UIDs (Required): The unique identifier of the user to updatename (Optional): Updated display name for the user.avatarURL (Optional): Updated avatar URL (Image)profileURL (Optional): Updated profile URLrole (Optional): Updated user roleemail (Optional): Updated email address$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.cometondemand.net/api/v2/updateUser',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => http_build_query(array(
'UID' => 'EXISTING_USER_ID',
'name' => 'Updated Name',
'avatarURL' => 'https://example.com/new-avatar.jpg',
'profileURL' => 'https://example.com/profile',
'role' => 'updated_role',
'email' => '[email protected]'
)),
CURLOPT_HTTPHEADER => array(
'api-key: YOUR_API_KEY_HERE',
'Accept: application/json',
'Content-Type: application/x-www-form-urlencoded'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;