console
Whoami
Return the authenticated console principal.
Smoke-test endpoint for console auth. Returns the principal kind plus its identifying fields so callers can confirm their token was verified against the console Clerk realm rather than the customer realm.
Args: principal: Authenticated console principal resolved from the bearer token.
Returns:
A dictionary with kind set to console_user or
console_machine and the identifying fields for that kind.
Fields not applicable to the resolved kind are present with
a None value so the response shape is stable.
GET
Whoami
Documentation Index
Fetch the complete documentation index at: https://docs.pragmatiks.io/llms.txt
Use this file to discover all available pages before exploring further.
Response
200 - application/json
Successful Response
Previous
Register Runtime VersionRegister a new runtime image version.
Called by the ``release-runtime`` CI workflow after building and
pushing a runtime image to the container registry. Creates or
updates the version record in the shared SurrealDB namespace.
Authenticated against the Pragmatiks Console Clerk realm — only a
ConsoleMachine M2M token is accepted. Customer-realm tokens are
rejected at the Clerk SDK layer (wrong JWKS); ConsoleUser session
tokens are rejected with 403 by ``require_console_machine``.
Args:
body: Runtime version registration payload.
service: Shared-namespace RuntimeVersionService for persistence.
machine: Authenticated ConsoleMachine performing the release.
Returns:
The persisted RuntimeVersion record.
Next
Whoami