Accounts

Disconnect Account

Disconnects the account. On YouTube, Onepostly's access is also withdrawn on the platform. Its published posts stay on the platform, and its posts in Onepostly keep their history.

DELETE
/v1/accounts/{id}

Authorization

Bearer
headerAuthorizationBearer <op_>

Workspace API key, sent as Authorization: Bearer op_... Keys are created in the dashboard.

Path Parameters

id*string
Length1 <= length

Response Body

Disconnected

Example Request
import { Configuration, AccountsApi } from "@onepostly/sdk";const accountsApi = new AccountsApi(  new Configuration({ accessToken: process.env.ONEPOSTLY_API_KEY }));const response = await accountsApi.deleteAccount({  id: "acc_YOUR_LINKEDIN_ACCOUNT_ID",});console.log(response);
Example Response
Empty