---
title: "Disconnect a source and delete the credential AfterLaunch stored for it (for Google it is also revoked at Google). Scope 'config', not act: destroying a credential is an account setting, not a move. Idempotent: disconnecting something that was never connected succeeds and changes nothing. Free."
method: POST
path: "/api/v1/connections/disconnect"
---

# Disconnect a source and delete the credential AfterLaunch stored for it (for Google it is also revoked at Google). Scope 'config', not act: destroying a credential is an account setting, not a move. Idempotent: disconnecting something that was never connected succeeds and changes nothing. Free.

`POST /api/v1/connections/disconnect`

## Request

- Base URL: `https://afterlaunch.io`
- URL: `https://afterlaunch.io/api/v1/connections/disconnect`
- Auth: HTTP bearer

## Request body

- object
  - `provider` 'ga4' | 'gsc' | 'gbp' | 'linkedin' | 'reddit', required: Which connector to disconnect.

## Response `200`

Disconnected (or already not connected).

- object
  - `data` object, required
  - `meta` object, required
    - `enrollment_id` string, uuid, required
    - `generated_at` string, date-time, required

## Other responses

- `400`: Unknown provider.
- `401`: Missing, invalid or revoked API key.
- `403`: The key does not carry the scope this endpoint requires.
- `429`: Per-key rate limit exceeded. Honour Retry-After.

---

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