seo-connect

POST /v1/seo-connect/start

Start connecting a Zinn® SEO site to a Zinn® account (device code).

All seo-connect endpoints

All developer docs →

Authentication

This endpoint is public. It takes no credential and no organisation — it is what our own marketing site and AI answer engines read.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/seo-connect/start \
  -H "Content-Type: application/json" \
  -d '{ "site_url": <string>, "site_uuid": <string>, "consent": <boolean<True>> }'

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

Called server-side by the Zinn® SEO WordPress plugin after the site owner agreed on its opt-in screen (WordPress.org guideline 7). Returns a secret device_code the site keeps and a short user_code (BCDF-GHJK) with the page the plugin opens in a NEW TAB, where a signed-in member approves the site for one organization (approveSeoConnect). The site then polls exchangeSeoConnect. Requests last ten minutes. No password ever enters wp-admin. ADR 0038. Anonymous, server-to-server (no CORS). Budget: 120/hour per IP, sized for shared hosting where many sites share one address; 429 with Retry-After.

Request body

NameTypeRequiredWhat it is
site_urlstringYes—
site_uuidstringYesThe plugin's own install id, kept in an option; a reconnect replaces the old token.
plugin_versionstringNo—
wp_versionstringNo—
localestringNoThe WordPress locale (fr_FR).
consentboolean<True>YesLiterally true — the site owner agreed on the plugin's opt-in screen.

Response

NameTypeRequiredWhat it is
device_codestringYesSecret. Keep it on the server; never show it.
user_codestringYes—
verification_uristringYes—
verification_uri_completestringYesOpen this in a NEW TAB — the code is filled in.
expires_inintegerYesSeconds.
intervalintegerYesSeconds between polls of exchangeSeoConnect.

Errors this endpoint can return

422 · 429