PilotFoxDocs
REST APIAPI referenceSearch Console

Complete a Search Console connection

GET
/api/v1/search-console/oauth/callback

Where Google sends the browser back after consent. It checks that the same signed-in user started the flow and may still manage the organization, stores the connection, and redirects (303) to the web app with ?searchConsole=connected, or error and a reason. Never JSON.

Authorization

session
cookie__Secure-pilotfox.session_token<token>

The web app's sign-in session, acting with the user's role; named pilotfox.session_token on an instance whose PUBLIC_URL is plain http. Under /api/v1, a POST, PUT, PATCH or DELETE carrying a cookie must come from the instance's own origin (Origin: PUBLIC_URL or a DASHBOARD_ORIGINS entry; else 403), and a body it carries must be JSON or multipart (else 415).

Query Parameters

state?string
Lengthlength <= 200
code?string
Lengthlength <= 2048
error?string
Lengthlength <= 200

Response Body

See Other: back to the web app, ?searchConsole=connected or =error&reason=…

Example Request
curl -X GET 'https://pilotfox.app/api/v1/search-console/oauth/callback'
Example Response303
Empty