Skip to Content
Pouch
Admin users

List accounts

GET
/v1/admin/users

Auth: Admin key.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Query Parameters

limit?integer

How many accounts to return, at most 200.

Range1 <= value <= 200
Default50
cursor?string

Id of the last account on the previous page.

admin?string

true for service admins only, false for the accounts without the flag. Omit for both.

Value in"true""false"
email?string

Exact email address to look up.

Length1 <= length <= 320
include?string

Comma-separated expansions to add: memberships (each organization the account belongs to, and its role, returned by default).

fields?string

Comma-separated top-level keys to return in place of the defaults. id always comes back. Valid: id, name, email, admin, memberships, created_at.

Response Body

A page of accounts, newest first.

application/json
  1. response
data?array<>

The page of accounts, newest first.

next_cursor?|

Id to pass as cursor for the next page. Null on the last page.

Example Request
curl -X GET 'https://pouch.example.com/v1/admin/users'
Example Response
{  "data": [    {      "id": "string",      "name": "string",      "email": "string",      "admin": true,      "memberships": [        {          "organization_id": "string",          "organization_name": "string",          "role": "owner"        }      ],      "created_at": "string"    }  ],  "next_cursor": "string"}