Get current identity and permissions (whoami)
Changed onReturns the authenticated caller's own identity, API key scope, organization role, and resolved per-model permissions. Self-scoped and available to non-admins: it lets a caller decide whether an action is permitted without attempting it. Pass modelId to scope rolesByModel to specific models.
Request
- Base URLhttps://omniapp.co (the document declares no server; this is the origin it was published from)
- URLhttps://omniapp.co/api/v1/whoami
- AuthHTTP bearer
Query parameters
Optional model filter. A single model id or a comma-separated list. When provided, rolesByModel contains only these models. When omitted, models the caller can access are returned (up to a limit; see rolesByModelTruncated).
Response
Caller's identity, key scope, org role, and per-model permissions
Example response
{
"orgRole": "MEMBER"
}Changes
- warning
added the new
USE_ROUTINESenum value to the///response property for the response status
- warning
- warning
added the new
CREATE_APPSenum value to the///response property for the response status
- warning