Skip to Content
Pouch
Admin providers

Update a provider

PATCH
/v1/admin/providers/{id}

Auth: Admin key.

New credentials are checked live before they replace the old ones. On a shared provider they replace every organization's copy too.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

Request Body

application/json
  1. body
name?string

New label for this provider.

Length1 <= length <= 200
concurrency?integer

Concurrent sends allowed. On a shared provider, every organization's assignment gets it too.

Range1 <= value <= 1000
settings?

Adapter-specific non-secret config, such as a webhook public key. Only providers serving one organization take it.

credentials?

Adapter-specific credentials. Checked live before they're stored, and never returned.

default_for_new_organizations?boolean

Whether new organizations are assigned this provider. At most one provider has it; setting it clears it elsewhere.

Response Body

The updated provider. credentials_verified is present only when credentials changed.

application/json
  1. response
id?string

Opaque id, prefixed pac_.

adapter?string

Provider adapter: ses, mailpace, cloudflare or mock.

name?string

Label for this provider.

kind?string

shared serves every assigned organization, each isolated at the provider. single serves the one organization it lives in.

Value in"shared""single"
organization_id?|

The organization a single provider serves. Null for a shared one.

organization_count?integer

Organizations assigned this provider.

default_for_new_organizations?boolean

Whether new organizations are assigned this provider.

identity?|

The provider's own provider id, such as the AWS account number. Null until the health check reads it.

settings?

Non-secret provider config. Never credentials.

concurrency?integer

Concurrent sends allowed.

backoff_until?|

ISO 8601 timestamp the worker skips this provider until, or null.

status?string

ready, or the most urgent entry in issues. converting replaces needs_conversion while a conversion runs.

Value in"ready""converting""needs_conversion""credentials_failing""backing_off""setting_up""quota"
issues?array<string>

Everything that needs attention, most urgent first: needs_conversion, credentials_failing, backing_off, setting_up, quota (80% of the daily quota).

health?

The last check: ok (boolean or null), detail and checked_at.

conversion?|

The latest conversion run, as GET /v1/admin/providers/:id/convert returns it.

created_at?string

ISO 8601 timestamp.

updated_at?string

ISO 8601 timestamp.

credentials_verified?|

Present when the write stored credentials. true means the live check passed; null means the adapter can't check itself.

Example Request
curl -X PATCH 'https://pouch.example.com/v1/admin/providers/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "adapter": "string",  "name": "string",  "kind": "shared",  "organization_id": "string",  "organization_count": 0,  "default_for_new_organizations": true,  "identity": "string",  "settings": {},  "concurrency": 0,  "backoff_until": "string",  "status": "ready",  "issues": [    "string"  ],  "health": {},  "conversion": {},  "created_at": "string",  "updated_at": "string",  "credentials_verified": true}