Connect a ChatGPT Ads (OpenAI Ads Manager) account with its API key
curl --request POST \
--url https://api.plugkit.co/v1/connect/chatgpt_ads \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.plugkit.co/v1/connect/chatgpt_ads"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.plugkit.co/v1/connect/chatgpt_ads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.plugkit.co/v1/connect/chatgpt_ads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.plugkit.co/v1/connect/chatgpt_ads"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.plugkit.co/v1/connect/chatgpt_ads")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.plugkit.co/v1/connect/chatgpt_ads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"message": "Account connected",
"account": {
"_id": "cm3acc0000001",
"platform": "instagram",
"profileId": "cm3prof000001",
"externalId": "17841400000000000",
"username": "acme",
"displayName": "Acme",
"profilePicture": "<string>",
"profileUrl": "https://instagram.com/acme",
"isActive": true,
"needsReconnection": false,
"createdAt": "2026-11-10T09:30:00.000Z",
"updatedAt": "2026-11-10T09:30:00.000Z",
"disconnectedReason": "<string>",
"disconnectedAt": "<string>",
"reconnectUrl": "<string>",
"metadata": {
"avatarUrl": "<string>",
"scope": "<string>",
"businessAccountId": "<string>",
"phoneNumberId": "<string>",
"wabaId": "<string>",
"channelId": "<string>",
"channelUsername": "<string>",
"botUsername": "<string>",
"pageId": "<string>",
"playlistId": "<string>",
"currency": "EUR",
"businessName": "<string>"
},
"billing": {
"analyticsEnabled": true,
"inboxSyncEnabled": true,
"costAcknowledgedAt": "2026-11-10T09:30:00.000Z"
}
}
}{
"error": "2 validation errors on the request.",
"type": "invalid_request_error",
"code": "validation_failed",
"details": {
"fields": [
"content should not be empty",
"accountIds must be an array"
]
}
}{
"error": "Invalid API key.",
"type": "authentication_error",
"code": "unauthorized"
}{
"error": "Paid X API calls require a PlugKit plan — they stay locked during the free trial.",
"type": "billing_error",
"code": "subscription_required",
"details": {
"action_url": "https://plugkit.co/dashboard/billing"
}
}{
"error": "Rate limit exceeded: 60 write requests per minute. Retry in 12s.",
"type": "rate_limit_error",
"code": "rate_limited",
"details": {
"limit": 60,
"bucket": "write",
"retryAfter": 12
}
}{
"error": "Invalid OAuth access token.",
"type": "platform_error",
"code": "platform_request_failed",
"platform": "meta",
"platformError": {
"code": 190,
"message": "Invalid OAuth access token."
}
}connect
Connect a ChatGPT Ads (OpenAI Ads Manager) account with its API key
Body: profileId and apiKey, an Ads API key created in OpenAI Ads Manager → Settings → API keys (ads.openai.com/settings). A key opens exactly one ad account: connect several accounts with one key each. A platform.openai.com key is refused.
POST
/
v1
/
connect
/
chatgpt_ads
Connect a ChatGPT Ads (OpenAI Ads Manager) account with its API key
curl --request POST \
--url https://api.plugkit.co/v1/connect/chatgpt_ads \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.plugkit.co/v1/connect/chatgpt_ads"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.plugkit.co/v1/connect/chatgpt_ads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.plugkit.co/v1/connect/chatgpt_ads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.plugkit.co/v1/connect/chatgpt_ads"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.plugkit.co/v1/connect/chatgpt_ads")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.plugkit.co/v1/connect/chatgpt_ads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"message": "Account connected",
"account": {
"_id": "cm3acc0000001",
"platform": "instagram",
"profileId": "cm3prof000001",
"externalId": "17841400000000000",
"username": "acme",
"displayName": "Acme",
"profilePicture": "<string>",
"profileUrl": "https://instagram.com/acme",
"isActive": true,
"needsReconnection": false,
"createdAt": "2026-11-10T09:30:00.000Z",
"updatedAt": "2026-11-10T09:30:00.000Z",
"disconnectedReason": "<string>",
"disconnectedAt": "<string>",
"reconnectUrl": "<string>",
"metadata": {
"avatarUrl": "<string>",
"scope": "<string>",
"businessAccountId": "<string>",
"phoneNumberId": "<string>",
"wabaId": "<string>",
"channelId": "<string>",
"channelUsername": "<string>",
"botUsername": "<string>",
"pageId": "<string>",
"playlistId": "<string>",
"currency": "EUR",
"businessName": "<string>"
},
"billing": {
"analyticsEnabled": true,
"inboxSyncEnabled": true,
"costAcknowledgedAt": "2026-11-10T09:30:00.000Z"
}
}
}{
"error": "2 validation errors on the request.",
"type": "invalid_request_error",
"code": "validation_failed",
"details": {
"fields": [
"content should not be empty",
"accountIds must be an array"
]
}
}{
"error": "Invalid API key.",
"type": "authentication_error",
"code": "unauthorized"
}{
"error": "Paid X API calls require a PlugKit plan — they stay locked during the free trial.",
"type": "billing_error",
"code": "subscription_required",
"details": {
"action_url": "https://plugkit.co/dashboard/billing"
}
}{
"error": "Rate limit exceeded: 60 write requests per minute. Retry in 12s.",
"type": "rate_limit_error",
"code": "rate_limited",
"details": {
"limit": 60,
"bucket": "write",
"retryAfter": 12
}
}{
"error": "Invalid OAuth access token.",
"type": "platform_error",
"code": "platform_request_failed",
"platform": "meta",
"platformError": {
"code": 190,
"message": "Invalid OAuth access token."
}
}