Skip to Content
Pouch
Admin users

Read an account

GET
/v1/admin/users/{id}

Auth: Admin key.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

Query Parameters

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

The account, with its memberships.

application/json
  1. response
id?string

The account's id.

name?string

Display name.

email?string

Email address, which is also how they sign in.

admin?boolean

The service-wide admin flag. Orthogonal to any organization role.

memberships?array<>

Organizations this account belongs to, oldest first, with its role in each.

created_at?string

ISO 8601 timestamp.

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