GeoGryphon API Documentation

Programmatic access to AI visibility audits, content briefs and scheduled monitors. API keys are available on Pro and Agency plans.

https://api.geogryphon.com

Authentication

GeoGryphon supports two auth methods. Both work on every authenticated endpoint — pick whichever fits your use case.

JWT (recommended for browsers)

Sign in with Google via POST /auth/google to receive a JWT, then include it as a Bearer token. JWTs are short-lived (7 days) and tied to a specific user.

Authorization: Bearer eyJhbGciOiJIUzI1NiIs...

API Keys (recommended for servers, Pro and Agency plans)

Generate a key via POST /auth/api-keys, then include it in the X-API-Key header. API keys don't expire — revoke manually if compromised. Each user may have one active key at a time; generating a new one replaces the previous.

X-API-Key: geogryphon_a1b2c3d4...

All endpoints except GET /health and POST /auth/google require authentication. Requests without a valid JWT or API key will receive a 401 Unauthorized response.

Auth Endpoints

POST /auth/google No Auth Required

Exchange a Google OAuth ID token for a GeoGryphon JWT session token. Use the Google Sign-In SDK to obtain the credential value.

Request Body
{
  "credential": "eyJhbGciOiJSUzI1NiIs...google_id_token"
}
Response 200 OK
{
  "token": "eyJhbGciOiJIUzI1NiIs...geogryphon_jwt",
  "user": {
    "userId": "usr_a1b2c3d4",
    "email": "user@example.com",
    "name": "Jane Smith",
    "tier": "professional"
  }
}
GET /auth/me Auth Required

Get the current authenticated user's profile, plan tier, and usage counters for the current billing period.

Response 200 OK
{
  "userId": "usr_a1b2c3d4",
  "email": "user@example.com",
  "name": "Jane Smith",
  "tier": "professional",
  "auditsUsed": 12,
  "briefsUsed": 5,
  "resetsAt": "2026-05-01T00:00:00.000Z",
  "paymentStatus": "ok",
  "teamOwnerId": null,
  "hasStripe": true,
  "oneTimeCredits": {
    "snapshot": 0,
    "bundle": 0,
    "brief": 0,
    "agencyPack": 0
  }
}
DELETE /auth/me Auth Required

Permanently delete the authenticated user's account. Cancels any active Stripe subscription, wipes all audits, briefs, monitors, API keys, and team memberships. Agency owners also unlink their team members (who are downgraded to Free tier). GDPR/CCPA right-to-erasure compliant.

This action is irreversible. A typed confirmation is required in the request body to prevent accidental deletions.

Request Body
{
  "confirm": "DELETE"
}
Response 200 OK
{
  "message": "Account deleted",
  "deletedAt": "2026-04-21T15:30:00.000Z"
}

Returns 400 if the confirm field is missing or not exactly "DELETE".

API Key Endpoints

API keys let you authenticate server-to-server without a JWT. Pro and Agency plans only (and the legacy Business plan). Each user may have one active key at a time — generating a new key revokes the previous one automatically.

POST /auth/api-keys Auth Required (JWT)

Generate a new API key. Must be authenticated with a JWT (not with an existing API key). Returns the key once — save it immediately; the full key is not stored and cannot be retrieved later.

Response 201 Created
{
  "apiKey": "geogryphon_a1b2c3d4e5f6...40hex",
  "prefix": "geogryphon_a1b2c3d4e5f",
  "message": "Save this key — it won't be shown again"
}

Returns 403 if the user's plan is below Pro.

GET /auth/api-keys Auth Required

Check whether the user has an active API key. Returns the prefix (first 22 chars, safe to display) and creation time, never the full key.

Response 200 OK (has key)
{
  "hasKey": true,
  "prefix": "geogryphon_a1b2c3d4e5f",
  "createdAt": "2026-04-10T12:00:00.000Z"
}
Response 200 OK (no key)
{
  "hasKey": false
}
DELETE /auth/api-keys Auth Required

Revoke the current API key. All subsequent requests using the revoked key will return 401 Unauthorized.

Response 200 OK
{
  "message": "API key revoked"
}

Team Endpoints

Invite up to 10 team members who sign in with their own Google accounts and inherit your subscription tier. Agency tier only. Auto-link: if you invite an email that later signs in with Google, they're automatically linked to your team on their first login — no separate invite link required.

