---
title: "Oauth Import"
method: POST
path: "/api/connectors/{slug}/oauth/import"
tags: ["connectors"]
---

# Oauth Import

`POST /api/connectors/{slug}/oauth/import`

## Request

- Base URL: `https://api.advisorppc.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.advisorppc.com/api/connectors/{slug}/oauth/import`
- Auth: HTTP bearer

Admin: seed a Google OAuth connector from a pre-existing refresh token
(founder-held, e.g. ~/ENV/google-ads-tokens). Validates by exchanging the
token for an access token and enforcing the connector's required scopes,
then persists the encrypted grant — no browser consent, so this works even
when the connector redirect URI is not yet registered in Google Console.
Body: {"refresh_token": "..."}.

## Path parameters

- `slug` string, required

## Headers

- `X-Tenant-Id` integer, nullable

## Request body

- object

## Response `200`

Successful Response

- ConnectorStatusOut
  - `slug` string, required
  - `status` string, required

## Other responses

- `422`: Validation Error

---

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