Skip to Content
Pouch
Admin organizations

Create an organization

POST
/v1/admin/organizations

Auth: Admin key.

The key's creator becomes the owner, and the organization is assigned the default provider when one is set.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Request Body

application/json
  1. body
name*string

Display name for the organization.

Length1 <= length <= 100
slug?string

URL slug: lowercase letters, numbers and hyphens. Derived from the name when left out.

Match^[a-z0-9-]*$
Lengthlength <= 100

Response Body

The created organization.

application/json
  1. response
id?string

Opaque id, prefixed org_.

name?string

Display name.

slug?string

URL slug.

provider_id?|

The assignment new domains bind to, or null when nothing is assigned.

managed_provider_id?|

The provider an admin manages it on: the shared provider for a shared row, else the row itself.

assignment_count?integer

Providers the organization's domains can bind to.

domain_count?integer

Domains in the organization.

suspension?|

source, reason and suspended_at while suspended, otherwise null.

address_limit?integer

Active addresses the organization may hold: its override, else the install's default.

address_daily_message_limit?integer

Messages one address may receive per UTC day: its override, else the install's default.

address_limit_override?|

The organization's own address limit. Null follows the install's default.

address_daily_message_limit_override?|

The organization's own daily limit. Null follows the install's default.

created_at?string

ISO 8601 timestamp.

updated_at?string

ISO 8601 timestamp.

Example Request
curl -X POST 'https://pouch.example.com/v1/admin/organizations' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "id": "string",  "name": "string",  "slug": "string",  "provider_id": "string",  "managed_provider_id": "string",  "assignment_count": 0,  "domain_count": 0,  "suspension": {},  "address_limit": 0,  "address_daily_message_limit": 0,  "address_limit_override": 0,  "address_daily_message_limit_override": 0,  "created_at": "string",  "updated_at": "string"}