POST /auth/team/invite Auth Required (Agency)

Invite a new team member by email. Emails are normalized to lowercase before storage, so case mismatches on future Google sign-in won't break the auto-link.

Request Body
{
  "email": "colleague@acme.com",
  "role": "member"
}
FieldTypeRequiredDescription
emailstringYesTeam member's email (RFC-compliant, max 254 chars)
rolestringYesOne of: admin, member, viewer
Response 201 Created
{
  "inviteId": "inv_a1b2c3d4e5f6...",
  "email": "colleague@acme.com",
  "role": "member",
  "status": "pending"
}
GET /auth/team Auth Required

List all team members (pending invites + active members). Team owners see all entries; team members see the same list read-only.

Response 200 OK
{
  "members": [
    {
      "email": "colleague@acme.com",
      "role": "member",
      "status": "active",
      "joinedAt": "2026-04-15T10:30:00.000Z"
    },
    {
      "email": "intern@acme.com",
      "role": "viewer",
      "status": "pending",
      "createdAt": "2026-04-20T14:00:00.000Z"
    }
  ]
}
DELETE /auth/team/{email} Auth Required (Agency)

Remove a team member. If the member had already signed in and was linked to your team, their tier is downgraded to Free on their next API call. URL-encode the email in the path.

Path Parameters
ParameterTypeDescription
emailstringURL-encoded email (e.g. colleague%40acme.com). Case-insensitive.
Response 200 OK
{
  "message": "Team member removed"
}

Audit Endpoints

How an audit runs

Each audit asks real AI engines live questions, which takes longer than an HTTP request may stay open. So audits are asynchronous:

  1. POST /audits stores the audit as "status": "running" and returns 202 Accepted straight away, with the auditId, pollAfterMs and estimatedSeconds.
  2. Poll GET /audits/{id} every pollAfterMs milliseconds (5 seconds).
  3. Stop when status is "completed" or "failed". Most audits finish in 15–90 seconds; ChatGPT is the slowest engine. A run that has not finished after several minutes is reported as "failed" with "stale": true.

Each audit measures at most 3 keywords, with one prompt per keyword per engine. If you send more, the extras are not checked: they come back in keywordsDropped together with a human-readable notice. Each competitor domain also counts as one audit from your monthly allowance; competitors you can't afford this month are listed in competitorsDropped with a notice. Show the notice to your user whenever it is present.

How the score is calculated

shareOfVoice.score is a number from 0 to 100. For each engine that was reached (status: "completed"), the audit gives a prominence value:

  • cited as source #1: 100; #2: 85; #3: 75; #4 to #7: 55 down to 40; later: 25. Add 10 (up to 100) if the answer also names you;
  • named in the answer but not cited as a source: 40;
  • not mentioned: 0.

Prominence is multiplied by a sentiment weight (positive 1.1, neutral 1.0, negative 0.7). The score is the average over the engines reached, capped at 100. Engines that errored or were unavailable are left out of the average, so always read score together with totalEngines (engines reached) and enginesRequested. citedIn counts engines that named or cited you; citedAsSourceIn counts real source citations only, and mentionedOnlyIn counts engines that named you without linking to you.

Each engine result has method: "measured" means the engine's own API with live web search was queried; "inferred" (Google AI Overviews, Bing Copilot, Meta AI) means the result is estimated from the search results those assistants draw on, not read from the assistant itself.

POST /audits Auth Required

Start an AI visibility audit for a domain. The engines checked depend on your plan (Free: ChatGPT, Gemini, Claude; Solo adds Grok; Pro and Agency: all 8). Returns 202 Accepted immediately; fetch the result with GET /audits/{id}.

