Skip to Content
Pouch
Organization

Read the organization

GET
/v1/organization

Auth: Bearer key with no domain scope.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Query Parameters

include?string

Comma-separated expansions to add: address_counts (addresses by status: active, expired and revoked, counted on read).

fields?string

Comma-separated top-level keys to return in place of the defaults. id always comes back. Valid: id, name, slug, body_retention_days, body_retention_max_days, address_limit, address_daily_message_limit, suspended, created_at, updated_at, address_counts.

Response Body

The key's own organization.

application/json
  1. response
id?string

Opaque id, prefixed org_.

name?string

Display name.

slug?string

URL slug. Read-only here; it addresses dashboard screens.

body_retention_days?integer

Days a message body stays readable before the worker shreds its key.

body_retention_max_days?integer

The install's ceiling on body_retention_days. Bodies stay readable for the smaller of the two.

address_limit?integer

Active addresses the organization may hold. Set by an admin.

address_daily_message_limit?integer

Messages one address may receive per UTC day. Set by an admin.

suspended?boolean

True while the organization can't send. An admin releases it.

created_at?string

ISO 8601 timestamp.

updated_at?string

ISO 8601 timestamp.

address_counts?

With include=address_counts. The organization's addresses by status, counted on read. active is what address_limit caps.

Example Request
curl -X GET 'https://pouch.example.com/v1/organization'
Example Response
{  "id": "string",  "name": "string",  "slug": "string",  "body_retention_days": 0,  "body_retention_max_days": 0,  "address_limit": 0,  "address_daily_message_limit": 0,  "suspended": true,  "created_at": "string",  "updated_at": "string",  "address_counts": {    "active": 0,    "expired": 0,    "revoked": 0  }}