Skip to navigation

Complete Oauth Connection

View as Markdown

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

account_idstringRequired

Headers

Idempotency-Keystring or nullOptional>=8 characters
A unique key for this request. A retry with the same key returns the first response instead of running again, for 24 hours. Keys are per caller.

Request

This endpoint expects an object.
codestringRequired
statestringRequired
draftobject or nullOptional

Required for a new connection; omitted for reconnect.

Response

Successful Response
processorobject
connectionobject

Redacted view of an OAuth connection’s credential bag.

Produced by redact_credentials_view — it never contains secret_key, refresh_token, or the OAuth code marker.

stripe_user_idstring

Connected Stripe account id, for the ‘Stripe connected: acct_…’ message.

Errors

422
Unprocessable Entity Error