Get the authenticated user and workspace
Changed onReturns the authenticated user and (when present) workspace from the auth context, plus the calling credential's own scopes. Requires an authenticated user but NOT a workspace — workspace is omitted when the caller has none.
Request
- Base URL: https://api.monid.ai
- URL: https://api.monid.ai/v1/auth/whoami
- Auth: HTTP bearer
Headers
Model driving the calling agent. Optional; a value that is empty, longer than 256 characters or not printable ASCII is ignored (never an error).
Agent harness or client making the call (e.g. a coding agent, an agent framework). Optional; a value that is empty, longer than 256 characters or not printable ASCII is ignored (never an error).
Caller-side session identifier, so the calls of one agent session (discover → inspect → run → polling) can be correlated. Optional; a value that is empty, longer than 256 characters or not printable ASCII is ignored (never an error).
Response
The caller's identity
Example response
{
"user": {
"userId": "user_2abcDEFghiJKLmnop",
"email": "dev@example.com"
},
"workspace": {
"workspaceId": "org_2abcDEFghiJKLmnop",
"slug": "acme-inc"
}
}Changes
- info
added the new optional
headerrequest parameterX-Monid-Agent-Harness - info
added the new optional
headerrequest parameterX-Monid-Agent-Model - info
added the new optional
headerrequest parameterX-Monid-Agent-Session-Id - info
removed the
PROMO_REDEEM_DISABLEDenum value from theresponse property for the response status - info
removed the
PROMO_REDEEM_DISABLEDenum value from theresponse property for the response status - info
removed the
PROMO_REDEEM_DISABLEDenum value from theresponse property for the response status - info
removed the
PROMO_REDEEM_DISABLEDenum value from theresponse property for the response status
- info
- warning
added the new
PROMO_REDEEM_DISABLEDenum value to theresponse property for the response status - warning
added the new
PROMO_REDEEM_DISABLEDenum value to theresponse property for the response status - warning
added the new
PROMO_REDEEM_DISABLEDenum value to theresponse property for the response status - warning
added the new
RATE_LIMITEDenum value to theresponse property for the response status - warning
added the new
RATE_LIMITEDenum value to theresponse property for the response status - warning
added the new
RATE_LIMITEDenum value to theresponse property for the response status - info
added the non-success response with the status
- warning