cURL
curl --request POST \
--url https://api.gmbapi.com/external-api/gmb/citations/activate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"location_id": "<string>",
"subscription_end_date": "2023-12-25"
}
'import requests
url = "https://api.gmbapi.com/external-api/gmb/citations/activate"
payload = {
"location_id": "<string>",
"subscription_end_date": "2023-12-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({location_id: '<string>', subscription_end_date: '2023-12-25'})
};
fetch('https://api.gmbapi.com/external-api/gmb/citations/activate', 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.gmbapi.com/external-api/gmb/citations/activate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'location_id' => '<string>',
'subscription_end_date' => '2023-12-25'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gmbapi.com/external-api/gmb/citations/activate"
payload := strings.NewReader("{\n \"location_id\": \"<string>\",\n \"subscription_end_date\": \"2023-12-25\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.gmbapi.com/external-api/gmb/citations/activate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"location_id\": \"<string>\",\n \"subscription_end_date\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gmbapi.com/external-api/gmb/citations/activate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"location_id\": \"<string>\",\n \"subscription_end_date\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"payload": {
"message": "Citations activation submitted",
"location_id": "12654275338176815409",
"order_number": "ORD-2026-000123",
"billing_period": "MONTHLY"
}
}{
"success": false,
"code": "<string>",
"msg": "<string>",
"missing_fields": [
"<string>"
]
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}{
"success": false,
"code": "<string>",
"msg": "<string>",
"missing_fields": [
"<string>"
]
}{
"success": false,
"msg": "RATE_LIMIT_EXCEEDED",
"payload": {
"allowed": false,
"limit": 200,
"remaining": 0,
"retryAfter": 123
}
}{
"error": 123,
"message": "<string>"
}Citations
Activate Citations
Activates citations for a location. Returns 409 ALREADY_ACTIVE if already active, or 409 IN_PROGRESS if another request is running. Optional subscription_end_date (YYYY-MM-DD) for annual subscriptions.
POST
/
citations
/
activate
cURL
curl --request POST \
--url https://api.gmbapi.com/external-api/gmb/citations/activate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"location_id": "<string>",
"subscription_end_date": "2023-12-25"
}
'import requests
url = "https://api.gmbapi.com/external-api/gmb/citations/activate"
payload = {
"location_id": "<string>",
"subscription_end_date": "2023-12-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({location_id: '<string>', subscription_end_date: '2023-12-25'})
};
fetch('https://api.gmbapi.com/external-api/gmb/citations/activate', 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.gmbapi.com/external-api/gmb/citations/activate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'location_id' => '<string>',
'subscription_end_date' => '2023-12-25'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gmbapi.com/external-api/gmb/citations/activate"
payload := strings.NewReader("{\n \"location_id\": \"<string>\",\n \"subscription_end_date\": \"2023-12-25\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.gmbapi.com/external-api/gmb/citations/activate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"location_id\": \"<string>\",\n \"subscription_end_date\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gmbapi.com/external-api/gmb/citations/activate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"location_id\": \"<string>\",\n \"subscription_end_date\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"payload": {
"message": "Citations activation submitted",
"location_id": "12654275338176815409",
"order_number": "ORD-2026-000123",
"billing_period": "MONTHLY"
}
}{
"success": false,
"code": "<string>",
"msg": "<string>",
"missing_fields": [
"<string>"
]
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}{
"success": false,
"code": "<string>",
"msg": "<string>",
"missing_fields": [
"<string>"
]
}{
"success": false,
"msg": "RATE_LIMIT_EXCEEDED",
"payload": {
"allowed": false,
"limit": 200,
"remaining": 0,
"retryAfter": 123
}
}{
"error": 123,
"message": "<string>"
}Restricted. Requires citations API access. Returns
403 otherwise.400 with MISSING_LOCATION_FIELDS and a missing_fields array.
Optional subscription_end_date (YYYY-MM-DD) for annual subscriptions.
Returns 409 ALREADY_ACTIVE if already active, or 409 IN_PROGRESS if another request is running.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Account ID. Required when using an organization token; ignored for account-level tokens.
Body
application/json