curl --request POST \
--url https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/integrations/{id}/verify \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/integrations/{id}/verify"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/integrations/{id}/verify', 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.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/integrations/{id}/verify",
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.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/integrations/{id}/verify"
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.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/integrations/{id}/verify")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/integrations/{id}/verify")
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{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "<string>",
"provider": "google_ads",
"providerName": "Google Ads",
"category": "dsp",
"authMethod": "oauth",
"name": "Acme Google Ads",
"status": "pending",
"statusDetail": "<string>",
"statusCheckedAt": "<string>",
"lastError": "<string>",
"lastErrorAt": "<string>",
"settings": {},
"connectedAt": "<string>",
"connectedAccount": "<string>",
"returnUrl": "<string>",
"connectLink": {
"connectUrl": "<string>",
"expiresAt": "<string>",
"expired": true
},
"createdByEmail": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"type": "about:blank",
"title": "Validation Failed",
"status": 400,
"detail": "The request does not match the expected schema.",
"instance": "/v1/organizations/acme-corp/workspaces",
"requestId": "7c1b0c1e-5b7d-4b2a-9f1e-3c2d1a0b9e8f",
"errors": [
{
"path": "name",
"message": "Too small: expected string to have >=1 characters"
}
]
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "Authentication required. Sign in and try again.",
"instance": "/v1/organizations",
"requestId": "2f6a9c3d-1e4b-4a8c-b7d2-5e0f1a2b3c4d"
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"instance": "/v1/me",
"detail": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "Organization not found.",
"instance": "/v1/organizations/no-such-org",
"requestId": "a1b2c3d4-9e8f-4d7c-8b6a-5f4e3d2c1b0a"
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"instance": "/v1/me",
"detail": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}Verify an integration against its provider now
Workspace members and admins. Refreshes an expired OAuth token first. A permanent failure moves the integration to error; a transient one is recorded in lastError without changing the status.
curl --request POST \
--url https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/integrations/{id}/verify \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/integrations/{id}/verify"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/integrations/{id}/verify', 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.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/integrations/{id}/verify",
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.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/integrations/{id}/verify"
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.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/integrations/{id}/verify")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.01ads.com/v1/organizations/{orgSlug}/workspaces/{workspaceSlug}/integrations/{id}/verify")
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{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "<string>",
"provider": "google_ads",
"providerName": "Google Ads",
"category": "dsp",
"authMethod": "oauth",
"name": "Acme Google Ads",
"status": "pending",
"statusDetail": "<string>",
"statusCheckedAt": "<string>",
"lastError": "<string>",
"lastErrorAt": "<string>",
"settings": {},
"connectedAt": "<string>",
"connectedAccount": "<string>",
"returnUrl": "<string>",
"connectLink": {
"connectUrl": "<string>",
"expiresAt": "<string>",
"expired": true
},
"createdByEmail": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"type": "about:blank",
"title": "Validation Failed",
"status": 400,
"detail": "The request does not match the expected schema.",
"instance": "/v1/organizations/acme-corp/workspaces",
"requestId": "7c1b0c1e-5b7d-4b2a-9f1e-3c2d1a0b9e8f",
"errors": [
{
"path": "name",
"message": "Too small: expected string to have >=1 characters"
}
]
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "Authentication required. Sign in and try again.",
"instance": "/v1/organizations",
"requestId": "2f6a9c3d-1e4b-4a8c-b7d2-5e0f1a2b3c4d"
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"instance": "/v1/me",
"detail": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "Organization not found.",
"instance": "/v1/organizations/no-such-org",
"requestId": "a1b2c3d4-9e8f-4d7c-8b6a-5f4e3d2c1b0a"
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"instance": "/v1/me",
"detail": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}Authorizations
Session token as Authorization: Bearer (the CLI and scripts).
Response
The integration after the check
"google_ads"
"Google Ads"
dsp, ssp, wg, null oauth, credentials, null "Acme Google Ads"
pending, active, error, disabled Why the status is error
Last transient failure, if any
Non-secret provider configuration, validated against the provider's settings fields: GET /v1/integrations/providers/{provider} lists them, and the <Provider>Settings schemas describe each shipped provider
Show child attributes
Show child attributes
The external account that authorized access
The live connect link; null when none was issued or it was used
Show child attributes
Show child attributes
Was this page helpful?