---
title: "Get Wix site install URL"
method: GET
path: "/v1/connect/wix"
tags: ["Connect"]
---

# Get Wix site install URL

`GET /v1/connect/wix`

## Request

- Base URL: `https://zernio.com/api`
- URL: `https://zernio.com/api/v1/connect/wix`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Connect-Token`

Returns the Wix installer link for the Zernio app. The user picks one
of their Wix sites there and approves the app; Wix then returns the
browser to Zernio's internal callback, which connects that site and
redirects to `redirect_url` (or the dashboard when omitted). Wix is a
connect-only blog platform: the connected account powers the Blogs
API (`/v1/accounts/{accountId}/blogs`) and does not support social
posts, inbox, analytics or ads. The site needs the Wix Blog app.
Access tokens renew by themselves; removing the Zernio app from the
site in Wix disconnects the account.

## Query parameters

- `profileId` string, required
- `redirect_url` string

## Response `200`

Wix installer URL and authenticated state

- object
  - `authUrl` string, uri, required: Wix installer URL to open in the user agent.
  - `state` string, required: Authenticated, expiring state handled by the callback.

## Other responses

- `400`: Invalid `profileId` or `redirect_url`.
- `401`: Missing or invalid API key. `code` is `missing_credentials` when no Authorization header was sent and `invalid_credentials` when the key is unknown, revoked or expired.
- `402`: Payment method or enterprise contract required. The authenticated account hit a billing gate before the connection could proceed. Three reasons: - `free_tier_exceeded`: the team has connected more accounts than the free tier allows. Add a payment method on the dashboard to continue (the user will be billed per additional connected account). - `twitter_passthrough`: connecting an X account requires a card on file from day one because X API calls incur real per-call pass-through costs. Applies to the 1st X account, not only the 3rd+. - `enterprise_required`: the team is on an enterprise contract with a negotiated connected-account cap and has reached it. Self-service teams have NO connected-account cap (the $1/account rate continues at any scale), so this reason can only fire for teams whose contract sets an explicit limit. `dashboard_url` deep-links to the enterprise contact page rather than the billing tab. The end-user already has a card on file; this gate is about contract terms, not card collection. - `card_verification_required`: the card on file was flagged at add time (prepaid, or issued in a different country than the billing address) and a one-time verification charge of `details.verification_amount_cents` (USD) is pending. The charge is credited to the team's usage balance, not a fee. `dashboard_url` opens the billing page on the verification step; the request succeeds once it is paid. SDK consumers should switch on `reason` to render the right prompt. For `free_tier_exceeded`, `twitter_passthrough` and `card_verification_required`, redirect the end-user to `dashboard_url`: it opens the add-payment-method drawer on the Zernio billing page, and the request succeeds once the card is on file (or verified). For `enterprise_required`, redirect to `dashboard_url` (the enterprise contact form) to adjust the contract's limit.
- `403`: API key does not have access to this profile.
- `404`: Profile not found or access denied.
- `503`: The Wix app or state signing is not configured.

## Changes

- **2026-10-20** `0d064f3b2f7a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/connect/wix/get.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) · [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/4e74db179e73?raw)
