List entity country activations
curl --request GET \
--url http://api.gu1.ai/entities/{id}/country-activations \
--header 'Authorization: Bearer <token>'import requests
url = "http://api.gu1.ai/entities/{id}/country-activations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://api.gu1.ai/entities/{id}/country-activations', 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 => "http://api.gu1.ai/entities/{id}/country-activations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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 := "http://api.gu1.ai/entities/{id}/country-activations"
req, _ := http.NewRequest("GET", 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.get("http://api.gu1.ai/entities/{id}/country-activations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/entities/{id}/country-activations")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data.entityId": "<string>",
"data.countries": [
{}
]
}API Reference
List entity country activations
Retrieve per-merchant country activation flags for Argentina, Brazil, Chile, Colombia, Mexico, and the US, returning missing rows as deactivated.
GET
/
entities
/
{id}
/
country-activations
List entity country activations
curl --request GET \
--url http://api.gu1.ai/entities/{id}/country-activations \
--header 'Authorization: Bearer <token>'import requests
url = "http://api.gu1.ai/entities/{id}/country-activations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://api.gu1.ai/entities/{id}/country-activations', 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 => "http://api.gu1.ai/entities/{id}/country-activations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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 := "http://api.gu1.ai/entities/{id}/country-activations"
req, _ := http.NewRequest("GET", 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.get("http://api.gu1.ai/entities/{id}/country-activations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/entities/{id}/country-activations")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data.entityId": "<string>",
"data.countries": [
{}
]
}Overview
Returns the operational country activation state for a merchant entity. This is an operational flag only β it does not change entity data, enrichments, or compliance status. Integrators typically re-fetch the full entity after receiving theentity.country_activation_changed webhook.
Supported countries (v1): AR, BR, CL, CO, MX, US.
When no row exists for a country, the API returns deactivated (opt-in model).
Endpoint
GET http://api.gu1.ai/entities/{id}/country-activations
Authentication
Requiresentities:read (legacy fallback: entities:read / viewer role).
Authorization: Bearer YOUR_API_KEY
Path Parameters
string
required
UUID of the entity (merchant).
Response
boolean
Whether the request succeeded.
string
Entity UUID.
array
Fixed list of six countries with activation metadata.
data.countries:
| Field | Type | Description |
|---|---|---|
countryCode | string | ISO 3166-1 alpha-2 (AR, BR, CL, CO, MX, US) |
status | string | deactivated, activation_requested, activation_in_progress, or activated |
activatedAt | string | null | ISO timestamp when last reached activated |
deactivatedAt | string | null | ISO timestamp when last reached deactivated |
updatedAt | string | null | ISO timestamp of last status change (null if never set) |
Example
curl -X GET "https://api.gu1.ai/entities/550e8400-e29b-41d4-a716-446655440000/country-activations" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"data": {
"entityId": "550e8400-e29b-41d4-a716-446655440000",
"countries": [
{
"countryCode": "AR",
"status": "deactivated",
"activatedAt": null,
"deactivatedAt": null,
"updatedAt": null
},
{
"countryCode": "CO",
"status": "activation_in_progress",
"activatedAt": null,
"deactivatedAt": null,
"updatedAt": "2026-07-03T15:00:00.000Z"
},
{
"countryCode": "MX",
"status": "activated",
"activatedAt": "2026-07-03T15:00:00.000Z",
"deactivatedAt": null,
"updatedAt": "2026-07-03T15:00:00.000Z"
}
]
}
}
Errors
| HTTP | Code | When |
|---|---|---|
| 404 | ENTITY_NOT_FOUND | Entity does not exist in the current organization |
Was this page helpful?