Retrieve All Users

Lists the dashboard users associated with a location, returning a paginated collection.

Request Headers

HeaderRequiredDescription
AuthorizationYesBearer YOUR_ACCESS_TOKEN

Request Parameters

Path Parameters:

ParameterTypeRequiredDescription
location_idintegerYesLocation whose users are listed.

This endpoint takes no request body.

Request Example

No body is sent.

cURL Example

curl --request GET \
  --url https://sandbox-api.softpoint.io/interface/v1/locations/4004699/users \
  --header "Authorization: Bearer YOUR_ACCESS_TOKEN"

Success Response

The response is a paginator; data contains the user objects (truncated here to two entries).

{
  "current_page": 1,
  "data": [
    {
      "id": 1,
      "first_name": "updated",
      "last_name": "user",
      "phone": null,
      "email": "[email protected]",
      "global_country_id": 3,
      "created_datetime": "2021-12-17T00:53:33.000000Z"
    },
    {
      "id": 2,
      "first_name": "updated",
      "last_name": "user 2",
      "phone": "(789) 456-1230",
      "email": "[email protected]",
      "global_country_id": 3,
      "created_datetime": "2022-01-06T19:13:08.000000Z"
    }
  ]
}

Response Fields

FieldTypeDescription
current_pageintegerThe page number returned.
dataarrayList of user objects.
data[].idintegerUser ID.
data[].first_namestringFirst name.
data[].last_namestringLast name.
data[].phonestringnull
data[].emailstringEmail address.
data[].global_country_idintegerAssociated country.
data[].created_datetimestring (ISO 8601)Creation timestamp.

Status Codes

CodeDescription
200User list returned
401Missing or invalid token

Workflow Placement

A read operation used to enumerate or audit the users on an account.

Notes

  • Results are paginated; iterate using the paginator's page fields when present.

Common Mistakes

  • Assuming the response is a bare array; the users are nested under data.

  • Calling with an expired token (returns 10759 / 401).

Response

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json