Request Body
{
  "domain": "snapitforms.com",
  "keywords": ["online form builder", "form builder with payments", "hipaa compliant forms"],
  "competitors": ["jotform.com"]
}
FieldTypeRequiredDescription
domainstringYesThe domain to audit (e.g. "acme.com")
keywordsstring[]YesWhat you sell, as buyers would search for it (e.g. "running shoes"), not your brand name. Up to 3 keywords are measured per audit; extras are returned in keywordsDropped.
competitorsstring[]NoCompetitor domains to compare against. Free: 0, Solo: 1, Pro: 3, Agency: 10. Each one counts as one audit.
Response 202 Accepted
{
  "auditId": "638009f7-7d9d-4801-8f8d-fb9780149f3d",
  "userId": "google_1234567890",
  "domain": "snapitforms.com",
  "keywords": ["online form builder", "form builder with payments", "hipaa compliant forms"],
  "engines": [],
  "shareOfVoice": {
    "score": 0,
    "citedIn": 0,
    "totalEngines": 0,
    "citationRate": 0
  },
  "tier": "solo",
  "source": "subscription",
  "whiteLabel": false,
  "status": "running",
  "anonymous": false,
  "partial": false,
  "enginesRequested": ["chatgpt", "gemini", "claude", "grok"],
  "competitorsRequested": ["jotform.com"],
  "auditsCharged": 2,
  "createdAt": "2026-11-04T13:35:52.081Z",
  "keywordsDropped": ["form analytics"],
  "notice": "Only the first 3 keywords are measured per audit. Not checked: form analytics.",
  "message": "Scan started. Poll GET /audits/{id} until status is \"completed\".",
  "pollAfterMs": 5000,
  "estimatedSeconds": 90
}

keywordsDropped, competitorsDropped and notice are only present when something was left out. Other responses: 400 invalid domain or keywords; 429 monthly audit limit reached (body includes limit and resetsAt) or too many requests per minute (retryAfter); 502 the scan could not be started; retry.

GET /audits Auth Required

List your audits, most recent first, up to 50 per request. Each item is the stored audit object (same fields as GET /audits/{id}), including audits that are still running.

Response 200 OK
{
  "audits": [
    {
      "auditId": "638009f7-7d9d-4801-8f8d-fb9780149f3d",
      "domain": "snapitforms.com",
      "keywords": ["online form builder"],
      "status": "completed",
      "shareOfVoice": { "score": 0, "citedIn": 0, "totalEngines": 3 },
      "createdAt": "2026-11-04T13:35:52.081Z"
      /* ...remaining audit fields */
    }
  ]
}
GET /audits/{id} Auth Required

Get one audit. Poll this after POST /audits until status is "completed" or "failed". While running, engines is an empty array and the score is 0.

Path Parameters
ParameterTypeDescription
idstringThe auditId (a UUID) returned by POST /audits
Response 200 OK (completed)

A real Solo-plan audit of our own sister product, trimmed for length (snippet text shortened, three of each source list shown). Grok shows how an engine that could not be reached is reported: it is excluded from the score, so totalEngines is 3 of 4 requested.

