-
Organization Contexts: All endpoints should, at a minimum, be scoped to the current organization, determined by
the OrgID
claim in the JWT.
-
User Contexts: Endpoints may choose to scope data to the authenticated user. This should be done for endpoint
only when the data is inherently personal and directly related to the authenticated user. This helps to avoid ambiguity
and ensures clarity regarding what data is being retrieved.
-
Clarity in Context: Ensure that the endpoint’s path clearly conveys the context of the data being retrieved.
Ensure that all organization context endpoints should be either singletons or expect a resource ID in the URL path
(e.g. /v3/users/{userId}
). Ensure that all user context endpoints should use me
in lieu of the resource ID (e.g.
/v3/users/me
).