Skip to main content
The CogNerd REST API gives you programmatic access to everything the platform can do — brand analysis, GEO file generation, AI-optimized content creation, and AEO audits. All requests go to a single base URL, use JSON bodies, and follow a consistent response format. You authenticate with a Bearer token obtained at login.

Base URL

All API requests use this base URL in production:
Every endpoint path below is relative to this base. For example, the full URL for the login endpoint is https://api.cognerd.in/api/auth/login.
The sandbox and staging environments use different base URLs. Contact support to obtain a non-production base URL if you need one.

Request format

Send all request bodies as JSON and include the Content-Type: application/json header.

Response format

Successful responses return a JSON object with a 2xx status code. The shape of the body varies by endpoint and is documented on each endpoint’s page. Error responses always follow this structure:

Common error codes

Credits

Several API operations consume credits from your account balance. Credits are validated before the operation starts — if your balance is too low, the request is rejected immediately with a 402 status.
Check your credit balance in the CogNerd dashboard under Settings → Credits, or retrieve it programmatically via GET /api/auth/me which includes your active plan details.

Quick example

Here is a complete round-trip: authenticate, then fetch your current user profile. Step 1 — log in and get a token
Step 2 — use the token in subsequent requests

Endpoint groups

Authentication

Manage accounts and session tokens. See the Authentication page for full details and code examples.

Brand Monitor

Scrape brand data and run AI-powered visibility analyses. The analyze endpoint streams results in real time using Server-Sent Events (SSE). See Brand Monitor — Analyze for details.

GEO assets

Generate AI-ready GEO files for your website and manage reports. Generation is asynchronous: POST /generate returns a jobId immediately. Poll GET /job/:jobId/status to track progress, then fetch the report when complete. See GEO Assets for the full workflow.

Content Studio

Create AI-optimized blog posts. Credit cost depends on the requested content length. See Content Studio — Create Blog.

AEO reports

Run Answer Engine Optimization audits. See AEO Report.