Skip to content

Document the Preview auth token write endpoints - #670

Merged
robertlangner-fin merged 3 commits into
mainfrom
robert.langner/auth-tokens-write-endpoints
Sep 21, 2026
Merged

robertlangner-fin merged 3 commits into
mainfrom
robert.langner/auth-tokens-write-endpoints

Conversation

@robertlangner-fin

Copy link
Copy Markdown
Contributor

Why?

The Preview auth tokens reference only documents reading, so a developer setting up a data connector has no documented way to store a credential over the API.

How?

Adds the create and update operations with their request bodies and error responses, widens the Auth Tokens tag description to cover writing and its limits, and fixes a wrong example value on the existing read response.

Generated with Claude Code

robertlangner-fin and others added 2 commits September 18, 2026 11:29
Adds POST /auth_tokens and PATCH /auth_tokens/{id} to the Preview spec,
alongside the read endpoints already documented there, with request schemas
for each and the error responses they can return.

Also corrects the token_type example on the auth_token schema: the API returns
"text", not "header".

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
token_prefix is now returned by every auth token operation and accepted when
updating one. Also corrects two response examples that showed a token_type of
header, which is not a value these endpoints return.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@robertlangner-fin
robertlangner-fin marked this pull request as ready for review September 21, 2026 09:59
@robertlangner-fin
robertlangner-fin requested a review from a team September 21, 2026 10:04
The four operations referenced the unrestricted intercom_version schema,
so generated clients offered released versions that do not expose them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

@anubhav-intercom anubhav-intercom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving — the spec matches the code contract in intercom/intercom#578721 (required create fields, all-optional PATCH with no token_value, and the 400/401/403/404 set), and the token_type header→text example fix is right.

Ordering: merge after intercom/intercom#578721 ships so the spec doesn't describe endpoints that still 404.

~ Automated via Claude

@robertlangner-fin
robertlangner-fin merged commit b862a25 into main Sep 21, 2026
3 checks passed
@robertlangner-fin
robertlangner-fin deleted the robert.langner/auth-tokens-write-endpoints branch September 21, 2026 14:49
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