Skip to main content
The same engine behind the MCP tools is also available as a small REST API under /api/v1. Use it from any HTTP client when you don’t want to run an MCP connection. Every endpoint uses the same API key authentication and returns markdown (Content-Type: text/markdown), except errors, which are JSON. Base URL: https://salesgraph.com

API inventory

All published REST endpoints below are standard Salesgraph service interfaces. No customer-specific custom APIs are published here.

List commands

Returns the markdown command catalog (same content as the help tool).

Run a command

{command} is one of research, competitors, gtm-audit, audit, help. Send the command’s arguments as a JSON body. Optionally include userContext (string) for extra context.
  • Sync commands (research, competitors, help) return 200 with the markdown result.
  • Async commands (gtm-audit, audit) return 202 with the run id in the X-Run-Id or X-Audit-Id header and X-Run-Status: running. Poll the run endpoint below.

Poll a run

{kind} is gtm-audit or audit; {id} is the run id from the start response. Returns a status markdown line while running, and the full result markdown once completed. The X-Run-Status header carries the current status.
Returns 404 if the id is unknown or belongs to another organization.

Org audit shortcut

Starts your org’s audit. By default returns 202 with a run id to poll. Pass {"wait": true} (or ?wait=true) to block until the audit finishes and return the result inline — note this can take several minutes and returns 504 if it exceeds the server timeout (the run keeps going; poll its id). GET /api/v1/audit?id=<id> polls an existing org audit.
For agent integrations, prefer the MCP server — it handles tool discovery and invocation for you. The REST API is here for simple scripts and non-MCP clients.