Skip to content

Disconnect Search Console

DELETE
/v1/sites/{id}/gsc
curl --request DELETE \
--url https://api.overwatch.weareheavy.dev/v1/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/gsc \
--header 'x-api-key: <x-api-key>'

Best-effort revokes the Google token, then deletes the connection and every stored search-data row for the site. Owner/admin only.

id
required
string format: uuid

The site’s UUID.

Disconnected (idempotent).

Media typeapplication/json
object
disconnected
required
boolean
Examplegenerated
{
"disconnected": true
}

Missing or invalid credentials.

Media typeapplication/json
object
error
required

A human-readable error message.

string
Example
{
"error": "invalid api key"
}

Site not found, or the SEO app is not enabled.

Media typeapplication/json
object
error
required

A human-readable error message.

string
Examplegenerated
{
"error": "example"
}