Skip to main content
POST
/
ads
/
connect
Typescript (SDK)
import { Crevio } from "@crevio/sdk";

const crevio = new Crevio({
  apiKey: process.env["CREVIO_API_KEY"] ?? "",
});

async function run() {
  const result = await crevio.ads.connect({
    platform: "linkedin",
  });

  console.log(result);
}

run();
{}

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Body

application/json
platform
enum<string>
required
Available options:
facebook,
instagram,
linkedin,
tiktok,
twitter,
pinterest,
googleads
account_id
string

Parent posting channel (sacct_…), for same-token platforms.

ad_account_id
string

Scope sync to one Meta ad account (act_…).

redirect_url
string

Response

Connection result (already_connected, account, or auth_url).

The response is of type object.