Docs: Split API reference into domain sub-routes#102
Conversation
Restructure the single "API reference" tab into 5 domain-specific tabs: - Research: artist research, fans, segments, posts, chat - Releases: songs, catalogs, tasks - Content: content creation, content agent, image, transcribe, sandboxes - Social Media: Spotify, Instagram, X, social scraping, connectors - Platform: accounts, organizations, workspaces, subscriptions, admins Co-Authored-By: Paperclip <noreply@paperclip.ing>
📝 WalkthroughWalkthroughThe documentation navigation structure in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add structured API sections, CLI/MCP cards, and a plain-text endpoint reference so LLMs given the root URL can immediately discover all available endpoints without navigating sub-pages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move base URL, authentication, API key setup, and OpenAPI spec link into index.mdx so LLMs and users get everything on the first page. Remove the now-redundant introduction page and its nav entry. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Make "List connectors" the default landing page for the Social Media tab so OAuth connector setup is the first thing users see. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
3 issues found across 3 files (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="index.mdx">
<violation number="1" location="index.mdx:70">
P2: The text says "five main sections" but the CardGroup below shows six cards. Either update the count to "six" or merge Chat into the Research card to match.</violation>
<violation number="2" location="index.mdx:140">
P2: Custom agent: **Flag AI Slop and Fabricated Changes**
The research quick reference is missing 2 of 30 endpoints: `instagram-posts` and `track`. An LLM relying on this section will not discover those endpoints. Add them to the list to match the actual `api-reference/research/` directory.</violation>
</file>
<file name="docs.json">
<violation number="1" location="docs.json:37">
P2: Custom agent: **Flag AI Slop and Fabricated Changes**
Broken indentation: the `{` opening the Research group lost all indentation when the preceding Overview group was removed. Every other group object in this file is indented with 10 spaces inside `"groups"` arrays. This is sloppy AI-generated formatting that harms readability.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.
| ## Key Capabilities | ||
| ## API Sections | ||
|
|
||
| The API is organized into five main sections. Use these links to jump to the right area. |
There was a problem hiding this comment.
P2: The text says "five main sections" but the CardGroup below shows six cards. Either update the count to "six" or merge Chat into the Research card to match.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At index.mdx, line 70:
<comment>The text says "five main sections" but the CardGroup below shows six cards. Either update the count to "six" or merge Chat into the Research card to match.</comment>
<file context>
@@ -24,79 +50,118 @@ This is where record labels, musicians, and managers start to build on Recoup AI
-## Key Capabilities
+## API Sections
+
+The API is organized into five main sections. Use these links to jump to the right area.
<CardGroup cols={2}>
</file context>
| The API is organized into five main sections. Use these links to jump to the right area. | |
| The API is organized into six main sections. Use these links to jump to the right area. |
|
|
||
| If you are an LLM navigating these docs, here is a summary of the endpoint structure: | ||
|
|
||
| - **`/api/research/*`** — Artist research (search, lookup, profile, metrics, audience, cities, similar, urls, playlists, albums, tracks, career, insights, genres, festivals, web, deep, people, extract, enrich, milestones, venues, rank, charts, radio, discover, curator, playlist) |
There was a problem hiding this comment.
P2: Custom agent: Flag AI Slop and Fabricated Changes
The research quick reference is missing 2 of 30 endpoints: instagram-posts and track. An LLM relying on this section will not discover those endpoints. Add them to the list to match the actual api-reference/research/ directory.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At index.mdx, line 140:
<comment>The research quick reference is missing 2 of 30 endpoints: `instagram-posts` and `track`. An LLM relying on this section will not discover those endpoints. Add them to the list to match the actual `api-reference/research/` directory.</comment>
<file context>
@@ -24,79 +50,118 @@ This is where record labels, musicians, and managers start to build on Recoup AI
+
+If you are an LLM navigating these docs, here is a summary of the endpoint structure:
+
+- **`/api/research/*`** — Artist research (search, lookup, profile, metrics, audience, cities, similar, urls, playlists, albums, tracks, career, insights, genres, festivals, web, deep, people, extract, enrich, milestones, venues, rank, charts, radio, discover, curator, playlist)
+- **`/api/content/*`** — Content creation (create, generate-image, generate-video, generate-caption, transcribe-audio, edit, upscale, analyze-video, templates, validate, estimate)
+- **`/api/chat/*`** — Chat (chats, artist, segment, messages, messages-copy, messages-trailing-delete, create, update, delete, generate, stream, compact)
</file context>
| - **`/api/research/*`** — Artist research (search, lookup, profile, metrics, audience, cities, similar, urls, playlists, albums, tracks, career, insights, genres, festivals, web, deep, people, extract, enrich, milestones, venues, rank, charts, radio, discover, curator, playlist) | |
| - **`/api/research/*`** — Artist research (search, lookup, profile, metrics, audience, cities, similar, urls, playlists, albums, track, tracks, career, insights, genres, festivals, web, deep, people, extract, enrich, milestones, venues, rank, charts, radio, discover, curator, playlist, instagram-posts) |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
2 issues found across 2 files (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="index.mdx">
<violation number="1" location="index.mdx:21">
P1: Custom agent: **Flag AI Slop and Fabricated Changes**
The base URL changed from the production domain (`api.recoupable.com`) to a Vercel deployment URL (`recoup-api.vercel.app`), but `authentication.mdx` and the majority of `openapi.json` endpoints still reference `api.recoupable.com`. This creates contradictory documentation — users following the homepage will hit a different host than users following the authentication guide. Either all docs should be updated consistently, or this change should be reverted to match the rest of the documentation.</violation>
</file>
<file name="quickstart.mdx">
<violation number="1" location="quickstart.mdx:11">
P1: Custom agent: **Flag AI Slop and Fabricated Changes**
The API base URL is silently changed from `api.recoupable.com` to `recoup-api.vercel.app` (a Vercel deployment URL), but the PR description claims only navigation structure was updated. This leaves the docs inconsistent — `authentication.mdx` still references `api.recoupable.com`, and many endpoint-level servers in `openapi.json` do as well. If this URL migration is intentional, it should be called out in the PR description and applied consistently; if not, this is an unintended change.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.
| All API requests should be made to: | ||
|
|
||
| ```bash | ||
| https://recoup-api.vercel.app/api |
There was a problem hiding this comment.
P1: Custom agent: Flag AI Slop and Fabricated Changes
The base URL changed from the production domain (api.recoupable.com) to a Vercel deployment URL (recoup-api.vercel.app), but authentication.mdx and the majority of openapi.json endpoints still reference api.recoupable.com. This creates contradictory documentation — users following the homepage will hit a different host than users following the authentication guide. Either all docs should be updated consistently, or this change should be reverted to match the rest of the documentation.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At index.mdx, line 21:
<comment>The base URL changed from the production domain (`api.recoupable.com`) to a Vercel deployment URL (`recoup-api.vercel.app`), but `authentication.mdx` and the majority of `openapi.json` endpoints still reference `api.recoupable.com`. This creates contradictory documentation — users following the homepage will hit a different host than users following the authentication guide. Either all docs should be updated consistently, or this change should be reverted to match the rest of the documentation.</comment>
<file context>
@@ -18,7 +18,7 @@ This is where record labels, musicians, and managers start to build on Recoup AI
```bash
-https://api.recoupable.com/api
+https://recoup-api.vercel.app/api
</file context>
</details>
<a href="https://www.cubic.dev/action/fix/violation/2e297e96-cdf5-4701-adcd-4c8a52df1987" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://cubic.dev/buttons/fix-with-cubic-dark.svg">
<source media="(prefers-color-scheme: light)" srcset="https://cubic.dev/buttons/fix-with-cubic-light.svg">
<img alt="Fix with Cubic" src="https://cubic.dev/buttons/fix-with-cubic-dark.svg">
</picture>
</a>
|
|
||
| ```bash | ||
| https://api.recoupable.com/api | ||
| https://recoup-api.vercel.app/api |
There was a problem hiding this comment.
P1: Custom agent: Flag AI Slop and Fabricated Changes
The API base URL is silently changed from api.recoupable.com to recoup-api.vercel.app (a Vercel deployment URL), but the PR description claims only navigation structure was updated. This leaves the docs inconsistent — authentication.mdx still references api.recoupable.com, and many endpoint-level servers in openapi.json do as well. If this URL migration is intentional, it should be called out in the PR description and applied consistently; if not, this is an unintended change.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At quickstart.mdx, line 11:
<comment>The API base URL is silently changed from `api.recoupable.com` to `recoup-api.vercel.app` (a Vercel deployment URL), but the PR description claims only navigation structure was updated. This leaves the docs inconsistent — `authentication.mdx` still references `api.recoupable.com`, and many endpoint-level servers in `openapi.json` do as well. If this URL migration is intentional, it should be called out in the PR description and applied consistently; if not, this is an unintended change.</comment>
<file context>
@@ -8,7 +8,7 @@ description: "Get your API key and make your first request to the Recoup API."
```bash
-https://api.recoupable.com/api
+https://recoup-api.vercel.app/api
</file context>
</details>
<a href="https://www.cubic.dev/action/fix/violation/35af5fdd-bd50-4e61-b93e-edaa2401aa04" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://cubic.dev/buttons/fix-with-cubic-dark.svg">
<source media="(prefers-color-scheme: light)" srcset="https://cubic.dev/buttons/fix-with-cubic-light.svg">
<img alt="Fix with Cubic" src="https://cubic.dev/buttons/fix-with-cubic-dark.svg">
</picture>
</a>
- Fix section count: "five" → "six" to match actual card count - Add missing research endpoints (track, instagram-posts) to LLM reference - Revert base URL to api.recoupable.com for consistency with authentication.mdx and openapi.json Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
| # Welcome to the Recoup API | ||
|
|
||
| Use the Recoup API to build your record label. Access artist analytics, fan segmentation, AI-powered chat, and task automation to power your music business. | ||
| Use the Recoup API to build your record label. Access artist analytics, fan segmentation, AI-powered chat, content creation, and task automation to power your music business. |
There was a problem hiding this comment.
| Use the Recoup API to build your record label. Access artist analytics, fan segmentation, AI-powered chat, content creation, and task automation to power your music business. | |
| Use the Recoup API to build your record label. Generate content, Access artist analytics, Manage your catalogs, AI-powered chat, and task automation to power your music business. |
| href="/api-reference/chat/chats" | ||
| > | ||
| AI-powered conversations with artist context. Stream responses or generate complete messages. | ||
| AI-powered conversations with artist context. Create, stream, and generate messages. Copy messages, delete trailing messages, and manage chat history. |
There was a problem hiding this comment.
KISS principle
| AI-powered conversations with artist context. Create, stream, and generate messages. Copy messages, delete trailing messages, and manage chat history. | |
| Conversations with artist context. Create, stream, and generate messages. Copy messages, delete trailing messages, and manage chat history. |
| href="/content-agent" | ||
| > | ||
| Scrape profiles and comments. | ||
| AI content creation agent accessible via Slack. Generates images, videos, and captions for artists automatically. |
There was a problem hiding this comment.
KISS
| AI content creation agent accessible via Slack. Generates images, videos, and captions for artists automatically. | |
| Content creation agent accessible via Slack. Generates images, videos, and captions for artists automatically. |
| - **`/api/research/*`** — Artist research (search, lookup, profile, metrics, audience, cities, similar, urls, playlists, albums, tracks, career, insights, genres, festivals, web, deep, people, extract, enrich, milestones, venues, rank, charts, radio, discover, curator, playlist) | ||
| - **`/api/content/*`** — Content creation (create, generate-image, generate-video, generate-caption, transcribe-audio, edit, upscale, analyze-video, templates, validate, estimate) | ||
| - **`/api/chat/*`** — Chat (chats, artist, segment, messages, messages-copy, messages-trailing-delete, create, update, delete, generate, stream, compact) | ||
| - **`/api/artists/*`** — Artist management (list, create, segments, socials, socials-scrape, profile) |
There was a problem hiding this comment.
Move this item first in the list as it's likely the first endpoint they need to hit.
- Update intro text to highlight content generation and catalogs - KISS: remove "AI-powered" from Chat card description - KISS: remove "AI" from Content Agent card description - Move /api/artists/* to first in LLM quick reference Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
fix: address PR #102 review feedback
Summary
docs.jsonis updatedTest plan
🤖 Generated with Claude Code
Summary by cubic
Split the monolithic API reference into five tabs—Research, Releases, Content, Social Media, and Accounts—and refreshed the home page for faster onboarding and LLM navigation.
api-reference/introductioninto/with base URL/auth and OpenAPI link.https://recoup-api.vercel.app/apiin the root page and Quickstart examples.Written for commit f1a9dc6. Summary will update on new commits.
Summary by CodeRabbit