API and Claude connector
Each account page made through the API uses one credit, at £1 a credit and less in volume, and a gift ordered through it comes with its own. Pages made this way carry your AE's name and booking link, show up in GTM Hero like any other page, and send the same view, click and follow-up alerts. It works from a HubSpot or Salesforce workflow as well as from a sequencer.
1. Get an API key
An owner or admin creates keys in the app, under Settings → Organization → API keys. The key is shown once, so store it somewhere safe, like your tool's secrets. Give each tool its own key and revoke any you stop using. A key works until it's revoked, or until the person who created it leaves your company or stops being an admin, so nobody keeps access after they've gone.
Send the key on every request:
Authorization: Bearer pgh_live_…
If your tool can only set a plain header, X-API-Key: pgh_live_… works too. Check a key with GET /api/v1/me:
curl https://app.gtmhero.co.uk/api/v1/me -H "Authorization: Bearer $GTMHERO_API_KEY"
{
"organization": { "id": "…", "name": "Your Company" },
"key": { "name": "Outreach sequence", "prefix": "pgh_live_ab12" },
"limits": { "pages_per_24h": 500, "pages_used_24h": 37, "pages_remaining_24h": 463, "review_required": false }
}2. Create a page
POST /api/v1/pages
curl https://app.gtmhero.co.uk/api/v1/pages \
-H "Authorization: Bearer $GTMHERO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"company": { "website": "fernhollow.coffee" },
"contact": {
"name": "Jess Moore",
"email": "jess@fernhollow.coffee",
"role": "Head of Operations"
},
"owner_email": "sam@yourcompany.com",
"cta_url": "https://cal.com/sam/20min",
"external_id": "outreach-prospect-48213"
}'| Field | Description |
|---|---|
| company.website | Required. The prospect company's website. An account you already have for that domain is reused; otherwise a new one is created and researched. |
| company.name | Optional. Read from their site when you leave it out. |
| contact | Optional: name, email, role, linkedin_url. Needs a name or an email. The page is written for this person's role. Matched to an existing contact by email, then by name. |
| buyer_role | Optional. Who to write for when there's no specific person, e.g. "Head of Operations". Matched to a buyer type in your brand, or added as one. |
| persona_id | Optional. A buyer type id from your brand, instead of buyer_role. |
| owner_email | Optional. The AE who owns the account: their name, photo and booking link go on the page and they get its alerts. Defaults to the account's owner in GTM Hero, then to whoever created the key. |
| cta_url | Optional. Where the page's main button goes, e.g. the AE's booking link. https:, mailto: or tel:. |
| feature_ids | Optional. Limit the page to these features of your product. |
| layout | Optional. clean, split, showcase, bold, editorial or studio. Chosen from your brand when left out. |
| review | Optional, default false. true holds the page until its AE approves it in GTM Hero. |
| external_id | Optional, recommended. Your own id for this page, such as the prospect id in your sequencer. Sending the same external_id again returns the existing page (status 200) instead of making a second one, so retries are safe. |
| title | Optional. The page's name inside GTM Hero. |
The response comes back straight away with 201 Created and the page's url:
HTTP/1.1 201 Created
{
"id": "6f0c2d1e-…",
"object": "page",
"url": "https://app.gtmhero.co.uk/v/fernhollow-coffee-jess-moore-x1k29d0a",
"status": "writing",
"review_required": false,
"title": "Fernhollow Coffee · Jess Moore",
"headline": null,
"error": null,
"company": { "id": "9a1b…", "name": "Fernhollow Coffee", "website": "https://fernhollow.coffee" },
"contact": { "id": "c2d3…", "name": "Jess Moore", "email": "jess@fernhollow.coffee", "role": "Head of Operations" },
"owner": { "name": "Sam Carter", "email": "sam@yourcompany.com" },
"external_id": "outreach-prospect-48213",
"source": "api",
"app_url": "https://app.gtmhero.co.uk/variant/6f0c2d1e-…",
"created_at": "2026-09-29T09:14:03+00:00",
"updated_at": "2026-09-29T09:14:03+00:00"
}3. Wait for it to be ready
Writing a page usually takes a minute or two. The url works from the start: until the page is written it shows a short holding screen that refreshes itself, so a prospect who clicks early isn't met by an error. Still, send the link once the page is ready.
| Status | Meaning |
|---|---|
| writing | Queued or being written. The URL shows the holding screen. |
| awaiting_review | Written, and waiting for its AE to approve it in GTM Hero. Only when review was asked for. |
| ready | Written and live. Send the link. Views, clicks and alerts are tracked from now on. |
| failed | Couldn't be written; error says why. Try again with a new external_id, or regenerate it in GTM Hero. |
Option A: the page.ready webhook
Set an events webhook URL in the app, under Settings → Organization → Notifications & integrations. When an API page is ready to send, GTM Hero posts:
POST <your events webhook URL>
X-GTMHero-Timestamp: 1759137243
X-GTMHero-Signature-V2: sha256=<hex hmac over "<timestamp>.<body>">
{
"event": "page.ready",
"occurred_at": "2026-09-29T09:15:41+00:00",
"page": { "id": "6f0c2d1e-…", "url": "https://app.gtmhero.co.uk/v/…", "status": "ready", "external_id": "outreach-prospect-48213", … }
}page.failed is sent the same way. Both are signed like every other event; see verifying the signature. A page held for review fires page.ready when its AE approves it.
Option B: poll
curl https://app.gtmhero.co.uk/api/v1/pages/6f0c2d1e-… \ -H "Authorization: Bearer $GTMHERO_API_KEY"
Every 15 to 30 seconds is plenty. To find a page by your own id: GET /api/v1/pages?external_id=…
curl "https://app.gtmhero.co.uk/api/v1/pages?external_id=outreach-prospect-48213" \ -H "Authorization: Bearer $GTMHERO_API_KEY"
GET /api/v1/pages on its own lists your company's pages, newest first, including ones made in the app. It takes limit (up to 100) and offset.
Using it with a sequencer
The usual pattern, in a HubSpot workflow, Zapier, Make, n8n, Clay or your sequencer's own webhooks:
- When a prospect is added to a sequence, call
POST /api/v1/pageswith their company website, name, role and email, and their id asexternal_id. - Save the returned
urlto a custom field on the prospect, such asgtmhero_page. - Put that field in the email: "I put together a page for Fernhollow: {{gtmhero_page}}".
- Make the first step wait until the page is ready: either trigger it from
page.ready, or start the sequence with a delay of five minutes or more.
When the prospect opens it, the AE gets the usual alert, and the events webhook can write the view back to your CRM.
Send a gift
The same key can order a gift for one person: a deal reaches "Meeting booked" in HubSpot, and a Lego® name plaque goes in the post. We set your gifts up with you first, so a request only has to say which one, who it's for and what the note says.
POST /api/merch/requests
curl https://app.gtmhero.co.uk/api/merch/requests \
-H "Authorization: Bearer $GTMHERO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"request_id": "deal-4821",
"item": { "name": "Lego Kit" },
"recipient": {
"first_name": "Kelly",
"last_name": "Marsh",
"email": "kelly@haldanefreight.co.uk",
"job_title": "Head of Operations",
"company": "Haldane Freight",
"address": {
"line1": "14 Quay Street",
"city": "Bristol",
"postcode": "BS1 4DJ",
"country_code": "GB"
}
},
"note": "Hi Kelly, lovely to meet you on Tuesday…",
"requested_by": { "name": "Sam Carter", "email": "sam@yourcompany.com" }
}'| Field | Description |
|---|---|
| request_id | Required. Your own id for this order, such as the deal id. Sending it again returns the order already made (status 200, duplicate: true), so retries never send two gifts. |
| item.name | Required. One of the gifts set up for your company, by its name or code. A note on its own can be sent as item.kind: "note". |
| recipient | Required. first_name and last_name (or name), email, job_title, company and address: line1, line2, city, county, postcode, country_code. The first name is the one printed on the gift. |
| note | Optional. The words for the handwritten card. |
| company | Optional: name, domain, logo_url, for gifts printed with the recipient's logo. |
| minifig | Optional, Lego® kits only. man or woman. |
| allergens | Optional, for food. gluten_free: true works too. |
| requested_by | Optional: name, email. The AE who asked for it. |
| test | Optional. true runs every check and stores nothing, to try a connection. |
HTTP/1.1 201 Created
{
"ok": true,
"duplicate": false,
"order_id": "b7e1…",
"request_id": "deal-4821",
"status": "ready",
"product": "Lego Kit",
"problems": []
}A status of ready means it's in the queue to be made. attention means we have the order but something needs fixing before it prints, such as a missing address or a note too long to write legibly; problems lists what, and we'll pick it up with you. A gift we don't recognise returns 422 unknown_product: keep the request and send it again once the gift is set up.
Claude connector
GTM Hero is also an MCP server, so Claude can make pages for you: "make a GTM Hero page for the Head of Operations at fernhollow.coffee and give me the link." It uses the same API key and the same rules as the REST API. The server is at https://app.gtmhero.co.uk/mcp and offers four tools: create_landing_page, get_landing_page, list_landing_pages and get_page_allowance.
Claude Code
claude mcp add --transport http gtmhero https://app.gtmhero.co.uk/mcp \ --header "Authorization: Bearer pgh_live_…"
Claude Desktop
Add this to claude_desktop_config.json (Settings → Developer → Edit config), then restart Claude:
{
"mcpServers": {
"gtmhero": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://app.gtmhero.co.uk/mcp", "--header", "Authorization:${GTMHERO_AUTH}"],
"env": { "GTMHERO_AUTH": "Bearer pgh_live_…" }
}
}
}Any other MCP client that can send an Authorization header can connect the same way. A listing in Claude's connector directory, where you'd sign in instead of pasting a key, is on the way.
Limits
- Pages per day: 500 pages through the API and the Claude connector in any 24 hours, per company.
GET /api/v1/meshows what's left. Ask us if you need more. - Credits: each page uses one credit, whether it's made in the app, through the API or through the connector. A gift comes with the credit for its own page.
- Requests: 60 page creations, 300 page reads and 120 gift orders a minute per key.
- Going over any of them returns
429. Wait and retry; with anexternal_idor arequest_id, a retry can never make a duplicate.
Errors
Errors have a stable code and a message you can show a person:
HTTP/1.1 400 Bad Request
{ "error": { "code": "invalid_website", "message": "The company website should look like acme.com." } }| Code | HTTP | What to do |
|---|---|---|
| missing_api_key / invalid_api_key | 401 | Check the key is sent and hasn’t been revoked. |
| key_disabled | 401 | Its creator is no longer an admin. An admin creates a new key. |
| organization_inactive | 403 | Your GTM Hero account is paused. Talk to us. |
| api_disabled | 403 | The API is switched off for your company. Ask us to turn it on. |
| physical_disabled | 403 | Gifts aren’t switched on for your company. Ask us to turn them on. |
| invalid_website | 400 | Send a real, public website for the company. |
| invalid_cta_url | 400 | Use an https:, mailto: or tel: link. |
| unknown_owner | 400 | owner_email must be an active GTM Hero user in your company. |
| unknown_persona / unknown_feature | 404 | Use ids from your brand in GTM Hero. |
| page_not_found | 404 | No page with that id in your company. |
| brand_not_set_up | 409 | Finish your brand in GTM Hero first; pages are written from it. |
| unknown_product | 422 | That gift isn’t set up for your company yet. Ask us, then send the request again. |
| daily_limit / rate_limited | 429 | Wait and retry, or ask us to raise the daily limit. |
| (validation) | 422 | The body didn't match the schema; detail lists each field. |
OpenAPI spec
The full spec for the page endpoints is at app.gtmhero.co.uk/api/v1/openapi.json, for importing into Postman, Zapier, n8n or a custom GPT action.
Questions, or need an endpoint that isn't here? Ask us.