GET
/
api
/
users
/
count
JavaScript
import SnagSolutions from '@snagsolutions/sdk';

const client = new SnagSolutions({
  apiKey: 'My API Key',
});

const response = await client.users.count({
  organizationId: '123e4567-e89b-12d3-a456-426614174001',
  websiteId: '123e4567-e89b-12d3-a456-426614174000',
});

console.log(response.totalCount);
{
  "totalCount": 123
}

Authorizations

X-API-KEY
string
header
required

Query Parameters

websiteId
string
required

The ID of the website

Example:

"123e4567-e89b-12d3-a456-426614174000"

organizationId
string
required

The ID of the organization

Example:

"123e4567-e89b-12d3-a456-426614174001"

Response

200
application/json

200

Schema for counting users response