Set the countries the workspace sells to
Replace the countries the workspace sells to. Automatic lead searches look only for people there and skip anyone whose company is on record elsewhere. An empty list is no preference.
PUT
https://app.trygtm.com/api/v1/workspace/served-countries- Scope
write- MCP tool
- set_served_countries
Headers
Idempotency-Keystringoptional- A key unique to this write, up to 255 characters. A retry carrying the same key returns the first response instead of running again. Kept for 24 hours.
Body
countriesstring[]required- Country names or ISO alpha-2 codes, e.g. ["United States", "CA", "United Kingdom"]. Empty for no preference.
Request
curl -X PUT https://app.trygtm.com/api/v1/workspace/served-countries \
-H "Authorization: Bearer $TRYGTM_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"countries": []
}'Response
{
"data": {
"saved": "served_countries",
"countries": [
"US",
"CA",
"GB"
],
"names": [
"United States",
"Canada",
"United Kingdom"
]
}
}