Our users API can be used to add and manage users for AtomChat

API Details

  • Actual Base URL: https://api.cometondemand.net
  • api-key: Replace with your Original API Key

1. List Users

This section provides interactive documentation for the AtomChat Users API. You can test the listUsers endpoint below, passing offset and limit parameters.

API Details

  • Actual Base URL: https://api.cometondemand.net
  • Endpoint: POST /api/v2/listUsers
  • Authentication: api-key (handled securely by our proxy)

Parameters (Form Data):

  • 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.


Postman Example

$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;

2. Create Users

Use this section to register a new user with the AtomChat Users API.

Create User API Details

  • Actual Base URL: https://api.cometondemand.net
  • Endpoint: `POST /api/v2/createUser
  • Authentication: api-key (handled securely by our proxy)

Create User Parameters (Form Data):

  • 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 URL
  • role (Optional): User's Role
  • email (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.

Postman Example

$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;

3. Get User

Use this section to retrieve a specific user's details by their UID.

Get User API Details

  • Actual Base URL: https://api.cometondemand.net
  • Endpoint: POST /api/v2/getUser
  • Authentication: api-key (required)

Parameters (Form Data):

  • UID (Required): The unique identifier of the user to retrieve

Postman Example

$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;

4. Get User Status

Use this section to retrieve a specific user's status (Offline/Online) lastactivity by their UIDs.

Get User API Details

  • Actual Base URL: https://api.cometondemand.net
  • Endpoint: POST /api/v2/getUserStatus
  • Authentication: api-key (required)

Parameters (Form Data):

  • 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;

4. Delete User

Use this section to delete a specific user by their UID.

Delete User API Details

  • Actual Base URL: https://api.cometondemand.net
  • Endpoint: POST /api/v2/deleteUser
  • Authentication: api-key (required)

Parameters (Form Data):

  • 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;

4. Update User

Use this section to update an existing user's information in AtomChat.

Update User API Details

  • Actual Base URL: https://api.cometondemand.net
  • Endpoint: POST /api/v2/deleteUser
  • Authentication: api-key (required)

Parameters (Form Data):

  • UIDs (Required): The unique identifier of the user to update
  • name (Optional): Updated display name for the user.
  • avatarURL (Optional): Updated avatar URL (Image)
  • profileURL (Optional): Updated profile URL
  • role (Optional): Updated user role
  • email (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;