Skip to content

CP-9292: Document which endpoints an Organisation API key can call - #194

Open
mattkepple wants to merge 1 commit into
mainfrom
CP-9292-api-key-endpoints
Open

mattkepple wants to merge 1 commit into
mainfrom
CP-9292-api-key-endpoints

Conversation

@mattkepple

Copy link
Copy Markdown
Contributor

What & Why

CAPACITI (MC-2511) built an integration on an Organisation API key and got 403 not_available_to_connected_apps from GET /stories/story_category_response. The docs said a key "can call the same endpoints as a connected app", but they never said which endpoints those are, so integrators (and their AI assistants) had no way of knowing.

This PR:

  • adds to the API keys section an explanation of the difference between an Organisation API key (one Organisation, only endpoints checked for that) and a person's own token (every endpoint, every Organisation they belong to), plus a collapsible list of the 74 endpoints an Organisation API key or connected app can call. The list is generated from OauthTokenAuthentication::OAUTH_ENDPOINTS on develop (as of 20 Nov 2026) mapped to the Rails routes.
  • adds a note and a 403 response to Get Stories with full survey response detail (/stories/story_category_response), in both the endpoint card and openapi.yaml, saying a key can't use it yet and how to get the same answers with a key instead.
  • points to the list from the API key paragraph in openapi.yaml's intro.

Only openapi.yaml and content in server.js change. No styles, head or assets. npm run check passes.

Merge timing: this documents how production behaves today, so it can be merged as soon as it's reviewed. The Rails fix, CP-9292 (MakerbleDev/makerble branch CP-9292-response-api-keys), makes story_category_response work with API keys. Once that is live in production, a follow-up docs PR removes the note and adds the endpoint to the list.

Jira Issue & Video Reference

https://makerble.atlassian.net/browse/CP-9292 (from MC-2511). Slack thread: https://makerble.slack.com/archives/G08CBSX6V/p1795163302243599

Auto-fix may be enabled on this PR — replies to review comments could come from Claude rather than the named author.


Generated by Claude Code

Integrators were surprised by 403 not_available_to_connected_apps on
endpoints that work with a person's token (MC-2511, CP-9292). List the
74 endpoints an Organisation API key or connected app can call, and say
on Story Category Response that a key can't use it yet and what to use
instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F1a5xqndA8DezGCVEArzG5
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api-docs Ready Ready Preview Nov 20, 2026 8:43am UTC

This branch was successfully deployed

1 active deployment
Preview — ebaaa394 Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants