Skip to main content
POST
Connect provider with the tenant's client credentials

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. Declared optional on the schema so that refusal keeps its own code.

Body

application/json

The body is of type object.

Response

OK

account_verified
boolean
required
provider_type
string
required
status
string
required
company_id
string
provider_account_id
string
webhook_signing_key
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 has been told. FALSE means the connect SUCCEEDED and the delivery URL is already live on our side, but the provider has not been told yet: it is not a failed connection, the credentials in this body are valid, and the health poller retries the registration on its own. Wait for that retry rather than reconnecting, which would rotate the signing key you just received.

webhook_url
string