{
  "auditId": "638009f7-7d9d-4801-8f8d-fb9780149f3d",
  "userId": "google_1234567890",
  "domain": "snapitforms.com",
  "keywords": ["online form builder"],
  "status": "completed",
  "tier": "solo",
  "source": "subscription",
  "whiteLabel": false,
  "enginesRequested": ["chatgpt", "gemini", "claude", "grok"],
  "competitorsRequested": ["jotform.com"],
  "auditsCharged": 2,
  "createdAt": "2026-11-04T13:35:52.081Z",
  "completedAt": "2026-11-04T13:38:01.479Z",
  "shareOfVoice": {
    "score": 0,
    "citedIn": 0,
    "citedAsSourceIn": 0,
    "mentionedOnlyIn": 0,
    "totalEngines": 3,
    "enginesRequested": 4,
    "enginesUnavailable": 0,
    "measuredEngines": 3,
    "citationRate": 0,
    "trueCitationRate": 0
  },
  "engines": [
    {
      "engineId": "chatgpt",
      "engineLabel": "ChatGPT",
      "status": "completed",
      "method": "measured",
      "cited": false,
      "brandMentioned": false,
      "position": null,
      "prominence": 0,
      "sentiment": "neutral",
      "promptsRun": 1,
      "promptsFailed": 0,
      "totalSources": 14,
      "uniqueSourceHosts": 13,
      "scannedAt": "2026-11-04T13:35:52.262Z",
      "snippets": [],
      "topSources": [
        {
          "host": "en.wikipedia.org",
          "count": 2,
          "bestPosition": 1,
          "isYou": false,
          "title": "Jotform",
          "url": "https://en.wikipedia.org/wiki/Jotform"
        },
        {
          "host": "paperform.com",
          "count": 1,
          "bestPosition": 3,
          "isYou": false,
          "title": "No-Code Form Builder | Build Forms Online Free | Paperform",
          "url": "https://paperform.com/no-code-form-builder/"
        },
        {
          "host": "fillout.com",
          "count": 1,
          "bestPosition": 4,
          "isYou": false,
          "title": "Fillout | Form integrations",
          "url": "https://www.fillout.com/integrations"
        }
      ]
    },
    /* gemini and claude: same shape, both status "completed", cited false */,
    {
      "engineId": "grok",
      "engineLabel": "Grok",
      "status": "error",
      "method": "measured",
      "cited": false,
      "position": null,
      "prominence": 0,
      "sentiment": "neutral",
      "promptsRun": 0,
      "error": "HTTP 403",
      "scannedAt": "2026-11-04T13:35:52.262Z",
      "snippets": [],
      "topSources": []
    }
  ],
  "topSources": [
    {
      "host": "tally.so",
      "engines": 2,
      "count": 2,
      "bestPosition": 4,
      "isYou": false,
      "title": "Tally - Create Beautiful Forms for Free | Unlimited Forms & ",
      "url": "https://tally.so/"
    },
    {
      "host": "plumsail.com",
      "engines": 2,
      "count": 2,
      "bestPosition": 5,
      "isYou": false,
      "title": "plumsail.com",
      "url": "https://plumsail.com/"
    },
    {
      "host": "en.wikipedia.org",
      "engines": 1,
      "count": 2,
      "bestPosition": 1,
      "isYou": false,
      "title": "Jotform",
      "url": "https://en.wikipedia.org/wiki/Jotform"
    }
  ],
  "comparison": {
    "competitors": [
      {
        "citedAsSourceIn": 2,
        "citedIn": 3,
        "domain": "jotform.com",
        "engines": 3,
        "mentionedOnlyIn": 1,
        "score": 66
      }
    ],
    "domain": {
      "citedAsSourceIn": 0,
      "citedIn": 0,
      "domain": "snapitforms.com",
      "engines": 3,
      "mentionedOnlyIn": 0,
      "score": 0
    },
    "rank": 2,
    "totalCompared": 2
  },
  "competitorResults": [
    {
      "domain": "jotform.com",
      "shareOfVoice": {
        "score": 66,
        "citedIn": 3,
        "citedAsSourceIn": 2,
        "mentionedOnlyIn": 1,
        "totalEngines": 3
      },
      "engines": [
        {
          "engineId": "claude",
          "engineLabel": "Claude",
          "status": "completed",
          "method": "measured",
          "cited": true,
          "brandMentioned": true,
          "position": 3,
          "prominence": 85,
          "sentiment": "positive",
          "promptsRun": 1,
          "promptsFailed": 0,
          "totalSources": 9,
          "uniqueSourceHosts": 9,
          "scannedAt": "2026-11-04T13:37:12.036Z",
          "snippets": [
            {
              "type": "citation",
              "position": 3,
              "prompt": "What are the best options for online form builder? Recommend specific companies or products, and name the websites you would point someone to.",
              "text": "I'll search for the best online form builder options available today.Based on current reviews and comparisons,...",
              "title": "10 best online free form builders in 2026",
              "link": "https://www.jotform.com/blog/best-online-form-builder/"
            }
          ],
          "topSources": [
            {
              "host": "guideflow.com",
              "count": 1
            },
            {
              "host": "perspective.co",
              "count": 1
            }
          ]
        },
        /* chatgpt, gemini, grok: same shape */
      ]
    }
  ]
}
FieldDescription
statusrunning, completed or failed (then error explains why).
engines[]One entry per engine requested. status is completed, error or unavailable; only completed engines count towards the score.
engines[].citedtrue if the engine named you or cited your site. position is your best source position (1 = first source), or null if you were only named or not found.
engines[].snippets[]Evidence for each hit: type is citation (your URL was a source) or mention (named in the answer only), with the exact prompt asked and the start of the answer.
engines[].topSources[]The domains this engine cited instead, ranked by how often they appear. isYou marks your own domain.
topSources[]The same, rolled up across engines; engines is how many engines cite that host.
comparison, competitorResults[]Present when competitors were audited. Competitor engines keep a shorter source list (host and count only).

Returns 404 if the audit does not exist and 403 if it belongs to another account.

Content Brief Endpoints

Briefs are generated by a language model and take 40–90 seconds, so they use the same flow as audits: POST /briefs returns 202 Accepted with "status": "generating", then poll GET /briefs/{id} until status is "completed" or "failed".

POST /briefs Auth Required

