Create a provider
Auth: Admin key.
Credentials are checked live first. A shareable adapter belongs to the service and runs its setup before responding.
bearerAuthorizationBearer <token>An API key in the Authorization header.
application/json- body
adapter*stringProvider adapter: ses, mailpace, cloudflare or mock.
name*stringLabel for this provider, unique among the providers in its organization.
1 <= length <= 200credentials*Adapter-specific credentials. Checked live before they're stored, and never returned.
settings?Adapter-specific non-secret config, such as a webhook public key. Only providers serving one organization take it.
concurrency?integerConcurrent sends allowed against this provider. Defaults to 16.
1 <= value <= 1000organization_id?stringThe one organization an adapter that can't be shared serves. Required for those adapters, refused for SES.
1 <= lengthThe created provider, with credentials_verified and configured (whether setup finished).
application/json- response
id?stringOpaque id, prefixed pac_.
adapter?stringProvider adapter: ses, mailpace, cloudflare or mock.
name?stringLabel for this provider.
kind?stringshared serves every assigned organization, each isolated at the provider. single serves the one organization it lives in.
"shared""single"organization_id?|The organization a single provider serves. Null for a shared one.
organization_count?integerOrganizations assigned this provider.
default_for_new_organizations?booleanWhether 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?integerConcurrent sends allowed.
backoff_until?|ISO 8601 timestamp the worker skips this provider until, or null.
status?stringready, or the most urgent entry in issues. converting replaces needs_conversion while a conversion runs.
"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?stringISO 8601 timestamp.
updated_at?stringISO 8601 timestamp.
credentials_verified?|Present when the write stored credentials. true means the live check passed; null means the adapter can't check itself.
configured?booleanWhether the provider's setup finished.
curl -X POST 'https://pouch.example.com/v1/admin/providers' \ -H 'Content-Type: application/json' \ -d '{ "adapter": "string", "name": "string", "credentials": { "property1": "string", "property2": "string" }}'{ "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, "configured": true}