Sync GTM REST API
The REST API puts Sync GTM’s waterfall enrichment behind a plain HTTPS endpoint, so your own backend, CRM sync or data pipeline can look up contact data without a table and without an AI client.
It exposes four of the MCP tools as endpoints — find_work_email, find_personal_email, find_mobile_number and verify_email — with the same inputs, providers and credit prices, billed to the same organization balance. The difference is who is calling: the MCP server is for an assistant you talk to, the API is for code you write.
- Base URL
https://api.syncgtm.com/v1/api- Authentication
- Bearer API key (sgtm_live_…)
- Format
- JSON in, JSON out
- Rate limit
- 60 requests per minute per key
Quickstart
Create an API key
In the app, open Settings → API keys and click Create key. Only organization owners and admins can create keys. Copy the key when it is shown — it is displayed once and cannot be retrieved again. See Authentication.
Make your first call
curl https://api.syncgtm.com/v1/api/enrich/work-email \
-H "Authorization: Bearer $SYNCGTM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"linkedin_url": "https://www.linkedin.com/in/janedoe"}'Read the response
{
"status": "found",
"data": { "email": "jane@stripe.com" }
}A miss is still a 200, with "status": "not_found" and "data": null — and it costs nothing.
Endpoints
Every endpoint is a POST with a JSON body. Full request and response details are on each page.
| Endpoint | Cost | What it does |
|---|---|---|
POST /enrich/work-email | 1 credit per email found | LinkedIn URL, or name + company domain → work email |
POST /enrich/personal-email | 3 credits per email found | LinkedIn URL → personal mailbox address |
POST /enrich/mobile | 10 credits per number found | LinkedIn URL → mobile phone number |
POST /enrich/verify-email | 0.2 credits per email | Email → Verified or Unverified |
See the endpoint reference for the shared request and response shapes.
Common use cases
The API fits anything that runs without a person at the keyboard, and more and more that means an agent. An agent running on a server, a schedule or a webhook has no one to complete a browser sign-in, so it calls these endpoints with a key instead of going through the MCP server.
Give your own agent enrichment tools
Wrap the endpoints as tools in the agent you are building, whether that is on the Claude or OpenAI SDKs, LangGraph or a loop of your own. The model decides when to look someone up; your code makes the HTTP call, so the key never enters the prompt.
import hashlib
import json
import os
import requests
API = "https://api.syncgtm.com/v1/api/enrich"
TOOLS = [
{
"name": "find_work_email",
"description": (
"Find a person's current work email. Costs 1 credit if found, free if not. "
"Pass linkedin_url, or first_name + last_name + domain. "
"not_found is final for the same inputs, so do not retry it."
),
"input_schema": {
"type": "object",
"properties": {
"linkedin_url": {"type": "string"},
"first_name": {"type": "string"},
"last_name": {"type": "string"},
"domain": {"type": "string", "description": "Company domain, e.g. stripe.com"},
},
},
},
{
"name": "verify_email",
"description": "Check whether an email is safe to send to. Costs 0.2 credits. Call it before any send.",
"input_schema": {
"type": "object",
"properties": {"email": {"type": "string"}},
"required": ["email"],
},
},
]
PATHS = {"find_work_email": "work-email", "verify_email": "verify-email"}
def run_tool(name: str, args: dict, record_id: str) -> dict:
# Same record + tool + inputs -> same key, so a repeated call replays instead of charging twice
digest = hashlib.sha256(json.dumps(args, sort_keys=True).encode()).hexdigest()[:16]
res = requests.post(
f"{API}/{PATHS[name]}",
headers={
"Authorization": f"Bearer {os.environ['SYNCGTM_API_KEY']}",
"Idempotency-Key": f"{record_id}-{name}-{digest}",
},
json=args,
timeout=90,
)
return res.json() # errors come back as { error: { code, message } } for the model to act onThe tools follow Anthropic’s format. OpenAI and most agent frameworks take the same JSON Schema under parameters. Add find_personal_email and find_mobile_number the same way; their inputs are on the endpoint pages.
Inbound lead agent
Trigger: a signup or demo-request webhook.
verify-emailthe address the lead typed in. If it comes backUnverified, flag the lead instead of routing it. (0.2 credits)- If they used a free mailbox like Gmail and gave a name and company, call
work-emailwithfirst_name,last_nameanddomainto get the address your CRM should own. (1 credit if found) - The agent checks the lead against your ICP, writes it to the CRM and assigns an owner before a rep has opened their inbox.
Outbound research agent
Trigger: a new target-account list, or a daily batch.
- The agent picks the people worth contacting at each account, from your CRM, a list you uploaded or another data source.
work-emailfor each person, by LinkedIn URL where you have one. (1 credit per email found)verify-emailevery address before it reaches your sequencer. (0.2 credits)- The agent writes an opening line from what it researched and hands the contact to your sending tool.
Misses are free, so the agent can work through a whole list and pay only for the emails it finds.
Call-ready escalation
Trigger: a high-intent signal, such as a pricing-page visit, a reply or a missed meeting.
Mobile numbers are the most expensive lookup at 10 credits, which makes them the place an agent’s judgment pays for itself. Let the agent score the signal, call mobile only for leads that clear the bar, and push the number to the rep’s dialer or task list.
CRM hygiene agent
Trigger: a nightly or weekly schedule.
- Pull contacts whose email bounced or has not been checked in 90 days.
verify-emaileach one. (0.2 credits)- For
Unverifiedaddresses, callwork-emailwith the contact’s LinkedIn URL to find where they work now. (1 credit if found) - A new address on a different domain usually means a job change. Update the record and flag the account owner. To stay in touch with a champion who moved on,
personal-emailreturns an address that survives the next job change too. (3 credits if found)
Rules for agents that call the API
- Put prices in tool descriptions. A model that knows verification costs 0.2 credits and a mobile number costs 10 will reach for the cheap call first.
- Treat
not_foundas an answer. It is free, and the same inputs will return it again. Tell the model not to retry it. - Send an
Idempotency-Keyon every call. Agents repeat themselves. A repeated key and body within 24 hours replays the first response at no charge. See Rate limits and retries. - Pace parallel tool calls. A key allows 60 requests a minute, and an agent fanning out over a list hits that fast. Queue calls per key.
- Stop on
402.insufficient_creditsmeans the balance is spent. Have the agent stop and report back instead of retrying. - Verify before anything sends. Run
verify-emailon any address an agent is about to hand to a sequencer, whatever its source.
How billing and responses work
- Waterfall enrichment. Each lookup tries several data providers in sequence and stops at the first one that answers. You are charged once per lookup, never once per provider tried.
- You pay for answers, not attempts. A
not_foundresult is free. A request that times out or fails on our side is refunded. - Stable response bodies. Success is always
{ status, data }; failure is always{ error: { code, message } }. Provider names are never part of the response. See Errors. - Safe retries. Send an
Idempotency-Keyheader and a retried request replays the first response for 24 hours instead of charging again. See Rate limits and retries. - One balance. API calls draw on your organization’s credits, the same pool the app and the MCP server use. Check it on the usage and billing page.
API or MCP?
| Use the | When |
|---|---|
| REST API | A program or an unattended agent is making the call — a nightly CRM sync, a signup webhook, a script over a CSV, an agent on a schedule. You want fixed JSON and HTTP status codes. |
| MCP server | A person is asking — in Claude, ChatGPT or Cursor. You want 50+ tools, chained by the assistant, with browser sign-in and no key to store. |
The API covers the four highest-volume contact lookups today. Everything else — company enrichment, people search, signals — is available through the MCP server and in tables.
Support
- Join the Sync GTM Slack Community
- Contact support through the chat widget on docs.syncgtm.com
Include the endpoint, the HTTP status and the error.code when you report a problem — never the full API key.