Skip to main content
GET
/
white-label
/
users
Get platform users
curl --request GET \
  --url https://app.autocalls.ai/api/white-label/users \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://app.autocalls.ai/api/white-label/users"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://app.autocalls.ai/api/white-label/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://app.autocalls.ai/api/white-label/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$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://app.autocalls.ai/api/white-label/users"

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

req.Header.Add("Authorization", "Bearer <token>")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://app.autocalls.ai/api/white-label/users")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://app.autocalls.ai/api/white-label/users")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "data": [
    {
      "id": 123,
      "name": "John Doe",
      "email": "john@example.com",
      "minutes_balance": 150.5,
      "credits_balance": 500,
      "created_at": "2025-01-05T10:30:00.000000Z"
    },
    {
      "id": 124,
      "name": "Jane Smith",
      "email": "jane@example.com",
      "minutes_balance": 75.25,
      "credits_balance": 250,
      "created_at": "2025-01-06T14:20:00.000000Z"
    }
  ]
}
{
  "data": []
}
{
  "error": "You are not a white label admin."
}
This endpoint returns a list of all users that belong to your white label platform. Use this to display user lists and manage your platform users.
This endpoint is only available for white label admins. Regular users will receive a 403 Forbidden error.

Response

data
array
Array of user objects
{
  "data": [
    {
      "id": 123,
      "name": "John Doe",
      "email": "john@example.com",
      "minutes_balance": 150.5,
      "credits_balance": 500,
      "created_at": "2025-01-05T10:30:00.000000Z"
    },
    {
      "id": 124,
      "name": "Jane Smith",
      "email": "jane@example.com",
      "minutes_balance": 75.25,
      "credits_balance": 250,
      "created_at": "2025-01-06T14:20:00.000000Z"
    }
  ]
}
{
  "data": []
}
{
  "error": "You are not a white label admin."
}

Use Cases

  • Display user list in your custom white label management dashboard
  • Lookup user IDs for use with the transfer balance endpoint
  • Monitor user balances to identify users who need credits