Webhooks documentation for connected accounts and users#424
Webhooks documentation for connected accounts and users#424saif-at-scalekit merged 2 commits intomainfrom
Conversation
- Standardized the formatting of tags in the API schema for connected accounts and user endpoints to improve consistency and readability. - Added a new query parameter for filtering permissions by type in the permissions endpoint. - Introduced a new endpoint to retrieve the support email hash for the current logged-in user. - Removed the deprecated endpoint for retrieving the authenticated user details. These changes enhance the clarity and maintainability of the Scalekit API documentation.
📝 WalkthroughWalkthroughUpdated the OpenAPI specification to introduce new endpoints for support hash retrieval and connected accounts management, along with expanded schemas for domains, permissions, and authenticated clients. Added new enums for connector types and permission classification while enriching session and organizational membership data structures with additional metadata fields. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
✅ Deploy Preview for scalekit-starlight ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- Revised the API documentation for clarity and consistency, including improved descriptions and formatting. - Updated the Java SDK version from 2.0.6 to 2.0.11 in both JSON and YAML files to reflect the latest release. - Enhanced the descriptions for various API endpoints and parameters to improve user understanding. These changes ensure that the Scalekit API documentation is accurate and up-to-date, providing developers with the necessary information for effective integrat
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@public/api/scalekit.scalar.json`:
- Around line 3451-3457: The OpenAPI entry for the query parameter named "type"
is inconsistent: its schema.enum only allows "SCALEKIT" and "ENVIRONMENT" but
the description references "ALL"; fix by aligning them — either add "ALL" to the
schema.enum and set the default to "ALL" (update the "schema" object to
["ALL","SCALEKIT","ENVIRONMENT"] and add "default":"ALL") or modify the
description to say "omit to return all" and remove the default reference; update
the "schema", "enum", and "description" fields for the parameter named "type"
accordingly.
- Around line 11751-12046: The ScalekitEvent schema currently restricts the
"type" and "object" enums and is missing the new connected_account events;
update components.schemas.ScalekitEvent to include the connected_account.*
values in the "type" enum (e.g. connected_account.created,
connected_account.updated, connected_account.deleted,
connected_account.magic_link_generated, connected_account.oauth_tokens_fetched,
connected_account.token_refresh_succeeded,
connected_account.token_refresh_failed, connected_account.oauth_succeeded) and
add "ConnectedAccount" to the "object" enum so the examples using type:
connected_account.* and object: ConnectedAccount validate correctly; locate the
ScalekitEvent definition and extend those enum lists accordingly.
📜 Review details
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
public/api/scalekit.scalar.jsonpublic/api/scalekit.scalar.yaml
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{js,ts,tsx,jsx,py,java,cs,go,cpp,c,rb,php,swift,kt,scala,rs,m,mm,groovy,gradle,xml,json}
📄 CodeRabbit inference engine (.cursor/rules/comment-standards.mdc)
Comments should not duplicate the code - avoid comments that simply restate what the code does; comments should add value beyond what's obvious from reading the code
Files:
public/api/scalekit.scalar.json
🧠 Learnings (3)
📚 Learning: 2026-02-02T05:55:51.251Z
Learnt from: AkshayParihar33
Repo: scalekit-inc/developer-docs PR: 415
File: src/content/docs/authenticate/fsa/multiapp/native-app.mdx:72-179
Timestamp: 2026-02-02T05:55:51.251Z
Learning: In the `src/content/docs/authenticate/fsa/multiapp/` directory, the multi-app authentication documentation (native-app.mdx, single-page-app.mdx, web-app.mdx, overview.mdx) currently uses conceptual shell/curl examples instead of multi-language SDK code examples because the Scalekit SDKs have not yet been built/updated for multi-app functionality. Once the SDKs are ready, these files should be updated to include all 4 languages (Node.js, Python, Go, Java) using `<Tabs syncKey="tech-stack">`.
Applied to files:
public/api/scalekit.scalar.json
📚 Learning: 2026-01-13T12:47:04.673Z
Learnt from: CR
Repo: scalekit-inc/developer-docs PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-13T12:47:04.673Z
Learning: Applies to **/*.{js,ts,py,go,java,tsx,jsx} : SDK variable names must follow language-specific conventions: Node.js uses `scalekit`, Python uses `scalekit_client`, Go uses `scalekitClient`, Java uses `scalekitClient`
Applied to files:
public/api/scalekit.scalar.json
📚 Learning: 2026-01-13T12:46:55.260Z
Learnt from: CR
Repo: scalekit-inc/developer-docs PR: 0
File: .cursorrules:0-0
Timestamp: 2026-01-13T12:46:55.260Z
Learning: Applies to **/*.mdx : Use consistent SDK variable naming: Node.js='scalekit', Python='scalekit_client', Go='scalekitClient', Java='scalekitClient'
Applied to files:
public/api/scalekit.scalar.json
🔇 Additional comments (4)
public/api/scalekit.scalar.json (4)
2733-2790: Domain-type guidance is now consistent across endpoints.The clarified semantics across list/create/get/delete plus the tag docs make the SSO routing vs allowed email domain behavior much easier to reason about.
Also applies to: 2819-2854, 2893-2954, 5190-5191, 7744-7746, 9579-9585
4647-4666: Support-hash endpoint addition looks good.Clear, minimal response shape for the current user and consistent naming.
Also applies to: 9160-9166
5986-5993: Permission provenance + error context additions are solid.Exposing effective permissions, a permission type/provenance flag, and required permissions in errors improves auditability and troubleshooting.
Also applies to: 7869-7875, 8492-8509
8669-8684: Session authenticated‑client metadata is a useful audit addition.The client/organization context should help debugging cross‑client sessions without changing existing fields.
Also applies to: 8830-8837
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
These changes enhance the clarity and maintainability of the Scalekit API documentation.
Summary by CodeRabbit
New Features