Auth

Resolve the current credential to its tenant context

Changed on

Returns the resolved auth context for whichever credential the request carries — velox_session cookie (dashboard) or Authorization: Bearer (SDK / curl). Cookie path returns user_id + email; Bearer path returns key_id + key_type. Both always return tenant_id + livemode.

get/v1/whoami

Request

  • Base URL: http://localhost:8080
  • URL: http://localhost:8080/v1/whoami
  • Auth: HTTP bearer

Response

Resolved auth context

tenant_idstring required
livemodeboolean required
user_idstring
emailstring
key_idstring
key_type'platform' | 'secret' | 'publishable'

Changes

    • breaking

      the response property became optional for the status

    • breaking

      the response property became optional for the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status