Pular para o conteúdo principal
POST
Connect the provider

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

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.

Corpo

application/json

The body is of type object.

Resposta

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
obrigatório
provider_type
string
obrigatório
status
string
obrigatório
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