The GX360 API and webhooks.
Pull your growth data into your own dashboards, tools and bots: every work item with its steps, fix and content draft. Get told the moment a fix is ready, work moves or a lead arrives. Read-only REST, signed webhooks, plain JSON.
Three steps to your first call.
- The API and webhooks are part of the Scale and Managed plans.
- A company admin opens Settings → Developers in GX360 and creates an API key. The key is shown once: store it like a password.
- Call the API with the key. Every call reads, except the log push below, and a key only ever sees its own company’s data.
curl https://app.gx360.ai/api/public/v1/work-items?status=open&per_page=20 \
-H "Authorization: Bearer gx_live_xxxxxxxxxx_…"Want answers in Claude rather than code? The read-only MCP connector is on every plan and needs no API key.
One bearer key per integration.
Send the key in the Authorization header: Bearer gx_live_…. Keys never go in the URL. Make a separate key for each tool, named after it, so you can revoke one without breaking the others. Settings shows when each key was last used.
Base URL: https://app.gx360.ai/api/public/v1
JSON in a data envelope.
Lists are paged: pass page and per_page (up to 100, default 50). The meta object says whether there is more. Dates are ISO 8601 in UTC; filters like updated_since take a date or a date-time. To sync, keep the newest updated_at you saw and pass it next time.
{
"data": [
{
"id": 4182,
"site_id": 3,
"title": "Pricing page title is cut off in Google",
"category": "seo",
"priority": "P1",
"status": "open",
"page": "/pricing",
"keyword": "time tracking software pricing",
"summary": "The title is 74 characters…",
"expected_impact": 0.6,
"created_at": "2026-10-07T06:12:40+00:00",
"updated_at": "2026-10-07T06:12:40+00:00"
}
],
"meta": { "page": 1, "per_page": 20, "total": 37, "has_more": true }
}Plain status codes, one error shape.
Each key may make 120 requests a minute. Errors always look like this:
{
"error": {
"code": "rate_limited",
"message": "Too many requests: 120 a minute per key."
}
}| Status | code | Meaning |
|---|---|---|
| 401 | unauthenticated | The key is missing, wrong or revoked. |
| 403 | plan_required | The company’s plan does not include the API. |
| 404 | not_found | No such record in your company (another company’s site_id is also 404). |
| 422 | invalid_request | A parameter is wrong; fields says which. |
| 429 | rate_limited | More than 120 requests a minute on this key. Wait for Retry-After seconds. |
What you can call.
| Endpoint | Returns | Parameters |
|---|---|---|
GET /sites | Your websites. | — |
GET /work-items | Problems and proposals on the Work board, newest change first. Each row says whether a fix is saved and which Desklog task carries it. | site_id, status, updated_since, desklog_task_id, has_fix, needs_ai_fix, page, per_page |
GET /work-items/{id} | One work item in full: the problem, the steps, how to check it is done, the saved fix (Markdown and HTML), its Desklog task and its content item. | — |
GET /work-items/by-desklog/{task_id} | The same, found by the Desklog task a person or bot is working on. | — |
GET /content/{id} | A content item with its brief, plan and saved draft: title, slug, meta title and description, body HTML, schema and the brand-check verdict. | version (default: the latest draft) |
GET /kra-plans | KRA plans with each KRA, its KPIs, targets and current values. | site_id |
GET /leads | Leads from your connected CRM. | site_id, status, created_since, page, per_page |
GET /search/summary | Google Search clicks, impressions, CTR and position against the previous period. | site_id (required), days = 7, 28 or 90 |
GET /audit/summary | The latest site audit and open problems by severity. | site_id (required) |
POST /logs/ai-bots | Push server or CDN log lines; AI crawler hits (GPTBot, ClaudeBot, PerplexityBot…) are counted per page. Works as a Cloudflare Logpush HTTP destination. | site_id (required); body: access-log or JSON lines, plain or gzip, up to 50 MB |
Work item status is one of open, accepted, in_progress, done, dismissed or superseded. Need something that isn’t here? Tell us; the API grows with what customers use.
Everything needed to do one task.
A bot or script working your tasks reads one work item in full: the problem, the steps, how to check it is done and the saved fix, ready to apply. Working from a Desklog task? Look the item up by the task number. When the fix is an article or a page rewrite, content points to the draft: GET /content/{id} returns the title, meta, body HTML and schema, and ?version= returns an older draft.
curl https://app.gx360.ai/api/public/v1/work-items/by-desklog/126981 \
-H "Authorization: Bearer gx_live_…"{
"data": {
"id": 5034,
"site": { "id": 1, "name": "Desklog", "url": "https://desklog.io/" },
"title": "Fix free-plan limit and annual price on the pricing pages",
"status": "in_progress",
"priority": "P1",
"page": "/desklog-vs-hubstaff",
"brief": {
"problem": "The comparison page says the free plan has unlimited users; it is up to 3.",
"steps": ["Change the plan table cell to \"up to 3 users\"", "Correct the FAQ answers and their schema", "Change $420 to $378"],
"suggested_role": "Content writer",
"done_when": "No \"unlimited users\" on the page or in its JSON-LD"
},
"fix": {
"markdown": "1. Plan table: `$0 · unlimited users` → `$0 · up to 3 users`…",
"html": "<ol><li>Plan table: <code>$0 · unlimited users</code>…</li></ol>",
"saved_at": "2026-10-21T07:16:01+00:00",
"on_desklog_ticket_at": "2026-10-21T07:16:07+00:00"
},
"desklog": { "task_id": "126981", "status": "To Do", "sprint": "Sprint 3", "assignee": null },
"content": null,
"app_url": "https://app.gx360.ai/work?item=5034"
}
}Subscribe to work_item.fix_ready and content.draft_saved to hear the moment a fix or a draft is saved, instead of polling.
Fixes made in your code, on your machine.
gx360-fix hands each work item to Claude Code or Codex in your website’s git repository. Each fix goes on its own local branch with one commit; nothing is pushed or deployed. It is in the Growth, Scale and Managed plans. Read how it works.
- In GX360, open Settings → Task Assistant, choose Fixing Agent, the website and the work items (or every open item), and how long the key lasts. The
gxa_key is shown once. - Install the command on a Linux or macOS machine with git, curl and jq, then log in.
- Run it inside the website’s repository.
curl -fsSL https://app.gx360.ai/api/v1/fixer/install.sh | bash
gx360-fix login --token gxa_…
gx360-fix setup # optional: add GX360 to Claude Code / Codex
cd ~/sites/your-website
gx360-fix run --test "npm run build"| Command | What it does |
|---|---|
gx360-fix login --token gxa_… | Saves the key in ~/.config/gx360-fix and checks it. |
gx360-fix setup [--agent claude|codex|both] | Adds GX360 to Claude Code and/or Codex as an MCP server. |
gx360-fix list | The open tasks this key covers. |
gx360-fix run [--task ID] [--agent claude|codex] [--test "…"] [--yes] | For each task: a gx360/<id> branch, the fix by your AI agent, your check command, one commit, and the report back to GX360 and the Desklog ticket. |
gx360-fix status | Your gx360/* branches with their last commit. |
gx360-fix doctor | Checks git, curl, jq, the AI agents, the key and the connection. |
gx360-fix update | Installs the latest gx360-fix. |
The key is an MCP credential for https://app.gx360.ai/api/mcp. gx360-fix setup adds it to Claude Code and Codex as gx360-fixer, so you can also ask them about your tasks directly. A Fixing Agent key can call only these tools, only for its website and its tasks:
| MCP tool | What it does |
|---|---|
list_assigned_tasks | The tasks this key covers. |
get_fix_playbook | One task in full (problem, steps, fix notes, how to check it is done, its Desklog ticket) and the rules for changing the code. Moves the Desklog ticket from To Do to In Progress. |
report_code_change | Records the branch, commit, files, summary and check result on the work item and adds them to its Desklog ticket. |
save_task_update | A progress note or findings when no code change was needed or possible. |
submit_task_for_review | Asks a person to review the change. |
get_assigned_task, get_brand_truth, fetch_page, check_page_live, get_health | Reading: the task, the approved brand facts, the live page and the connection. |
The key never changes a work item’s status: a person reviews the branch, merges it and moves the item. Subscribe to work_item.status_changed to hear when that happens. Desklog tickets written by hand come into GX360 twice a day, so the Fixing Agent can work them too.
Get told, instead of asking.
In Settings → Developers, add an https endpoint and pick its events. You get a signing secret once; use it to check each delivery. Send test posts a ping event so you can check your receiver straight away.
| Event | Sent when |
|---|---|
work_item.created | A new problem or proposal is on the Work board. |
work_item.status_changed | A work item moved: accepted, in progress, done, dismissed… Includes previous_status. |
work_item.fix_ready | The exact fix was saved on a work item. Includes desklog_task_id and content_id; read it from /work-items/{id}. |
content.draft_saved | A content draft was saved. Includes the version and its brand-check verdict; read it from /content/{id}. |
kra_plan.scored | A KRA plan was scored again, with its new overall score. |
lead.created | A new lead arrived from your CRM. |
audit.completed | A site audit finished. |
The data object uses the same fields as the API. The body’s id equals the X-Gx360-Delivery header and stays the same across retries, so you can ignore one you’ve already handled.
POST /hooks/gx360 HTTP/1.1
Content-Type: application/json
User-Agent: gx360-webhooks/1
X-Gx360-Event: work_item.status_changed
X-Gx360-Delivery: 9b0d6f3e-2c8a-4f8e-9a51-3c1f7d2b6e10
X-Gx360-Signature: t=1791360000,v1=5f2b…c9
{
"id": "9b0d6f3e-2c8a-4f8e-9a51-3c1f7d2b6e10",
"event": "work_item.status_changed",
"created_at": "2026-10-07T09:20:00+00:00",
"data": {
"id": 4182,
"site_id": 3,
"title": "Pricing page title is cut off in Google",
"status": "done",
"previous_status": "in_progress"
}
}Check every delivery came from GX360.
X-Gx360-Signature holds a Unix time t and v1, the hex HMAC-SHA256 of "<t>.<raw body>" with your endpoint’s secret. Compute it over the raw body before parsing the JSON, compare in constant time, and reject anything older than five minutes.
import crypto from 'node:crypto'
// rawBody: the request body exactly as received (a Buffer or string).
export function verify(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')))
const age = Math.abs(Date.now() / 1000 - Number(parts.t))
if (age > 300) return false // older than five minutes: reject
const expected = crypto.createHmac('sha256', secret)
.update(`${parts.t}.${rawBody}`).digest('hex')
const given = Buffer.from(parts.v1 ?? '')
return given.length === expected.length && crypto.timingSafeEqual(Buffer.from(expected), given)
}<?php
function gx360_verify(string $rawBody, string $header, string $secret): bool
{
parse_str(str_replace(',', '&', $header), $parts);
if (abs(time() - (int) ($parts['t'] ?? 0)) > 300) {
return false; // older than five minutes: reject
}
$expected = hash_hmac('sha256', $parts['t'].'.'.$rawBody, $secret);
return hash_equals($expected, $parts['v1'] ?? '');
}Answer 2xx within ten seconds.
Any other answer, a timeout or a redirect counts as a failure. We retry after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours, then mark the delivery failed. The delivery log in Settings shows each attempt and what your server answered. After 50 failures in a row the endpoint is paused; switch it back on when it’s fixed. Do slow work after you’ve answered, not before.