Start a citation-optimized content brief: recommended sections with answer blocks, entities to cover, SEO guidance and, on Pro and Agency, ready-to-paste JSON-LD.

Request Body
{
  "topic": "Best online form builders for small businesses",
  "keywords": ["online form builder", "form builder with payments"],
  "domain": "snapitforms.com",
  "targetEngine": "chatgpt"
}
FieldTypeRequiredDescription
topicstringYesThe content topic or title (up to 200 characters, one line)
keywordsstring[]YesTarget keywords (max 10)
domainstringNoYour domain, for brand-specific guidance
targetEnginestringNoAI engine to optimize for (e.g. chatgpt, perplexity, gemini, claude). Omit to optimize for all engines.
Response 202 Accepted
{
  "briefId": "0913564d-f7ca-4799-aa45-29f360c444c7",
  "userId": "google_1234567890",
  "source": "subscription",
  "topic": "Best online form builders for small businesses",
  "targetKeywords": ["online form builder", "form builder with payments"],
  "targetDomain": "snapitforms.com",
  "optimizedFor": "chatgpt",
  "status": "generating",
  "generatedAt": "2026-11-05T15:00:00.000Z",
  "message": "Brief generation started. Poll GET /briefs/{id} until status is \"completed\".",
  "pollAfterMs": 5000,
  "estimatedSeconds": 60
}

Returns 429 with limit and resetsAt when the monthly brief allowance is used up.

GET /briefs Auth Required

List your content briefs, most recent first, up to 50 per request. Each item is the stored brief object.

Response 200 OK
{
  "briefs": [
    {
      "briefId": "0913564d-f7ca-4799-aa45-29f360c444c7",
      "topic": "Best online form builders for small businesses",
      "optimizedFor": "chatgpt",
      "status": "completed",
      "generatedAt": "2026-11-05T15:00:00.000Z"
      /* ...remaining brief fields */
    }
  ]
}
GET /briefs/{id} Auth Required

Get one brief. Poll this after POST /briefs until status is "completed" or "failed".

Path Parameters
ParameterTypeDescription
idstringThe briefId (a UUID) returned by POST /briefs
Response 200 OK (completed, trimmed)
{
  "briefId": "0913564d-f7ca-4799-aa45-29f360c444c7",
  "status": "completed",
  "topic": "Best online form builders for small businesses",
  "optimizedFor": "chatgpt",
  "totalWordCount": "700-1200 words",
  "entities": [
    { "entity": "Form builder", "type": "concept", "relevance": 0.95 }
  ],
  "sections": [
    {
      "heading": "Introduction & Answer Block",
      "wordCount": "80-120 words",
      "guidance": "Write a 40-50 word answer block that directly answers the topic...",
      "answerBlock": "...",
      "entities": ["Form builder"],
      "csqaf": { "citations": "...", "statistics": "...", "quotations": "...", "authoritativeness": "...", "fluency": "..." }
    }
  ],
  "seoGuidance": { "titleFormat": "...", "metaDescription": "...", "headerStrategy": "...", "schemaMarkup": "..." },
  "aiOptimization": { "answerBlockLength": "...", "listFormat": "...", "freshnessRule": "..." },
  "jsonLd": [ { "@context": "https://schema.org", "@type": "Article", "headline": "..." } ],
  "freshnessExpiresAt": "2026-02-03T15:01:10.000Z",
  "generatedAt": "2026-11-05T15:00:00.000Z",
  "completedAt": "2026-11-05T15:01:10.000Z"
}

jsonLd is included on Pro and Agency only.

Monitor Endpoints

A monitor re-runs an audit for a domain on a schedule (daily or weekly). Solo: 2 monitors, Pro: 10, Agency: 25. Free plans cannot create monitors.

Monitors use your monthly audit allowance. Every scheduled run costs 1 audit for the domain plus 1 for each competitor, from the same allowance as manual audits. A daily monitor with one competitor uses about 60 audits a month, so on Solo (20 audits) or Pro (50) choose weekly unless you have an add-on. When the allowance runs out, competitors are left out of the run first, and then runs are skipped until the allowance resets.
POST /monitors Auth Required (Solo+)

Create a monitor. It becomes eligible to run on the next hourly scheduler pass.

