Skip to main content
DevTune provides a public REST API for integrating your AI search visibility data into CI/CD pipelines, BI tools, custom dashboards, and automated workflows. Most endpoints are read-focused analytics endpoints. API keys also power webhook management and non-interactive MCP clients, while MCP clients that support OAuth can use browser sign-in and project selection instead. The Results API keeps the /outcomes/ path and the devtune_get_outcomes_ledger tool name for compatibility.

What You Can Do

With the DevTune API you can:
  • Pull visibility metrics (share of voice, presence rate, brand mentions) into your reporting tools
  • Monitor competitive positioning trends programmatically
  • Feed citation data into your own analytics pipelines
  • Track adoption metrics (npm downloads, GitHub stars) alongside search visibility
  • Pull your actions: what DevTune suggests, what your team accepted, what is live and what was archived
  • Trigger brief generation for an action DevTune suggested
  • List, search, read, upload, and version project Library items
  • Read and directly edit the Knowledge Profile, and review proposed profile changes
  • Build custom alerting on top of DevTune data
  • Connect AI coding agents (Codex, Claude, Cursor) via the MCP server for in-IDE access

Requirements

  • A Plus plan or higher with API access enabled
  • An API key scoped to a specific project, or an MCP or CLI OAuth connection

Getting Started

  1. Create an API key from API Keys in the account sidebar
  2. Make your first request using the key in the Authorization header
  3. Find the endpoint you need in the list below, and select its description to open its reference page
For OAuth-based agent access, connect through the MCP server instead of creating an API key.

Quick Example

The response, trimmed to the main fields. Rates are percentages from 0 to 100, and each comes with a 90% range object:
A key without the endpoint’s scope gets 403:

Available Endpoints

Full request and response documentation for each endpoint is in the Endpoints section of the sidebar, generated from the OpenAPI specification. The machine-readable specification is at GET /api/v2/openapi.json. Each endpoint’s operationId is its TypeScript client method name; some descriptions refer to other endpoints by it.

Archiving a brand

DELETE /projects/{projectId}/setup/brands/{brandId} archives a competitor rather than deleting it: tracking stops and its recorded history stays. Restore it with POST /projects/{projectId}/setup/brands/{brandId}/restore. Archiving a brand that is in the positioning competitor set needs confirmation. See Archive a brand for the 409 and the ?confirm=true retry.

Shared request and response rules

Pagination

Every paged list follows one contract.
  • Send cursor with pagination.nextCursor from the previous page, unchanged, while pagination.hasMore is true. The last page returns nextCursor: null.
  • Keep every other parameter the same. A cursor sent with different filters, or a malformed cursor, returns 400.
  • Page size is limit or pageSize; they are the same setting with the same bounds. Sending both with different values returns 400.
  • Where a list reads published data, the cursor stays on the data its first page read, so a later page never mixes two versions. If the data is republished mid-read, the next page is refused; start again without cursor.
  • Lists that paged by offset, page, generation or snapshotId still accept them, and they are deprecated. Sending one beside cursor returns 400.
  • A page can report hasMore: true and be followed by an empty last page. This happens on Agent Picks history and Actions, and positioning answers, when a page holds exactly 100 rows.
  • Responses that report hasMore and nextCursor elsewhere, such as Action edits, Accuracy lists and Agent Picks runs, also return them under data.pagination.
The TypeScript SDK’s paginate helper follows this contract for every list.

Fixed Windows

Windowed endpoints accept only fixed rolling windows, and every one defaults to 30 days. Arbitrary date ranges are not supported: dateFrom and dateTo return 400. Responses expose the resolved selection as window or windowDays, depending on the endpoint. Use the response schema for that endpoint instead of assuming one shared shape.

Coverage and missing data

Measurement endpoints report coverage alongside their figures. An unavailable or unmeasured window has no measurement yet: report it as unmeasured. A partial window describes only the days it covers. Report the coverage with the numbers. Each endpoint’s reference names its coverage fields.

Response Caching

Read-focused analytics endpoints may return short-lived cached responses to reduce repeated polling overhead. Clients should respect the Cache-Control response header. If an integration needs to force a fresh read, send Cache-Control: no-cache with the request. Browser calls can’t send that header; see CORS support.

Citations vs Mentions

Citation endpoints are named /citations/* because they describe cited sources: pages, domains, classifications, positions, and evidence references. A mention is a brand or product named in AI answer text without a link; it is a separate metric. Citation top-list endpoints support simple prefix matching on URL and/or canonical domain. Content gaps take an optional gapType and display-label search. The public API does not support arbitrary sort columns, classification filters, broad content/source filters, or citation compare requests.