How the flow actually runs
Three calls, and the branding is yours the whole way through
01
Register your product's origin, once
PostGate only redirects a finished connection back to an origin you've explicitly allowed — POST /api/connect-origins. HTTPS is required outside loopback, and a workspace can register up to 25 origins.
02
Create a branded environment
POST /api/environments with a mode (test or live) and a brand object — product name, logo, and primary color where your plan enables them, plus a verified custom domain via PATCH /api/environments/{id} and POST /api/environments/{id}/verify-domain. Your customer sees your product name and colors on the connection screen, not PostGate's.
03
Generate the connect URL and redirect
POST /api/profiles/connect with the platform, the profile group, and your return_url. Open the returned URL; to your customer, the whole flow looks native — they leave your product, authorize the network, and land straight back where they started.