Request Body
{
  "domain": "snapitforms.com",
  "keywords": ["online form builder"],
  "competitors": ["jotform.com"],
  "frequency": "weekly"
}
FieldTypeRequiredDescription
domainstringYesPublic hostname to monitor
keywordsstring[]Yes1–10 keywords, each up to 100 characters. As with audits, up to 3 are measured per run.
competitorsstring[]NoTrimmed to your plan's competitor limit
frequencystringNodaily (default) or weekly
Response 201 Created
{
  "userId": "google_1234567890",
  "monitorId": "5b0c2f1e-8a43-4c1d-9e7a-2d6f4b1a9c30",
  "domain": "snapitforms.com",
  "keywords": ["online form builder"],
  "competitors": ["jotform.com"],
  "frequency": "weekly",
  "status": "active",
  "lastRunAt": null,
  "nextRunAt": "2026-11-05T15:00:00.000Z",
  "createdAt": "2026-11-05T15:00:00.000Z"
}

Returns 403 on the Free plan and 429 when you already have your plan's maximum number of monitors (body includes limit).

GET /monitors Auth Required

List your monitors.

Response 200 OK
{
  "monitors": [ /* monitor objects, as returned by POST /monitors */ ]
}
GET /monitors/{id} Auth Required

Get one monitor plus your audits of the same domain from the last 30 days (up to 30, newest first), for trend charts.

Response 200 OK
{
  "monitor": { /* monitor object */ },
  "recentAudits": [ /* audit objects, as returned by GET /audits/{id} */ ]
}
PUT /monitors/{id} Auth Required

Update a monitor. Send any of keywords (1–10), competitors, frequency (daily/weekly) or status (active/paused). Returns the updated monitor; 400 if no valid field was sent.

Request Body
{
  "frequency": "weekly",
  "status": "paused"
}
DELETE /monitors/{id} Auth Required

Delete a monitor. Past audits it ran are kept.

Response 200 OK
{
  "deleted": true,
  "monitorId": "5b0c2f1e-8a43-4c1d-9e7a-2d6f4b1a9c30"
}

Billing Endpoints

POST /stripe/create-checkout Auth Required

Create a Stripe Checkout session to subscribe to a paid plan or buy an add-on or one-time pack. Returns a URL to redirect the user to Stripe's hosted checkout page. New subscriptions include a 14-day free trial, one trial per account.

Request Body
{
  "priceId": "price_1TJiqX7lGnd7R4ba5dEGrlhB",
  "successUrl": "https://geogryphon.com/success.html",
  "cancelUrl": "https://geogryphon.com/pricing.html"
}
Response 200 OK
{
  "url": "https://checkout.stripe.com/c/pay/cs_live_...",
  "sessionId": "cs_live_..."
}

price_1TJiqX7lGnd7R4ba5dEGrlhB is Solo monthly ($29). Other plan prices: Solo yearly price_1UWIov7lGnd7R4ba1U4GUBh5 ($290), Pro monthly price_1UWIov7lGnd7R4barE16oukO ($79), Pro yearly price_1UWIow7lGnd7R4ba91OihE56 ($790).

Returns 409 Conflict when the account already has a plan. If the body has "portal": true, switch plans with POST /stripe/change-plan or manage the subscription through POST /stripe/portal; otherwise the plan is managed manually and the error message says who to contact.

POST /stripe/change-plan Auth Required

Switch an existing subscription between Solo and Pro, monthly or yearly, without a new checkout. The change takes effect immediately and Stripe prorates it: you are credited for unused time on the old plan and charged for the rest of the period on the new one.

Request Body
{
  "priceId": "price_1UWIov7lGnd7R4barE16oukO"
}
Response 200 OK
{
  "ok": true,
  "status": "active",
  "newTier": "professional"
}

On failure the body is { "error": "..." }, for example when the account has no subscription to change or the price is not one of the four plan prices above.

POST /stripe/portal Auth Required

Create a Stripe Customer Portal session. The portal lets users manage their subscription, update payment methods, and view invoices.

Request Body
{
  "returnUrl": "https://geogryphon.com/dashboard.html"
}
Response 200 OK
{
  "url": "https://billing.stripe.com/p/session/..."
}

System Endpoints

GET /health No Auth Required

Health check endpoint. Use this to verify the API is operational.

Response 200 OK
{
  "status": "ok",
  "timestamp": "2026-04-07T14:30:00.000Z"
}

Rate Limits

