Skip to main content
POST
Connect the provider

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Organization-Id
string

Midaz organization whose legalDocument (CNPJ) is provisioned as the provider company_id. Required: absent, blank or not a canonical UUID is refused with 400 PBP-0025.

Body

application/json

The body is of type object.

Response

OK. The tenant is connected. Read account_verified before you treat the account as validated. On multi-tenant deployments, keep the body secret: it has the webhook URL.

account_verified
boolean
required
provider_type
string
required
status
string
required
company_id
string
provider_account_id
string
webhook_subscription_registered
boolean

Whether the subscription pointing the provider at webhook_url was written at the provider. ABSENT means no per-tenant webhook connection was issued, so there was nothing to register. TRUE means the provider holds webhook_url and the signing key the service generated for this connection. FALSE means the connect succeeded and webhook_url is valid, but the provider was not told where to deliver events, so deliveries to webhook_url may not arrive yet. Depending on the cause, the registration is retried automatically or needs an operator. Do not reconnect: that rotates the connection again. If deliveries do not start, call POST /v1/admin/providers/webhooks/{provider_type}/resubscribe or contact support.

webhook_url
string