List users

GET/users

Returns the users of the account, using cursor-based pagination.

The collection can be filtered by a search term matched against name and email (q), by external_id, by tag (tag_id[], which matches users with any of the given tags), by status (active means the user accessed the platform in the last 30 days), by access (the same value returned in each user), and by creation date range (created_after, created_before). Users in the trash are excluded by default; set deleted=true to list only users in the trash. Filtering by access=none without deleted lists the users in the trash.

The document and phone fields are returned only when the credentials have the users.read_personal permission.

AuthorizationBearer <token>

Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.

In: header

Query Parameters

limit?integer

Maximum number of items to return, from 1 to 200.

Range1 <= value <= 200
cursor?string

Cursor for the next page, taken from page.next_cursor of the previous response.

q?string

Text search term.

external_id?string

Only users with this external ID.

deleted?boolean

When true, returns only items in the trash. Items in the trash are excluded by default.

tag_id[]?array<string>

Only users with any of these tags, by public ID. Repeat the parameter to send several tags.

status?string

Only users with this activity status. active means the user accessed the platform in the last 30 days.

Value in

  • "active"
  • "inactive"
access?string

Only users with this access state.

Value in

  • "granted"
  • "none"
created_after?string

Only items created after this date and time (ISO 8601).

Formatdate-time
created_before?string

Only items created before this date and time (ISO 8601).

Formatdate-time

Header Parameters

X-Client-Request-Id?string

Optional client-generated identifier of the request, up to 64 characters from [A-Za-z0-9._-]. Echoed back in the response and recorded in the request log; it never replaces the server-generated X-Request-Id.

Lengthlength <= 64

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/users"
{  "data": [    {      "access": "granted",      "created_at": "2019-08-24T14:15:22Z",      "deleted": true,      "document": "string",      "email": "user@example.com",      "external_id": "string",      "id": "string",      "name": "string",      "object": "user",      "phone": "string",      "revision": "string",      "status": "active",      "tags": [        "string"      ],      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "page": {    "limit": 1,    "next_cursor": "string",    "prev_cursor": "string"  }}