API requests are rate-limited per user using a sliding window of 60 seconds. When you exceed the limit, the API returns 429 Too Many Requests. The response includes a Retry-After header indicating how many seconds to wait.

Tier Audits Briefs Auth Monthly Audits Monthly Briefs
Free 5/min 3/min 10/min (IP) 3 1
Solo 10/min 5/min 10/min (IP) 20 5
Pro 30/min 20/min 10/min (IP) 50 20
Agency 60/min 40/min 10/min (IP) Custom Custom

Each competitor domain in an audit counts as one monthly audit, and so does each scheduled monitor run. Over the monthly allowance, POST /audits returns 429 with limit and resetsAt; if competitors don't fit in what is left, the audit runs without them and the response lists them in competitorsDropped.

Monthly usage counters reset automatically on the first day of each billing period. Check your current usage via GET /auth/me.

Code Examples

cURL — Start an audit, then poll for the result

# 1. Start the audit (returns 202 with an auditId)
curl -X POST https://api.geogryphon.com/audits \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "domain": "acme.com",
    "keywords": ["project management software", "task tracking app"],
    "competitors": ["asana.com"]
  }'

# 2. Poll every 5 seconds until "status" is "completed" or "failed"
curl https://api.geogryphon.com/audits/AUDIT_ID \
  -H "X-API-Key: YOUR_API_KEY"

JavaScript — Run an audit and wait for it

const API = 'https://api.geogryphon.com';
const headers = {
  'Content-Type': 'application/json',
  'X-API-Key': apiKey
};
const sleep = ms => new Promise(r => setTimeout(r, ms));

// 1. Start the audit. Expect 202 Accepted.
const start = await fetch(`${API}/audits`, {
  method: 'POST',
  headers,
  body: JSON.stringify({
    domain: 'acme.com',
    keywords: ['project management software'],
    competitors: ['asana.com']
  })
});
let audit = await start.json();
if (start.status !== 202) throw new Error(audit.error);
if (audit.notice) showNotice(audit.notice); // e.g. keywords or competitors left out

// 2. Poll until it finishes.
while (audit.status === 'running') {
  await sleep(audit.pollAfterMs || 5000);
  const res = await fetch(`${API}/audits/${audit.auditId}`, { headers });
  audit = { ...audit, ...(await res.json()) };
}
if (audit.status === 'failed') throw new Error(audit.error);

// 3. Read the result. score is already 0-100; engines is an array.
const sov = audit.shareOfVoice;
const summary = `Score ${sov.score}/100: cited in ${sov.citedIn} of ${sov.totalEngines} engines reached`;
const citedInstead = audit.topSources.filter(t => !t.isYou).map(t => t.host);

Python — Generate a Content Brief

import time
import requests

API_BASE = "https://api.geogryphon.com"
API_KEY = "YOUR_API_KEY"

headers = {
    "Content-Type": "application/json",
    "X-API-Key": API_KEY
}

# Start a content brief optimized for ChatGPT (returns 202)
brief = requests.post(
    f"{API_BASE}/briefs",
    headers=headers,
    json={
        "topic": "Best project management tools",
        "keywords": ["project management software"],
        "domain": "acme.com",
        "targetEngine": "chatgpt"
    }
).json()

# Poll until it is ready (usually 40-90 seconds)
while brief["status"] == "generating":
    time.sleep(brief.get("pollAfterMs", 5000) / 1000)
    brief = requests.get(f"{API_BASE}/briefs/{brief['briefId']}", headers=headers).json()

if brief["status"] == "completed":
    print(f"Sections: {len(brief['sections'])}, entities: {len(brief['entities'])}")

Error Codes

All error responses follow a consistent format:

{
  "error": "Short error code",
  "message": "Human-readable description of what went wrong."
}
StatusErrorDescription
400 bad_request Missing or invalid request parameters. Check the request body matches the expected schema.
401 unauthorized Missing or invalid JWT token. Re-authenticate via POST /auth/google to obtain a new token.
403 forbidden Your plan does not include access to this feature. Upgrade at pricing.
404 not_found The requested resource (audit, brief, etc.) does not exist or belongs to another user.
409 conflict Checkout only: the account already has a plan. Use POST /stripe/change-plan or the billing portal.
429 rate_limited Too many requests (wait retryAfter seconds), or the monthly audit or brief allowance is used up (the body includes limit and resetsAt).
500 internal_error An unexpected server error occurred. If this persists, contact support.