Skip to Content
Pouch
Admin providers

Run a provider's setup again

POST
/v1/admin/providers/{id}/setup

Auth: Admin key.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

Response Body

The provider, with configured. Setup runs inline, about ten paced provider calls; a step that fails is retried by calling this again.

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.

configured?boolean

Whether setup finished.

Example Request
curl -X POST 'https://pouch.example.com/v1/admin/providers/string/setup'
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",  "configured": true}